Looking for maintainers?

Am happy to join as a collaborator to help develop and maintain this package.

Paging @ikeeip

Yes. My work slightly different now and if you can help with this project it would be great.


PL-40067 : Removing reference of Feature Flag NG_ENABLE_LDAP_CHECK from docs

Removing reference of Feature Flag NG_ENABLE_LDAP_CHECK from docs as its been GAed and no longer in code
Task: https://harness.atlassian.net/browse/PL-40067
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


How to change the date to Chinese

How to change the date to Chinese

Hi @herowws.  Answering your concern, we have one builder called groupSeparatorBuilder which will help you.
You can access this builder from chatBackgroundConfig. You can refer below code snippet as well. Thank you !!
chatBackgroundConfig: ChatBackgroundConfiguration(
          groupSeparatorBuilder: (date)=> YourWidget(), // Note: date is string with this "yyyy-MM-dd" format.
        )

Thanks for pointing that out. I am closing this issue. If you can not find a resolution with the above solution then feel free to reopen.

How do I add time to a date？


registry import window appears only after click

Running SBOLDesigner-2.2 on my Mac, when I edit a part and request "import registry part", nothing happens.  Only after I click does the import window actually appear.

I have been getting null pointer exceptions when opening certain dialogs because they don't have a loginButton.  (The fix above assumes there is always a login button)

I see. Maybe always have a cancel button?
Chris
Sent from my iPhone

On Feb 1, 2018, at 5:29 PM, Michael Zhang<EMAIL_ADDRESS>wrote:
I have been getting null pointer exceptions when opening certain dialogs because they don't have a loginButton. (The fix above assumes there is always a login button)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Done.
I just took a look at the type hierarchy, and (funny enough) it turns out everything deriving from InputDialog retains the cancel button.

Excellent.  These seems a good workaround.

On Feb 1, 2018, at 9:41 PM, Michael Zhang<EMAIL_ADDRESS>wrote:
Done.
I just took a look at the type hierarchy, and (funny enough) it turns out everything deriving from InputDialog retains the cancel button.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/SynBioDex/SBOLDesigner/issues/214#issuecomment-362484792, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWD92uaEbUGwVr8WnXjul5g73NVzR7zks5tQpIKgaJpZM4Rfp37.

There is now no longer a delay, but instead an error box immediately appears saying it can't find the working document and I have to try again (error message can't be copy & pasted).  This happens twice, and then it gives up and lets me have the import box.

Yes, I think I've seen that before.  The issue is that it remembers what your last registry choice was, and if it was Working Document and their is no Working Document, such as when you first startup you get this message.  This is a bug, but I think once you select a SynBioHub registry for example, you should not see these on subsequent imports.  @michael13162 can you see about addressing this messaging problem.  Maybe it should revert to built-in parts if the Working Document does not exist.   Or maybe there should always be a working document even when you first start.

I had a hard time reproducing exactly what you're describing, but I think I've fixed it so the import parts selection gets automatically chosen when there is no working document.  Also, when there is no working document yet, it will report an empty list of importable parts (which makes more sense than always telling the user I think).

Ok, seems to be working.


WSL2-Ubuntu [process exited with code 1] under updating 19564.1005

As the title. I updated the insider version to 19564.1005. WSL2-Ubuntu cannot start. I got [process exited with code 1] error with Terminal-run.

It seems very random as to whether it starts the instance, or fails to connect/start it still. I'm still alternating between both "The Windows Subsystem for Linux Instance has terminated." and the original connection error when attempting to launch a new session after running wsl --shutdown

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Woo! Thank you for the advice! It works!

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

thanks, the same as your

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

It works! Thanks!

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Worked perfectly！ 👍

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Worked perfectly！ 👍

However, everytime when I reboot my computer, this problem appears again. 😢

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Worked perfectly！ 👍

However, everytime when I reboot my computer, this problem appears again. 😢

if you have any solution? i meet the same situation as you. everytime i reboot, it will not work

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Worked perfectly！ 👍

However, everytime when I reboot my computer, this problem appears again. 😢

if you have any solution? i meet the same situation as you. everytime i reboot, it will not work

Mine too. I installed an then uninstalled zsh. And am stuck with [process exited with code 1] message now. Wsl shutdown and winsock reset do not work :/

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

It works, amazing!

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Worked perfectly！ 👍

However, everytime when I reboot my computer, this problem appears again. 😢

if you have any solution? i meet the same situation as you. everytime i reboot, it will not work

Mine too. I installed an then uninstalled zsh. And am stuck with [process exited with code 1] message now. Wsl shutdown and winsock reset do not work :/

Same here, my brain farted and I removed zsh without thinking too much.
Now either I manage to enter as root in that WSL Distro or I think I've got to rebuild it completely.

Same issue, except netsh winsock reset and reboot didn't help. Just installed fish today and it was working fine until I did exit and it got stuck on [process exited with code 1] even though previous exits had worked fine. Now WSL is completely unusable :(

I have the same problem. After exit wsl2 Ubuntu-20.04 the error occurred. Running netsh winsock reset did not do anything (with or without restarting). A fresh installation of Ubuntu-20.04 seemed to work first, but after exiting and reopening the same error occurred. But even if the error occurs the drive \\wsl$\Ubuntu-20.04\  is available, so something must be run in the background. Windows Build: 19041.330, version 2004.

Hi, I was getting the same error but in VSCode integrated terminal. This is how I solved it.
Check the default WSL distribution with wsl -l --all. I had docker-desktop set as the default distribution. Change the distribution to Ubuntu with wsl --setdefault Ubuntu. HTH.

The Error Cause
The error is the result of lauching docker-desktop when it is set as your default WSL distribution.
Solution 1
As @rahulrai-in pointed out, dou can simply set a default distro.
Solution 2
Also, if you have multiple profiles in your windows terminal, you have to provide a start-up command for each terminal profile.
Example
This settings.json is not complete but should provide necessary information to update your win-term-settings.
%localappdata%\Packages\Microsoft.Windos.Terminal._………………\LocalState\settings.json ->
{
    "profiles":
    {
        "list":[
            {
                "hidden": false,
                "name": "Ubuntu-20.04",
                "source": "Windows.Terminal.Wsl",
                "commandline": "wsl -d Ubuntu-20.04"
            }
        ]
    }
}

Still getting [process exited with code 1].
Guest: Ubuntu 18.04
Host: Windows version 2004, build 19041.329
WSL1 was working great forever, converted to WSL2 and got numerous errors but eventually only this one. netsh winsock reset and any amount of restarting never worked for me. Tried converting back to WSL1, still the same error. Going to do a full reinstall of Ubuntu starting in WSL2 because other threads have mentioned that working.

Still getting [process exited with code 1].
Guest: Ubuntu 18.04
Host: Windows version 2004, build 19041.329
WSL1 was working great forever, converted to WSL2 and got numerous errors but eventually only this one. netsh winsock reset and any amount of restarting never worked for me. Tried converting back to WSL1, still the same error. Going to do a full reinstall of Ubuntu starting in WSL2 because other threads have mentioned that working.

Did you try the options mentioned in the previous reply? https://github.com/microsoft/WSL/issues/4899#issuecomment-652064108

@thisisbenmanley Did you try the options mentioned in the previous reply? #4899 (comment)

Yeah. Mine wasn't a docker problem at all, but yes I already had a default distro that was working previously, and adding a start-up command didn't work either.

@thisisbenmanley Did you try the options mentioned in the previous reply? #4899 (comment)

Yeah. Mine wasn't a docker problem at all, but yes I already had a default distro that was working previously, and adding a start-up command didn't work either.

@thisisbenmanley from what you mentioned, it seems like your WSL2 is borked. I hope reinstalling WSL2 solves your problem.

Confirming as others have confirmed in other threads - with WSL default version set to 2, running a new Ubuntu install worked.

In my case, this issue was caused by too long PATH.
Just remove most of the paths in Advanced System Settings of Windows and reboot again.
Then the WSL2 is working now.
Environment

Windows 10 version 2004, build 20161.1000
WSL2 kernel: 4.19.121-microsoft-standard
Ubuntu 20.04

@banyh - could you please take a trace with the king path?

Same here, my brain farted and I removed zsh without thinking too much.
Now either I manage to enter as root in that WSL Distro or I think I've got to rebuild it completely.
EDIT: nvm, I managed to solve the issue by using wsl --user root and fixing zsh from there.

Can you elaborate or share a link on "fixing zsh from there"?, The reason I'm stuck here is because of uninstalling zsh ... Thanks

@dtriana - either apt install zsh or modify your users shell with chsh.

@dtriana - either apt install zsh or modify your users shell with chsh.

Thanks @benhillis. For other non linux users like me, uninstalling zsh with apt-get doesn't reset the shell to bash, but since we already lost access to either shell, it is necessary to first get a new shell with that wsl --user root, and then run chsh -s /bin/bash [theUsernameOfYourUser] , then its all good again.

For me, it is caused by my virtual memory limitation. I have the error [process exited with code 1] when I'm loading or processing something, as I set the virtual memory size to default, my default ubuntu 18.04 seems to be fine.

Hi, I was getting the same error but in VSCode integrated terminal. This is how I solved it.
Check the default WSL distribution with wsl -l --all. I had docker-desktop set as the default distribution. Change the distribution to Ubuntu with wsl --setdefault Ubuntu. HTH.

Had the same issue with VS Code, the above solution worked, Thanks!

Hello everyone! I had this issue running chsh to change my default shell and provided a shell that didn't exist, e.g. /usr/bin/bash when it should've been /bin/bash Any attempts to modify chsh would ask for a password and I could not access the WSL terminal in vscode or any other method.
To resolve this, you need to execute commands directly from the CMD.
For example this command
wsl.exe -e chsh -s /bin/bash
This executes the linux command chsh and changes the shell to /bin/bash
Now if it asks you for a password and says PAM: Authentication failure this is because the root user doesn't have a valid profile under passwd config to execute this command. We can temporarily disable this by accessing your WSL folder directory, mine is under \\wsl$\Ubuntu-18.04\etc\pam.d which you can type into explorer if your ubuntu instance is running. Edit the chsh file to change auth       required   pam_shells.so to auth       sufficient pam_shells.so and save the file.
You should now be able to run the wsl.exe command in CMD without a password prompt. I recommend you revert the chsh file back to required after making your change.

I have the same issue. WSL v1 worked very well for me. Now I am completely unproductive. I tried the "netsh winsock reset " workaround suggested in this thread but it did not work for me. Can someone please send the steps to fix or revert back to WSL v1? I am desperate ...

I have the same issue. WSL v1 worked very well for me. Now I am completely unproductive. I tried the "netsh winsock reset " workaround suggested in this thread but it did not work for me. Can someone please send the steps to fix or revert back to WSL v1? I am desperate ...

@dtriana Thanks for sharing, Your solution  solved my problem

@dtriana Thanks for sharing, Your solution  solved my problem

I gave up on v2. I've converted my distos back to v1, and I am back in business.

I gave up on v2. I've converted my distos back to v1, and I am back in business.

Hello , same problem, i have try all solutions you have mentionne but sill stuck with process exited with code1

Hello , same problem, i have try all solutions you have mentionne but sill stuck with process exited with code1

This is severe enough, hitting so many users, I don't understand why dev / microsoft is not looking into it with high urgency.

This is severe enough, hitting so many users, I don't understand why dev / microsoft is not looking into it with high urgency.

All fine with a fresh install of ubuntu from microsoft store

All fine with a fresh install of ubuntu from microsoft store

It seems like some customizations may possibly breaks wsl. It is important than that it will be properly documented.
In my case however, I did have a fresh install of Ubuntu-20.04 , after upgrading to wsl v2. But that does not work as it hits this issue. I have not customized anything special other than terminal colors, prompt and path. If this breaks wsl, something is really broken.

It seems like some customizations may possibly breaks wsl. It is important than that it will be properly documented.
In my case however, I did have a fresh install of Ubuntu-20.04 , after upgrading to wsl v2. But that does not work as it hits this issue. I have not customized anything special other than terminal colors, prompt and path. If this breaks wsl, something is really broken.

In my case, it's the fish shell was removed in unknown reason after I installed Docker Desktop. Just open a PowerShell and run
wsl -e /bin/bash

you can go into bash shell, then reinstall the missing fish
sudo apt install fish

that solved the problem.

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Worked perfectly！ 👍

However, everytime when I reboot my computer, this problem appears again. 😢

if you have any solution? i meet the same situation as you. everytime i reboot, it will not work

Mine too. I installed an then uninstalled zsh. And am stuck with [process exited with code 1] message now. Wsl shutdown and winsock reset do not work :/

Same here, my brain farted and I removed zsh without thinking too much.
Now either I manage to enter as root in that WSL Distro or I think I've got to rebuild it completely.
EDIT: nvm, I managed to solve the issue by using wsl --user root and fixing zsh from there.

Thank you! It worked for me

I removed zsh from wsl distro then I got the error [process exited with code 1] , I managed to solve this by logging in to wsl using  wsl --user root -d [distro name] then running command chsh --shell /bin/bash [username] fixed the issue.

In my case, this error happened in zsh uninstallation.
I was able to solve it this way:
1 - uninstalling Ubuntu
2 - repeating wsl2 installation commands
3 - and reinstalling Ubuntu.
The "netsh Winsock reset" did not work on my machine.

This helped to login to wsl  wsl.exe -e chsh -s /usr/bin/bash
Later found the /bin/ folder is empty.
Any help in fixing bin folder is appreciated.

@sachinlionel I just ran into the same issue
Does anyone know if a fresh install of Ubuntu wipes out the filesystem? I have some changes that I don't want to lose

Maybe you can try to manually install a fresh copy in any folder by
commands.
https://docs.microsoft.com/en-us/windows/wsl/install-on-server
Steve Kirbach @.***> 於 2021年5月14日 週五 23:08 寫道：

@sachinlionel https://github.com/sachinlionel I just ran into the same
issue
Does anyone know if a fresh install of Ubuntu wipes out the filesystem? I
have some changes that I don't want to lose
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/4899#issuecomment-841302829, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH5MWOPA6LY5CDZMIC3KO3TNU4HJANCNFSM4KVU5FCQ
.

@sachinlionel I just ran into the same issue
Does anyone know if a fresh install of Ubuntu wipes out the filesystem? I have some changes that I don't want to lose

I did a trick in my case it was ubuntu 20.04 and /bin folder was empty...
I first switch the bash by wsl.exe -e chsh -s /usr/bin/bash
Then installed ubuntu 18.04.
Then copied the bin folder from ubuntu 18.04 to ubuntu 20.04.
I know this is not the solution, but this is doing okay for my daily development.

interesting, i tried something similar. /bin/ in my Ubuntu distros seems to just be a link to /usr/bin/ - so this doesn't work for me

I am getting same issue, my \wsl$ directory is gone

Having the same issue. Does reinstalling WSL2 delete all the files in my Ubuntu filesystem? I guess reinstalling WSL2 is the optimal solution for this but I don't want to lose all the projects I made which I stored in my Ubuntu system. I cannot even access the files of Ubuntu with \wsl$

https://github.com/microsoft/terminal/issues/4573

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

It works! Thanks!

open PowerShell then type wsl -e bash to use the bash shell, then replace the default shell using bash by typing chsh -s /bin/bash

As the title. I updated the insider version to 19564.1005. WSL2-Ubuntu cannot start. I got [process exited with code 1] error with Terminal-run.

open powershell then type wsl -e bash to use the bash shell, then replace the default shell using bash by typing chsh -s /bin/bash

As the title. I updated the insider version to 19564.1005. WSL2-Ubuntu cannot start. I got [process exited with code 1] error with Terminal-run.

Open PowerShell then type wsl -e bash to use the bash shell, then replace the default shell using bash by typing chsh -s /bin/bash

I wished I read this earlier.  I ultimately did the same thing, but logged in as root from PowerShell wsl -d <distro> --user root.  From there, switched user and ran the command to run the default shell: su <normalUser> -s /usr/bin/bash.  Then reinstalled zsh and changed the shell back to zsh: sudo apt install zsh -y && chsh -s /usr/bin/zsh.  The reason why I posted this is in case anyone else may need a reason to access the shell from within WSL as root and change the necessary configs.

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Woo! Thank you for the advice! It works!

where I run this commend It not works

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Work fine !

In my case, it's the fish shell was removed in unknown reason after I installed Docker Desktop. Just open a PowerShell and run
wsl -e /bin/bash

you can go into bash shell, then reinstall the missing fish
sudo apt install fish

that solved the problem.

Thank a lot

Hi, I was getting the same error but in VSCode integrated terminal. This is how I solved it. Check the default WSL distribution with wsl -l --all. I had docker-desktop set as the default distribution. Change the distribution to Ubuntu with wsl --setdefault Ubuntu. HTH.

This helped my issue. Thanks a lot! 😊

For me snapd had to be removed before do-release-upgrade

I had the same problem. I uninstalled zsh  from my terminal, but I had it as my default shell, so I got that error, and I couldn't do anything until I run the command wsl --distribuiton Ubuntu-20.04 --user root and reinstall zsh from my CMD. I worked from then on.

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Thanks a lot! It works! But after this command, you should restart pc.

wsl --user root

this command worked for me.thanks

If you came to the conclusion that you need to renistall the ubuntu, instead, Reset the app in the Add or removes program.

open your terminal as administrator and type:  wsl -u root
and then execute this command: chsh -s /bin/bash your-username
restart terminal.

open your terminal as administrator and type: wsl -u root
and then execute this command: chsh -s /bin/bash your-ubuntu-username
restart terminal.

It works! Thanks!

i get this error not when starting WSL with windows terminal. WSL could start correctly but I get this error after windows recovery from sleep with this error"process exited with code 1 (0x00000001)"
does anything know how to solve it

Thanx
Adding   "commandline": "wsl -d Ubuntu-20.04"   fix that :
After add a new tab in windows terminal, the previous WSL was aborted.

Incredible, had this issue this morning presumably after some update. Only way to fix was to uninstall Ubuntu through "Add or remove programs" and then unregister the distro in Powershell by running wsl --unregister <distro>
Not looking forward to having to reinstall all my command line tools and download all my repos.

I also have this issue, but by trying "netsh winsock reset" under admin, it solved the problem.

Thanks


Updating BDI test results when ADV is installed

Because BDI now allows the One-to-one Account model when ADV is installed, a few test results required some changes.

Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata

@lmeerkatz Sorry for spamming you with these today, this should be the last change we need to pass NPSP tests with ADV installed!

@lmeerkatz Alright, I think my latest changes should handle the situations we talked about:

If either of the Contacts on a DI record is One-to-one, there can't be a second Contact on that record
If the org in the One-to-one Account model, there can't be 2 new Contacts on a DI record

In both of those cases, I'm adding a new failure message and failing the import.

@lmeerkatz Thanks for taking another look, I just pushed some changes based on your most recent comments.


[Improvement][Python] Python-gate supports creating or editing resources.

Our company now deploy and manage scripts automatically through Python-gate, but resource files need to be maintained manually.We find it inconvenient.So, I think Python-gate should supports creating or editing resources.
close: #10822

Codecov Report

Merging #10823 (716283d) into dev (02eff90) will increase coverage by 0.01%.
The diff coverage is 66.66%.

@@             Coverage Diff              @@
##                dev   #10823      +/-   ##
============================================
+ Coverage     40.63%   40.65%   +0.01%
- Complexity     4818     4824       +6
============================================
  Files           913      913
  Lines         36306    36346      +40
  Branches       3994     3999       +5
============================================
+ Hits          14752    14775      +23
- Misses        20082    20092      +10
- Partials       1472     1479       +7

Impacted Files
Coverage Δ

...che/dolphinscheduler/api/python/PythonGateway.java
27.27% <66.66%> (+7.84%)
:arrow_up:

...e/dolphinscheduler/remote/NettyRemotingClient.java
50.00% <0.00%> (-2.78%)
:arrow_down:

...pache/dolphinscheduler/common/utils/DateUtils.java
75.16% <0.00%> (-0.17%)
:arrow_down:

.../dolphinscheduler/plugin/task/datax/DataxTask.java
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02eff90...716283d. Read the comment docs.

@hiSandog can we hold this PR for a while until we merge #10792? I think maybe we write code and pass the Result type is not the correct way, So in #10792 I migrate all create or update user and tenant code in userService and TenantService. In pythonGateway.java only call one function tenantService.createTenantIfNotExists which will keep python gateway code more easy to read

@hiSandog can we hold this PR for a while until we merge #10792? I think maybe we write code and pass the Result type is not the correct way, So in #10792 I migrate all create or update user and tenant code in userService and TenantService. In pythonGateway.java only call one function tenantService.createTenantIfNotExists which will keep python gateway code more easy to read

ok

restart the failed tests

BTW, I have review comment in https://github.com/apache/dolphinscheduler/pull/10823#discussion_r917614946. I think maybe we should better add a new interface named createOrUpdateResource in ResourcesService.java, just like you add onlineCreateOrUpdateResourceWithDir to ResourcesService.java.
And in PythonGateway.java we just add code below code to keep it as simple as possible, WDYT?
    public Integer createOrUpdateResource(
            String userName, String fullName, String description, String resourceContent) {
        return resourceService.createOrUpdateResource(userName, fullName, description, resourceContent);
    }

I restart the failed E2E test

well done, we currently supported create resource in python api now 👍 🎉 thanks again @hiSandog


Relationship query methods for models, with tests

Relationship methods should be defined for each model, for querying both parent-to-child (filtered members) and child-to-parent (filtered member_of) relationships.  Some relationships have a necessarily singular target, and should return an object, while others should return an array of filtered objects selected from query methods provided by the framework.
Query Methods

NewspaperTitle.issues — returns Array of 0.. NewspaperIssue objects*
NewspaperTitle.containers — returns Array of 0.. NewspaperContainer objects*
NewspaperIssue.publication — *returns single NewspaperTitle object or nil`
NewspaperIssue.articles — returns Array of 0.. NewspaperArticle objects`
NewspaperIssue.pages — returns Array of 0.. NewspaperPage objects`
NewspaperContainer.publication — *returns single NewspaperTitle object or nil`
NewspaperContainer.pages — returns Array of 0.. NewspaperPage objects`
NewspaperPage.articles — returns Array of 0.. NewspaperArticle objects`
NewspaperPage.issue — *returns singular NewspaperIssue object or nil`
NewspaperPage.containers — returns Array of 0.. NewspaperContainer objects`
NewspaperPage.publication — *returns single NewspaperTitle object or nil`

Transitive via, in order: NewspaperPage.issue.publication, NewspaperPage.containers[0].publication

NewspaperArticle.pages — returns Array of 0.. NewspaperPage objects`
NewspaperArticle.issue — *returns singular NewspaperIssue object or nil`
NewspaperArticle.publication — *returns single NewspaperTitle object or nil`

Transitive via, in order: NewspaperArticle.issue.publication, NewspaperPage.issue.publication, NewspaperPage.containers[0].publication

NewspaperArticle.containers — returns Array of 0.. NewspaperContainer objects`

Transitive via NewspaperArticle.pages[0].containers

Tests
Should include RSpec tests for:

Any aggregation helper classes or methods.
Each method tested on RSpec tests for each respective model class.

A few quick notes:

We can assume that a page could have more than one container, only because it is possible that we have multiple scans of the same page (e.g. from different vendors)?
By proxy of #1, there may be some difficulty querying a transitive relationship from a  NewspaperArticle to 0..* NewspaperContainerobjects because we might need to handle scope where an article is on more than one page (perhaps split across reels or sections)?
No downward transitive relationship from NewspaperTitle to articles or pages should exist.  Having anything like seems to be bordering on collection territory, and I suspect what should happen is some kind of 1:1 between a NewspaperTitle work and an associated collection-per-title?

Responding to @seanupton

In the PCDM Profile we stated A NewspaperPage MAY be a member of one and only one NewspaperContainer object. Having multiple scans of the same page seems very unlikely.

Given #1 above, theoretically the transitive relationship from NewspaperArticle to NewspaperContainer should be possible. However, if this creates a lot of work, I'm tempted not to worry about Container<->Article relationships, since I'm not sure we'll need them.

I'm OK with no direct Title->Article or Title->Page relationships. The relationship between Hyrax "Collections" and NewspaperTitle objects will depend on the implementation, I think. Some institutions may want a single "Historic Newspapers" collection, while others may want a collection-per-title approach.

Implemented in newsapp_experiments


(Fix suggested/found) Section "Custom Animations" in Wiki/Routemaster Flutter scenarios points to an example file with an incorrect directory

Suggesting edits to the wiki section Wiki/Routemaster Flutter scemarios/Custom Animations with the information below:
This wiki section mentions a FancyAnimationPage example class in a linked file called routes.dart currently linked to:
https://github.com/tomgilder/routemaster/blob/main/example/mobile_app/lib/routes.dart
But with the current project structure, the directory above does not exist, instead, FancyAnimationPage is found in:
https://github.com/tomgilder/routemaster/example/mobile_app/lib/main.dart
with example usage on lines 109-111 and 197-216.

Thanks, fixed


SwapClearedFlagged: force correct width on .ynab-grid-cell-cleared

Fixes #2253.
As far as I can tell, the SwapClearedFlagged feature isn't really the cause of the columns being out of alignment. Rather, something within toolkit is causing the width on the checkbox, flagged, and cleared columns to be increased. Or more specifically, something is causing YNAB itself to change the width as if the user dragged to expand them, even though you can't normally change the width of those columns that way. If you clear the cookies on YNAB (which wipes out any column width adjustments), everything looks as it should.
Whenever the width on those columns gets messed up, and SwapClearedFlagged runs, everything gets out of alignment because YNAB's CSS has an extra .ynab-grid-cell-cleared selector for some reason:
.ynab-grid-cell-cleared {
    width: 2.25rem;
}

The width on the other columns is set by:
.ynab-grid-cell-checkbox, .ynab-grid-cell-cleared, .ynab-grid-cell-flag, .ynab-grid-cell-notification {
    /* other stuff */
    width: 1.625rem;
}

That extra selector normally isn't an issue because the cleared column is all the way to the right, so nothing is affected. When cleared and flagged get swapped, the cleared column header is wider than the other cleared cells.

This PR simply injects CSS when SwapClearedFlagged is enabled to set the width on .ynab-grid-cell-cleared back to 1.625rem. This fixes the alignment issue.
Also, the only way I've found to reproduce the issue is to toggle the memo column off. That causes the mentioned columns to widen. However, if you toggle the memo column back on, it goes back to normal. I was able to get the changes to stick one time after I toggled memos back on, but I'm not sure what I did different that time. I also have run into this issue before and I had never toggled memos on/off before, so I'm really not sure what could be causing that.

interesting...thanks for the fix!


Serialization and storage of Tensor Network objects

I'd love to see some methods for serialization and storage of matrix product operators and states. In the short term, I was hoping to use pickle and/or dill, but both are giving me problem:
import tensornetwork as tn
#import dill as pickle
import pickle
import numpy as np

m, d, N = 3, 5, 10
mps_orig = tn.FiniteMPS.random([d]*N, [m]*(N-1), dtype=np.complex128)

datafile = 'testfile.dill'
with open(datafile, 'wb') as df:
    pickle.dump(mps_orig, df)

with open(datafile, 'rb') as df:
    mps_read = pickle.load(df)

print(mps_orig.backend is mps_read.backend)
print(mps_orig.backend == mps_read.backend)

print(mps_orig.backend)
print(mps_read.backend)

I expected to see True and True and the same name for the numpy (default) backend twice. Python's pickle gets hung up on svd (maybe the first jitted function?): AttributeError: Can't pickle local object 'BaseMPS.__init__.<locals>.svd'
With dill (uncomment line 2 and comment line 3) I get
False
False
<tensornetwork.backends.numpy.numpy_backend.NumPyBackend object at 0x000002BD9FE12D00>
<tensornetwork.backends.numpy.numpy_backend.NumPyBackend object at 0x000002BDA1B272B0>

In the long run, I'd prefer more efficient and stable storage to disk using h5py. However, we may also want to use something like dask for distributed processing which uses pickle for communication.

This may be related to #206 and #214 .

Hi @matthewweippert! The issue with pickle here is that the FiniteMPS class has a bunch  members which are inline-defined functions, and svd is one of them. The reason for this is indeed related to jiting. Let me see if I can fix this.


[VL]Daily Update Velox Version (20231206)

What changes were proposed in this pull request?
Rebase velox with following changes:
commit 075cc92f8312184a96d870fe6ce7c5c23fab9246
Author: Jimmy Lu<EMAIL_ADDRESS>Date:   Tue Dec 5 15:35:32 2023 -0800
Back out "Add support for decimals in approx_distinct aggregate function" (#7889)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7889

Original commit changeset: 7b9cead380c5

Original Phabricator Diff: D51811791

Aggregate fuzzer is not able to resolve decimal types, back it out to unbreak the test

Reviewed By: mbasmanova

Differential Revision: D51863784

fbshipit-source-id: a822065d7c4b7cc7002bbb3dfb1bd121686da8f0

commit 8a9ae28e6633d74bacad207fc89ff9bb66885fd4
Author: yangchuan<EMAIL_ADDRESS>Date:   Tue Dec 5 15:34:11 2023 -0800
Fix memory leak of HdfsBuilder (#7579)

Summary:
ASAN report memory leak of HdfsBuilder, after checking libhdfs source code, `hdfsBuilderConnect` does not free hdfsBuilder as its doc claimed. https://github.com/apache/hawq/blob/e9d43144f7e947e071bba48871af9da354d177d0/depends/libhdfs3/src/client/Hdfs.cpp#L406

Gluten issue: https://github.com/oap-project/gluten/issues/3713

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7579

Reviewed By: Yuhta

Differential Revision: D51860195

Pulled By: kgpai

fbshipit-source-id: 6beab96f9f83465e25bb5fb7ef370e32ee82c743

commit 14dc44b2dd35b69bc9e1a0ffaa7fe34eb40e36d0
Author: Ge Gao<EMAIL_ADDRESS>Date:   Tue Dec 5 15:19:50 2023 -0800
Change cast(double|real as varchar) to return scientific notation (#7602)

Summary:
Change cast(double as varchar) and cast(real as varchar) to return scientific
notation, when magnitude of the input value is greater than or equal to 10^7,
or less than 10^-3. Today they return standard notation in all cases.

Change to use fmt::format() instead of folly::to() to output standard notation,
for less noisy digits in outputs, when magnitude of the input value is greater
than or equal to 10^-3 and less than 10^7.

Use QueryConfig legacy_cast false to gate this new
behavior. To keep existing behavior, set legacy_cast to true.

The returned scientific notation uses a max of 17 significant decimal digits
for double and a max of 8 decimal digits for real, according to the double and
single precision supported by IEEE 754 floating point, as well as Presto
empirically.

Also add 4 benchmarks for casting double or real to scientific notation or standard
notation. The time of casting for legacy_cast = false, new implementation is
on par with the time for legacy_cast = true, today implementation.

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7602

Reviewed By: kagamiori

Differential Revision: D51386874

Pulled By: gggrace14

fbshipit-source-id:<PHONE_NUMBER>4b8a817d0f3feb97d498b4fe7c6c66

commit a5d816e40255c26eee3002bd74e4cf4eaf52a7c2
Author: rui-mo<EMAIL_ADDRESS>Date:   Tue Dec 5 13:40:03 2023 -0800
Fix conversion documentation (#7629)

Summary:
Fix some inaccurate descriptions found in conversion.rst. Document the
limitation of cast from string to real. Add unit tests for cast from float to
bool, cast from string to float, and cast from timestamp with timezone to
timestamp.

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7629

Reviewed By: zacw7

Differential Revision: D51837319

Pulled By: kagamiori

fbshipit-source-id: c2b35b2cdf94747858cf76d4ea7fce0d1e2515f5

commit 87c6c8cef529c65fa9aa0b0eae4e8e514f91a540
Author: duanmeng<EMAIL_ADDRESS>Date:   Tue Dec 5 12:54:35 2023 -0800
Remove the spilling after memory reservation fails in ensureOutputFits (#7879)

Summary:
Remove the unnecessary spilling in GroupingSet::ensureOutputFits
to keep the implementation simple.
This is a follow-up of https://github.com/facebookincubator/velox/issues/7846

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7879

Reviewed By: bikramSingh91

Differential Revision: D51855352

Pulled By: xiaoxmeng

fbshipit-source-id: d4a5b449853c39716dad706964eb75563ab5cdcb

commit fec3ff005ee5e1df883c5896a96bb66461a7cc6d
Author: Jia<EMAIL_ADDRESS>Date:   Tue Dec 5 11:00:26 2023 -0800
Add BaseVector::setType API (#7783)

Summary:
Sometimes it is useful to be able to change the logical type of a vector without making a copy.

The new BaseVector::setType API allows to change vector type to a compatible logical type, e.g.
change ROW("a" BIGINT) to ROW("b" BIGINT).

For example, in https://github.com/facebookincubator/velox/pull/6074

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7783

Reviewed By: xiaoxmeng

Differential Revision: D51847700

Pulled By: mbasmanova

fbshipit-source-id: bb5b30d3372239196b1f6f1dbb1dee9226bf306a

commit 928f378a2389effc95e28b7b9bc770a37be88dd0
Author: Jimmy Lu<EMAIL_ADDRESS>Date:   Tue Dec 5 10:43:58 2023 -0800
Copy input in json_parse to avoid ASAN error (#7858)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7858

`value` is put on offset 32 of the stack frame, and the total frame size is 88.  In case `value` is inlined, and SIMD register is 64 bytes (e.g. AVX512), simdjson is reading the memory from offset 36 to 100, which exceeds the frame boundary.

This caused some ASAN error, but no issue in production, because the padding data is not really used or changed.

Fix it by asking `simdjson::dom::parser::parse` to copy the input to internal padded memory owned by parser.  There is some minor performance loss but is probably not noticeable at query level.

Reviewed By: mbasmanova

Differential Revision: D51810542

fbshipit-source-id: cf2145e6fd0d0cb08a53a1bb1b9a2bdb0dfe2892

commit ce7ce2327665396b01f6e015d475f30c9611b9c7
Author: Orri Erling<EMAIL_ADDRESS>Date:   Tue Dec 5 10:34:56 2023 -0800
Make ByteStream::size() consistent across use cases (#7520)

Summary:
ByteStream::size is expected to have the semantics of the length of std::stringstream. It is the offset of the first unwritten byte from the start. This does not move backward when seeking to mid stream and writing, for example.  been written.

Adds a test to verify proper function when randomly overwriting a ByteStream backed by HashStringAllocator multipart entries.

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7520

Reviewed By: xiaoxmeng

Differential Revision: D51270817

Pulled By: oerling

fbshipit-source-id: 7b772852663b933b600c1d52b400a37ea9429edc

commit 7f82f3e3425cd5ab748aeb5400cdaca2153bd78a
Author: Open Source Bot<EMAIL_ADDRESS>Date:   Tue Dec 5 09:31:51 2023 -0800
Updating submodules

Summary:
GitHub commits:

https://github.com/facebook/cachelib/commit/6b792ab4dc4351f2e84ddec216c5af8cc3ef1325
https://github.com/facebook/fb303/commit/9e9d80d3bca5c06d0ad3fffade9276df8b5709fd
https://github.com/facebook/fbthrift/commit/b8cdb5a9408c2539321ce62c2ac0b063633af213
https://github.com/facebook/folly/commit/c9b275e8ac978251db847818e5b8921f8649086f
https://github.com/facebook/litho/commit/883d011a777492643c5cba8bc232769e38c0ebcd
https://github.com/facebook/mcrouter/commit/de94b8647bb5404971403e657593cc84ff4fbd78
https://github.com/facebook/mvfst/commit/20376c1b0e15a2fbb1b8d5dbd4d56d08e6eefbec
https://github.com/facebook/ocamlrep/commit/308d1e30778276e8b13e7ee7855d5225a498582b
https://github.com/facebook/proxygen/commit/262523a7ffdc53adbff6ec60fcb215ab074168ed
https://github.com/facebook/rocksdb/commit/2045fe4693dd8957796ccce3a4abbf3f689226b3
https://github.com/facebook/wangle/commit/26a4ebed5b876565e861b0412817c8f08e8f4322
https://github.com/facebook/watchman/commit/0fd5c51ccb0657ac68ce7c0ab5c8581464f14606
https://github.com/facebookexperimental/edencommon/commit/f0eab4143f03a1e6771a68bf0180812d6f78785d
https://github.com/facebookexperimental/rust-shed/commit/6f916d7421023392d32b05fce419f2a4f3f5022c
https://github.com/facebookincubator/fizz/commit/661b953302ee2c4b3b368dcd9631328dae090466
https://github.com/facebookincubator/katran/commit/19eb04d184a6f3e7b7c6ecf99d50112ffc912d55
https://github.com/facebookincubator/velox/commit/975ca3ac942472d6312b54280d8543a7b870d6b0
https://github.com/facebookresearch/vrs/commit/798e3b33d8a5ba250d448d2a94880b9595e5f763
https://github.com/pytorch/fbgemm/commit/dbc3157bf256f1339b3fa1fef2be89ac4078be0e
https://github.com/pytorch/kineto/commit/e8a37135a338ec03126f49d8da554544d1a164be

Reviewed By: jurajh-fb

fbshipit-source-id: 50be4041086b9771484e8d3a3a6020fd59df66a9

commit 59b56cd4ff9022acbd4856e5543a5cded92392a3
Author: Karteekmurthys<EMAIL_ADDRESS>Date:   Tue Dec 5 09:00:18 2023 -0800
Add support for decimals in approx_distinct aggregate function (#7794)

Summary:
This PR adds support for approx_distinct function on decimal types. Resolves https://github.com/prestodb/presto/issues/21331.

This function is needed to run ANALYZE sql command in Presto.

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7794

Reviewed By: mbasmanova

Differential Revision: D51811791

Pulled By: Yuhta

fbshipit-source-id: 7b9cead380c56de18e2b0fb80d91fd7c0bc425b5

commit 98308143adc593fabbbf23f1b9a12c02d462fed6
Author: Christian Zentgraf<EMAIL_ADDRESS>Date:   Tue Dec 5 08:58:54 2023 -0800
Fix writing dictionary data to parquet (#7025)

Summary:
In a chunked approach the partitioned data is sliced into
dictionary vectors where the partition vectors are shared
across chunks. A previous chunk row position is changed and
not applicable to the prior chunk when the dictionary content
is resolved. This results in incorrect data being written
to the partitioned files.

In addition, Arrow does not support NULL values in a
dictionary and throws an exception.
The exception is
NotImplemented: Writing DictionaryArray with null encoded in dictionary type not yet supported
See https://github.com/apache/arrow/blob/73589ddd60e4cbcd860102871692541989ea38c6/cpp/src/parquet/arrow/path_internal.cc#L752

To solve both issues, the dictionary vector representing
the partitioning is flattened into a FlatVector.
As a result the data is copied to persist it
across chunks.

To make the constant vectors in the TableWriterTest work
they are also flattened into flat vectors with the same
logic the dictionary vectors are.

The ArrowBridge has a new optional option structure to
indicate if dictionary and constant vectors should be flattened.

Resolves https://github.com/facebookincubator/velox/issues/5560

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7025

Reviewed By: mbasmanova

Differential Revision: D51760838

Pulled By: Yuhta

fbshipit-source-id: 1ef7d57af199ea0e0089200a06477759ac31a90a

commit 975ca3ac942472d6312b54280d8543a7b870d6b0
Author: Masha Basmanova<EMAIL_ADDRESS>Date:   Tue Dec 5 03:29:20 2023 -0800
Add support for lambda functions to ExpressionFuzzer (#7834)

Summary:
The tricky part of supporting lambda functions is finding a way to generate
lambdas given both input types and the result type, i.e. generate
LambdaTypedExpr to match given FunctionType.  This implementation is very
basic. It looks for a matching function signature or signature template and if
none found uses a lambda expression that returns constant value.

For example, lambda for filter(array, function(T) -> boolean) can be
x -> is_null(x) or x -> cast(x as boolean) or x -> true.

This very simple implementation is quite effective. It helped discover a number
of bugs: https://github.com/facebookincubator/velox/issues/7821 #7824 https://github.com/facebookincubator/velox/issues/7828 #7829 https://github.com/facebookincubator/velox/issues/7831 #7851 https://github.com/facebookincubator/velox/issues/7861

This new logic cannot generate valid lambda for 'comparator' argument of
array_sort. Hence, added support for skipping individual function signatures
and used it to exclude this particular signature for array_sort.

Ran the Fuzzer multiple times for 10 minutes each and collected custom stats on
the lambda functions tested and lambda expressions generated. 20 functions
were tested using 154 different lambda expressions. More details in
https://gist.github.com/mbasmanova/1530e3cdfe2f6f4fef35a03f07ee4a39

```
velox_expression_fuzzer_test --logtostderr --velox_fuzzer_enable_complex_types --enable_variadic_signatures --lazy_vector_generation_ratio 0.2 --velox_fuzzer_enable_column_reuse --velox_fuzzer_enable_expression_reuse --max_expression_trees_per_step 2 --retry_with_try --enable_dereference --duration_sec 1200
```

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7834

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

```
$ buck2 run stylus/xstream/query/functions/test:fuzzer_test

$ buck2 run stylus/xstream/query/functions/test:f3_fuzzer_test
```

Reviewed By: xiaoxmeng

Differential Revision: D51756700

Pulled By: mbasmanova

fbshipit-source-id: 4a60fd29e1e670f905e3dc8b5a2180e4440796e2

commit 156abe35d89b8c28a2f62f77ea499bf4e9229b0f
Author: xiaoxmeng<EMAIL_ADDRESS>Date:   Tue Dec 5 00:39:43 2023 -0800
Document stats counters and stats macros rename (#7803)

Summary:
Add velox metrics counter documentation and code refactor:
rename stats to metric and update the macros for metric definition
and record:
DEFINE_METRIC/DEFINE_HISTOGRAM_METRICS: define metrics
RECORD_METRIC_VALUE/RECORD_HISTOGRAM_METRIC_VALUE: record metrics

The followup will migrate Prestissimo to use new apis and deprecate
the old ones.

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7803

Reviewed By: mbasmanova

Differential Revision: D51696300

Pulled By: xiaoxmeng

fbshipit-source-id: 355c98d3a131cc74169cbee315320ef74c8aa1f7

commit 0b3407e9677f3498000883bb689c5f5c9174efbb
Author: xiaoxmeng<EMAIL_ADDRESS>Date:   Mon Dec 4 23:06:51 2023 -0800
Remove the spilling after memory reservation fails (#7846)

Summary:
With memory arbitration enabled, we shall never need to spill after the memory
reservation fails. The memory arbitrator shall always trigger spilling if memory
reservation needs to grow the pool's capacity. Remove the unnecessary spilling
to keep the implementation simple.

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7846

Reviewed By: oerling

Differential Revision: D51787778

Pulled By: xiaoxmeng

fbshipit-source-id: b24c0958de388d9945df4b5da49e88206c3d6d95

commit d5ddb45888b63c2fa36d11c18f56310873009862
Author: Masha Basmanova<EMAIL_ADDRESS>Date:   Mon Dec 4 21:14:58 2023 -0800
Fix crash in FlatVector::hashAll (#7871)

Summary:
FlatVector::hashAll used to crash if nullCount metadata was missing or non-zero, but nulls was buffer was not present.

Fixes https://github.com/facebookincubator/velox/issues/7868

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7871

Reviewed By: xiaoxmeng, darxsys

Differential Revision: D51832284

Pulled By: mbasmanova

fbshipit-source-id: e1dbd22be9c94396ca4c96599db3940415b75c9e

commit 543a460bb13f7c137264410be9c70044c4336dcb
Author: Wei He<EMAIL_ADDRESS>Date:   Mon Dec 4 21:13:49 2023 -0800
Allow UNKNOWN key type in map_keys and map_values (#7702)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7702

This diff fixes https://github.com/facebookincubator/velox/issues/7489.

Reviewed By: kevinwilfong

Differential Revision: D51534119

fbshipit-source-id: f1709ff7dcb6a4aaa2d850e74914b2bbff722205

commit 261d0b0a37606355503fe218cbd240f764cc9f05
Author: Pedro Eugenio Rocha Pedreira<EMAIL_ADDRESS>Date:   Mon Dec 4 18:14:16 2023 -0800
Support TimestampWithTimezons in format_datetime() (#7841)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7841

Support TimestampWithTimezons in format_datetime.

Reviewed By: amitkdutta, zacw7

Differential Revision: D51776777

fbshipit-source-id: 82fa7217e0e3789fd8cd2838ec2bc5f73fb11bc8

commit b9367aa14e93c8e456c210154c9fd06d0a96f354
Author: Laith Sakka<EMAIL_ADDRESS>Date:   Mon Dec 4 18:01:07 2023 -0800
Back out "make skipFunctions, onlyFunctions, and specialForms as ExpressionFuzzer options."

Summary:
Dont have time to investigate will backout and now and fix later.
Original commit changeset: c4bb6b830dc0

Original Phabricator Diff: D51408535

Reviewed By: kevinwilfong

Differential Revision: D51831341

fbshipit-source-id: fcbb80894cc5aecc189b982e9c572bcec74c2984

commit a5978ae26f6a16d0d1f1950e426ec11ea6137f23
Author: Masha Basmanova<EMAIL_ADDRESS>Date:   Mon Dec 4 18:00:31 2023 -0800
Remove BaseVector::clearIndices API (#7857)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7857

clearIndices API was always used together with resizeIndices API.

Fold the logic of clearIndices into resizeIndices to reduce API surface.

Reviewed By: laithsakka

Differential Revision: D51810625

fbshipit-source-id: 2fe8a2b6a887b9b007c13c74577a8d3b8b81b542

commit 444c5e3d18cddca4c20de039dece6bc9b9be62a7
Author: Masha Basmanova<EMAIL_ADDRESS>Date:   Mon Dec 4 16:54:37 2023 -0800
Refactor ExpressionFuzzer to extract logic for generating random integer (#7850)

Summary:
Refactor `boost::random::uniform_int_distribution<uint32_t>(min, max)(rng_)` as `rand32(min, max)`.

Use VectorFuzzer::coinToss when appropriate.

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7850

Reviewed By: xiaoxmeng

Differential Revision: D51805835

Pulled By: mbasmanova

fbshipit-source-id: 9b41deda5b5d28e71df51ae7ba5af476d8a9bd40

commit 850046bb117217f6fc4b5c7ee4a17c9eb7fd4b20
Author: Krishna Pai<EMAIL_ADDRESS>Date:   Mon Dec 4 16:06:01 2023 -0800
Ensure signature bias'd functions always run and also surface errors only for Presto. (#7619)

Summary:
* We move the signature check error code to end of the function signature run for presto.
* To do the above, we make changes to the signature.py script so it always writes output to the bias file.
* Finally we ignore the function signature error output for spark , but still run the fuzzer for it when possible.

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7619

Reviewed By: bikramSingh91

Differential Revision: D51417742

Pulled By: kgpai

fbshipit-source-id: cd676cf95230502ba19589bfebb356d90ac2e77d

commit add8303f36b73e9be6aa0db1de8067271852eb71
Author: Masha Basmanova<EMAIL_ADDRESS>Date:   Mon Dec 4 15:26:38 2023 -0800
Fix fast path in map Presto function for input arrays with nulls (#7862)

Summary:
Fast path in the "map" Presto function could produce invalid MapVector if input
arrays had null rows with out-of-bounds  offsets/sizes.

Fixes https://github.com/facebookincubator/velox/issues/7861

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7862

Reviewed By: xiaoxmeng

Differential Revision: D51814196

Pulled By: mbasmanova

fbshipit-source-id: 791bfa01e4e34c164f83117c23c34f286b3ff881

commit e4b9def37ce59630a6a7b52f465e24af1f768d3a
Author: Laith Sakka<EMAIL_ADDRESS>Date:   Mon Dec 4 15:23:55 2023 -0800
make skipFunctions, onlyFunctions, and specialForms as ExpressionFuzzer options. (#7615)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7615

More refactoring for the expression fuzzer.

1) Push the skipFunctions, onlyFunctions, and specialForms as ExpressionFuzzer options.
2) FuzzerRunner: just a tool that wrap ExpressionFuzzerVerifier into a unit test.
3) Move the comment from FuzzerRunner class to ExpressionFuzzerVerifier since it describes the later.

Next diff :
4) Move all the flags from ExpressionFuzzerVerifier to FuzzerRunner and pass them through ExpressionFuzzerVerifier::Options .

1. spark fuzzer used to only support and, or not it uses all of them "and,or,cast,coalesce,if,switch".

Reviewed By: kevinwilfong

Differential Revision: D51408535

fbshipit-source-id: c4bb6b830dc06db849b453741d67f3903804f4d0

commit 681c2fce9739948a40ed200e0ad70a87dc2d6665
Author: Masha Basmanova<EMAIL_ADDRESS>Date:   Mon Dec 4 14:09:15 2023 -0800
Fix spillSortTime for tiny queries (#7854)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7854

Fixes flaky AggregationTest.spillingForAggrsWithSorting which used to fail
asserting spillSortTime > 0. In release build, sometimes the test runs so fast
that spillSortTime is measured as zero. Report at least 1 in these cases.

Reviewed By: xiaoxmeng

Differential Revision: D51807666

fbshipit-source-id: 2f43e7d81a1f5afabd1db8c5e13a293cf53efdd3

commit c0fadb91d6757e27717772c5eda2d5aebc8fcc4a
Author: Amit Dutta<EMAIL_ADDRESS>Date:   Mon Dec 4 13:43:14 2023 -0800
Make return type void during aggregate registration. (#7864)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7864

Aggregate function registration does not utilize return type. Some registrations are done with void and some are done with return type - where return type is unused. Making all of them void, similar to what is done in  https://github.com/facebookincubator/velox/pull/7689

Reviewed By: mbasmanova

Differential Revision: D51593723

fbshipit-source-id: 088e25e9c8547cd4bf6260621ced4e07d5dfb7aa

commit 4574284be4a6a3c64f10e6fe4eb3788e073690d2
Author: Harvey Hunt<EMAIL_ADDRESS>Date:   Mon Dec 4 12:52:00 2023 -0800
getdeps: Don't use system deps on CentOS for gflags and glog

Summary:
Building projects using `--allow-system-packages` on CentOS for
projects that rely on `gflags` fails. I'm not completely sure why this is the
case and myself and kmancini have spent some time trying to investigate this.

Fix these builds by disabling the system packages on CentOS.

Reviewed By: chadaustin

Differential Revision: D51813855

fbshipit-source-id: aae48e2723fea94f088af02eace831af9e988c7c

commit e6240dc520c66a3d1f7bdbfb1b28ff11ccfd371e
Author: Kevin Wilfong<EMAIL_ADDRESS>Date:   Mon Dec 4 11:59:58 2023 -0800
Mark TryExprTest.errorRestoringContext DEBUG_ONLY (#7863)

Summary:
Pull Request resolved: https://github.com/facebookincubator/velox/pull/7863

TryExprTest.errorRestoringContext uses ScopedTestValue which is only supported in debug mode, causing
the test to fail in release mode.

Reviewed By: mbasmanova

Differential Revision: D51814934

fbshipit-source-id: bb3d2fa0bcc8536703e202097e0193a1d1cc4534

commit 6fa55309e17e6557c98f00b09cb35c0461cb7e42
Author: Masha Basmanova<EMAIL_ADDRESS>Date:   Mon Dec 4 10:50:57 2023 -0800
Fix find_first for empty arrays (#7852)

Summary:
find_first Presto lambda function used to fail if applied to a subset of rows
 in ArrayVector with only null or empty arrays.

Fixes https://github.com/facebookincubator/velox/issues/7851

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7852

Reviewed By: xiaoxmeng

Differential Revision: D51806646

Pulled By: mbasmanova

fbshipit-source-id: 3a61847b88233e8720652254d65925169c85d7d4

commit 24e58e7fdfaea68450e85844c5c0644be44907f7
Author: zhli<EMAIL_ADDRESS>Date:   Mon Dec 4 07:37:36 2023 -0800
Fix signatures of Spark comparison functions (#7805)

Summary:
Fixes: https://github.com/facebookincubator/velox/issues/7785

Pull Request resolved: https://github.com/facebookincubator/velox/pull/7805

Reviewed By: Yuhta

Differential Revision: D51807439

Pulled By: mbasmanova

fbshipit-source-id: 61a356fe00de025090a5feab9304ca4d973c5cd8

commit 023630d75eec58edcbfd0112844035afd674334d
Author: Open Source Bot<EMAIL_ADDRESS>Date:   Sun Dec 3 09:32:38 2023 -0800
Updating submodules

Summary:
GitHub commits:

https://github.com/facebook/cachelib/commit/e8abfe7809dbd499513f1958c608b5bc4c066290
https://github.com/facebook/fb303/commit/283b7842334cc8b889073375460bca017bf4392e
https://github.com/facebook/fbthrift/commit/c383b5e113b0b74cb768d21bd54d51d8e1a5e964
https://github.com/facebook/folly/commit/f67559532c274fee8a84ab39d5711b422dc963a7
https://github.com/facebook/mcrouter/commit/9483e7926641ef1c8aa6164dd3cbdfe366ef4b4c
https://github.com/facebook/mvfst/commit/ed0b502692f2bc0b12893ea61f747a7cc90416d6
https://github.com/facebook/ocamlrep/commit/82206d449a7f1607d4d42d34b0d1828b57ade418
https://github.com/facebook/proxygen/commit/3ca5204a00a9202d8b1613f00f7cf3650ac679a8
https://github.com/facebook/squangle/commit/96966627ca69f0649c6b0c114fbe578172e5800b
https://github.com/facebook/wangle/commit/58fe85f39907a7d50b1fe5c36a08f04ac66a1160
https://github.com/facebook/watchman/commit/0dd966c1acd578281ad6e3b7774d3826c11d0d4b
https://github.com/facebookexperimental/edencommon/commit/4ac3852a69a4e7aa7f049942d696c2c4830f1d8d
https://github.com/facebookexperimental/rust-shed/commit/8581b27d67dd69cbcec62cbef22db75e67ad77a5
https://github.com/facebookincubator/fizz/commit/5d8e4c8b7adeb3a0eaf3bc84a56a670b7e0c9138
https://github.com/facebookincubator/katran/commit/914bb446a2f233723d4c8f37f8c483df51cb56fc
https://github.com/facebookincubator/velox/commit/dd2703d6c3156b9ab0fd9d3e1e6d8423a58bb8ed

Reviewed By: zpao

fbshipit-source-id: 2519ac20dcafec69569a4dc4a36f859d46a0b04d

How was this patch tested?
CI/CD

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_3954_time.csv
log/native_master_12_06_2023_d6b1e9138_time.csv
difference
percentage

q1
32.32
33.13
0.811
102.51%

q2
25.44
25.88
0.439
101.73%

q3
38.46
36.12
-2.345
93.90%

q4
36.26
38.73
2.468
106.81%

q5
70.47
72.19
1.717
102.44%

q6
5.24
7.01
1.777
133.93%

q7
83.95
84.85
0.899
101.07%

q8
87.66
87.08
-0.588
99.33%

q9
127.96
127.07
-0.893
99.30%

q10
43.51
44.57
1.067
102.45%

q11
20.44
20.26
-0.183
99.10%

q12
27.50
21.15
-6.355
76.89%

q13
45.70
48.39
2.696
105.90%

q14
17.27
18.86
1.594
109.23%

q15
29.34
27.18
-2.160
92.64%

q16
15.74
15.92
0.189
101.20%

q17
102.05
102.54
0.492
100.48%

q18
149.44
152.02
2.586
101.73%

q19
12.97
13.90
0.928
107.16%

q20
27.85
27.91
0.054
100.19%

q21
221.79
223.84
2.048
100.92%

q22
13.36
13.24
-0.113
99.15%

total
1234.71
1241.84
7.128
100.58%


Cannot create more than 2 subscription to /System/States

I want to subscribe to all /System/States events listed at

https://www.movesense.com/docs/esw/api_reference/#systemstates

There is a total of 6 possible subscriptions to do for state IDs 0 to 5.
However, once I have created 2 subscriptions, the 3rd creates an error.
Failed status: 500, reason: [wb] Operation failed, status: 0
I have tried different orders of the state IDs, and it always fails at the 3rd subscription. I have also tried using both the MdsAsync and Mds APIs. Always the same - the 3rd subscription fails.

I can add that when trying to subscribe to state id 3 it always fails with the error above - also if this is the only subscription attempted.

Only one movement state (MOVEMENT, TAP, DOUBLETAP, FREEFALL) can be subscribed at the same time (limitation of the underlying hardware).


changed I2C default channel to explicit channel 1

according to https://forum.micropython.org/viewtopic.php?t=9940, there is a warning "Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead". The change is only to use the dedicated first Bus.

A better solution is to change the API to pass an initialised I2C instance instead of pin numbers. This leaves the user free to use hard or soft I2C and also facilitates sharing the I2C bus with other devices.


When i am highlighting text the toolbar should be shown only once I mouseUp the mouse.

Describe the bug A clear and concise description of what the bug is.
When i am highlighting text the toolbar should be shown only once I unclick the mouse.
To Reproduce Steps to reproduce the behavior:

Go to a document
Click and maintain it while highlighting
The toolbar pops up, making all kind of weird things.

Expected behavior A clear and concise description of what you expected to
happen.
When i am highlighting text the toolbar should be shown only once I unclick the mouse. See how notion does it!
Screenshots If applicable, add screenshots to help explain your problem.

Done in master @GaboHBeaumont


Fix PHP 7 compatibility errors

This PR doesn't bring full PHP 7 compatibility but it removes a couple of issues that will arise should one manage to get ODM running on PHP 7:

As mentioned in the PHP 7 Upgrade log, changes to variable handling cause an array to string conversion in DocumentPersister
There were a couple of deprecated annotations still being used in tests. Due to string and integer being reserved keywords in PHP 7, these annotations are not loaded and cause errors.

LGTM :+1:


Attempting to set up 76278, 37278 fan

I am trying to set up the above model fan, I am able to grab the light, but not yet able to control it, but its state is updated each time I toggle on/off. I ahve the attributes spit out if that would help.

Yes, please provide the attributes when the light is off/on and fan is off/on. Hopefully it works just like '52133, 37833', but who knows.
If you want to do quick check, replace '52133, 37833' in the code (line 86 and line 147) with your model and see if it just works.

Closing as I believed fixed. Please reopen if does not work


Errors when launching in web

Hello all,
I am getting the following list of errors when starting online. Note that I am not trying to use online, I am just browsing/reading through this howto.

Error using matlab.internal.project.api.loadProject
Unrecognized function or variable 'slreq.app.ProjectManager.projectOpened'.
Error in matlab.project.loadProject
Error in openProject
Error using matlab.internal.project.api.loadProject
Simulink.fileGenControl requires one of the following:
Embedded Coder
Simulink Coder
Simulink
Error in matlab.project.loadProject
Error in openProject
Warning: Unable to start Project plugin: N5slreq7linkmgr23ReqProjectWatcherPluginE
Unrecognized function or variable 'Simulink.ModelManagement.Project.Toolstrip.ProjectContextManager.refresh'.

Thank you for letting me know. I haven't been able to reproduce this, but I did update a few file paths to be more precise. Can you pull an updated version and see if you are still having problems? If so, can you give me more information about how you are "starting online"? Are you clicking one of the links in the README file? Or somewhere else?

Hi!
I just hit the provided link "Open in MATLAB Online" 🫣

Ah, I see what is happening. Most of the links I provide open a script in the background as well as the starting app in the foreground. You happened to use the one link that only opens the app so what you are seeing in the Command Window is, I suspect, from a previous interaction with MATLAB Online. I will update that link to open the README as well, but I suspect that if you select "Main Menu" or "README" from the app it would work just fine. You could try running clc in the Command Window, too.

Okay! Maybe I will come back to the tutorial one day.

Did you try the updated link I added, just so I know if it helped or not? I know you were just looking and not planning to work through it right now.

Hi, yes did it, but get the error
Error using matlab.internal.project.api.loadProject
Unrecognized function or variable 'slreq.app.ProjectManager.projectOpened'.

Error in matlab.project.loadProject

Error in openProject

Warning: Unable to start Project plugin: N5slreq7linkmgr23ReqProjectWatcherPluginE
Unrecognized function or variable 'Simulink.ModelManagement.Project.Toolstrip.ProjectContextManager.refresh'.

>>

If I click https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Programming-Structuring-Code&project=StructuringCode.prj then there is no error, but the link with README seems to produce it? https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Programming-Structuring-Code&project=StructuringCode.prj&file=README.mlx

I‘m sick. Will get back you in a few days.

I'm sorry to hear that. I hope you feel better soon!


how do you re-render with litelement?

So I've been playing around with polymer for the first time in the last 2 days so I'm new to this framework but I'm very experienced with react... now I can't seem to find away to re-render the html no matter what I do. Also the methods this.set, this.notifyPath, this.push don't work.
here's what i'm working on stackblitz so you can tell me what am I do wrong
https://stackblitz.com/edit/lit-element-example-zkxtyl

Well, first of all, you don't have any state here. To catch changes, you have to define your variable in static get properties() and then just change it in any way you want. E.g. to make your button clickable, I moved your showPopup variable out of state object, and it started to change.
https://stackblitz.com/edit/lit-element-example-k8yuxa

yes I got that part working... if I put something inside of this.showPopup it renders. But what if I have an object? shouldn't it re-render when I do a change on that object. I just called it state because I'm used to react but i could of called it
this.settings = {
 showPopup: false
}

// if i change the this.settings.showPopup to true. Shouldn't it re-render

Also none of these methods work with litHtml
this.set
this.notifyPath
this.push

I know this is new so there's really no resources to learn this but I'm trying to follow what they have on the documentation.
https://www.polymer-project.org/3.0/docs/devguide/model-data#notifyPath

You're looking at the documentation for PolymerElement, which is 'old' Polymer templating syntax. LitElement has the new templating syntax which is much simpler. Check https://github.com/Polymer/lit-element#api-documentation for the API.
Rendering is based on immutable data, so you'd have to do this.settings = { this.settings, showPopup: false } for it to be picked up. I think triggering a render manual is also an expected use case, perhaps this can be done by calling _invalidateProperties: https://github.com/Polymer/lit-element/blob/master/src/lit-element.ts#L256 otherwise it's something that still needs to be added.

Actually it looks like _requestRender is what you need, this queues a render: https://github.com/Polymer/lit-element/blob/master/src/lit-element.ts#L251

@LarsDenBakker thank you for pointing that out so I figured it out.
on the click function I ran this._requestRender() and it re-rendered.
for anyone who wants a quick example here's the link
https://stackblitz.com/lit-element-example-zkxtyl

I'm using<EMAIL_ADDRESS>and the method that updates the element is this.requestUpdate(), just in case any newbie like me lands here.

Thank man

yes I got that part working... if I put something inside of this.showPopup it renders. But what if I have an object? shouldn't it re-render when I do a change on that object. I just called it state because I'm used to react but i could of called it
this.settings = {
 showPopup: false
}

// if i change the this.settings.showPopup to true. Shouldn't it re-render

Appreciate your effort working as expected.


Added fake node driver.

Skip tests if no mastodon config is present.

The Mastodon API node unit tests were failing without these changes.


Fix init when there is one project in projects config.

Summary
There may be cases where users have a single project in the projects config (because of conditional projects). Currently, this doesn't go through the same code path as multiple projects and I've noticed it causing Jest fail to initialize.
Test plan
Added test from issue #7496 (PR #7498).
All existing tests pass.
I manually tested that Jest initializes correctly with single project.

Nice! Issue for it: #7496

Codecov Report

Merging #8409 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #8409      +/-   ##
==========================================
+ Coverage   62.33%   62.35%   +0.01%
==========================================
  Files         266      266
  Lines       10730    10742      +12
  Branches     2613     2617       +4
==========================================
+ Hits         6689     6698       +9
- Misses       3459     3461       +2
- Partials      582      583       +1

Impacted Files
Coverage Δ

packages/jest-config/src/index.ts
11.94% <0%> (-0.56%)
:arrow_down:

packages/jest-snapshot/src/utils.ts
93.33% <0%> (+0.9%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9081612...cc10ee2. Read the comment docs.

test added and passes! :)

Applied to existing PR: https://github.com/facebook/jest/pull/7498


does not work completely with configuration cache

I get this quite frequently, if not every time I change the schema. Unfortunately if I were to mark the task as not being configuration cache-able it would spoil it for everything else all the time.
1 problem was found reusing the configuration cache.
- Task `:datastore-client:generateJava` of type `com.netflix.graphql.dgs.codegen.gradle.GenerateJavaTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/7.5.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

tasks.registering(GenerateFederatedGraphqlSchema::class) {
  val profile = providers.gradleProperty("profile").map { it != "ci " }
  onlyIf { profile.getOrElse(true) }
  sourceFiles.from(layout.projectDirectory.file("src/main/resources/schema/datastore.graphqls"))
  supergraphConfigs.from(layout.projectDirectory.file("supergraph.yml"))
  outputSchema.set(layout.projectDirectory.file("src/federated.graphqls"))
}

tasks.withType<GenerateJavaTask>().configureEach {
  dependsOn(tasks.withType<GenerateFederatedGraphqlSchema>())
  packageName = "e1.datastore.client" // The package name to use to generate sources
  generateClient = true
  typeMapping = mutableMapOf(
    "Date" to "java.time.Instant",
    "PageInfo" to "graphql.relay.DefaultPageInfo",
    "UnifiedExceptionConnection" to "graphql.relay.DefaultConnection<UnifiedException>",
    "UnifiedExceptionEdge" to "graphql.relay.DefaultEdge<UnifiedException>",
  )
}

abstract class GenerateFederatedGraphqlSchema @Inject constructor() : DefaultTask() {

  @get:Inject
  protected abstract val execOps: ExecOperations

  @get:SkipWhenEmpty
  @get:InputFiles
  @get:PathSensitive(PathSensitivity.NONE)
  abstract val sourceFiles: ConfigurableFileCollection

  @get:SkipWhenEmpty
  @get:InputFiles
  @get:PathSensitive(PathSensitivity.NONE)
  abstract val supergraphConfigs: ConfigurableFileCollection

  @get:OutputFile
  abstract val outputSchema: RegularFileProperty

  @TaskAction
  fun action() {
    supergraphConfigs.map {
      execOps.exec {
        this.environment["APOLLO_TELEMETRY_DISABLED"] = 1
        this.standardOutput = FileOutputStream(outputSchema.get().asFile)
        this.commandLine = mutableListOf("yarn", "rover", "supergraph", "compose", "--skip-update", "--config", it.path)
      }
    }

    execOps.exec {
      // because not reformatting causes strange behavior regarding commit hooks
      this.commandLine = mutableListOf("yarn", "prettier", "--cache", "--write", outputSchema.get().asFile.path)
    }
  }
}

Gradle 8.1 has promoted the configuration cache to stable, are there any plans to support this? Or would you be open for a PR fixing the current issues?

We do welcome PRs for supporting this, thanks!


Report - Recipient loan form - data not reported

When I create a new "Recipient Loan Form" report from an existing loan,

[ ] then the person who created that loan record (e.g. collection manager), should be listed on "Recipient Loan Form" report.
[ ] then the unique loan form number, should be listed on "Recipient Loan Form" report.
[ ] then the "biocuration category" (e.g. vial, pin, slide), should be listed with collection objects if collection objects are included in loan
[ ] then the totals of collection objects should be displayed as in:

should include totals of "Returned" "Lost" "Retained" "Remaining" "Donated" "Destroyed"

@tmcelrath Still an issue?

I think this is done.

@mjy @jlpereira all done except for last one I think


Fix user image matching

After some testing I found this rather sad bug I introduced in the past...

cc: @sachamicrosoft


Can't get Grid sizing scopes to work in FuncUI

I've made a sample repo at https://github.com/marklam/GridSizingScopes
The sample code from https://docs.avaloniaui.net/docs/reference/controls/grid/sharedsizegroup is replicated in F# in the XamlGrids project.
An attempt to recreate this in FuncUI is in the FuncUIGrids project.
The XamlGrids version sizes the groups A, B and C (columns 1, 2 and 4) to their content. The FuncUI version sizes all the columns as if they were of width 1*
XamlGrids:

FuncUIGrids:

Is there something I'm missing? It doesn't seem like this should be object graph / diff related, but I'm not sure.

Hey @marklam
interesting bug, after looking at it briefly I don't not see anything obvious. Can take a closer look tomorrow
XAML Version:

FuncUI Version:

Yes, the diagnostics view doesn't give much insight into size scopes, unfortunately.
I pushed a new changeset to make the UI trees match (ItemsControl with ContentPresenter instead of ListBox with ListBoxItem/HostControl) but it doesn't change the sizing.


Simpler web project tests in examples/gradle

More streamlined packages and tabs to test misk-web-plugin
Replaces old harder to maintain palette tab code from each of 4 examples/gradle tests

Re-open with less confusing example code / project names


Hugegraph hubble ot working in 0.12.0 version

Problem Type (问题类型)
others (please edit later)
Before submit

[X] 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题

Environment (环境信息)

Server Version: v0.11.x
Backend: RocksDB x nodes, HDD or SSD
OS: xx CPUs, xx G RAM, Centos 7.x
Data Size:  xx vertices, xx edges

Your Question (问题描述)
Hugegraph hubble is not working when connecting with hugegraph server version 0.12.0.It throws version mismatch.
Error : The version of hugegraph-client and hugegraph-server don't match.
Help me on this!!
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response

I don't know the version of your hubble env (and the client version it used), and u could paste the detail for mismatch exception [like current is XX, should be in (xx, xx) ].
A temporary solution to this problem can be considered in 2 ways:

replace the client version in hubble/lib/hugegraph-client-xx to the latest version (build in client repository)
consider a elegant way to quickly and dynamically change the version number with class file (by using Arthas)

# 1. download arthas
curl -O https://arthas.aliyun.com/arthas-boot.jar
java -jar arthas-boot.jar  # better to start it in your hubble root dir

# 2. find the version check (java) class (from your error message), and jad it
jad --source-only *JavaName > ./JavaName.java
sc -d *JavaName | greph Hash # copy the hash code

# 3. comment the version check line (better do it in another bash, or exit arthas and rerun it later)
vi JavaName.java # then comment the version check line  or modify to a suitable version

# 4. redefine (hot swap) it to hubble
mc -c xxxHash  JavaName.java # paste the hashCode
redefine ./xxx/.../xx/JavaName.class

And we will release a new version V0.12 for all modules recently (in 2 weeks, maybe before 12.31), then version problems will be fixed.


paddlepaddle_volume-aarch64-latest not found

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 18.04): 16.04 and 18.04
Apollo installed from (source or binary): source
Apollo version (3.5, 5.0, 5.5, 6.0): 5.0

Steps to reproduce the issue:
While running "bash docker/scripts/dev_start.sh", error encountered. therefore couldn't run dev_into.sh
Supporting materials (screenshots, command lines, code/script snippets):

Let's discuss this problem at https://github.com/ApolloAuto/apollo/issues/11813


tflite esrgan super image resolution limited 50x50

how to train super image resolution, that accept any input image

@lintian06 could you take a look?

I would like to work on this issue on improving the performance of the Super Resolution App on Android and iOS.
Can You assign this issue to me @lintian06 , I would like to focus on training images to a super-resolution.
Can you elaborate on the issue a bit to get me started @abattery

Hi, the example for  ESR GAN super resolution on TFLite is using 50x50 input considering the model's performance and inference speeds.
As mentioned in the example, to increase the input size, we need to re-convert or re-train the original model.
Thanks.

Closing as stale. Please reopen if you'd like to work on this further. Thanks!


⚠ geray.serverssh.net has degraded performance

In a886122, geray.serverssh.net (http://geray.serverssh.net/) experienced degraded performance:

HTTP code: 200
Response time: 9775 ms

Resolved: geray.serverssh.net performance has improved in 994d8d0.


training weather

Hello
Thank you for your great repository. I was wondering which weathers did you use to train your model in the paper? Is it only clearNoon weather similar to validation dataset?
Thank You

I have added the relevant information (Fig. 1b in Section 2.5 of the CVPR supplementary material) below:

We sequentially vary the weather condition after every 30 seconds in each route. However, since a significant proportion of the routes used for generating data are short, the weather distribution is skewed towards the initial weathers (Experiments data in Fig. 1b) since all the 14 kinds of weather are not iterated through. This is not a problem for our internal evaluation since we fix the environmental conditions to ’ClearNoon’ during evaluation, to decouple the main new challenge (scenarios) from factors related to visual generalization. However, for submission to the CARLA Leaderboard (Sec. 5), we regenerate our data while varying the weather condition after every 0.5 seconds of driving so that the distribution is uniform across all weathers (Leaderboard Data in Fig. 1b)

Both the imbalanced "experiments" dataset (clear_weather_data) and balanced "leaderboard" dataset (14_weathers_data) were uploaded in our cvpr2021 branch.


⚠ Punto de Fuga has degraded performance

In 6a6153c, Punto de Fuga (http://puntodefugapodcast.com) experienced degraded performance:

HTTP code: 200
Response time: 7879 ms

Resolved: Punto de Fuga performance has improved in 6b5aca5.


Please bring this extension for Visual Studio 2022

ITNOA
Visual Studio 2022 language services is near to vscode, so please add this extension for Visual Studio 2022
Please see https://docs.microsoft.com/en-us/visualstudio/extensibility/adding-an-lsp-extension?view=vs-2022
thanks

It seems that I needs to develop a language client by C# for VS2022 to load this server. Unfortunately, I have no energy to maintain multiple language clients, and I have never learned to write C#.

Community members are still welcome to create their own clients!


Add kubebuilder validation for plugins

So we ui can auto suggest available options and oc will tell users if their yaml is "wrong".

/remove-lifecycle stale

fixed in https://github.com/openshift/oadp-operator/issues/913


Error: Custom { kind: NotFound, error: "No such mount" }

Got the following error while running in Windows related to disk usage.
Error: Custom { kind: NotFound, error: "No such mount" }

fixed in version 0.0.7


Race condition on account creation

Solution:
Rework subscriptions to listen to all "owned" stake account changes and create accounts through that feed

#8 is an attempt but the race is still around, possibly https://github.com/solana-labs/solana/issues/15705 and more


Support multiple repositories

You asked for it. ;)
It would be nice to be able to watch multiple repositories at the same time from the same machine.
Maybe a simple approach would be to allow multiple instances of Buildasaur running at the same time.
The only problem would be the 5000 requests limit which are used up by all instances but then one could simply configure each instance to poll less frequently.

Yeah this is also a good one, actually I wrote Buildasaur with this in mind, but I just haven't built the UI for it yet. You can see here that we load an array of Syncers, just right now only one Syncer runs at one time, but the whole architecture is built for multiple projects to be synced at the same time.
Regarding the GitHub limit, I'll investigate in #13 whether generating a new token for each synced project would help or whether it's user-based. But currently the 5000 per hour limit should be plenty, especially if you use a sync interval of 15 seconds or higher, because each sync kicks off cca n + k GitHub calls (where n is the number of open pull requests and k is a small constant ~ 2, mostly guessing here though). So my guess is that with a 15 sec sync interval and < 20 open pull requests, you shouldn't be hitting the rate limit. I'll look at it closer though. Let me know if you have any ideas on this topic.

Since #13 proved that the 5000ph rate limit is per user, not per token, we need to find some decent sync frequencies to keep all repositories up to date and responsive to commands/builds, while not exhausting the rate limit. Currently for 1 repo (all that is supported atm), 15 seconds is a very good sync frequency that still keeps some head room under the rate limit.

Damn, this really needs to happen. Now I have two repos I'd like to observe, XcodeServerSDK and Buildasaur. Priority high!

@czechboy0 Where does this issue stand? I want to watch numerous repos.

@czechboy0 What is the status of this issue? I have multiple repos I would like to watch.

Buildasaur doesn't yet support that, it's a feature scheduled for 1.0. I can't give you any specific dates yet, but I welcome all help through Pull Request :)

Hey @mdio, I'm happy to tell you that after 6 months I finally got to this. Multi-repo support has been merged in master and will appear in a beta later today.
Sooo... Thanks for reporting this back then! :+1:

Hi, @czechboy0. Thanks for pinging me.
Unfortunately, the company I developed (and used Buildasaur) for went out of business a few months ago. So I don't use Buildasaur at the moment.
But I'm happy to see that more and more people are using your cool tool and if I get back into iOS development, I'll be happy to have multi-repo support in Buildasaur. :)

Sorry to hear the first part, but :+1: for the second

:beers: We've been anxiously awaiting this.... :tada:

Looking forward to all feedback, @grantjk! (and @stevesparks)


Material registry

This PR adds a debug-only MaterialRegistry class and shader events which fire when shader compilation fails.
These are used to output the impacted materials on compile failure.
The MaterialRegistry class is completely removed from the codebase in non-debug builds.

BTW all of this is simply to know which materials caused the invalid shader to be generated. Perhaps there is a simpler or more straight-forward approach I haven't considered?
(Though as I commented above, having a list of materials in itself could be very useful).

Perhaps there is a simpler or more straight-forward approach I haven't considered?

I think as mentioned in the comment, the shader could just have a Set of materials, and the material could be added/removed in material.shader setter, and also removed in material destroy function?

Oh, agreed, having a list of all materials generated is super useful. I was happy to see the PR show up. We've found it would make our life much easier when working with a project wide HW instancing system.

We've decided to not merge this right now, but will continue discussing how we could maintain a list of materials.


Incorrect link in windows-e2e-tests-with-sonobuoy blog post

What steps did you take and what happened:
[A clear and concise description of what the bug is.]
Towards the end of the article, there's a link to "sonobuoy-plugins" that points at https://github.com/vmware-tanzu/sonobuoy-plugins/windows-e2e, but it should actually point at https://github.com/vmware-tanzu/sonobuoy-plugins/tree/master/windows-e2e
What did you expect to happen:
Link to go to the correct source path
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Looks like fix is on line 145 of the md.  :)
Environment:

Sonobuoy version: N/A
Kubernetes version: N/A
Kubernetes installer & version: N/A
Cloud provider or hardware configuration: N/A
OS (e.g. from /etc/os-release): N/A
Sonobuoy tarball (which contains * below) N/A

💯 Thanks, fixing that now.

#1327


feat: I want to add Twisted Prime's solution in Cpp

Please assign this issue to me and add the hacktoberfest label to this issue.

Approved


Print test coordinates instead of running tests

I needed to generate a list of tile coordinates, and this was my first hack at it. @zerebubuth, is something like this what you had in mind? If so, I could try and clean this up a little bit.
It might also be worth automating a little bit more so that we can pipe this into a separate tilequeue command or script that would automatically add these to the toi and enqueue them.

:zap: Yeah, that's great! I tried it out locally, and it looks like it needed a bit of a tweak to get all the coords for tests like test/507-routes-via-stop-positions.py which call features_in_tile_layer directly in a loop. I've committed that in a3ce3c2.
:+1:

Closed in favor of https://github.com/mapzen/vector-datasource/pull/644


setting up CircleCI for continuous build and deploy

:+1:
Environment variables have been set in circleci.


Refactor and flatten the KeyStore

Right now we:

Need the gun of a key to be able to retrieve it.
Cannot simply drop a key in a directory and have it be picked up by the keystore object

We should refactor the keystore in a way that still mantains the directory structure that we want (tuf keys, root keys, etc), but reads all the keys under private/ into a flat keystore that can access any key by KeyID.

From testing: we can drop in a delegation key by canonical key ID name into tuf_keys only if one of the following is true:

the role is in the PEM headers for the private key (@cyli verified this)
the role is appended to the end of the canonical key id in the filename, ex: canonicalKeyID_releases.key


gcp: BigQuery resource missing

We have a need to write policies for GCP BigQuery. As of now there is no BigQuery resource available within Cloud Custodian to execute a policy such as this:
policies:

name: qigquery-test
resource: gcp.bigquery

Information about the BigQuery API can be found at: https://cloud.google.com/bigquery/docs/reference/rest/v2/
Please let me know if there is more information needed to get this request pushed forward.

so big table would be both tables and data sets.. mostly i would assume the later due to the ability to make data sets public

Mostly datasets. That's what most of our controls are based around but this particular enhancement request is just for the core bigquery gcp resource.

merged in #3280


Broken Link on VPC section

Under "VPC and Network Security Tips"
https://github.com/open-guides/og-aws?tab=readme-ov-file#vpc-and-network-security-tips
The below paragraph, has a broken link at the end ('here'):
For basic AWS use, one default VPC may be sufficient. But as you scale up, you should consider mapping out network topology more thoroughly. A good overview of best practices is [here](http://blog.flux7.com/blogs/aws/vpc-best-configuration-practices).

Did a little sleuthing....
This particular link died between 2019-07-11 and 2020-04-14.  The 301 target lasted until 2021-04-13.
Given that the latest archived copy of this article still notes its publishing date as 2014-01-23, I think maybe we should find a more recent guide.


[WIP] nrf52dk: allow implementation of an alternative core for the Monocle

This allows it to run on the nRF52DK with custom back-end implementation for vairous external peripherals.
The alternative core back-end can be used with:
make BOARD=monocle-nrf52dk

See https://github.com/josuah/monocle-nrf52dk


RFC: ability to specify altnerate .drone.yml path

The name of the .drone.yml file is specified as a global variable. I would like to change this to be specified per repository. Example use cases:

store file in alternate directory, such as .github/.drone.yml
two separate drone instances for a single repository, each using a different yaml
support alternate yaml formats, like bitbucket-pipelines.yml

This requires a database change:
 CREATE TABLE repos (
  repo_id            INTEGER PRIMARY KEY AUTOINCREMENT
 ,repo_user_id       INTEGER
 ,repo_owner         TEXT
 ,repo_name          TEXT
 ,repo_full_name     TEXT
 ,repo_avatar        TEXT
 ,repo_link          TEXT
 ,repo_clone         TEXT
 ,repo_branch        TEXT
 ,repo_timeout       INTEGER
 ,repo_private       BOOLEAN
 ,repo_trusted       BOOLEAN
 ,repo_allow_pr      BOOLEAN
 ,repo_allow_push    BOOLEAN
 ,repo_allow_deploys BOOLEAN
 ,repo_allow_tags    BOOLEAN
+,repo_yaml          TEXT
 ,repo_hash          TEXT
 )

To set the value we could add a new command:
drone repo set octocat/hello-world config.path .github/.drone.yml

closed by #1972