Jest 28 failure: should return an object or a Promise resolving to an object

The following error is being thrown on Jest 28.1.0 due to Jest breaking changes. https://jestjs.io/docs/upgrading-to-jest28#transformer explains the necessary fix.
      `process()` or/and `processAsync()` method of code transformer found at
      "node_modules/jest-transform-graphql/index.js"
      should return an object or a Promise resolving to an object. The object
      must have `code` property with a string of processed code.
      This error may be caused by a breaking change in Jest 28:
      https://jestjs.io/docs/upgrading-to-jest28#transformer
      Code Transformation Documentation:
      https://jestjs.io/docs/code-transformation

+1 also running into this error

+1 also running into this error.

@granttchart Have you found a workaround for this?

Folks ending up here might have some luck switching to this:
https://www.npmjs.com/package/@graphql-tools/jest-transform

[@graphql-tools/jest-transform](https://www.npmjs.com/package/@graphql-tools/jest-transform) isn't quite compatible, and doesn't allow multiple operations per file.

Worked for me!;
npm i -D @graphql-tools/jest-transform

jest.config.js
{
  "jest": {
    "transform": {
      "\\.(gql|graphql)$": "@graphql-tools/jest-transform"
    }
  }
}

I was trying to use @graphql-tools/jest-transform but it's throwing an error when file has multiple operations.
  ● Test suite failed to run

    TypeError: Cannot read properties of undefined (reading 'source')

      36 |  * Used to generate useUseUserProjectsProjectListQuery
      37 |  */
    > 38 | export const USER_PROJECTS_CONNECTION_QUERY = gql`
         |                                                  ^
      39 |   query useUserProjects_ProjectList(
      40 |     $projectFilters: ProjectFilters
      41 |     $listInputs: ListInput

      at ../node_modules/graphql-tag/src/index.ts:127:25
          at Array.forEach (<anonymous>)
      at gql (../node_modules/graphql-tag/src/index.ts:125:8)
      at Object.<anonymous> (src/views/hooks/useUserProjects.tsx:38:50)
      at Object.<anonymous> (src/views/components/UpdateAssigneesDialog/ProjectList.tsx:19:63)
      at Object.<anonymous> (src/views/components/UpdateAssigneesDialog/ProjectReassign.tsx:27:59)
      at Object.<anonymous> (src/views/components/UpdateAssigneesDialog/UpdateAssigneesDialog.tsx:18:63)
      at Object.<anonymous> (src/views/components/UpdateAssigneesDialog/index.ts:9:69)
      at Object.<anonymous> (src/views/components/EditUserDrawer/components/EditUserForm/EditUserForm.tsx:41:69)
      at Object.<anonymous> (src/views/components/EditUserDrawer/components/EditUserForm/EditUserForm.test.tsx:13:60)
      ```

The following error is being thrown on Jest 28.1.0 due to Jest breaking changes. https://jestjs.io/docs/upgrading-to-jest28#transformer explains the necessary fix.
      `process()` or/and `processAsync()` method of code transformer found at
      "node_modules/jest-transform-graphql/index.js"
      should return an object or a Promise resolving to an object. The object
      must have `code` property with a string of processed code.
      This error may be caused by a breaking change in Jest 28:
      https://jestjs.io/docs/upgrading-to-jest28#transformer
      Code Transformation Documentation:
      https://jestjs.io/docs/code-transformation

The above link to the resolution/explanation results in 404.

The first link should be https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer.

Should be able to do something like this then:
Jest config:
**jest.config.js**
{
  "jest": {
    "transform": {
      "\\.(gql|graphql)$": "./transform-graphql-jest-28-shim.js"
    }
  }
}

transform-graphql-jest-28-shim.js:
const { process: upstreamProcess } = require('jest-transform-graphql');

const process = (...args) => {
  const code = upstreamProcess(...args);
  return { code };
};

module.exports = { process };

Thank you @SethDavenport this is a great solution.

Neither of these workarounds worked jest 29.6.4 in a Typescript project

Neither of these workarounds worked jest 29.6.4 in a Typescript project
It works fine in rollup build but I am unit testing my source.

thought i had this too, try running
jest --clearCache
and retry with @SethDavenport shim
worked for me

Should be able to do something like this then:
jest.config.js:
{
  "jest": {
    "transform": {
      "\\.(gql|graphql)$": "./transform-graphql-jest-28-shim.js"
    }
  }
}

transform-graphql-jest-28-shim.js:
const { process: upstreamProcess } = require('jest-transform-graphql');

const process = (...args) => {
  const code = upstreamProcess(...args);
  return { code };
};

module.exports = { process };

This was a life saver. Thank you very much


ion-reorder in ion-list drags whole screen rather than item

Ionic version:  (check one with "x")
[X] 1.x
[ ] 2.x
I'm submitting a ...  (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
The reordering functionality built directly into  via  is not working properly on my android phone.  When I press and hold the reorder button, then move up or down, it scrolls the whole screen rather than the individual item.  Thus, you can't actually reorder the item.
Expected behavior:
I expect the screen to not move unless the item I'm scrolling gets near the top or bottom, at which point the screen should scroll in that direction.
Steps to reproduce:
I've included a codepen with code similar to my project.  It seems to work in code pen, but when I pull it down and run it on my phone, it recreates the issue.  I've also included a gif that shows the issue.  My phone is a Moto X Pure Edition running android operating system 6.0.
Related code:
https://media.giphy.com/media/xUPGcCT4rHhzgVKzJK/giphy.gif
http://codepen.io/LucasMcL/pen/ryemMJ
Other information:

Similar post in forums: https://forum.ionicframework.com/t/ionic-reorder-poor-responsiveness-on-android-phone/81886
My list with delete and reorder buttons is very similar to the official ionic example on codepen: https://codepen.io/ionic/pen/JsHjf.
Things I've tried:
-Reducing the size of the objects in the array that comprises the
-Showing just the reorder button and not delete at the same time
-Using collection-repeat
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
******************************************************
 Dependency warning - for the CLI to run correctly,
 it is highly recommended to install/upgrade the following:

 Install ios-sim to deploy iOS applications.`npm install -g ios-sim` (may require sudo)
 Install ios-deploy to deploy iOS applications to devices.  `npm install -g ios-deploy` (may require sudo)

******************************************************

Your system information:

Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: OS X El Capitan
Node Version: v7.4.0
Xcode version: Not installed

This issue was moved to driftyco/ionic-v1#224


Be compatible with BSD seq command.

On Mac OS X, seq 0 equals seq 1 -1 0 and yields this sequence: 1 0
And unfortunately (BSD) seq 1 1 0 fails and outputs error message.

Great, thank you!
I hope Travis will support BSD sometime!

Maybe I should just get a package of all those GNU utils and modify $PATH before loading fundle. Don't know how those BSD guys get used to their tools. It is lucky that mv and cp are not used in the script yet.

I do not know if most shell tools are compatible with BSD or if most BSD users change their GNU tools,
but as long as it does not add too much complexity, I would like to keep this compatible with default BSD tools.


deploy on RunPod serverless

is there a way to deploy on runpod, cuz I wanna use it for production.

Hi! it can be deployed on any environment with docker support.
If you want to save sessions between restart - you need to have a file volume outside of container to run the command below:

https://docs.docker.com/storage/volumes/
https://waha.devlike.pro/docs/how-to/sessions/

docker run -d -v `pwd`/.sessions:/app/.sessions -p 3000:3000/tcp --name whatsapp-http-api devlikeapro/whatsapp-http-api-plus

We're working on remote storage for sessions yet https://github.com/devlikeapro/whatsapp-http-api/issues/41

Hi!
We know that it's been more then a year since the request was requested, but we're happy to announce MongoDB remote storage for authentication data is available in 2023.4.2 version!
This feature is now available as part of the WAHA Plus offering.
We have documented the feature and its usage in our documentation, available at Session Storage.

To get started with the MongoDB storage, you can follow these simple steps:
First, start the MongoDB server by running the following command:
docker run -d -p 27017:27017 --name mongodb mongo

Next, initiate the WAHA with the WHATSAPP_SESSIONS_MONGO_URL environment variable, and note the use of the --network host option as well:
docker run -e WHATSAPP_SESSIONS_MONGO_URL=mongodb://localhost:27017/ --network host devlikeapro/whatsapp-http-api-plus

Following these steps, you will have successfully configured the MongoDB storage for WAHA. All session authentication data will now be stored in the MongoDB database.
For those of you eager to test this new feature, we would like to stress the importance of thoroughly testing MongoDB storage before deploying it in any production-related infrastructure.


Flask not being installed  when running Dockerfile

** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE EXAMPLE VOTING APP **

If you have a bug working with Docker itself, not related to these labs, please file the bug on the Docker repo *
If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you're not on that channel, sign up for the Docker Community and you'll get an invite. *
Or go to the Docker Forums *

Please provide the following information so we can assess the issue you're having
Description
 780ede8fb4a7
Step 2/7 : WORKDIR /app
---> Running in 1e8b0ea9248f
Removing intermediate container 1e8b0ea9248f
---> d7b2bf6590e9
Step 3/7 : ADD requirements.txt /app/requirements.txt
---> 6ddfe351d3ba
Step 4/7 : RUN pip install -r requirements.txt
---> Running in c4e0827691c6
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f04b201cd10>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/flask/Output of docker info:
(paste your output here)

Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):

RUN pip install -r requirements.txt --trusted-host=pypi.org --trusted-host=files.pythonhosted.org

We're sorry for the late response. Linux images have been refreshed, cleaned up, and are now multi-platform. If you're still having issues with the latest images, feel free to reopen this ticket.


WORK IN PROGRESS: Code cleanup

Pull Request Test Coverage Report for Build 785

77 of 85 (90.59%)  changed or added relevant lines in 30 files are covered.
7 unchanged lines in 3 files lost coverage.
Overall coverage increased (+0.2%) to 41.464%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/Scamper.package/HtmlLayoutStyles.class/instance/innerExtraWidth.st
0
1
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraHeight.st
0
1
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraWidthLeft.st
0
1
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraHeightTop.st
0
1
0.0%

packages/HTML.package/CSSDefaultStyleRule.class/instance/printOn..st
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

packages/HTML.package/CSSDefaultStyleRule.class/instance/printOn..st
1
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraWidthLeft.st
3
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraHeightTop.st
3
0.0%

Totals

Change from base Build 781:
0.2%

Covered Lines:
6883

Relevant Lines:
16600

💛  - Coveralls

Pull Request Test Coverage Report for Build 785

77 of 85 (90.59%)  changed or added relevant lines in 30 files are covered.
7 unchanged lines in 3 files lost coverage.
Overall coverage increased (+0.2%) to 41.464%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/Scamper.package/HtmlLayoutStyles.class/instance/innerExtraWidth.st
0
1
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraHeight.st
0
1
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraWidthLeft.st
0
1
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraHeightTop.st
0
1
0.0%

packages/HTML.package/CSSDefaultStyleRule.class/instance/printOn..st
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

packages/HTML.package/CSSDefaultStyleRule.class/instance/printOn..st
1
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraWidthLeft.st
3
0.0%

packages/Scamper.package/HtmlLayoutStyles.class/instance/extraHeightTop.st
3
0.0%

Totals

Change from base Build 781:
0.2%

Covered Lines:
6883

Relevant Lines:
16600

💛  - Coveralls


Unittests made with MSTest which is not supported in Xamarin

I suggest using NUnit instead of MSTest for the unittest projects. This would make it possible for developers to open and run tests using Xamarin when developing on non Windows platforms.
If you agree, then I can make a pull request where the projects have been changed to use NUnit and tested in both Visual Studio and Xamarin :)

It's using XUnit, not MSTest? Doesn't xunit work with xamarin? A brief search on google shows that it should...
Are you opening the project in xamarin studio?

The problems is that the projects are created within Visual Studio so they will get an "Test" project type and Xamarin Studio can't handle this and will not load the project. The solution is to change the project type from MSTest project to NUnit project.
Yes, I open the solution in Xamarin Studio:
More information about it here:

Right, so you don't need to change to nunit, just remove the test guid from the csproj?

That will fix the issue in XS. Ill try that and test how that works in VS and if it works, then create a PR :)

I'm pretty certain that all it does is not show the test 'icon', so it should work fine!

Yeah, I was hoping for the same thing, but it was not as easy. I had to create new projects because that Guid was not the only thing that made it not compile in Xamarin on OSX. I have all things compiling and all unittest working. Im working on running integration tests.
Some of the unittests fails because of Windows locale settings. Ill also fix those.

This can be closed if PR #35 is merged :)

Some updates on this issue:

Hi
Sorry for not come back for this PR for a long time.
We looked into this issue and we find the support for compiling source code/run all unittests with Xamarin is not part of our current target. You are most welcome to issue a PR to add this support. But we currently will not add/maintain this feature.
Cheer,
Zhen

Hi, sorry for idle on this thread for too long. Right now supporting compiling the source code in another platform other than windows is not part of current plan. But you are most welcome to contribute to support compiling source code in other platforms.
Cheers,
Zhen


Kernel updates for 2024-07-05

Description of changes
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.9.8
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Tested on my usual machines, going to merge so we can get the security fix out.


🙏 Update community link for v1.29.1

@frascuchon @damianpumar I believe there is a discontinuity regarding the docs, because the current ones are already updated for Discord, for instance here: https://docs.argilla.io/en/latest/community/contributing.html. But I think that in main, but the current docs are from 1.29 with old information.

@frascuchon @damianpumar I believe there is a discontinuity regarding the docs, because the current ones are already updated for Discord, for instance here: https://docs.argilla.io/en/latest/community/contributing.html. But I think that in main, but the current docs in this PR are from 1.29 with old information.

Hi! but this version has other docs, I mean, the current one is for latest verrsion, not for this.

@frascuchon @damianpumar I believe there is a discontinuity regarding the docs, because the current ones are already updated for Discord, for instance here: https://docs.argilla.io/en/latest/community/contributing.html. But I think that in main, but the current docs in this PR are from 1.29 with old information.

Hi! but this version has other docs, I mean, the current one is for latest verrsion, not for this.

I'm not sure if I get it right. I mean, the current latest docs in this domain are for 1.29 with changes in main after the official 1.29 release.  Just wanted to make sure that adding this 1.29.1 docs originated from the 1.29 without the posterior updates is not going to create discontinuity or miss these changes.

@sdiazlor @frascuchon
I push just the frontend part.
Please take a look


Fix button alignment of Package Installer on OSX

Before:

After:

Step to reproduce:

Set Mac to HiDPI
Open Godot Editor
Open Asset Library
Download Any Asset and Open Package Installer

Description:
I don't know the exact cause, but it seems that the order of calling show_modal() is related.
When using Popup::popup(const Rect2 &p_bounds), this problem didn't occur.
Eventually, I unified processing to Popup::popup(const Rect2 &p_bounds).
Maybe related to #24554.

I think this change should be fine, but it needs thorough testing on multiple platforms (both of the editor and of games using all three methods) to ensure that there are no regressions.

The best way to get this tested is to merge, see if any regression pop up and revert if need be, so let's give it a try :)
The code simplification is really nice.

Thanks!

Yea I think show_modal has to be called before setting the size...


Update gitignore template

Update gitignore template @gaving @ccheever @brentvatne @lacker @skevy

Thanks for the PR. Looks like this PR targets the wrong branch, it's from master to yarn-instructions. Also most of the underlying code is now in the Expo CLI repository. I invite you to contribute the changes to Expo CLI if still relevant.


[Request] Please add a "settings" button to the main menu of elementum

Expected Behavior
Add one more button that would open elementum's settings menu.
Current Behavior
In order to get to elementum's settings now you have to either press "i", bring up the info page of elementum and select settings from there, or right click on it and select settings from that right click menu. This is ok for systems that have a keyboard or a mouse, but it is a no go for systems with a simple remote control, e.g. a rpi on a tv, because not all remote controls have that option button (the equivalent of right click) or an info button that works as it should on kodi.
Possible Solution
No idea.
Steps to Reproduce (for bugs)

Highlight elementum from kodi's video addons screen.
Press "i" on the keyboard or right click with the mouse, provided that your device has these peripherals
Select settings from the menu that just appeared
Edit elementum's settings as usual

Context
I think one more button in this menu is enough. The button would lead to elementum's settings directly

Your Environment

Version used: 0.1.41
Environment name and version: Kodi 18.4 and 18.2 respectively
Operating System and version: Debian testing x64 and libreelec 9.0.2 on rpi 3b+
Link to Kodi debug log: Not needed

@pitsi added in 0.1.43.


📃 fix: replace every ~ AND ,, for posix compliance

Type of Change

[x] Bug fix
[x] Refactoring

Description
Using tilde is a bashism, using $HOME is not.
Same with logic expressions and ,,s.
Checklist

[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] My changes generate no errors/warnings/merge conflicts.

(📃 is a shell script btw)

More to do

Ready to merge

@ChrisTitusTech In case you're wondering, this is OK to merge. I'll do the rest of archtitus in a later PR.

Clearing up confusion here:

using =~ is one heck of a bashism. can be avoided very easily
~/ is pretty obvious. it's an alias to $HOME. a part of GNU core utils
"${foo,,}" =~ ^[a-z][a-z0-9_.-]{0,62}[a-z0-9]$ has like 3+ bashisms so changing it to tr '[:upper:]' '[:lower:]' is completely fine. tr is much easier to understand, too

this PR explicitly cleans up some bashisms. logic remains unchanged (excluding this below, it was only y before, I added Y)
https://github.com/ChrisTitusTech/linutil/blob/f688f0c9dde9cb944f2b276230cdb3328bcb9ed8/core/tabs/system-setup/arch/server-setup.sh#L281

~ is ok but the if condition changes is not necessary as whatever you do server-setup.sh will be a bash script. The arch iso ships only bash. The sh is symlinked to bash. You need to install dash package in order for this to work as posix which cannot be done

~ to $HOME is okay but the if condition changes is not necessary as whatever you do server-setup.sh will be a bash script. The arch iso ships only bash. The sh is symlinked to bash. You need to install dash package in order for this to work as posix which cannot be done. And the shebang is bash.

I am 100℅ aware. But if we want to keep it fully posix compliant, let's keep it fully posix compliant.


Source code for cosmograph app run

Hi - I’m trying to quickly pilot this behind a corporate firewall and there is no ability to use the app and upload(even locally) Behind the firewall/w browser restrictions
suggest having a seperate repo where we can copy and run locally.
I’ve copied from the code sandbox but can’t figure out how to get the external data from csv I have generated.

Hi @mdav43,
The code of Cosmograph.app is not open source and we're not planning to do it, at least for now.
Feel free to send us an email to<EMAIL_ADDRESS>if you want to discuss potential licensing.


Restore Index Only through StorageFolder

hi,
after set UseStorage: true, I can create index from the StorageFolder, but i still need the original content like stringData in engine.IndexDoc(DocId, types.DocIndexData{Content: stringData}). I have many files and read them from disk is time-comsuming, is there any way to check whether the specific DocId exists and restore the index without stringData(only through StorageFolder)?
thanks!

GetAllDocIds  can get all data id, restore the index without stringData?

Yes, I don't want to read all the original stringData from disk, it takes very long time.


bt do be in a wall on complex

😳

Please do not merge as BT likes being in walls.

Please attach screenshots / video recordings of the before and after positions.
Also AFAIK the original BT location on Complex was chosen so that pilots would get thrown directly into the building entrance without hitting a wall or something. With the new positions is it still possible to maintain the speed from the original throw?

https://media.discordapp.net/attachments/937892759002574869/939580030881759262/XN32klCQ7o.mp4

before it just kinda threw you into that wall but not over it

before it just kinda threw you into that wall but not over it

kill me
ah~ bt~ be gentle~

before it just kinda threw you into that wall but not over it

I think you had to aim a bit to the left and make you didn't hold jump. So I agreed that updating BT spawns would be nice. The issue I see with the suggestion, is that it would also require rebalancing panel locations, as the new spawn gives that team easier access to both A and B. It was already a bit skewed but this makes it more unbalanced IMO.
Maybe place BT add the edge near the water?

someone can try that, I just did that for my mode since it was misleading that you could almost make it over that wall


probe-rs-cli: 0.13.0 -> 0.14.0

Description of changes

Release notes: https://github.com/probe-rs/probe-rs/releases/tag/v0.14.0
Diff: https://github.com/probe-rs/probe-rs/compare/v0.13.0...v0.14.0
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 210739 run on x86_64-linux 1

1 package built:

probe-rs-cli


New timeout() command cannot be found

Sorry if I'm doing something wrong here, but I'm trying to use the new timeout() command but it's not working as I'm expecting.
This works:
import twill
twill.commands.timeout(60)

but this doesn't:
from twill.commands import *
timeout(60)

It returns:
NameError: name 'timeout' is not defined

I'm already using from twill.commands import * for other commands like go(), showforms() and it works as expected, but for timeout() it doesn't.

Python v3.11.6
twill==3.2.2

Thank you for reporting this. It's fixed now in version 3.2.3.


How to connect monitor & cpu to computer or how to use it? Please help

Heeelp

Place the GPU next to the botton left monitor block, and connect it like any other cc peripheral.
The GPU must be next to the bottom left monitor block. The monitor block has arrows pointing away from the bottom left corner.

Place the GPU next to the botton left monitor block, and connect it like any other cc peripheral. The GPU must be next to the bottom left monitor block.

Here are some example programs for the GPU:
https://github.com/tom5454/Toms-Peripherals/tree/api/examples


Don't treat io or os modules as mandatory (redis compatibility)

Amalgamated Lua scripts that inline Moses are unable to be loaded by Redis, due to its lack of support for the optional io and os modules, combined with its strict validator which ensures no Lua code is referencing a global that was not implicitly assigned.
Here's an example of a typical error message:
$ redis-cli --eval SparkPi-with-dependencies.lua
(error) ERR Error running script (call to f_9ee542b8c203fc67d9dd0f620ee442e5ea6ecd9e): @user_script:36: user_script:36: attempt to index upvalue 'os' (a nil value)

Lines in Moses like this:
local clock = os.clock

Might need to change to something like this:
local clock = os and os.clock or nil

Work-around in related work: https://github.com/BixData/lua-amalg-redis/commit/b0ce0adc82f13caf83fe70dd51d4d65531baa608

@drauschenbach , please let me know how commit a7fe26b works for you.
Roland.

Verified. Nice!!

FYI @Yonaba, I demoed Moses running within Redis at RedisConf19!


add possibillity to use imagePullSecrets

Add imagePullSecrets to pull images from private registries.
Does not manage the secret itself. only use existing secrets.
First setup control plane, maybe with errors because coredns/kube-proxy cannot be deployed. Then create the secret. Images should then be pulled automatically.
---
k8s::server::resources::image_pull_secrets:
  - name: my-private-registry-secret

hmm do not understand how the tests work. simply adding imagePullSecrets to the content yaml of kube-proxy does not work. and keys with undef values shouldn't end up in the resource and be filtered. i only know it like this from other modules 🤔

The tests are verifying the Puppet-generated Kubernetes resources against the fixtures under spec/fixtures/files/resources/kube-proxy{,-older}.yaml, and your change would modify the generated result - it'd add an imagePullSecrets: null to the container definition

🤦  oh. i found this yaml yesterday, but i thought (because of the error output) i have to write imagePullSecrets: nil but it's null. With null it works.


quandl website had stopped extract free data from nse and bse

HI WillKoehrsen,
Good Evening!!
Quandl website had stopped extracting latest data from NSE and BSE on 4th january 2019 onwards.  This message is getting "As of January 9, 2019 this data feed will no longer be actively supported by the Quandl community. We will continue to host this data feed on Quandl, but we do not recommend using it for investment or analysis". Can you please provide update stocker.py code using nse.get_quote or alternate python library instead of quandl.get.
https://www.quandl.com/data/NSE-National-Stock-Exchange-of-India
Thanks in advance.

your best bet is to submit a PR with the changes you want and go from there

I'm puzzled by this issue. I just downloaded BSE data from Quandl for CIPLA. The data appears to be currently with just a few days lag. The last day is 21st May 2020.
Also https://www.quandl.com/data/NSE-National-Stock-Exchange-of-India does not show the message as stated.


Safe integer ranges incorrect

These numbers look incorrect:
const minUint53 = 0
const maxUint53 =<PHONE_NUMBER>370495
const minInt53 = -2251799813685248
const maxInt53 =<PHONE_NUMBER>685247

The signed integer range should be -9007199254740991 to<PHONE_NUMBER>740991. The unsigned ones should also be shifted appropriately.
See https://tc39.es/ecma262/#sec-number.min_safe_integer and https://tc39.es/ecma262/#sec-number.min_safe_integer.

Finally got around to looking into this. Thanks!


Configure extensions to apply formatting to

Great plugin, thanks!
It would be great to allow for other extensions. For example, we use jinja2 templates to generate our terraform .tf files, so in source control our file extensions are .tf.tpl, which this plugin ignores.
It would be nice to be able to add that extension in a configuration setting, or if the plugin applied this formatting to any file extension containing .tf in it.
:man_shrugging:
Thanks again!

Can't you configure this file association already, with base VSCode functionality, with something like this in settings?
    "files.associations": {
        "*.tf.tpl": "terraform"
    },

Sadly the plugin uses this check to check whether to apply formatting:
https://github.com/mauve/vscode-terraform/blob/master/src/helpers.ts#L3
So it right now only allows .tf and .tfvars files.
Wonder if it makes sense to just keep the languageId check and skip the extension check or if this should be made configurable, any ideas?

The plugin has been working very well for us!
Our Nomad configuration is also written in HCL and we would like to be able to configure *.nomad files to be included as well.

For my 2p, the languageId check is the bare minimum for now.

Hi, this should now be fixed in version 0.0.20, please give it a try! Thanks for your patience.


README

User Story
As a boot camp student
I want the rework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN the rework project repository
WHEN I view the README for the repository
THEN I can see a professional README that provides information on the project and how to use it

README file was created with some information about the Pre-Work study guide


Get nearest affected area from your location using area pincode/gps/address and display the visual on map.

Is your feature request related to a problem? Please describe.
This feature provides the ease of tracking the affected area via GPS/area pin-code/address.
Nearest hospitals and test centers can also be added on the map that will help users to locate them in different situations.
Describe the solution you'd like
Added map and features to fulfill the stated problem. Need Geo-location and details of hospitals and test centers to plot them on map.
Additional context

Nice work! Where is the data source for this? How do we make sure that it's authentic?
Are suspected patients supposed to go to the fever clinic directly or call the state helpline?

Nice work! Where is the data source for this? How do we make sure that it's authentic?
Are suspected patients supposed to go to the fever clinic directly or call the state helpline?

Data for the affected area is fetched from https://api.covid19india.org/raw_data.json and is plotted district-wise.
For data regarding test facility, we can fetch JSON data from -https://covid.icmr.org.in/index.php/testing-facilities?option=com_hotspots&view=jsonv4&task=gethotspots&hs-language=en-GB&page=1&per_page=500&total_pages=1&total_entries=177&cat=&level=4&ne=47.685816%2C114.463016&sw=1.831785%2C30.439579&c=27.047009%2C72.451297&fs=0&offset=0&format=raw
The data consist of 194 test including public and private test facilities. As the counts are increasing rapidly, these data may help people to take quick action for there wellness.

The data available at our end is mostly at a district level. The location accuracy is too small to suggest anybody recommended hospitals.
Also, the ICMR data might not be fresh enough.


Fix/error handling for connection problems with workday

Changes in this PR:

model is testable in isolation by changing class hierarchy
catch a 500 response from workday and raise this as an explicitly name error, rather than an obscure error of type: Nokogiri::XML::XPath::SyntaxError (ERROR: Undefined namespace prefix: //wd:Report_Entry) to help us diagnose the issue

From a staging console we can see what the real behaviour is:

Related to Rollbar error https://rollbar.com/dxw/ccs-reportmi-app/items/127/


Add additional tests to rotate functions, clarify variable names

Adds specific unit tests for the documented examples of the rotate functions. It’s good to specifically test the examples in the documentation. After all, those are the cases that are absolutely expected to work.
Adds unit tests for _reverse(subrange:until:) and reverse(subrange:)
Within documentation and implementation of _reverse(subrange:until:), use lower and upper instead of f and l. l could easily be misinterpreted as lower, left, or limit. Using lower and upper avoids this ambiguity.
Use consistent variable names lower and upper instead of lo, and hi, respectively, in reverse(subrange:). This is more consistent with lowerBound and upperBound.

Checklist

[x] I've added at least one test that validates that my change is working, if appropriate
[x] I've followed the code style of the rest of the project
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary

Thanks for the review, @natecook1000. I’ve updated the code and I believe it reflects all the feedback given.

LGTM! Thanks @mdznr 🕺


Add standalone (and backport) JSR-310 library as immutable.

The listed types are equivalent to those in java.time.*.

Thanks @JakeWharton!


KOGITO-7575 - Add persistence related config properties to Quarkus

Fixes https://github.com/kiegroup/kogito-runtimes/issues/2324

(tests) - kogito-runtimes job #471 was: UNSTABLE
Possible explanation: This should be test failures
Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/471/display/redirect
Test results:

PASSED: 2819
FAILED: 2

Those are the test failures:

Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testPersistence
java.lang.RuntimeException: java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for detailsCaused by: java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details

Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testPersistence
java.lang.RuntimeException: java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for detailsCaused by: java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details

(tests) - kogito-examples job #517 was: UNSTABLE
Possible explanation: This should be test failures
Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-examples/517/display/redirect
Test results:

PASSED: 521
FAILED: 2

Those are the test failures:

Build projects / org.acme.deals.DealsRestIT.testDealsRest
java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkusCaused by: java.lang.RuntimeException: Failed to start quarkusCaused by: io.quarkus.runtime.configuration.ConfigurationException: One or more configuration errors have prevented the application from starting. The errors are:  - SRCFG00039: The config property kogito.persistence.type with the config value "mongodb" threw an Exception whilst being converted Cannot convert mongodb to enum class org.kie.kogito.quarkus.conf.KogitoPersistenceRuntimeConfig$PersistenceType

org.kie.kogito.quarkus.outbox.OutboxIT.(?)
java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (localhost ports: [8080, 49183] should be listening)	at org.kie.kogito.quarkus.outbox.OutboxIT.before(OutboxIT.java:86)Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (localhost ports: [8080, 49183] should be listening)

(tests) - kogito-apps job #604 was: FAILURE
Possible explanation: Pipeline failure or project build failure
Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-apps/604/display/redirect
See console log:

Console Logs
[2022-07-15T07:04:26.622Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/packages/patternfly-base/node_modules/<EMAIL_ADDRESS>No such file or directory[2022-07-15T07:04:26.622Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/packages/patternfly-base/node_modules/<EMAIL_ADDRESS>No such file or directory[2022-07-15T07:04:26.622Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/packages/patternfly-base/node_modules/<EMAIL_ADDRESS>No such file or directory[2022-07-15T07:04:26.622Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/packages/patternfly-base/node_modules/<EMAIL_ADDRESS>No such file or directory[2022-07-15T07:04:26.622Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/packages/patternfly-base/node_modules/<EMAIL_ADDRESS>No such file or directory[2022-07-15T07:04:26.622Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/packages/patternfly-base/node_modules/<EMAIL_ADDRESS>No such file or directory[2022-07-15T07:04:26.877Z] 2.2G	/home/jenkins/workspace[2022-07-15T07:04:26.877Z] 0	/home/jenkins/.pki[2022-07-15T07:04:26.877Z] 137M	/home/jenkins/tools[2022-07-15T07:04:26.877Z] 0	/home/jenkins/caches[2022-07-15T07:04:26.877Z] 28M	/home/jenkins/.npm[2022-07-15T07:04:26.877Z] 629M	/home/jenkins/.gradle[2022-07-15T07:04:26.877Z] 0	/home/jenkins/.yarn[2022-07-15T07:04:26.877Z] 7.2G	/home/jenkins[Pipeline] }[Pipeline] // dir[Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Install build-chain tool)Stage "Install build-chain tool" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Build projects)Stage "Build projects" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Sonar analysis)Stage "Sonar analysis" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (check space after build)Stage "check space after build" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Declarative: Post Actions)[Pipeline] script[Pipeline] {[Pipeline] sh[2022-07-15T07:04:27.797Z] + wget --no-check-certificate -qO - https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-apps/604/api/json[Pipeline] readJSON[Pipeline] sh

(tests) - kogito-examples job #520 was: FAILURE
Possible explanation: Pipeline failure or project build failure
Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-examples/520/display/redirect
See console log:

Console Logs
[2022-07-15T07:04:35.666Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/node_modules/rxjs/observable/concat.js.map’: No such file or directory[2022-07-15T07:04:35.666Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/node_modules/rxjs/observable/defer.d.ts’: No such file or directory[2022-07-15T07:04:35.666Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/node_modules/rxjs/observable/defer.js’: No such file or directory[2022-07-15T07:04:35.666Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/node_modules/rxjs/observable/defer.js.map’: No such file or directory[2022-07-15T07:04:35.666Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/node_modules/rxjs/observable/empty.d.ts’: No such file or directory[2022-07-15T07:04:35.666Z] du: cannot access ‘/home/jenkins/workspace/KIE/kogito/main/pullrequest.quarkus-lts/kogito-runtimes.quarkus-lts.downstream.kogito-apps_ws-cleanup_1657868648164/bc/kiegroup_kogito_apps/kogito-apps/ui-packages/node_modules/rxjs/observable/empty.js’: No such file or directory[2022-07-15T07:04:35.666Z] 187M	/home/jenkins/workspace[2022-07-15T07:04:35.666Z] 0	/home/jenkins/.pki[2022-07-15T07:04:35.666Z] 137M	/home/jenkins/tools[2022-07-15T07:04:35.666Z] 0	/home/jenkins/caches[2022-07-15T07:04:35.666Z] 28M	/home/jenkins/.npm[2022-07-15T07:04:35.666Z] 629M	/home/jenkins/.gradle[2022-07-15T07:04:35.666Z] 0	/home/jenkins/.yarn[2022-07-15T07:04:35.666Z] 5.2G	/home/jenkins[Pipeline] }[Pipeline] // dir[Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Install build-chain tool)Stage "Install build-chain tool" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Build projects)Stage "Build projects" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Sonar analysis)Stage "Sonar analysis" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (check space after build)Stage "check space after build" skipped due to earlier failure(s)[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Declarative: Post Actions)[Pipeline] script[Pipeline] {[Pipeline] sh[2022-07-15T07:04:36.479Z] + wget --no-check-certificate -qO - https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-examples/520/api/json[Pipeline] readJSON[Pipeline] sh

Jenkins rerun kogito-apps tests

Jenkins rerun kogito-examples tests

dContext.getApplication

yep, we should migrate to use these config classes instead but would be another set of work

I need to test if, at runtime (and only at runtime), when using native, the variable being accessed needs to be defined as configroot. Maybe it is not and we must add to the configbean only those ones accessed during build time (by the extension).  Or do we want to add all known properties (regardless they are really needed there in order to work in native) regardless of the result of that test?

I think the Quarkus way to do this is to add all properties to the configroot and use that bean in the extension processor. That would mean not using KogitoBuildContext.getApplicationProperty in the extension but using the configroot object directly. It might need some tweaking to make that work with codegen modules.


Higher level topics search is slow

Issue
Higher level topics search is slow
What is the issue?
When searching for higher level topics (searching for >>) or use the link on the homepage takes long
< answer here >
Expected Behaviour
Results should be quick
Actual Behaviour
Results are slow
Steps to reproduce
Click https://www.opencre.org/search/>>
Perhaps we can cache this page as it is important

fixed in https://github.com/OWASP/common-requirement-enumeration/pull/178


Println output is truncated

I've tried this in 3 different browsers (Chrome, Firefox, Midori) with the same results. On Ubuntu 14.10, using console version 1.5.5 with Grails 2.3.10. Enter this in the debug console window and press Ctrl-Enter or click the Execute button:
println "This is the time for all good men"
println "to come to the aid of their country"
Output window shows:
This is the time for all good men
t
≫null                                                                                [22 ms]
Seems that anything after the first println gets truncated and not always to the same lengths. I originally saw this in 1.5.2 and thought upgrading would fix it. Have been using this plugin for a few years and never saw this before.

I'm not sure why this would be. I've never seen it. It might have something to do with the system out interceptor. I just pushed a new version that has an out variable bound. Can you try using out.println instead of println and see if that makes a difference?

No difference with 1.5.6 using either println or out.println. Other observations: it seems to output fully whatever I put in the first line, but playing with the length of the lines creates some odd results. I don't quite see a pattern in it. Are you able to reproduce this, or is it just happening to me?

No, I can't reproduce. Can you check in the developer tools and see if the full output is being returned in the XHR response?

Odd. So it must be something with my system or with our particular Grails project. I'll try it on another box and/or project soon. The form data XHR request (unparsed) is:
autoImportDomains=false&code=println+%22Now+is+the+time%22%0Aprintln+%22For+all+good+men%22
The output response is:
{"totalTime":27,"output":"Now is the time\n\n","result":"null"}
I'm also getting this error in my Grails window. I doubt it is related but including it for completeness:
ERROR resource.ResourceMeta  - Resource not found: /plugins/console-1.5.6/dist/release/backbone.marionette.map


Quest GUI cant read the text.

Hey.
Can you do something that i can read the quest text?
Maybe to edit the place in the GUI there the item is
http://prntscr.com/6bepka

You can edit this in your quests.yml, search for "gui-display".

But my Gui-display looks like this...
http://prntscr.com/6bhvw9

Isn't that for a different quest than the one in the image? You can edit or remove the lore.

Thats my Quest.yml
http://hastebin.com/osebapagef.sm

So it's showing you the ask-message instead? Strange. I'll re-open this and load up your config later.

Apparently this is intentional. To get around this, the next dev build will check if there's any lore on the item when a GUI is displayed. If there is lore, it will show that lore instead of the ask-message. Thanks!


Record Mode

There are a few tools and methods out there which help users generate API description documents from actual traffic/json running through a system. This is not an ideal workflow, but a handy crutch for getting old systems caught up with the new systems which are design-first.
Approach A: CLI only
Prism CLI now got a proxy server in v3.2, and this gives us a chance to snoop on traffic. By adding a new --record switch, we can enable a special RecordService which will convert any requests and responses, along with all headers, status codes, etc. into http-spec operations.
All learning should be an upsert of whatever is there when the server is started, instead of just replacing them. For example, a request with "foo": "bar" and then "foo": 123 should be writing oneOf's to support both those types, and not just replacing with whichever came in second.
When the server is closed, show various chunks of a potential diff we'd like to apply, and ask y/n for each chunk of diff to see if it is ok.
Pros:

Doing it all in Prism means fewer moving parts, and only one team on the task
Updates the exact file being worked on by that dev, and they can then commit it, no confusion about switching to a web app

Cons:

Adds a fair bit of complexity to Prism, which is going to need to know how to merge and write back changes to the file. If we are applying a diff we need to know how to create that diff, and if we do anything else we have to make sure we arent messing up any formatting or making unintended changes to their file

Approach B: Record Requests via Stoplight.io
Prism CLI could have a --report-traffic switch which defaults to sending proxy traffic back to stoplight. Assuming you have an account set up (we'll need to figure out prism login like v2 had) it can report traffic back to us, and we save them as general "requests". Adding "prism-cli" as one more source of traffic to a more generic requests database means we can do quite a lot of things.
Contract Testing
We noticed a discrepancy in your descriptions vs reality, would you like to panic? Where should we send these alerts?
Improvements in Studio
Studio offers improvement suggestions for various nodes and models: "Add this to xyz api" which would turn it into an openapi 2/3 operation object and add it to the file. or "add this to xyz requests file" which would basically add it to the equivalent of a postman file. This starts to get the original "learning" feature we have in classic.
Pros:

a larger general intelligence system will make for more robust learning, which can be useful for studio and explorer users, and everyone who is sending traffic via Try it Now, etc as well as prism users
Will work with OpenAPI v2, v3, if we add RAML, etc.

Cons:

Requires a stoplight account instead of being CLI only
Experience is a little odd due to larger feedback loop: do a thing in CLI, go to web view, etc.

https://github.com/opticdev/shape-hash could be useful here.
I'm interested in using this for Saasify btw.
Keep up the great work! 😄

This is happening but this isn't where we plan it. Moving a lot of the logic higher up into http-spec and other parts of the ecosystem, which will mean this can be done far easier in Prism.


Request Like, Comment, Subscriber via Geckodriver cookies

Great youtube bot. Please add auto like, subscriber, comment via geckodriver firefox profile (login via cookies to like, sub, comment as another bot)
Thank you

I'm not sure I can do this. If anyone can a PR would be welcome.
Anyway where do I find cookies to login?

When you logged into Gmail via firefox, it saved cookies in file cookies.sqlite:
C:\Users<USER>\AppData\Roaming\Mozilla\Firefox\Profiles<XXXXXXXX>.default-release
So, when you use geckodriver, it already logged in.  You can like, comment, and subscriber
Sorry,  I'm not a developer @@ so I not enough level to edit your code.

No this script uses proxy to watch your own videos. So nothing good will come using login method.

Thank you very much.


can't see variables

Description
What steps will reproduce the problem?

What is the expected output? What do you see instead?
Please provide any additional information below
File "F:\Users\masha\Anaconda3\lib\site-packages\spyder\widgets\variableexplorer\dataframeeditor.py", line 260, in get_value
value = self.df.iat[row, column]
File "F:\Users\masha\Anaconda3\lib\site-packages\pandas\core\indexing.py", line 2142, in getitem
return self.obj._get_value(*key, takeable=self._takeable)
File "F:\Users\masha\Anaconda3\lib\site-packages\pandas\core\frame.py", line 2530, in _get_value
return com._maybe_box_datetimelike(series._values[index])
File "F:\Users\masha\Anaconda3\lib\site-packages\pandas\core\common.py", line 87, in _maybe_box_datetimelike
value = tslib.Timestamp(value)
File "pandas_libs\tslibs\timestamps.pyx", line 635, in pandas._libs.tslibs.timestamps.Timestamp.new
File "pandas_libs\tslibs\conversion.pyx", line 300, in pandas._libs.tslibs.conversion.convert_to_tsobject
File "pandas_libs\tslibs\conversion.pyx", line 394, in pandas._libs.tslibs.conversion.convert_datetime_to_tsobject
File "pandas_libs\tslibs\np_datetime.pyx", line 121, in pandas._libs.tslibs.np_datetime.check_dts_bounds
pandas._libs.tslibs.np_datetime.OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 9999-12-31 00:00:00
Traceback (most recent call last):
File "F:\Users\masha\Anaconda3\lib\site-packages\spyder\widgets\var

This is not a problem with Spyder, it's an installation issue with Pandas.
If you used pip to install/update any package present in Anaconda, you most probably corrupted your installation and now you have to reinstall it.


[Unit test failure] Module symbol is not re-imported if the corresponding library is re-imported with dy_import_module_symbols

Testing on Linux
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

$ python utf.py -f ut_seattlelib_dylinkrepyportabilityimportmodulesymbols.py
Testing module: seattlelib
	Running: ut_seattlelib_dylinkrepyportabilityimportmodulesymbols.py [ FAIL ]
--------------------------------------------------------------------------------
Standard out :
..............................Produced..............................
Unexpected contents in variable: local override (expected examplelib-repy.r2py's foo)

..............................Expected..............................
None
--------------------------------------------------------------------------------
$

The test case that is failing:
https://github.com/SeattleTestbed/seattlelib_v2/blob/master/tests/ut_seattlelib_dylinkrepyportabilityimportmodulesymbols.py#L19-L21
The commit that introduced this unit test, and the test case that fails:
https://github.com/SeattleTestbed/seattlelib_v2/commit/e33ffa8d7a54063fddb782c896d3877173eecd55

See SeattleTestbed/portability#27. This test (and compaions) was made to demonstrate a current shortcoming (i.e. dy_import_module_symbols does not work correctly) versus the way Python handles these issues, so that we are gently reminded to fix this behavior.
However, the functionality is seldom used (if at all), limiting the repercussions of the problem.

I did not know that this was a known limitation of dy_import_module_symbols() (sorry about that, I should have asked).  I will add a NOTE or TODO to the comment here, and in companion modules, so it's clear that this test condition is currently expected to fail.

Apologies, I should have thought about adding a note myself.
Re why it was hard to find this information in the first place: The tests were committed to SVN "back in the days", and it looks like linking between the issues (ported to GitHub) and commits (SVN r+number vs Git hash) leaves something to be desired.

The problem is not yet solved, but moved to the appropriate place now: SeattleTestbed/portability@dc680699be2b02a56b56c10c782799efd8ae7e57, and also has an issue there, SeattleTestbed/portability#27. Thanks!


Create Event UI View

UI ready. Most likely there will have to be some changes to UI later when we have some functionality.


Remove boost-cpp from run requirements (provided by pin_run_as_build).

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

This was a requested change from the recipe review on staged-recipes.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

If python is a host requirement, it should be a run requirement.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


[32] Changes application start and end dates in db

Context

https://trello.com/c/d79wSVBk/32-check-that-the-when-will-applications-open-error-message-displays-the-correct-dates

The validation for ensuring users enter a valid date when adding a new course was wrong for the 2020 to 2021 recruitment cycle. It was using the same day/months as the 2019 to 2020 cycle when they needed to be changed.
Changes proposed in this pull request
The last entry in the application start and end date columns in the recruitment cycle table was changed using a migration to  the correct day/months as per ticket.
Guidance to review
Add a new course to next year's recruitment cycle and trigger the validation
Checklist

[X] Make sure all information from the Trello card is in here
[X] Attach to Trello card
[X] Rebased master
[X] Cleaned commit history
[X] Tested by running locally

 [S] check that the 'when will applications open' error message displays the correct dates.


Make MAX_FILE_UPLOAD_SIZE=0 hide the file upload UI

We got a question here: https://chat.zulip.org/#narrow/stream/138-user-community/topic/Disable.20File.20Upload/near/733879 about how to disable file uploads in Zulip.  I believe setting MAX_FILE_UPLOAD_SIZE in https://zulip.readthedocs.io/en/latest/subsystems/settings.html would achieve that goal, but it'd have the somewhat awkward setup of having UI elements for file upload that could confuse users.
I think it's probably worth the relatively small project of making this UX a little cleaner in the webapp, by:

Hiding the "upload" icon in the compose and message edit UIs
Hiding the "Attachments" menu in "/#settings"
Maybe if it's easy providing a special error message if someone tries to paste or drag a file into those widgets UIs.

I don't think this feature is high priority, so this issue is just about doing the easy things to make the UX a little cleaner here.
While we're fixing this, the error message always shows 25MiB:
static/js/upload.js:            msg = i18n.t('"__file_name__" was too large; the maximum file size is 25MiB.', context);
That value is available in page_params as maxfilesize; so I think someone should do a quick PR that:

Renames maxfilesize to max_file_upload_size for consistency.
Makes that i18n.t line use the actual value of max_file_upload_size so the error message isn't wrong.

@skunkmb FYI in case you're interested in this as someone who's done a lot of work on the compose/upload UI.

Also worth changing MiB to MB while we're looking at it.

Given the code, the units actually are MiB, not MB.

yeah, I think the code should be generous (i.e. we should accept a file if their filesystem or whatever is giving them a number under 25), and it's not a big deal if the error message is more strict.

@zulipbot claim

@zulipbot An initial PR will be up by the end of this week.


Getting error on disconnect

Hello,
I am using this library on RockPi 4B v1.3 and OS is Debian 9 Desktop.
On disconnect I'm getting below error. We have used nRF Connect App, our own mobile apps for the testing. With all the apps we are getting same error. If I moved the device out of the range, I get the same error.
bleno.on('disconnect', callback (clientAddress) also not worked.
Can you please check and help me to handle it error or solve the issue.

/home/linaro/SM/node_modules/bleno/lib/hci-socket/gatt.js:283
this._handles[i].uuid === '2902' && this._handles[i].value.readUInt16LE(0) !== 0) {
^
TypeError: this._handles[i].value.readUInt16LE is not a function
at Gatt.onAclStreamEnd (/home/linaro/SM/node_modules/bleno/lib/hci-socket/gatt.js:283:6
at emitNone (events.js:111:20)
at AclStream.emit (events.js:208:7)
at AclStream.push (/home/linaro/SM/node_modules/bleno/lib/hci-socket/acl-stream.js:28:1
at BlenoBindings.onDisconnComplete (/home/linaro/SM/node_modules/bleno/lib/hci-socket/b
154:21)
at emitTwo (events.js:126:13)
at Hci.emit (events.js:214:7)
at Hci.onSocketData (/home/linaro/SM/node_modules/bleno/lib/hci-socket/hci.js:520:12)
at emitOne (events.js:116:13)
at BluetoothHciSocket.emit (events.js:211:7)

Can you please help me?

you still have this problem? I have got same thing.
so I remove && after code.
this._handles[i].value.readUInt16LE(0) !== 0
YOURDIRECTORY/node_modules/bleno/lib/hci-socket/gatt.js:283
No other problems occurred. But I'm not 100% sure.


null-ls dignostics are not working

i am using null-ls for formatting and linting i have used the telescope community plugin for the projects it had problems with detecting and right configuration for lsp so i tried this plugin it works great but it has only one problem it does not attaches the null-ls dignostics to the buffer

and this is my config file https://github.com/imSafdarAwan/Dnvim/blob/a26ffa81fcff12d8a7388c84ade8d9abcd57e6f6/nvim/.config/nvim/lua/plugins/init.lua#L48

it does not attaches the null-ls dignostics to the buffer

Hum, I don't that's a problem with project.nvim though? The only thing project.nvim does is cd into the root of the active lsp servers.

@ahmedkhalf is right. This is not the responsibility of project.nvim. It does not deal with setting up language servers for projects. That is the responsibility of the LSP frontend you are using (null-ls for your case). I think we can close this issue.


Action: Web (action): Support alias key "web" in addition to "web-export"

See: https://github.com/apache/incubator-openwhisk/blob/master/docs/annotations.md
This allows wskdeploy to match the CLI and offer a "simpler" name.

This enhancement needs an additional member in Action struct at https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/parsers/yamlparser.go#L106. Define web in addition to web-export with:
Web  string  `yaml:"web"`

Define a new function getWeb() similar to getProject() at https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/parsers/yamlparser.go#L228.
Replace all the occurrences of Action.Webexport with Action.getWeb()


Featured Works only Shows When Logged In

If I navigate to SS QA New and am not logged in, the featured works are not featured.

@mtribone This is strange.  Are you sure you are looking at the same machine?  When I tried this there was nothing feature on https://scholarsphere-qa.libraries.psu.edu but there was a feature on https://scholarsphere-qa.dlt.psu.edu

@cam156 My bad. If you look at the screen shot, I was on dlt and not libraries.


date is not being presented accurately

For some reason, some of the dates I'm using are showing up as the previous day. An example:
frontmatter on file The Journal of Lucien Rigault.md:
---
date: 1789-06-01
---

this is my query
table date
from "my folder"
where (date != null)
sort date desc

Problematic result:
The Journal of Lucien Rigault | Sun, May 31, 1789
What is odd is that this is working for some more modern entries Jan 1, 1893 and Jan 5, 1924

That is... very odd. The only thing I can think of is that Luxon - the date library that dataview uses - is internally adjusting the parsed date. Perhaps shifting it based on some calendar change? I will look if it's possible to disable...

I'm having a very similar problem. I'm using just year-month, and it's rendering as the previous month. For example, 0096-10 is rendering as March 1, 0096. The year is completely arbitrary and I can change it if I need to.

Well, the date might not be totally arbitrary if it's a very old one - are we talking years in the past century, or more than >200 years ago?

Well, I mean that it's arbitrary in the sense that it exists in a vacuum and has no real meaning. The project it's for is completely fictional and the characters in it don't have the human concept of keeping time, so the dates are just to build a timeline of events, for consistency, and my own sanity. I only picked 0100 as my baseline because it was far back enough that I didn't associate anything else with it and there was room to go back a ways farther. I could change all the dates to 3000 years in the future and it would be perfectly fine.

Is this still reproducible?

Hello,
I cannot reproduce this anymore. Since there was no feedback to AB's question, I'll close the issue as not reproducible (anymore). If you still see any problem here, please comment on the issue with details on what is not working as expected and I'll reopen your report.


Error installing: "Fail to load plugin descriptor from file HakunaMatata.jar"

1. Steps taken to see the issue.
On Android Studio 2.1.2:
Go to File > Preferences > Plugins.
Click Install plugin from disk.
Search for HakunaMatata.jar and click on it.
Error message appears.
2. Observed behavior.

3. Expected behavior.
Install the plugin.
4. Device and OS.
Android Studio 2.1.2 on Mac OSX 10.11.12
5. Can you reproduce it? How often: 100% of the time, 50%, just.. sometimes?
100%

Fixed: https://github.com/cesards/HakunaMatataIntelliJPlugin/commit/0f892e7a03786eb146406621ff2b9f83dfae80c1


Auth registerWithUniqueUsername username shouldn't be optional

It's not so important but If we set register with unique username the username shouldn't be optional but generate an exception with "invalid username" or is nonsense to select this option and have in db users with null username.
I wanna use username with unique rather than email because I consider more strong. I fix to return an error if username is null or client side as required so don't continue with the submit.
I report to you but maybe it is a desired choice.
Thanks.

Thanks!
Not totally sure about this. Your point makes sense, of course. But in the current form, it should allow for both a unique username or null (i.e. an empty username should always be valid).
That was desired behavior, because some may just want to prevent duplicate usernames, which you don’t have if a user chooses not to have a username at all.
If you don’t want to allow that, you can simply wrap a check like !empty($username) around the registration, which is a quick fix of two lines.
On the other hand, we can easily change the behavior in the authentication component as well, probably with three lines. And if we don’t do this, we should perhaps document this in the README.
By the way, it’s probably better if you submit issues for specific components that have their own repository (like the authentication component) in that specific repository.

Yes what I am using in my case !empty($username) or return an error. You are right too if wanna use username but not required field become a reverse problem.
So not need to open in Auth but I think you can close. :)
PS. I'll keep in mind to post in relative repository my posts.
Thank you again for your fast feedback.

Sounds good. We’ll leave the current behavior for now, and will revisit this issue later if we change our minds and want to require usernames when they’re supposed to be unique. Thank you!


Evaluation to plot confidence histogram for hits and misses

Currently, the evaluation script (evaluate.py) plots a histogram of intent prediction confidences but does not differentiate between the confidences of those predictions that were right or wrong.
Potentially we could allow for an argument to allow plotting a histogram with two columns per bin showing the confidence distribution for hits and misses as different bars.
This would help to visualize how error confidences distribute when compared to correct prediction confidences.
If this is something that would be of interest I am happy to create a PR.
Something like this for example:

Yes this looks like a super useful improvement, please go ahead and create a PR and make sure to reference this issue when doing so 🙂

Fantastic @akelad, thanks for your answer. Will do so!


OverlayView is completely rebuilt even if props don't change

I think I found the bug that causes this.
This is line 149 in OverlayViewCreator.js:
this.getOverlayView()._redraw(this.props.mapPaneName !== prevProps);
Pretty clear what the bug is. The condition is always going to be true.

Glad to be of service :)

Released v4.3.3


Upgrade Closure Compiler to v20181028

The type interfaces are gone in favor of direct references to the type
implementations.
Updated React type defs a little since the new version of GCC now
realizes that a child in createElement can end up as null or undefined
and undefined was missing in the type definition.

Let me finish the Quip side of this before landing

Please merge when you get the chance


[Feature request] Step-level exit handler information

Summary
Step-level exit handlers should include context regarding the step they are attached to.
Support:
https://github.com/argoproj/argo/issues/4138
https://github.com/argoproj/argo/issues/3348
Use Cases
Given https://github.com/argoproj/argo/blob/master/examples/exit-handler-step-level.yaml
I would want information populated by the step completion to be available (e.g. anything from https://argoproj.github.io/argo/variables/#steps-templates)
So that I can do things like report incremental workflow status
For example: pretend I have a long-running workflow with e.g. 20 steps and an application that would like to monitor the workflow - I'd like to use exit handlers attached to every step that can make an API request/post to a message queue/etc to the application with information about the step that just completed.

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

You can use ResourceEventSource from Argo Events to do it.

Sure, that works for statuses, but afaik there's no insight into outputs/exit status/etc

Similar to @matt-carr, was surprised this didn't work since there was a specific example for adding an exit handler to individual steps. I would have expected the exit handler to have access to the current step's context. Thanks for raising this

#5455 will resolve this use-case

😍 watching eagerly

Nice feature +1 Is it already available in Argo 3.0.7?

https://github.com/argoproj/argo-workflows/commit/c59f59ad0e7609cf8b87d6733f73efa9ccf44484 is the relevant commit so looks like it's only available in 3.1.


Can't compile bot binary

Hi,
I am currently working on undergrad research, looking into botnets. I am having issues compiling the bot binary following all the instructions I could find -
root@raspberrypi:/home/pi/Desktop/CSEThesis/mirai# bash ./build.sh debug telnet
/usr/bin/ld: /tmp/cc8RXoIj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/cc4mREOi.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/ccG6mkyk.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/ccCn47el.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/cco0GVwk.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/ccvHdnBk.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/ccCzEm8i.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/ccQa6XAl.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/cc2BIZwj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/ccBTihNj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/cctYZdak.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here
/usr/bin/ld: /tmp/ccwCPxpk.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: multiple definition of `LOCAL_ADDR'; /tmp/ccMRLLkj.o:/home/pi/Desktop/CSEThesis/mirai/bot/includes.h:33: first defined here

Am I missing something here?

Hi, i pushed a fix. I don't know how it ever worked the way it did but it should work now.


Error when working with derived classes

Describe the bug
My EF Core model has entities that use inheritance. Deteached seems to fail when working with these classes.
Whenever it needs to map an object that has children that use inheritance, it tries to instantiate the base class, instead of using one of the derived classes, giving an error if the base class is abstract (or building the incorrect object anyway if it is not).
To Reproduce
Define a EF Core model that uses inheritance, like for example:
modelBuilder.Entity<TaskTriggerBase>()
                .HasDiscriminator(x => x.TriggerType)
                .HasValue<TaskTriggerCron>(TaskTriggerType.CronSchedule)
                .HasValue<TaskTriggerReactiveQlik>(TaskTriggerType.AfterQlikTask)
                .HasValue<TaskTriggerReactiveEpr>(TaskTriggerType.AfterEpReporterTask);
modelBuilder.Entity<TaskTriggerCron>();
modelBuilder.Entity<TaskTriggerReactiveEpr>();
modelBuilder.Entity<TaskTriggerReactiveQlik>();

and have an entity like this:
public class Entity{
  [Composition]
  public IEnumerable<TaskTriggerBase> Triggers {get; set;} //this collection can contain instances of any subclass of TaskTriggerBase
  //... other properties...
}

then, try to map it with Deteached. You will get an error like this:
System.InvalidOperationException: 'Can't construct TaskTriggerBase. It does not have a parameterless constructor or a concrete type specified.'
Expected behavior
Deteached should check the actual instance type of the entities and instantiate the correct subclass instead of the base class.
Additional context
Using EF Core 6 on .NET 6, latest version of Deteached available on NuGet.

Hi @tarockx, thank you for the feedback! I'll be able to work on this next friday.

Hello @leonardoporro , have you had any chance to look at this? Any progress?

Hi @tarockx,
Yes, some progress... would you like to give it a try?
It's not completed, so for the moment, the discriminator needs to be set up in Detached too.
Please take a look here.
If it works, next step would be to create a Convention to copy the configuration automatically.
Sorry for the delay, I have very limited time to work on this.

published 6.0.5, it doesn't need to be manually configured anymore.. (if it works).

Thank you for your work, really appreciated, I will surely test it as soon as I have the time and provide feedback

Hello Leonardo.
From my preliminary tests, I can confirm it seems to be working correctly! Thank you very much for your work and dedication 👍

This works for me...
using System.ComponentModel.DataAnnotations;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Detached.Mappers.EntityFramework;
using System.Diagnostics;

namespace Test
{

    public class Program
    {
        public static async Task Main(string[] args)
        {
            TestDbContext context = await TestDbContext.CreateAsync("inheritance_test");

            var r1 = context.Map<RollenBase>(new BauvorhabenKontaktRolleDTO
            {
                Id = 1,
                Name = "kontakt",
                RollenTyp = nameof(KontaktRolle)
            });

            var r2 = context.Map<RollenBase>(new BauvorhabenKontaktRolleDTO
            {
                Id = 2,
                Name = "bauvorhabenKontakt",
                RollenTyp = nameof(BauvorhabenKontaktRolle)
            });

            var r3 = context.Map<RollenBase>(new BauvorhabenKontaktRolleDTO
            {
                Id = 3,
                Name = "personalRolle",
                RollenTyp = nameof(PersonalRolle)
            });

            Debug.Assert(r1.GetType() == typeof(KontaktRolle));
            Debug.Assert(r2.GetType() == typeof(BauvorhabenKontaktRolle));
            Debug.Assert(r3.GetType() == typeof(PersonalRolle));

            Console.WriteLine("it works!");
        }
    }

    public abstract class RollenBase
    {
        [Key]
        public int Id { get; set; }

        public string RollenTyp { get; set; }

        public string Name { get; set; }
    }

    public class BauvorhabenKontaktRolle : RollenBase
    {
        public int RollenId { get; set; }

        //some props
    }

    public class KontaktRolle : RollenBase
    {
        public int RollenId { get; set; }

        //some props
    }
    public class PersonalRolle : RollenBase
    {
        public int RollenId { get; set; }

        //some props
    }

    public class BauvorhabenKontaktRolleDTO
    {
        public int Id { get; set; }

        public string Name { get; set; }

        public string RollenTyp { get; set; }
    }

    public class TestDbContext : DbContext
    {
        public TestDbContext(DbContextOptions<TestDbContext> options)
            : base(options)
        {
        }

        public DbSet<RollenBase> RollenBases { get; set; }

        protected override void OnModelCreating(ModelBuilder mb)
        {
            mb.Entity<RollenBase>()
                .HasDiscriminator(r => r.RollenTyp)
                .HasValue<KontaktRolle>(nameof(KontaktRolle))
                .HasValue<BauvorhabenKontaktRolle>(nameof(BauvorhabenKontaktRolle))
                .HasValue<PersonalRolle>(nameof(PersonalRolle));
        }

        public static async Task<DbContextOptions<TestDbContext>> CreateOptionsAsync([CallerMemberName] string dbName = null)
        {
            var connection = new SqliteConnection($"DataSource=file:{dbName}?mode=memory&cache=shared");

            await connection.OpenAsync();

            return new DbContextOptionsBuilder<TestDbContext>()
                    .UseSqlite(connection)
                    .UseDetached(cfg =>
                    {

                    })
                    .Options;
        }

        public static async Task<TestDbContext> CreateAsync([CallerMemberName] string dbName = null)
        {
            var context = new TestDbContext(await CreateOptionsAsync(dbName));
            await context.Database.EnsureCreatedAsync();
            return context;
        }
    }
}

Added another fix in 6.06

Hi Leonardo ;) thank you very much for your help.
After upgrading it works fine now.

Inheritance works better in version 6.1.0. Also handling abstract types has been improved.


Add bf16 complex dot product for NEON

The vbfmlaltq_f32 and vbfmlalbq_f32 already have the benefit of skipping odd/even entries.

The complex dot product exists for neon, but we aren't using those intrinsics which work on odd and even entries.  The complex vector is real, imag, real, imag,,,  so we can do arbr and aibi simply.
Original
//ab_real += ar * br - ai * bi;                                                                              \
//ab_imag += ar * bi + ai * br;
ab_real_vec = vfmaq_f32(ab_real_vec, a_real_vec, b_real_vec);
ab_real_vec = vfmsq_f32(ab_real_vec, a_imag_vec, b_imag_vec);
ab_imag_vec = vfmaq_f32(ab_imag_vec, a_real_vec, b_imag_vec);
ab_imag_vec = vfmaq_f32(ab_imag_vec, a_imag_vec, b_real_vec);

New looks like this perhaps
    ab_real_vec = vbfmlaltq_f32(ab_real_vec, a_vec, b_vec);
    ab_real_vec = vbfmlalbq_f32(ab_real_vec, vnegq_bf16(a_vec), b_vec);  // ar*br + (-ai*bi)

    ab_imag_vec = vbfmlaltq_f32(ab_imag_vec, a_vec, vrev32q_bf16(b_vec));   // vrev32q swaps imag and real
    ab_imag_vec = vbfmlalbq_f32(ab_imag_vec, a_vec, vrev32q_bf16(b_vec));  // ar * bi + ai * br;

Indeed, you are right! I suppose the new version must be a lot faster, right?

10% faster.   There are not bf16 versions of the neg and rev32 so we still have to jump through hoops.  I confirmed that the new function's output matches the old and the tests pass.  Will take a look to see if we can do this better before making a PR.
Assembly code:  https://godbolt.org/z/4hzr9f943
        // ar*br + (-ai*bi)
        ab_real_vec = vbfmlaltq_f32(ab_real_vec, a_vec, b_vec);
        //ab_real_vec = vbfmlalbq_f32(ab_real_vec, vreinterpretq_bf16_f16(vnegq_f16(vreinterpretq_f16_bf16(a_vec))), b_vec);
        ab_real_vec = vbfmlalbq_f32(ab_real_vec, vreinterpretq_bf16_u16(veorq_u16(vreinterpretq_u16_bf16(a_vec), vdupq_n_u16(0x8000))), b_vec);

        // vrev32q swaps imag and real
        // ar * bi + ai * br;
        ab_imag_vec = vbfmlaltq_f32(ab_imag_vec, a_vec, vreinterpretq_bf16_u16(vrev32q_u16(vreinterpretq_u16_bf16(b_vec))));
        ab_imag_vec = vbfmlalbq_f32(ab_imag_vec, a_vec, vreinterpretq_bf16_u16(vrev32q_u16(vreinterpretq_u16_bf16(b_vec))));

Interestingly, the godbolt.org snippet you've provided breaks Clang 18.1 if you add -O3. Without it the assembly contains a lot of noise, a bit hard to read. Still, @MarkReedZ, the source looks really good! Was hoping it would be at least 20% 😢

Good catch I was playing around with another compiler on there.
Ubuntu 24.04's clang 18.1 sees the same bug when building this code.   Issue opened:  https://github.com/llvm/llvm-project/issues/107810
I'll try to move code around to avoid this later.

Clang is choking on the flipping of the sign bit.  I haven't come up with an alternative to these two.   No amount of moving code around fixes the clang bug if veorq and vnegq are used to flip the bit.
       //ab_real_vec = vbfmlalbq_f32(ab_real_vec, vreinterpretq_bf16_f16(vnegq_f16(vreinterpretq_f16_bf16(a_vec))), b_vec);
       ab_real_vec = vbfmlalbq_f32(ab_real_vec, vreinterpretq_bf16_u16(veorq_u16(vreinterpretq_u16_bf16(a_vec), vdupq_n_u16(0x8000))), b_vec);

Hi @MarkReedZ! Any chance you have an update in this?

This is fixed in clang 19.1.  I'm not sure what our approach to handling this should be as 18 will remain the default for some time.  We could check the clang version number defines though apparently in some cases those may by overridden.

@MarkReedZ, c an you please submit a PR that works with 19, and I'll try a few more ideas around your prototype?


Change wording of indication

"SSTI or UTI without sepsis" instead of Non-life threatening?

New options should include:

Skin and Soft Tissue Infections and Urinary Tract Infections WITHOUT Concurrent Sepsis
Serious Infections (e.g. sepsis, bacteremia, endocarditis, osteomyelitis, pneumonia, meningitis)
Severe sepsis, septic shock, critically ill (applies to loading dose only)


added support for 1s timeframe

made the 1s timeframe available for use and added appropriate enum.
fixes Issue #1309

Thanks @LeoThern


Hide internal failure details behind a less scary error message

https://github.com/gradle/gradle/issues/8480
Hide internal failure details behind a less scary error message.
Expose the root cause exception message in the second line.
Make sure stack trace can be logged when native services fail to initialize.
I am not sure if this naive implementation is good enough for now - feedback very welcome.

This mostly looks good, but I think this failure (and others like it) are coming from this change:
https://e.grdev.net/s/jhqxatxsfqkwg/tests/g7vrc35ygulfc-jekfvouregxzs
I tried merging master into this PR and kicked off a CI build with that and I see the same failures in other tests.  I'm not quite sure how your changes are causing this because it seems non-deterministic, but I'm going to keep looking when I'm back around Thursday.

Looks like something in this change breaks instant execution: https://builds.gradle.org/viewLog.html?buildId=31388385&buildTypeId=Gradle_Check_Instant_20_bucket18&tab=buildResultsDiv
It was green a couple of days back.


Package request: Easystroke

Easystroke
X11 Mouse Gestures

homepage URL: https://github.com/thjaeger/easystroke
source URL: https://github.com/thjaeger/easystroke
license: ISC
platforms: linux

unfortunately it's unmaintained: https://github.com/thjaeger/easystroke/wiki
seems like it's not been updated in 7 years

Unless there's a specific issue with it other than being unmaintained upstream (i.e. security), that's not a reason for exclusion IMHO.


Crash when specifying a "*" as the command line argument

For example:
djv2 img/*

This was causing an out of memory crash where the "auto-detect file sequences" setting was opening each individual file as the full sequence. For example if you did this with an 800 file directory, 800 sequences would be opened and the app would crash.
I've fixed this so that when the "auto-detect file sequences" setting is enabled (the default), the command-line arguments will be matched against each other to form file sequences before they are matched with files in the directory. I've also added a maximum number of files which can be opened at a time (16).
So for example, with "auto-detect file sequences" enabled and a directory with the sequences, "render.1-100.exr", render2.1-100.exr", and "render3.1-100.exr":

djv render.1.exr
Opens the sequence "render.1-100.exr"

djv *
Opens the sequences "render.1-100.exr", render2.1-100.exr", and "render3.1-100.exr".

djv render.30-40.exr
Opens the sequence "render.30-40.exr".

With "auto-detect file sequences" disabled:

djv render.1.exr
Opens "render.1.exr"

djv *
Opens the first 16 files.

djv render.30-40.exr
Opens the sequence "render.30-40.exr".


Fix not working for binary response in httpx

The httpx_reponse.content.decode("utf-8", "ignore") would corrupt binary content that can't decoded to unicode. We should serialize the binary content directly in that case.
A better way to fix this is probably is set the content to response["body"]["string"] because vcr.serializers.compat.convert_to_unicode() and vcr.serializers.compat.convert_to_bytes() handle the bytes / unicode conversion of that field. But that will change the cassette format for httpx. I guess you guys can consider that when implementing #463.

I suggest we close this one in view of #784


Add a way to convert tokens for scalars in PHP code to PHP equivalents (int/float/string/bool/null literals)

(For the usability phase)
Motivations:

Language server may need to extract values from the AST for conditionally emitting warnings

API doesn't provide a way to convert a token fragment for a literal to the scalar it represents

Need to trim strings and numbers manually in order to extract them, may not notice edge cases

Various edge cases that would be time consuming to re-implement in projects using the parser, such as converting the tokens used to represent parts of    "Multi $varName part" into individual parts without losing this "Multi "
And the various forms of heredoc
And removing backslashes, escaping

There are multiple forms of integers, those forms may change in future releases

Possible API:
Token->representsScalarLiteral(): bool (Checks TokenKind)
Token->asPHPScalarForLiteral() : int/float/string/bool/null (Throw exception if representsScalarLiteral() would be false.

Yes, this would be useful. Are you using tolerant-php-parser for a project currently? Evaluating it?

I was considering using that. Currently, I'm using https://github.com/TysonAndre/php-parser-to-php-ast (Based on nikic/php-parser) for https://github.com/phan/phan/pull/1110
https://github.com/TysonAndre/tolerant-php-parser-to-php-ast is a broken work in progress, converting from one AST to another involves a lot of time. (Haven'tt fixed parts copied from my other project)

Cool. Parsing invalid PHP is an explicit design goal of this project, so https://github.com/phan/phan/pull/1110 sounds like a good usecase for it.
There are some parts which are not fully fleshed out, like the issues you've opened. I'd be happy to support you if something is blocking you or if you want to work on a PR for one of these issues.

Major blockers include:

extracting scalars(could probably hack together the common case with filter_val(FILTER_VALIDATE_INT) and unescaping backslashes(e.g. use php-parser's code for that)
extracting doc comments for methods, closures, etc. even with things in between (probably doable by walking the tree)
grammar bugs - invalid statements like 2 = $x may generate nodes that cause unexpected exceptions or errors

Other issues won't be known until this is close to done.

See https://github.com/TysonAndre/tolerant-php-parser-to-php-ast/blob/53e2b53707e98090be9430332b7929054f9bf902/src/TolerantASTConverter/TolerantASTConverter.php#L835 for an attempt at this, currently relies on php-parser's implementation.


👋 Thanks: using your version, recommended an adjustment

Hello JAakkoL
Thanks for your efforts bro, it saved me time researching
I have built a dockerized version to expose an API endpoint around your code https://github.com/6degrees/py_dockerized_scrypt_hasher
I have also created a pull request if you're interested to implement, when using parameters as part of a GET request, that adjustment is needed to avoid errors when the salt contains a - or + or any other random URL style characters that might mean something else to a base64 decoder.
Cheers.

Discussed here: https://github.com/JaakkoL/firebase-scrypt-python/pull/2


Incorrect listed numbers on .30 Ammunition Box

Description
The .30 Ammunition box in the uplink is listed to have 50 rounds, but when you purchase it, it has 60 rounds.
Reproduction

purchase a box of .30 ammo and inspect it

Screenshots

Additional context

already fixed by someone

wait, thats me being silly, whatever, I'm making a fix


Link metabolites back to genes

In many cases it would be useful to see what reactions and subsequent genes are related to the metabolites in FlyMet. This way we could link back to FlyAtlas and see if upregulated metabolites are associated with upregulated genes in the tissues.

Added to Tissue page but not Age page - this is why the ODR branch is better as I don't need to do things twice.