groups/edit: various channel editing mishaps

During testing, @zalberico ran into several issues with the front-end of the channel editor getting out of sync with ship state. Our dream of direct manipulation is nice, but only works if the execution is flawless.
To combat this without a wholesale rewrite of editing the zone/channel model, I propose (with @urcades' OK) we add a "Save" button to the channel-editing form thusly:

This Save button should appear after any changes to the group channel structure such as rearranging zones, adding/removing/renaming channels, etc.
The front-end should update optimistically and immediately.
The save button should effectively submit these changes to the back-end, and disappear when the action is complete.
Navigating away from this page in an unsaved state should present a window.confirm warning ("You have made unsaved changes to your group. Navigate away?" or something of the sort).

I have some concerns:

A) The "Done" window renaming/privacy modal already serves as a "save" button – it sends a request to the API, if this isn't working, sending the request from a different button won't change anything
B) Has zach had reliability issues with deleting a channel? It's also a single endpoint request – I think this would be better served with an error state and not "Save Deleting This Channel" which is imo kind of a bonkers interaction, like i expect everyone to complain about this
C) The way "Move Channel" requests are currently made is "Move This Channel to This Position in This Zone" – without an API endpoint that lets us send the entire new channel ordering structure over, we'd have to loop through each channel move operation, which would make the "moving channels too fast and having order dropped" bugs MORE common, and not less – basically to implement a save button like that we'd need backend changes

@jamesacklin dan and I were talking about this a little today, and I'm more or less aligned on the primary point that Adding, Removing, and Renaming channels all occur in modal dialogs, and thus should already have some explicit "save" functions we shouldn't need to duplicate.
On the point of saving the state of a channel/section re-ordering, I'd just want to defer to whatever is the most performant or straightforward to implement.
I've already mentioned to you out of band that the ideal here would just to have rearranging actions "just work" and optimistically retain state locally before propagating changes to other people, but since That's a Lot of Work, a single button for saving channel reordering is acceptable.


invidious: unstable-2022-08-13 -> unstable-2022-10-12

Description of changes
Update to new version.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@sbruder
@infinisil

I am not 100% sure that simply bumping the version and hash in versions.json is enough.
Do not hesitate to mention additional needed steps :)

It isn't indeed, but invidious has an updateScript, so it's all automated, check out https://nixos.org/manual/nixpkgs/stable/#var-passthru-updateScript :)

It isn't indeed, but invidious has an updateScript, so it's all automated, check out https://nixos.org/manual/nixpkgs/stable/#var-passthru-updateScript :)

Great ! Thank you for the info :)
Is there anything else to do before merging this then ?

No worries @sbruder, thank you for your input.
From what I can see on the crystal PR, it seems that it is not yet ready to be merged...
What do you think, should we update now and update one more time when crystal is updated to 1.6 or should we wait ?

Ok perfect !
@infinisil is it ok for you ?
Do one of you have repo-access to merge this PRor should we call someone else to do so ?


Ensure that metric hierarchies of more than 2 levels are supported

Up until now, in Porta it was possible to define hierarchies of metrics with only 2 levels. This is going to change to support the "APIs as a product" feature.
For apisonator, we need to ensure that hierarchies of more than 2 levels are supported. This means that we need to check things like:

The methods to create metrics work correctly.
The hierarchy extension works correctly.
The limits extension works correctly.
Limits are applied checking all the levels of the hierarchy.
Reports take into account all the levels of the hierarchy.
The XML returns the info of all the relevant metrics.

Some of those things might already be working fine, but I think in the past, when implementing some features, we've assumed that it was fine to assume a max of 2 levels.

Done in #119 , #121 and #122

/cc @hallelujah @guicassolato
This is one of the requirements for APIs as a product.


adds activityResult to improve promise usability on Android

Adds usability to then promise in the method NativeSettings.open
Platform:
Android

testMethod = () => {
    const options = {
      optionAndroid: AndroidSettings.ApplicationDetails,
      optionIOS: IOSSettings.App,
    };
    /**
     * Current Behavior: Then promise execute immediately
     * New Behavior: Then promise wait to user gets back to screen
     */
    NativeSettings.open(options).then((data) => {
      this.presentAlert('then execution', JSON.stringify(data), '');
    });
  };

https://user-images.githubusercontent.com/6577163/232974748-83e1f0f7-d999-4a7d-9c2e-e447c199fbea.mp4

Thank you for your contribution. I will review & test your PR in the next couple days.

This functionality will be available with the capacitor 5 build that is coming very soon. See https://github.com/RaphaelWoude/capacitor-native-settings/pull/32


code release?

Thank you for your interest and patience. The code and models have now been released, and we truly appreciate your support!


Pipfile.lock doesn't preserve some extras information

I also filed a possibly related issue here https://github.com/kennethreitz/pipenv/issues/1013
Environment

Linux
pipenv is running on python 3.4.3
Pipenv version = 8.3.1

Expected result
Should be able to reinstall extra dependencies from a Pipfile.lock
In this example raven[flask] in python 2 depends on Blinker and Flask  because of the flask extra, and depends on contextlib2 because its python < 3.4; so these dependencies should be installed.
https://github.com/getsentry/raven-python/blob/master/setup.py
Actual result
pipenv install raven[flask] works as expected but after recreating the virtual environment, installing from Pipfile.lock doesn't install all extra dependencies and some extra dependencies are absent from the Pipfile.lock.
Steps to replicate
Showing pipenv install raven[flask] installs all expected packages
chris $ pipenv --python 2.7
Virtualenv already exists!
Removing existing virtualenv…
Creating a virtualenv for this project…
Using /my/version/of/python2.7 to create virtualenv…
⠋Running virtualenv with interpreter /my/version/of/python2.7
New python executable in /home/chris/.local/share/virtualenvs/demos-8_UOIBMV/bin/python2.7
Also creating executable in /home/chris/.local/share/virtualenvs/demos-8_UOIBMV/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /home/chris/.local/share/virtualenvs/demos-8_UOIBMV
Creating a Pipfile for this project…
chris $ pipenv install raven[flask]
Installing raven[flask]…
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒Collecting raven[flask]
  Using cached raven-6.3.0-py2.py3-none-any.whl
Collecting contextlib2; python_version < "3.2" (from raven[flask])
  Using cached contextlib2-0.5.5-py2.py3-none-any.whl
Collecting blinker>=1.1; extra == "flask" (from raven[flask])
Collecting Flask>=0.8; extra == "flask" (from raven[flask])
  Using cached Flask-0.12.2-py2.py3-none-any.whl
Collecting itsdangerous>=0.21 (from Flask>=0.8; extra == "flask"->raven[flask])
Collecting Jinja2>=2.4 (from Flask>=0.8; extra == "flask"->raven[flask])
  Using cached Jinja2-2.9.6-py2.py3-none-any.whl
Collecting Werkzeug>=0.7 (from Flask>=0.8; extra == "flask"->raven[flask])
  Using cached Werkzeug-0.12.2-py2.py3-none-any.whl
Collecting click>=2.0 (from Flask>=0.8; extra == "flask"->raven[flask])
  Using cached click-6.7-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->Flask>=0.8; extra == "flask"->raven[flask])
Installing collected packages: contextlib2, blinker, itsdangerous, MarkupSafe, Jinja2, Werkzeug, click, Flask, raven
Successfully installed Flask-0.12.2 Jinja2-2.9.6 MarkupSafe-1.0 Werkzeug-0.12.2 blinker-1.4 click-6.7 contextlib2-0.5.5 itsdangerous-0.24 raven-6.3.0

Adding raven[flask] to Pipfile's [packages]…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (812aac)!
chris $ pipenv graph
blinker==1.4
Flask==0.12.2
  - click [required: >=2.0, installed: 6.7]
  - itsdangerous [required: >=0.21, installed: 0.24]
  - Jinja2 [required: >=2.4, installed: 2.9.6]
    - MarkupSafe [required: >=0.23, installed: 1.0]
  - Werkzeug [required: >=0.7, installed: 0.12.2]
raven==6.3.0
  - contextlib2 [required: Any, installed: 0.5.5]

chris $

Showing pipenv install doesn't install some extra dependencies
chris $ pipenv --python 2.7
Virtualenv already exists!
Removing existing virtualenv…
Creating a virtualenv for this project…
Using /my/version/of/python2.7 to create virtualenv…
⠋  Running virtualenv with interpreter /my/version/of/python2.7
New python executable in /home/chris/.local/share/virtualenvs/demos-8_UOIBMV/bin/python2.7
Also creating executable in /home/chris/.local/share/virtualenvs/demos-8_UOIBMV/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /home/chris/.local/share/virtualenvs/demos-8_UOIBMV
chris $ pipenv install
Installing dependencies from Pipfile.lock (812aac)…
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 8/8 — 00:00:02
To activate this project's virtualenv, run the following:
 $ pipenv shell
chris $ pipenv graph
blinker==1.4
Flask==0.12.2
  - click [required: >=2.0, installed: 6.7]
  - itsdangerous [required: >=0.21, installed: 0.24]
  - Jinja2 [required: >=2.4, installed: 2.9.6]
    - MarkupSafe [required: >=0.23, installed: 1.0]
  - Werkzeug [required: >=0.7, installed: 0.12.2]
raven==6.3.0
  - contextlib2 [required: Any, installed: ?]

chris $

Showing pipenv install --skip-lock installs expected dependencies but pipinstall upgrade uninstalls some.
chris $ pipenv --python 2.7
Virtualenv already exists!
Removing existing virtualenv…
Creating a virtualenv for this project…
Using /my/version/of/python2.7 to create virtualenv…
⠋  Running virtualenv with interpreter /my/version/of/python2.7
New python executable in /home/chris/.local/share/virtualenvs/demos-8_UOIBMV/bin/python2.7
Also creating executable in /home/chris/.local/share/virtualenvs/demos-8_UOIBMV/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /home/chris/.local/share/virtualenvs/demos-8_UOIBMV
chris $ pipenv install --skip-lock
Installing dependencies from Pipfile…
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 1/1 — 00:00:05
To activate this project's virtualenv, run the following:
 $ pipenv shell
chris $ pipenv graph
blinker==1.4
Flask==0.12.2
  - click [required: >=2.0, installed: 6.7]
  - itsdangerous [required: >=0.21, installed: 0.24]
  - Jinja2 [required: >=2.4, installed: 2.9.6]
    - MarkupSafe [required: >=0.23, installed: 1.0]
  - Werkzeug [required: >=0.7, installed: 0.12.2]
raven==6.3.0
  - contextlib2 [required: Any, installed: 0.5.5]

chris $ pipenv update
Updating all dependencies from Pipfile…
Found 9 installed package(s), purging…
Uninstalling blinker-1.4:
  Successfully uninstalled blinker-1.4
Uninstalling click-6.7:
  Successfully uninstalled click-6.7
Uninstalling contextlib2-0.5.5:
  Successfully uninstalled contextlib2-0.5.5
Uninstalling Flask-0.12.2:
  Successfully uninstalled Flask-0.12.2
Uninstalling itsdangerous-0.24:
  Successfully uninstalled itsdangerous-0.24
Uninstalling Jinja2-2.9.6:
  Successfully uninstalled Jinja2-2.9.6
Uninstalling MarkupSafe-1.0:
  Successfully uninstalled MarkupSafe-1.0
Uninstalling raven-6.3.0:
  Successfully uninstalled raven-6.3.0
Uninstalling Werkzeug-0.12.2:
  Successfully uninstalled Werkzeug-0.12.2

Environment now purged and fresh!
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (812aac)!
Installing dependencies from Pipfile.lock (812aac)…
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 8/8 — 00:00:02
To activate this project's virtualenv, run the following:
 $ pipenv shell
All dependencies are now up-to-date!
chris $ pipenv graph
blinker==1.4
Flask==0.12.2
  - click [required: >=2.0, installed: 6.7]
  - itsdangerous [required: >=0.21, installed: 0.24]
  - Jinja2 [required: >=2.4, installed: 2.9.6]
    - MarkupSafe [required: >=0.23, installed: 1.0]
  - Werkzeug [required: >=0.7, installed: 0.12.2]
raven==6.3.0
  - contextlib2 [required: Any, installed: ?]

chris $

Pipfile
[[source]]

name = "pypi"
url = "https://pypi.python.org/simple"
verify_ssl = true

[dev-packages]

[packages]

raven = {extras = ["flask"]}

[requires]

python_version = "2.7"

Pipfile.lock
{
    "_meta": {
        "hash": {
            "sha256": "79f6cd7950e9c9c7dfc51d1b941d4faa0a554593b2af880134c66358f5812aac"
        },
        "host-environment-markers": "REDACTED",
        "pipfile-spec": 6,
        "requires": {
            "python_version": "2.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.python.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "blinker": {
            "hashes": [
                "sha256:471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6"
            ],
            "version": "==1.4"
        },
        "click": {
            "hashes": [
                "sha256:29f99fc6125fbc931b758dc053b3114e55c77a6e4c6c3a2674a2dc986016381d",
                "sha256:f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"
            ],
            "version": "==6.7"
        },
        "flask": {
            "hashes": [
                "sha256:0749df235e3ff61ac108f69ac178c9770caeaccad2509cb762ce1f65570a8856",
                "sha256:49f44461237b69ecd901cc7ce66feea0319b9158743dd27a2899962ab214dac1"
            ],
            "version": "==0.12.2"
        },
        "itsdangerous": {
            "hashes": [
                "sha256:cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519"
            ],
            "version": "==0.24"
        },
        "jinja2": {
            "hashes": [
                "sha256:2231bace0dfd8d2bf1e5d7e41239c06c9e0ded46e70cc1094a0aa64b0afeb054",
                "sha256:ddaa01a212cd6d641401cb01b605f4a4d9f37bfc93043d7f760ec70fb99ff9ff"
            ],
            "version": "==2.9.6"
        },
        "markupsafe": {
            "hashes": [
                "sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665"
            ],
            "version": "==1.0"
        },
        "raven": {
            "hashes": [
                "sha256:cb644fb12ee886a341041dcd533540dfc82619a50bf0b7c587af070054bd2c7f",
                "sha256:f3e465a545dcdb6a387d1fcb199d08f786ba3732d7ce6aa681718b04da6aedf1"
            ],
            "version": "==6.3.0"
        },
        "werkzeug": {
            "hashes": [
                "sha256:e8549c143af3ce6559699a01e26fa4174f4c591dbee0a499f3cd4c3781cdec3d",
                "sha256:903a7b87b74635244548b30d30db4c8947fe64c5198f58899ddcd3a13c23bb26"
            ],
            "version": "==0.12.2"
        }
    },
    "develop": {}
}

Thanks for the full report @Grets, that was really helpful 😄
FYI, this is not related to #1013, even if it might look like it. Good thinking, but those a really distinct issues, I can assure it.
Now, for this issue:
From what I can see, the "extra" part itself is respected: Flask and Blinker are installed everytime. That's some good news.
The issue occurs with contextlib2, which has a condition on the python version. We've seen a lot of issues related to python-version-specific dependencies.
And I'm pretty sure this is exactly the issue here, here what happens:

pipenv runs with python 3.4.3
Your virtualenv runs with python 2.7
The first install you did (which is performed pre-lock), use the venv python/pip, effectively 2.7
The lock that was performed in that same install used the "root" python/pip, which is 3.4.3, excluding contextlib2 as its not a Python 3 dependency.
When you did the re-install from the lockfile, it used the lock mentioned above, which did not include contextlib2, which is why it wasn't installed (the packages are essentially installed one-by-one with  pip install --no-deps, as the dependency should all be in the lockfile, in theory, but not in this case due to the lock bug)
Doing pipenv install --skip-lock goes through without issue because it correctly uses the python/pip from the virtualenv, and process the dependency like pip (we don't put the --no-deps flag when doing --skip-lock, as we don't use the lockfile).

So yeah, that's the known issue of "wrong python version used for locking" we've been hunting for a while.
But seriously, @Grets, you have no idea how much that report just helped me out figuring a few things out. This was a known issue, but you gave me enough information to clear up a bunch of things. Thank you!
One additional thing I would ask, to get rid of that 0.1% of doubt I have about the cause of the issue: With the exact same setup, could you redo all of this, and at the end, do pipenv lock --clear --verbose and give the output as well as the resulting Pipfile.lock? That would be greatly appreciated.

Thanks for the response @vphilippon, I went ahead and ran the pipenv lock --clear --verbose and I will put the results at the bottom of this. I also reinstalled my version of pipenv using python2.7 and retried all the steps I did before and now it seems to work. It generates the exact same Pipfile, but the Pipfile.lock now has the entry for contextlib2 with the marker for python_version < 3.2. Thanks again for your help, and I am glad I was able to provide some insight.
pipenv lock --clear --verbose output using pipenv with python3.4
Using pip: -i https://pypi.python.org/simple

                          ROUND 1
Current constraints:

Finding the best candidates:

Finding secondary dependencies:
------------------------------------------------------------
Result of round 1: stable, done
Using pip: -i https://pypi.python.org/simple

                          ROUND 1
Current constraints:
  raven[flask]

Finding the best candidates:
  found candidate raven[flask]==6.3.0 (constraint was <any>)

Finding secondary dependencies:

New dependencies found in this round:
  adding ['blinker', '>=1.1', '[]']
  adding ['flask', '>=0.8', '[]']
  adding ['raven', '==6.3.0', "['flask']"]
Removed dependencies in this round:
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable

                          ROUND 2
Current constraints:
  blinker>=1.1; extra == "flask"
  Flask>=0.8; extra == "flask"
  raven[flask]==6.3.0

Finding the best candidates:
  found candidate blinker==1.4 (constraint was >=1.1)
  found candidate flask==0.12.2 (constraint was >=0.8)
  found candidate raven[flask]==6.3.0 (constraint was ==6.3.0)

Finding secondary dependencies:

New dependencies found in this round:
  adding ['click', '>=2.0', '[]']
  adding ['itsdangerous', '>=0.21', '[]']
  adding ['jinja2', '>=2.4', '[]']
  adding ['werkzeug', '>=0.7', '[]']
Removed dependencies in this round:
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 2: not stable

                          ROUND 3
Current constraints:
  blinker>=1.1; extra == "flask"
  click>=2.0
  Flask>=0.8; extra == "flask"
  itsdangerous>=0.21
  Jinja2>=2.4
  raven[flask]==6.3.0
  Werkzeug>=0.7

Finding the best candidates:
  found candidate blinker==1.4 (constraint was >=1.1)
  found candidate click==6.7 (constraint was >=2.0)
  found candidate flask==0.12.2 (constraint was >=0.8)
  found candidate itsdangerous==0.24 (constraint was >=0.21)
  found candidate jinja2==2.9.6 (constraint was >=2.4)
  found candidate raven[flask]==6.3.0 (constraint was ==6.3.0)
  found candidate werkzeug==0.12.2 (constraint was >=0.7)

Finding secondary dependencies:
  jinja2==2.9.6 not in cache, need to check index
  jinja2==2.9.6             requires Jinja2==2.9.6, MarkupSafe>=0.23
  click==6.7 not in cache, need to check index
  click==6.7                requires click==6.7
  itsdangerous==0.24 not in cache, need to check index
  itsdangerous==0.24        requires itsdangerous==0.24
  werkzeug==0.12.2 not in cache, need to check index
  werkzeug==0.12.2          requires Werkzeug==0.12.2

New dependencies found in this round:
  adding ['click', '==6.7,>=2.0', '[]']
  adding ['itsdangerous', '==0.24,>=0.21', '[]']
  adding ['jinja2', '==2.9.6,>=2.4', '[]']
  adding ['markupsafe', '>=0.23', '[]']
  adding ['werkzeug', '==0.12.2,>=0.7', '[]']
Removed dependencies in this round:
  removing ['click', '>=2.0', '[]']
  removing ['itsdangerous', '>=0.21', '[]']
  removing ['jinja2', '>=2.4', '[]']
  removing ['werkzeug', '>=0.7', '[]']
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 3: not stable

                          ROUND 4
Current constraints:
  blinker>=1.1; extra == "flask"
  click==6.7,>=2.0
  Flask>=0.8; extra == "flask"
  itsdangerous==0.24,>=0.21
  Jinja2==2.9.6,>=2.4
  MarkupSafe>=0.23
  raven[flask]==6.3.0
  Werkzeug==0.12.2,>=0.7

Finding the best candidates:
  found candidate blinker==1.4 (constraint was >=1.1)
  found candidate click==6.7 (constraint was >=2.0,==6.7)
  found candidate flask==0.12.2 (constraint was >=0.8)
  found candidate itsdangerous==0.24 (constraint was >=0.21,==0.24)
  found candidate jinja2==2.9.6 (constraint was >=2.4,==2.9.6)
  found candidate markupsafe==1.0 (constraint was >=0.23)
  found candidate raven[flask]==6.3.0 (constraint was ==6.3.0)
  found candidate werkzeug==0.12.2 (constraint was ==0.12.2,>=0.7)

Finding secondary dependencies:
  markupsafe==1.0 not in cache, need to check index
  markupsafe==1.0           requires MarkupSafe==1.0
  jinja2==2.9.6             requires Jinja2==2.9.6, MarkupSafe>=0.23
  werkzeug==0.12.2          requires Werkzeug==0.12.2
  click==6.7                requires click==6.7
  itsdangerous==0.24        requires itsdangerous==0.24

New dependencies found in this round:
  adding ['markupsafe', '==1.0,>=0.23', '[]']
Removed dependencies in this round:
  removing ['markupsafe', '>=0.23', '[]']
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 4: not stable

                          ROUND 5
Current constraints:
  blinker>=1.1; extra == "flask"
  click==6.7,>=2.0
  Flask>=0.8; extra == "flask"
  itsdangerous==0.24,>=0.21
  Jinja2==2.9.6,>=2.4
  MarkupSafe==1.0,>=0.23
  raven[flask]==6.3.0
  Werkzeug==0.12.2,>=0.7

Finding the best candidates:
  found candidate blinker==1.4 (constraint was >=1.1)
  found candidate click==6.7 (constraint was >=2.0,==6.7)
  found candidate flask==0.12.2 (constraint was >=0.8)
  found candidate itsdangerous==0.24 (constraint was >=0.21,==0.24)
  found candidate jinja2==2.9.6 (constraint was >=2.4,==2.9.6)
  found candidate markupsafe==1.0 (constraint was >=0.23,==1.0)
  found candidate raven[flask]==6.3.0 (constraint was ==6.3.0)
  found candidate werkzeug==0.12.2 (constraint was ==0.12.2,>=0.7)

Finding secondary dependencies:
  werkzeug==0.12.2          requires Werkzeug==0.12.2
  click==6.7                requires click==6.7
  itsdangerous==0.24        requires itsdangerous==0.24
  jinja2==2.9.6             requires Jinja2==2.9.6, MarkupSafe>=0.23
  markupsafe==1.0           requires MarkupSafe==1.0
------------------------------------------------------------
Result of round 5: stable, done

Pipfile.lock generated from the same Pipfile as in my first comment but using pipenv with python2.7 this time and everything is as expected
{
    "_meta": {
        "hash": {
            "sha256": "79f6cd7950e9c9c7dfc51d1b941d4faa0a554593b2af880134c66358f5812aac"
        },
        "host-environment-markers": "REDACTED",
        "pipfile-spec": 6,
        "requires": {
            "python_version": "2.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.python.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "blinker": {
            "hashes": [
                "sha256:471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6"
            ],
            "version": "==1.4"
        },
        "click": {
            "hashes": [
                "sha256:29f99fc6125fbc931b758dc053b3114e55c77a6e4c6c3a2674a2dc986016381d",
                "sha256:f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"
            ],
            "version": "==6.7"
        },
        "contextlib2": {
            "hashes": [
                "sha256:f5260a6e679d2ff42ec91ec5252f4eeffdcf21053db9113bd0a8e4d953769c00",
                "sha256:509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48"
            ],
            "markers": "python_version < '3.2'",
            "version": "==0.5.5"
        },
        "flask": {
            "hashes": [
                "sha256:0749df235e3ff61ac108f69ac178c9770caeaccad2509cb762ce1f65570a8856",
                "sha256:49f44461237b69ecd901cc7ce66feea0319b9158743dd27a2899962ab214dac1"
            ],
            "version": "==0.12.2"
        },
        "itsdangerous": {
            "hashes": [
                "sha256:cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519"
            ],
            "version": "==0.24"
        },
        "jinja2": {
            "hashes": [
                "sha256:2231bace0dfd8d2bf1e5d7e41239c06c9e0ded46e70cc1094a0aa64b0afeb054",
                "sha256:ddaa01a212cd6d641401cb01b605f4a4d9f37bfc93043d7f760ec70fb99ff9ff"
            ],
            "version": "==2.9.6"
        },
        "markupsafe": {
            "hashes": [
                "sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665"
            ],
            "version": "==1.0"
        },
        "raven": {
            "hashes": [
                "sha256:cb644fb12ee886a341041dcd533540dfc82619a50bf0b7c587af070054bd2c7f",
                "sha256:f3e465a545dcdb6a387d1fcb199d08f786ba3732d7ce6aa681718b04da6aedf1"
            ],
            "version": "==6.3.0"
        },
        "werkzeug": {
            "hashes": [
                "sha256:e8549c143af3ce6559699a01e26fa4174f4c591dbee0a499f3cd4c3781cdec3d",
                "sha256:903a7b87b74635244548b30d30db4c8947fe64c5198f58899ddcd3a13c23bb26"
            ],
            "version": "==0.12.2"
        }
    },
    "develop": {}
}

Also, the Pipfile.lock generated using pipenv lock --clear --verbose using pipenv with python3.4 was the same Pipfile.lock that I posted in my original comment.

@macbeth322 Allright, that confirms it, thanks!

I believe I stumbled upon a similar issue.  I'm trying to deploy my app to docker with pipenv installing requirements.  I added an extras package yesterday and now none of the dependencies to airflow exist in my lock file (notably dill).  Correct me if I'm wrong, but the following should never happen, correct?
      "default": {
          "airflow": {
              "extras": [
                  "crypto"
              ]
          },

I can send you my Pipfile, Pipfile.lock, and/or other files if they would be relevant to the issue at hand.

@sethwoodworth I only really have one question about this -- in the root directory of your project, do you have a subdirectory called airflow? See this for context: https://github.com/kennethreitz/pipenv/issues/1045#issuecomment-342901237

@techalchemy Yes! I have precisely that. A folder named airflow and a folder named alembic as the case might be.  I can move the folders back to their current values when PR #958 is merged.

Nailed it! Seen this one enough by now to know right away what’s up there

This is fixed in #958

#958 fixes the relative path issue, but does it also fix the correct python version being used in lock?
    extras_require={
       ...
        ':python_version<"3.2"': ['contextlib2'],
    },

This is a dupe of #857, though.

@helderco the local file thing and the python version thing are separate. The former is fixed, but dependency resolution with regard to the latter isn’t fixed yet


[D&D_Moldvay] Equipment Carried Columns

Previously the Magic Item and Normal Item columns were side-by-side, as they appear in the original sheet this is based on (image), however somewhat recently these two item sections on the Roll20 sheet are placed right above each other as a single column creating a lot of wasted blank space (image). I believe there are other sections of the character sheet that have this same issue, including the Monster Tab but I can't site specific examples.

I just checked in a live game on Chrome and the item sections look okay.  What browser are you using?

This happens on both Chrome and Firefox, just checked to make sure, even on Microsoft Edge.

You're using inline-blocks together with negative letter-spacing for the layout on the inventory rows. This is prone to breaking for people who have different fonts than you do. Perhaps you should use a flexbox-based layout for these rows instead, then you can get rid of the hacky letter-spacing stuff.

You're using inline-blocks together with negative word-spacing for the layout on the inventory rows. This is prone to breaking for people who have different fonts than you do.

I can't speak on the code, but that does seem in line with another issue I've brought up.

This issue has been resolved as of the most recent update.


Make the profiling port configurable via envvar.

With this folks can override the default 8008 with PROFILING_PORT.
Fixes: https://github.com/knative/pkg/issues/1948

/lgtm

/hold

Looks like serving is using the exported constant 🤔

/unhold
Ok I reverted the breaking part that constant folded the strconv.


Added both CPU and GPU profiling Support!!

This PR allows users to monitor their CPU and GPU memory usage while training models using DeepSpeed

Added CPU Support for lamb algorithm !

@harishsg99, can you add some unit tests? Thanks!

@harishsg99, is this ready for review. I notice the PR is failing formatting checks as below.

Can you please see here for instructions on fixing? Thanks!

@harishsg99, can you add some unit tests? Thanks!

Sure I will add them tomorrow thanks!

Hi @harishsg99, we would like to move the usage of the PyTorch profiler in DeepSpeed to the tutorial documentation. Would you like to start a PR there? It would be under https://github.com/microsoft/DeepSpeed/tree/master/docs/_tutorials and showcases how to use the PyTorch profiler API to profile different stages of DeepSpeed model training (not just the self.model(inputs). Thanks.


Create an electron app

This bird has sailed. https://github.com/OrkoHunter/binge-watcher/commit/191952ea6b60c300af199cf6399732b2ac7340c4


phoenixd 0.3.2 doesn't work in Fedora 40

When trying to use phoenixd in Fedora 40, I get this message:
./phoenixd: error while loading shared libraries: [libcrypt.so](https://libcrypt.so/).1: cannot open shared object file: No such file or directory

It works without problems in Ubuntu 24.04.

This seems to be specific to Fedora (see https://fedoraproject.org/wiki/Changes/FullyRemoveDeprecatedAndUnsafeFunctionsFromLibcrypt), the fix is to install the libxcrypt-compat package:
sudo dnf install libxcrypt-compat


Python 2.7 not supported starred expression in dict

https://github.com/dnouri/skorch/blob/cd5b411e365004b2182499894c74f983577415eb/skorch/net.py#L1197

Thanks for reporting an issue.
Unfortunately, we don't support python 2.7 which is why there are errors when using skorch with python 2.7. We have https://github.com/dnouri/skorch/issues/115 to gather reasons for supporting such an old python version since it is considerable effort to backport and maintain. As long as this is not settled we won't fix python 2.7 specific issues.

Hello, ok thanks 👍  ;)


fix: increase mem for some rules; gatk contamination not run as localrule

Changes
Increased memory for rule bwa mem, kraken, merge somatic callers. Removed gatk contamination as a local rule.
Issues
fixes #89
PR Checklist

[x] This comment contains a description of changes with justifications, with any relevant issues linked.
~- [ ] Update docs if there are any API changes.~
[x] Update CHANGELOG.md with a short description of any user-facing changes and reference the PR number. Guidelines: https://keepachangelog.com/en/1.1.0/

Looks good.


network name is required in cni/99-loopback.conf

When ip netns add, the network name is required.
Please refer to https://github.com/containernetworking/cni#576

Sorry, It's not a bug for this prj.


Clang format unit test

Codecov Report

Merging #125 into master will increase coverage by 1.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #125      +/-   ##
==========================================
+ Coverage   71.58%   72.72%   +1.13%
==========================================
  Files          44       44
  Lines        2154     2152       -2
==========================================
+ Hits         1542     1565      +23
+ Misses        612      587      -25

Impacted Files
Coverage Δ

...tick_tool/plugins/tool/clang_format_tool_plugin.py
61.25% <ø> (+29.54%)
:arrow_up:

Continue to review full report at Codecov.

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


Cookie-header detection must be case insensitive

Follow the official guide to create a simple application and reproduce the bug.
// imports
$app->get('/', function (Request $request, Response $response, $args) {
    header('Set-Cookie: name=foo');
    $response = $response->withHeader('Set-Cookie: name=bar');
    $response->getBody()->write("Hello world!");
    return $response;
});
$app->run();

While everything is fine, the browser receives two headers with the same fields but different values.
Set-Cookie: name=foo
Set-Cookie: name=bar

However, when we start using case insensitive names, the behavior changes.
// imports
$app->get('/', function (Request $request, Response $response, $args) {
    header('Set-Cookie: name=foo');
    $response = $response->withHeader('set-cOOkie: name=bar');
    $response->getBody()->write("Hello world!");
    return $response;
});
$app->run();

set-cOOkie: name=bar

Coverage remained the same at 100.0% when pulling c6b9b5f3d951e018187f07907642ac518ca826bb on mapogolions:fix/header-field-case-insensitive into 4ddb1bfe683b96e716715d4f28796f74ff9b75b5 on slimphp:4.x.

That’s not a Slim issue. That’s an issue with the PSR-7 implementation being used.

Why are you using this line of code $first = $name !== 'Set-Cookie'. A usual user does't keep in mind the rules for formatting http-headers. Why there should be different results in almost identical cases

$response->withHeader('set-cookie', ['name=foo', 'bar=0'])
$response->withHeader('Set-Cookie', ['name=foo', 'bar=0'])
The built-in function header makes no such difference.


Changes for Replication Policies need updated

[Enter feedback here]
Replication policies were just updated recently to change the default manner. The default is for no application consistent recovery points to be created. There is also a new option to save up to 15 days worth of recovery points vs. the max of 72 hours before.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 70a01823-c7c4-e971-ee68-74d6ce2e9bbe
Version Independent ID: 314d8f44-6760-744b-95b8-20a349b1f538
Content: Set up VMware VM disaster recovery to Azure with Azure Site Recovery - Preview - Azure Site Recovery
Content Source: articles/site-recovery/vmware-azure-set-up-replication-tutorial-preview.md
Service: site-recovery
GitHub Login: @V-SSenthilna
Microsoft Alias: v-ssenthilna

Thanks for bringing this to our attention. We will investigate it further and update you shortly.

@wjpigott - Thanks again for bringing this to our attention. We have updated the Doc and it will be live once its merged.  We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Merge master into dev-2020.4

Merge master into dev-2020.4

Hi, @jsun28! Thanks for opening this PR!

In the file connector-packager/connector_packager/xsd_validator.py:

Line 168:121: E501 line too long (129 > 120 characters)
Line 165:67: E231 missing whitespace after ','
Line 164:55: E231 missing whitespace after ','

In the file connector-packager/tests/test_xsd_validator.py:

Line 99:121: E501 line too long (123 > 120 characters)

For reference: Error Code Reference, PEP8, Python code style

We can revert the merge if anything doesn't look right per @pvanderknyff 😃


Write script to create(or update) dev ops release work items.

Write script to create(or update) dev ops release work items.
Refs:

AzureDevOps
Marking a Package as In Release

Hi, @yiliuTo , please help to review this PR. 🙏

Hi, @saragluna , @backwind1233 .
FYI:
You can use these scripts when do release.


https://repo.dev.wixpress.com not available

I'm unable to install the app as https://repo.dev.wixpress.com is not available
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to https://repo.dev.wixpress.com/artifactory/api/npm/npm-repos/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz failed, reason: connect ETIMEDOUT <IP_ADDRESS>:443
npm ERR! network This is a problem related to network connectivity.

hi

French Angora rabbit for sale. With its luxurious long fur and sweet personality, this bunny is an enchanting addition to any family.

I have the same issue on my website? please give me suggestions what should I do first?

Is this issue still pending? I have same issue in one of my site thekids activites and let me know If someone solve it.

I am also facing same issue on my site? If you find any solution please share.

Is it good for vape related website?

Can I save my website capcut download pc from this issue?

I am unable to found a actual solution, I really need it, can somebody help me out.

Facing somehow same issue now a days, Anyone can help me?

I am facing same issue on my [website dairyqueen menu](url https://dairyqueen-menu.info/dairy-queen-blizzard-of-the-month/). If anybody help me then it is great pleasure for me. Thanks

facing same issue from long time on my website gaming team names.

It seems you're encountering a network connectivity issue while trying to install the app due to the unavailability of the repository. Please check your network settings and ensure that you have access to the URL https://repo.dev.wixpress.com. If the problem persists, consider reaching out to your network administrator or the repository's support team for further assistance. I was facing the same issue with my billing website, and this method helped me.

I also faced a similar issue while trying to install the app due to the repo.dev.wixpress.com being unavailable. It seems like a network connectivity problem causing the ETIMEDOUT error. While troubleshooting, I ended up checking out the McDo menu website to some time. Hopefully, this gets resolved soon!

I encountered a similar issue while attempting to install the app due to repo.dev.wixpress.com being unreachable, which resulted in an ETIMEDOUT error. While trying to troubleshoot the network connectivity problem, I ended up browsing the Texas Roadhouse menu site for a bit. Hopefully, this gets resolved soon!


PubSub: StreamingPull future.cancel() doesn't stop and not working as expected

Ubuntu 16:04, Python3, google-cloud-pubsub: 0.35.4
We are currently using google pubsub for our project. publisher.publish() and subscriber.subscribe() works perfectly. However, I want to have a method that triggers the subscribe() to stop. Therefore, as given in code example below, I am using a shared boolean value(self.running)  to exit the while loop and then do future.cancel();
However, it doesn't stop and the callback for message processing is still being executed. Am I missing something? Please explain with a working example.
``
class Consumer:
def __init__():
   self.running = True
   thread = threading.Thread(target=subscribe)
   thread.start()

def stop():
    self.running =  False

def subscribe():
    future = subscriber.subscribe()
    while self.running:
        try:
            future.result(timeout=10) # 10 secs
        except exceptions.TimeoutError as exception:
            pass

    # cancel the operation
    future.cancel()

    while not future.cancelled():
        continue

``

Hey,
My bad!
After debugging little further found out the issue i.e.., a few db transactions are not committed into database, therefore the thread hangs.
Closing out the issue.


Export the decoder only once for seq2seq models

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Pipelines are not being triggered when gitness is deployed behind reverse proxy

Hello, i started moving away all my repositories from github and github actions to gitness.
I have a VPS running gitness inside a docker container using the following docker compose file:
version: '3.3'
services:
  gitness:
    ports:
      - '3000:3000'
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
      - './data:/data'
    container_name: gitness
    restart: always
    image: harness/gitness
    environment:
      GITNESS_USER_SIGNUP_ENABLED: false
      GITNESS_NESTED_SPACES_ENABLED: true
      GITNESS_URL_BASE: https://$DOMAIN
      GITNESS_URL_GIT: https://$DOMAIN/git
      GITNESS_URL_API: https://$DOMAIN/api
      GITNESS_URL_UI: https://$DOMAIN
      GITNESS_HTTP_PROTO: https
      GITNESS_CI_PARALLEL_WORKERS: 4

OBS: replaced my actual domain name with $DOMAIN
The gitnes is being served behind a caddy reverse proxy:
$DOMAIN {
        reverse_proxy localhost:3000
}

The pipeline:
version: 1
kind: pipeline
spec:
  stages:
    - name: build
      type: ci
      spec:
        steps:
          - name: build
            type: run
            spec:
              container: mcr.microsoft.com/dotnet/sdk:8.0
              envs:
                SLEET_FEED_CONNECTIONSTRING: ${{secrets.get("SLEET_FEED_CONNECTIONSTRING")}}
                SLEET_FEED_CONTAINER: ${{secrets.get("SLEET_FEED_CONTAINER")}}
                SLEET_FEED_TYPE: ${{secrets.get("SLEET_FEED_TYPE")}}
              script: |-
                dotnet nuget add source https://$DOMAIN/sleet/index.json --name sleet
                dotnet tool install -g sleet
                export PATH="$PATH:/root/.dotnet/tools"
                export NUGET_VERSION=$(date --utc '+%Y.%m.%d.%H%M' | sed 's/\.\(0*\)/./g')
                echo $NUGET_VERSION
                dotnet pack ./src/AutoSystem.Devops/AutoSystem.Devops.csproj -p:PackageVersion=$NUGET_VERSION -o ./nuget
                sleet push ./nuget --skip-existing

Using the UI, API, cloning projects and running pipelines manually are all working correctly, but when i commit something the pipelines are not being triggered, am i missing a configuration about webhooks or something?

Hey @MarioGK-AutoSystem, it's great to hear you are moving your repos to Gitness!!
The pipeline you are talking about, did you create a trigger that reacts on Branch Updated events?
The default trigger only handles pullreq_XXX related events.
You can find a pipeline's triggers under pipeline / Pipeline Settings / Triggers:

In case you already did that, there are few more things to check:

does the pipeline exist on the branch you are committing to?
if you create a webhook, is it being triggered on a commit?

Hey @MarioGK-AutoSystem, it's great to hear you are moving your repos to Gitness!!
The pipeline you are talking about, did you create a trigger that reacts on Branch Updated events? The default trigger only handles pullreq_XXX related events.
You can find a pipeline's triggers under pipeline / Pipeline Settings / Triggers:

In case you already did that, there are few more things to check:

does the pipeline exist on the branch you are committing to?
if you create a webhook, is it being triggered on a commit?

Yeah you are correct, the events were not selected by default i had to select them, thanks for the help and sorry for the delay, it would be great to change this setting with enviroment variables or a config file though


Resize does not work?

This is my js:
import Vue from 'vue'
import VueDraggableResizable from './components/DragResize2'

// optionally import default styles
import 'vue-draggable-resizable/dist/VueDraggableResizable.css'

Vue.component('nie-draggable-resizable', VueDraggableResizable)

const app = new Vue({
    el: '#main-content'
});

This is my VUE file:
<template>

    <vue-draggable-resizable :w="200" :h="100" @dragging="onDrag" @resizing="onResize" :resizable="true" :parent="true">

Hello! I'm a flexible component. You can drag me around and you can resize me.

        X: {{ x }} / Y: {{ y }} - Width: {{ width }} / Height: {{ height }}

    </vue-draggable-resizable>

</template>

Thats my HTML:

<!DOCTYPE html>

    <meta charset="utf-8">
    <title>title</title>

<nie-draggable-resizable></nie-draggable-resizable>

I can drag the text in the red box. But how can I resize it?

Try to remove w="200" :h="100"

Show your code on https://codesandbox.io/

The css was not imported, because I extract css in an extra file with webpack, I forgot it about it. Without the css, there are no boxes to resize.


Query component requires client and key in props

I am using uql with typescript and I have a problem with

none of the examples show the <Query /> component with these two props yet they are required.
Either the typing is wrong or all the examples need amending. I am thinking the former.

Your code looks about right. Can you confirm which version you are currently using?

Using latest 1.0.4

Looks like there were a couple of things that caused this. There's a PR to fix the issue.
Would strongly recommend that you look into upgrading react and using the hooks implementation if possible.

Very fast response! This is exactly the patch I had in mind.Hope it get's merged soon.

I'll pressure @kitten to approve 👿


wallet loads siafunds correctly

A small change was also made to the encoding package, when files get
written any tail data is now truncated.

muh printlns
whoops.


[Proposal] set currency code, symbol and callable format in one line

To change default currency name/code, symbol and a format using a callable function (i.e.: to remove decimals), one need to call 2 methods:
Cashier::useCurrency('XAF', 'F.CFA');
Cashier::formatCurrencyUsing(function ($amount) {
    return number_format($about / 100, 0, ' ');
});

Here is my commit, before requesting a PR: 2d8cb93de5412c13aa3466d78fafe31a6ad33fb5

Closing this in favor of #531


Try to fix gpt example

In examples/chDB_GPT.ipynb, the refine_query part should print the query str instead of answer I think?
Meanwhile, for many LLMs (I used Zhipu for test in this case), the generated result always contains a markdown code block syntax around the real sql, so maybe we can add two replace operations to remove this? The test result is shown as below:

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for your contribution


Net electric output efficiency

In GitLab by @mkovari on Mar 4, 2019, 10:54
Design and analysis of the improved configuration of the secondary circuit for the EU-DEMO power plant
https://www.sciencedirect.com/science/article/pii/S0920379619301693
This paper gives a single operating point for a WCLL DEMO with (huge) molten salt tanks for energy storage.  If we wanted to we could use these results to recalibrate the PROCESS balance of plant module.
@hlux @stuartmuldrew @jmorris-uk @ajpearcey

The paper presents a energy storage system and secondary loop to be used in conjunction when in the dwell phase. The is meant to allow constant electricity to be produced when in dwell. PROCESS does not currently have models to calculate this and does not have the in-depth systems models that the paper tries to implement. This paper should be revisited if the power conversion models in PROCESS are much higher fidelity.


Twig debug true in config file

Hi,
I have added in my config file 'debug' => true for twig extension, because I want to use dump function in twig to see my array's values .. But I get this error The function "dump" does not exist in .
Which configuration do I have to do to enable debug mode in twig and use dump function.
I can not find any document about it, Our twig template document is very poor, we need more detailed documentation, especially config file confs and twig usage with yii functions and other types of functions in form controllers etc ...
I know in beta version everybody has got a lot of jobs to do and they are important than to write a document but if you can provide more info to us, it will be nice : ))
https://github.com/yiisoft/yii2/blob/master/docs/guide/tutorial-template-engines.md
Thanx ..

@grachov
I'm still getting "Unknown "dump" function".  I've setup my config file  with 'extensions' => '\Twig\Extension\DebugExtension'. Instead of "\Twig_Extension_Debug"  because it's deprecated. Any idea why  the dump still does not work. I'm using Yii  2.0.19


⚠ GitLab Server has degraded performance

In 3e6d081, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 6860 ms

Resolved: GitLab Server performance has improved in b79cb74.


the ERROR status

I run the project with docker, after submitting the report, the status is from QUIRED to ERROR, why?

@HeTian123abc
The error output should be capture on STDOUT within the Docker container. There are two ways you can access the error log:

If you are running Docker desktop, you can use the UI to view the log (See screenshot below)
If you are running Docker via command line, you can use the docker logs command to retrieve the error: https://docs.docker.com/engine/reference/commandline/logs/

Try that, and if you get stuck let me know.
Thank you.
-Mark

When running docker, there is a NLTK problem, but it does not affect the operation. I don't know whether it has affect.

When uploading the report, the status is from QUEUED to ERROR.

resolved


Pass enable root auth post-install-script

This should allow root auth on every guest, even those that
don't have it enabled by default.
This patch also pins tft github action to 1.2.10.
OAMG-6748

Can one of the admins verify this patch?

Proof it works - workflow file https://github.com/fernflower/leapp/actions/runs/2239316914/workflow , workflow run https://github.com/fernflower/leapp/actions/runs/2239316914

Okay, now it should work (added a missing krb5-config installation step) https://github.com/fernflower/leapp/actions/runs/2239393551


[replace] silently ignored if crate is part of a workspace

Using cargo 0.13.0-nightly (b78beb1 2016-09-01)
Also reproduced with cargo 0.13.0-nightly (9399229 2016-09-14)
Repro:
git clone https://github.com/nathanaeljones/cargo_replace_test
cd cargo_replace_test/any_crate
cargo build
(note pkg-config pulled from crates.io)
cd ..
git checkout no_workspace
cargo build
(note pkg-config pulled from replacement location)

Just ran into the issue (I believe) you're describing. To be clear, Cargo ignores the [replace] section in non-workspace root crates without emitting a warning. However, not emitting a warning will surely lead to confusion (as it did for me). Thus, Cargo should emit a warning when it ignores [replace]. What's more, this should likely be an error.

What do you mean by root crate? Are there any circumstances in which Cargo honors [replace] if workspaces are in use?

Yes. Crate honors [replace] if the section is placed in the root crate or virtual root crate.

I cannot reproduce success in that scenario.

I'm on IRC as @Sergio. Ping me and let's see if we can find the differences.

So, I can now reproduce that success. I have a failed build against a August nightly of cargo where it fails, and some corner cases where the lockfile cache doesn't get updated, but I think I have a path to success for my actual project as well as the repro above.
Raising an error would be super helpful, though.

@nathanaeljones ah ok, looks like things got sorted out with the right build here? Could you clarify though what error should be raised?

@alexcrichton No, the issue still exists. See my original comment:

Just ran into the issue (I believe) you're describing. To be clear, Cargo ignores the [replace] section in workspace non-root crates without emitting a warning. However, not emitting a warning will surely lead to confusion (as it did for me). Thus, Cargo should emit a warning when it ignores [replace]or, better yet, fail with an error.

Oh right, indeed! Sounds good to me.

So this issue can be closed? @alexcrichton

I believe so, yes!


Coverity 1022060: Unchecked return value

Problem:
CID 1022060 (#1 of 1): Unchecked return value (CHECKED_RETURN)
Solution:
Added a check for the return value.

RAT check failed! https://ci.trafficserver.apache.org/job/RAT-github/401/

Intel CC build successful! https://ci.trafficserver.apache.org/job/icc-github/514/

AU check successful! https://ci.trafficserver.apache.org/job/autest-github/386/

clang format successful! https://ci.trafficserver.apache.org/job/clang-format-github/391/

FreeBSD11 build successful! https://ci.trafficserver.apache.org/job/freebsd-github/2085/

Linux build successful! https://ci.trafficserver.apache.org/job/linux-github/1978/

clang-analyzer build successful! https://ci.trafficserver.apache.org/job/clang-analyzer-github/647/


aws_shell: remove

It appears to have been broken for the last few releases and has had no
upstream updates for the last 2 years. I originally committed this but
didn't add myself to maintainers.
Motivation for this change
Clean out broken packages.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

You removed awscli instead of aws_shell

Wooo oops. I'm sure that was subconcious wishful thinking.


[Feature] Set up Next Auth authentication

Set up Next Auth with email provider
Create sendVerificationRequest function for sending email to users
Update DB and Prisma schema to store verification requests and email verifications
Created basic login page for testing (temporary)
Disallow registration (only allow login for accounts that exist in the DB)

LGTM!


Fewer selects

This proof of concept does two things:

inline simple query projections
    FROM (
        FROM base_table
        SELECT/*<pg.SelectStmt at 0x7faa6d59a680>*/
            base_table.base_x AS x,
            base_table.base_y AS y,
            base_table.base_z AS z,
            base_table.base_u AS u
    ) AS inner_table
    SELECT/*<pg.SelectStmt at 0x7faa6d59a3b0>*/
        inner_table.x AS a,
        inner_table.z AS b,
        inner_table.y AS c

... is inlined as ...
    FROM base_table
    SELECT/*<pg.SelectStmt at 0x7fdc8a0480d0>*/
        base_table.base_x AS a,
        base_table.base_y AS c,
        base_table.base_z AS b

inline trivial scalar SELECTS
SELECT * FROM x LIMIT (SELECT 100)
... is inlined as ...
SELECT * FROM x LIMIT 100

As a benchmark, this changes the last part of query generated for insert Movie { title: 'The Godfather' } from:
    FROM "m~1" AS "m~2"
    SELECT/*<pg.SelectStmt at 0x7f2d32824dc0>*/
        ((
            FROM LATERAL (
                FROM LATERAL (
                    FROM LATERAL (
                        FROM LATERAL (
                            FROM LATERAL (
                                SELECT/*<pg.SelectStmt at 0x7f2d31e57c40>*/
                                    "m~2"."__type___identity~2" AS "__type___identity~3"
                            ) AS "q~2"
                            JOIN LATERAL (
                                FROM "t~1" AS "t~2"
                                SELECT/*<pg.SelectStmt at 0x7f2d31e56dd0>*/
                                    "t~2"."expr~10_identity~1" AS "expr~10_identity~2",
                                    "t~2"."name_value~2" AS "name_value~3"
                            ) AS "q~3"
                                ON ("q~2"."__type___identity~3" = "q~3"."expr~10_identity~2")
                            SELECT/*<pg.SelectStmt at 0x7f2d31e56ec0>*/
                                "q~3"."name_value~3" AS "name_value~4"
                        ) AS "q~4"
                        SELECT/*<pg.SelectStmt at 0x7f2d31e56980>*/
                            "q~4"."name_value~4" AS "name_value~5"
                    ) AS "str_name~2"
                    SELECT/*<pg.SelectStmt at 0x7f2d31c2e380>*/
                        "str_name~2"."name_value~5" AS "name_value~6"
                    LIMIT (
                        SELECT/*<pg.SelectStmt at 0x7f2d32c14490>*/
                            (101)::int8 AS "expr~11_value~1"
                    )
                ) AS "expr-12~2"
                SELECT/*<pg.SelectStmt at 0x7f2d31c2cc40>*/
                    "expr-12~2"."name_value~6" AS "expr~12_value~1"
                LIMIT (
                    SELECT/*<pg.SelectStmt at 0x7f2d31c2e4d0>*/
                        (101)::int8 AS "expr~13_value~1"
                )
            ) AS "str___tname__~2"
            SELECT/*<pg.SelectStmt at 0x7f2d31c2f730>*/
                "str___tname__~2"."expr~12_value~1" AS "__tname___serialized~1"
        ), "m~2"."Movie_value~1") AS "Movie_serialized~1"

... to ...
    FROM "m~1" AS "m~2"
    SELECT/*<pg.SelectStmt at 0x7f898c9bedd0>*/
        ((
            FROM LATERAL (
                FROM LATERAL (
                    FROM LATERAL (
                        SELECT/*<pg.SelectStmt at 0x7f898a030670>*/
                            "m~2"."__type___identity~2" AS "__type___identity~3"
                    ) AS "q~2"
                    JOIN LATERAL (
                        FROM "t~1" AS "t~2"
                        SELECT/*<pg.SelectStmt at 0x7f898a031ed0>*/
                            "t~2"."expr~10_identity~1" AS "expr~10_identity~2",
                            "t~2"."name_value~2" AS "name_value~3"
                    ) AS "q~3"
                        ON ("q~2"."__type___identity~3" = "q~3"."expr~10_identity~2")
                    SELECT/*<pg.SelectStmt at 0x7f8989fb2320>*/
                        "q~3"."name_value~3" AS "name_value~5"
                ) AS "str_name~2"
                SELECT/*<pg.SelectStmt at 0x7f8989fb3220>*/
                    "str_name~2"."name_value~5" AS "name_value~6"
                LIMIT (101)::int8
            ) AS "expr-12~2"
            SELECT/*<pg.SelectStmt at 0x7f8989fb2380>*/
                "expr-12~2"."name_value~6" AS "__tname___serialized~1"
            LIMIT (101)::int8
        ), "m~2"."Movie_value~1") AS "Movie_serialized~1"

The question a this point is: is it worth it? This does produce simpler SQL, but adds more surface for strange bugs.
There are probably a few things I didn't think about, so a least one test will fail and for this to work perfectly, I'd have to really handle all cases and refactor the code into something maintainable.

This seems definitely plausible, though I am also concerned about weird bug surfaces. I think there should also be an argument to the codegen to enable it, since probably we don't want calls to dump_sql() while debugging to do the simplification.
Any idea why it is breaking things?

This turned out to require too much debugging so I'm abandoning the effort.


Resources created from a script get their type int variables set to 0 once opened in the inspector

Godot version:
3.2.3
OS/device including version:
Windows10 64bits
Issue description:
I created a script to save every key and its data in a resource "tres" file. The resources are created and I can open then in the inspector all the variables have their values properly set, but when I click on another resource and go back to the first inspected resource its integer variables are set to 0. After some testing I found out this only happens when I parse the dictionary from the json and save it as type int saving it as a float will work as intended and If I copy and paste the exact same dictionary into a variable in the script there won't be any problems either.
Its worth mentioning I've been using this same json extensible and I've never had any problems until I tried to assign the values to these script-created resources.
I would also like to mention that Godot lets me assign the wrong type of variable into the resources, I can set an export (int) max_stack to be an empty array and it won't cry about it although in the inspector the value is 0 opening the tres fill will display in fact an empty array.
Steps to reproduce:
Parse json dictionary > Create the resources > Set resources variables to their homonymous in the parsed dictionary
Project code:
Item.gd:
extends Resource
class_name Item

export (String) var name
export (String) var category
export (int)    var max_stack

Import&Export.gd:
extends Node

onready var items_data

func _ready():
  items_data = Parse_json()
  #items_data = {"Apple":[15,"Fruit"],"Wood":[30,"Material"],"Axe":[1,"Tool"],"WaterCan":[1,"Tool"]}

func Parse_json():
  var data_read = File.new()
  data_read.open("res://Data.json",File.READ)
  var data = parse_json(data_read.get_as_text())
  data_read.close()
  return data

func _input(event):
  if event.is_action_pressed("ui_right"):
    create_resources()

func create_resources():

  for key in items_data:

    var new_resource = Item.new()

    new_resource.name        = key
    new_resource.category    = items_data[key][1]
    new_resource.max_stack   = items_data[key][0]

    #Shouldn't this be an error since max_stack is an integer type?
    #new_resource.max_stack   = []

    print("\n",key)
    print("Resource: ",new_resource.category,"  DBase: ",items_data[key][1])
    print("Resource: ",new_resource.max_stack,"  DBase: ",items_data[key][0])

    ResourceSaver.save("res://Resource/"+key+".tres",new_resource)

Minimal reproduction project:
Bug Resource v0.2.zip

Keep in mind JSON only has a number type (which is stored as float in Godot), not distinct integer and float types.

Keep in mind JSON only has a number type (which is stored as float in Godot), not distinct integer and float types.

I didn't know that. But what about resources not enforcing their assigned types, why can I set an integer or an array if their on a variable with another type specified?

This is an old issue Gdscript 2.0 typehints work much better I haven't had this issue since Godot 4.0.


Extract air temperature and dew point for LWZ devices

Added extract air temperature and dew point for LWZ devices

Many thanks for your contribution!


chore: print commit hash in summary logs

Purpose

How does the solution address the problem

Changes made

prnet cleaned-up successfully


next steps

nice stuff,
do you plan to implement a kind of generator to geneare step definitions file based on .feature file?


package.json: specify the files to include in the package

This is a more explicit way than using a .npmignore file and should now properly skip the tests and mocks folders.
Before:
npm notice === Tarball Details ===
npm notice name:          fantasticon
npm notice version:       0.0.0
npm notice filename:      fantasticon-0.0.0.tgz
npm notice package size:  59.3 kB
npm notice unpacked size: 376.1 kB
npm notice total files:   194
npm notice
fantasticon-0.0.0.tgz

After:
npm notice === Tarball Details ===
npm notice name:          fantasticon
npm notice version:       0.0.0
npm notice filename:      fantasticon-0.0.0.tgz
npm notice package size:  31.1 kB
npm notice unpacked size: 156.4 kB
npm notice total files:   113
npm notice
fantasticon-0.0.0.tgz

I made another branch based on this one where I exclude the files from being compiled: https://github.com/XhmikosR/fantasticon/compare/npm-files...XhmikosR:ts-exclude
I'm not familiar with TypeScript, so I don't know if this is OK, but tests seem to pass; it seems jest handles TS on its own anyway.
While at it I noticed a few things:

are sourcemaps even needed?
shouldn't the target be something more modern than the TypeScript default ES3?
if you are targeting modern Node.js, shouldn't you use ESM instead of CommonJS?

Let me know if you want me to push that patch here or not. And merry Christmas :)

Thanks! 👍 also updated ts config and moved Readme images to S3 so that readme won't break on NPM.

Thanks! 👍 also updated ts config and moved Readme images to S3 so that readme won't break on NPM.

Regarding source maps, i think they can be useful and I'm not too bothered about package size since this is a build tool and likely running in dev environments mostly

Regarding source maps, i think they can be useful and I'm not too bothered about package size since this is a build tool and likely running in dev environments mostly


[fix](index compaction)support compact multi segments in one index

Proposed changes
pick from branch-2.0-var #28545

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

add testcase

run buildall

run buildall


Self update

New feature:

Self update

Fixed:

refactored default get value

@FredHaa please kindly review when you get a chance. Thanks!


KeyStringValuePair makes .net native toolchain go in infinite loop

This is one of the weirder ones.
In PR #114 , I added a new class called KeyStringValuePair, which inherits from IKeyValuePair<string, string>. Apparently, this interface implementation causes the .net native toolchain to go in infinite loop while compiling a CS project referencing ffmpeginterop.
This is reproducible with the sample app. If you try to build the CS sample in release mode, you will see it goes on compiling forever. In task manager, net native toolchain will be busy, with roughly 20% CPU usage on my laptop, but it will never end (I let it run over night actually).
When I removed the interface implementation, it compiles almost instantly. This is probably related to how the projection works with .net native.
I suggest we remove that interface in the official repo as well, otherwise people will not be able to compile their apps anymore. Besides, I don't think it brings much value anyway, the class should behave more like a tuple rather than a KeyValuePair in a dictionary.

Simple repo code here
https://github.com/mcosmin222/infiniteNetNativeCompile


Database init vs schema mismatch

Trying to give this a spin, but have a few issues. The first is some errors from the database init.py, it looks like Insert statement on line 35 of init.py uses a column named checkExists, but in the schema file it is checkExist.
And then line 36 should be usePlaylistFolder instead of unePlaylistFolder.
Not sure if it should be a separate issue, but after correcting the typos and trying to start I get the following:
Traceback (most recent call last):   File "/home/sickify/Docker/Tidalrr/app.py", line 12, in <module>     from runWebServer import *   File "/home/sickify/Docker/Tidalrr/runWebServer.py", line 12, in <module>     from tidalrr.webserver import *   File "/home/sickify/Docker/Tidalrr/tidalrr/webserver/__init__.py", line 10, in <module>     from tidalrr.workers import *   File "/home/sickify/Docker/Tidalrr/tidalrr/workers/__init__.py", line 13, in <module>     from tidalrr.tidal import *   File "/home/sickify/Docker/Tidalrr/tidalrr/tidal.py", line 698, in <module>     TIDAL_API = TidalAPI()   File "/home/sickify/Docker/Tidalrr/tidalrr/tidal.py", line 283, in __init__     self.key.clientId = '7m7Ap0JC9j1cOM3n' AttributeError: 'list' object has no attribute 'clientId'
I'm a python beginner, but it looks like getItems() on line 282 does not have anything to do with the keys. I tried it with get() instead, but unsure what should go in as a path.

Both these issues are fixed with the latest commit.
Looks like I was wildly off-base with the getItems() part.


simplify IO rate limiter algorithm

Signed-off-by: tabokie<EMAIL_ADDRESS>What problem does this PR solve?
What is changed and how it works?
Proposal: xxx
What's Changed:
I read through the code of https://github.com/tikv/async-speed-limit, and realize the algorithm for IORateLimiter can be greatly simplified with one signed integer counter instead of two unsigned ones. One catch is race between request enqueue and budget refill, but we can always reason the ordering by treating the actual atomic refill as epoch boundary.
Also simplify the handling of excessively long waits. Now the consumption counter will only be monotonically updated.
Related changes
Check List
Tests

Unit test

Release note
None

/release

Closing this temporarily.


NewRoute: Failed to find controller for route path action /verify_google_id_token?Auth.VerifyGoogleIdToken

Revel Version
Revel Framework	:	0.21.0	(0.21.0 remote master branch)
Revel Cmd	:	0.21.1	(0.21.1 remote master branch)
Revel Modules	:	0.21.0	(0.21.0 remote master branch)
Go Version
go version go1.11.2 darwin/amd64
Problem
I have an app handling requests for authentication. It works well before, but not working after I use gorpController.Controller(I want to access DB).
The route conf looks like:
POST    /verify_google_id_token                 Auth.VerifyGoogleIdToken
The controller code looks like:
package controllers

import (
	"github.com/revel/revel"
	"github.com/revel/modules/orm/gorp/app/controllers"

	"myapp/app/models"
)

type Auth struct {
	gorpController.Controller
}

func (c Auth) persistAuth(m map[string]interface{}) (user *models.UserAuth) {
	user = &models.UserAuth{}

	return user
}

When I run it with: revel run -a myapp/, it panics with error:
NewRoute: Failed to find controller for route path action /verify_google_id_token?Auth.VerifyGoogleIdToken.
But when I changed the controller in type Auth struct back to *revel.Controller, it works well. It does not work when I use gorpController.Controller in Auth struct.
Any idea about this? Thanks.

@bjlovegithub
Hi
Did you resolve that error above ?
I have the problem like this.


Micro:bit PXT - Rotation block Roll treated as Pitch

Hi,
The Roll option of Rotation blocks is ignored/treated as the Pitch option. Roll also returns different magnitude of values to Pitch. This appears to be a simulator issue not a compiler issue.
The attached code executes correclty on the Microbit, moving the code from 1,1 to 1,2, 2,1 and 2,2 according to the angle of the physical board. The simulator incorreclty displays only at 0,2 and 2,1.
Cheers,
Ed
microbit-pxt_rotation_bug.zip

Copy paste issue. See https://github.com/Microsoft/pxt-microbit/commit/3d0523a29869b484643432d160b7c5fed895352a

Yep, that also explains the magnitude difference.

In this build: https://travis-ci.org/Microsoft/pxt-microbit/builds/182392477


Added Webflow to the list

Add Webflow to the list.
Not sure if it should be added as a website or an app. It's a webapp for making websites.
They have a "native" app, but it's just electron or something like that.
Anyway, CTRL/CMD + e is amazing to use on their website. So I've added it under "websites"

Either way. Looks good! Thanks for contributing!


Program bets using the developer's account

Describe the bug
It appears that the program is betting with the developer's SaltyBet account. I discovered this as the balance the program thought I had was not correct. My actual balance was $10,000 but was instead showing $1,000,000. Upon debugging, it appears BeautifulSoup is returning the balance and leaderboard information from a username associated with the developer's account instead of the account provided credentials in the .env file.
To Reproduce
Enter required credentials in .env file and start SaltyStateMachine.py
Expected behavior
Program should pull balance from account provided in the .env file.
Notes
This appears to be an issue with the provided cookies in SaltyWebInteractor.py. Changing the cookie PHPSESSID in both the cookies and header dicts to the stored cookies in my browser seems to correct this issue.
Currently looking at this for implementation. Only the user agent is needed to be provided initially, then the remainder of headers/cookies can be accessed dynamically.

It looks like I can't pull "PHPSESSID" out of cookies, as it's not provided upon login.  (That I can see)

This has been fixed.  Please let me know if I've overlooked anything else relating to this issue, or anything else that comes up.
Thank you for the report!


About code

Hi, when would you release the all the code? I think you are waiting for the results of the ECCV. However, the incomplete code that you released will confuse the readers. Thank you so much.

Are you referring to the training code? Our training code may be released after the eccv results are released. Please understand. In addition, we have trained a better inpainting model that can handle large masks and has better granularity. It will be released in about 1 month. In addition, maybe you can tell me what is confusing you.


Should Docker images get rebuilt to mitigate CVE-2022-0185?

See https://ubuntu.com/security/CVE-2022-0185
For Alpine Linux they've bumped the kernel version to 5.15.16 for Alpine Linux 3.15-stable, see https://gitlab.alpinelinux.org/alpine/aports/-/issues/13475
Am i correct in assuming that for this update to Alpine Linux 3.15-stable to make it into the Adoptium Alpine Linxus-based Docker images a rebuild is required?

@gdams we pull the alpine base image so assuming that's updated we can respin these (actually we may not need to since we're in a release cycle and producing new images anyhow)?

Looks like the Alpine 3.16 base image is based on Alpine Linux 3.15.0, so not up to date: https://github.com/alpinelinux/docker-alpine/tree/v3.15
Created a case for that: https://github.com/alpinelinux/docker-alpine/issues/229

See https://github.com/alpinelinux/docker-alpine/issues/229#issuecomment-1023190330: looks like no action is needed here


"Cârlibaba", "Cârlibaba Nouă", "Iedu", "Șesuri", "Țibău" and "Valea Stânei" villages are listed in the drop-down menu.

Description:
The villages are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Preconditions:
The website (https://peviitor-ro.github.io/ui.orase/) is up and runing. After every step delete the text you typed from the search bar.

Step 1
Write in the search bar "Cârlibaba".

Expected results
The location is listed in the drop-down menu as "Sat Cârlibaba SUCEAVA (Cârlibaba)".

Step 2
Write in the search bar "Cârlibaba Nouă".

Expected results
The location is listed in the drop-down menu as "Sat Cârlibaba Nouă SUCEAVA (Cârlibaba)".

Step 3
Write in the search bar "Iedu".

Expected results
The location is listed in the drop-down menu as "Sat Iedu SUCEAVA (Cârlibaba)".

Step 4
Write in the search bar "Șesuri".

Expected results
The location is listed in the drop-down menu as "Sat Șesuri SUCEAVA (Cârlibaba)".

Step 5
Write in the search bar "Țibău".

Expected results
The location is listed in the drop-down menu as "Sat Țibău SUCEAVA (Cârlibaba)".

Step 6
Write in the search bar "Valea Stânei".

Expected results
The location is listed in the drop-down menu as "Sat Valea Stânei SUCEAVA (Cârlibaba)".


Fix GraalVM native image build error

Motivation:
Error: Class that is marked for delaying initialization to run time got initialized during image building: io.netty.handler.codec.http2.Http2CodecUtil. Try marking this class for build-time initialization with --initialize-at-build-time=io.netty.handler.codec.http2.Http2CodecUtil
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1

Modification:
After debugging, it seems the culprit is io.netty.handler.codec.http2.Http2ClientUpgradeCodec, which also needs runtime initialisation.
Result:
Fixes #https://github.com/micronaut-projects/micronaut-grpc/issues/8

@vjovanov @pmlopes  can you verify ?

@netty-bot test this please

I believe this fix is correct, from the offending class I can see:
static {
  UPGRADE_HEADERS = Collections.singletonList(Http2CodecUtil.HTTP_UPGRADE_SETTINGS_HEADER);
}

Which depends on a class that must be initialized at runtime Http2CodecUtil.
I'll let @vjovanov to analyse further as I believe he has more insights on how the compiler works.

All looks good, thanks!

@pete-woods can you please sign our ICLA and let me know once done:
https://netty.io/s/icla ?

@pete-woods can you please sign our ICLA and let me know once done:
https://netty.io/s/icla ?

Done

@pete-woods thanks a lot


Make RequirementType and EnumValue hashable

Hashing only works if the __eq__ and __hash__ methods are defined in the same class.

Hi! I came to this PR by tracing back the origin of a pylint warning that flew into my face, and I have opinions about it. :)
There's a good reason why Python requires an explicit override of the __hash__ method when overriding __eq__. Just keeping the parent class' __hash__ in this case violates the one fundamental requirement on __hash__:

The only required property is that objects which compare equal have the same hash value
— Python Documentation on object.__hash__()

Since instances of these classes compare equal to the string value of their .long_name, their hash value must be equal to that of the long_name; in other words hash(some_enum_value) == hash(some_enum_value.long_name) must always be True. Otherwise they cannot be looked up in hash collections (i.e. dictionaries) by their long_name, which is the exact property that we were after with having them compare equal in the first place. Try this with our 5.0 test model:
>>> dtd = model.by_uuid("637caf95-3229-4607-99a0-7d7b990bc97f")
>>> dtd.values
<CoupledElementList at 0x00007F2D8FB9BCB0 [<EnumValue 'enum_val1' (efd6e108-3461-43c6-ad86-24168339ed3c)>, <EnumValue 'enum_val2' (3c2390a4-ce9c-472c-9982-d0b825931978)>]>
>>> "enum_val1" in dtd.values
True
>>> "enum_val1" in set(dtd.values)
False

Because the __eq__() of these two classes delegates to GenericElement through super(), the hash value of EnumValues must also be equal to the hash of self._element (see https://github.com/DSD-DBS/py-capellambse/blob/a501bdf2a77ea906f79cc79bae793283a805dff3/capellambse/model/common/element.py#L206..L207). Satisfying both conditions at once is not possible for obvious reasons, but it's safe to drop the super delegation.
However, it is not safe to make the hash() based on the .long_name. Remember: The only reason we can get away with GenericElements being hashable at all is that their _element is considered immutable over their lifetime. Everything else, specifically everything that accesses the XML, is mutable and can therefore not be used in hashes.
Therefore the only possible course of action for this pull request (that I can come up with) is being rejected (or reverted, as it has already found its way into master).
There are basically two ways how we can address the unhashability of EnumValue and AbstractType:

We just keep these unhashable
We remove the equality to their .long_name attribute

Both cause inconveniences for different use cases.
In my opinion, we should go with option 1 and advise users who unconditionally require the hashability of all model objects (independent of their type) to explore alternative solutions. To facilitate this, we can "open up" the _element a little bit. Currently we treat it as a private attribute; we could "publish" it as an opaque, but hashable object. Then advanced users could use it to make hashes of every possible model object. In this case, to make the user experience around it more pleasant, we should also offer a function that takes such an object and converts it back into a "proper" model object, i.e. a GenericElement instance. This would most likely be a method on MelodyModel, analogous to .search() and .by_uuid().


External API Consumption with Azure Active Directory authentication

Hi Guys,
Can you update the Microsoft documentation for the logic to consume the .Net based external web APIs with Azure Active Directory authentication in Microsoft Dynamics 365 Finance & Operation using X++ code? Can you please provide sample Code examples for the same?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e3e8a936-3bef-b844-e935-adfadd03516f
Version Independent ID: 53cc6e3a-a62e-be0f-dba1-38f62394ee0e
Content: Consume external web services in Finance and Operations - Finance & Operations | Dynamics 365 | #MSDyn365FO
Content Source: articles/dev-itpro/data-entities/consume-external-web-service.md
Service: dynamics-ax-platform
GitHub Login: @Sunil-Garg
Microsoft Alias: sunilg

@DynamicsArvindSingh, thanks for the feedback.
@Sunil-Garg, can you review and update the topic if necessary? Bug 280780 has been logged to track this issue.

Hi Guys,
Recieved no update on this. its been 3 months.
Please update this document.


tokenizer error

(prepare.sh:67:main) Stage 2: Tokenize LibriTTS
[W ParallelNative.cpp:229] Warning: Cannot set number of intraop threads after parallel work has started or after set_num_threads call when using native parallel backend (function set_num_threads)
Traceback (most recent call last):
  File "/valle/valle/egs/libritts/bin/tokenizer.py", line 172, in <module>
    main()
  File "/valle/valle/egs/libritts/bin/tokenizer.py", line 108, in main
    assert len(manifests) == len(dataset_parts)
AssertionError

Error: Invalid value for '[MANIFESTS]...': File 'data/tokenized/libritts_cuts_train-clean-100.jsonl.gz' does not exist.
cuts seams to be missing, but why?

Fix https://github.com/lifeiteng/vall-e/commit/89d85bc24cd96d4ec1b3fee887efad259b88fd83


How to show watts in status bar?

Hello,
I've installed the application but do not see how to make it show the watts in the status bar. Running Android 12 (LineageOS).
Is there some setting to enable this?

Hmm, strange but it just started showing after being installed for some hours.  I guess I can close this issue.

Both opening the app and restarting your phone will start the status service. I'm not aware of any way to automatically launch an app or service after installation.

I did open the app after first installing.


[CT-48] [Bug] Logger throws recursion errors because of Deprecation Warnings

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
dbt debug shows that everything is green. Then I run
When running dbt run (or seed or deps) I get a recursion error (see output section).
Solution:
When I did some low key investigation it seems that this is triggered by deprecation warnings. I then took the liberty to add the line
warnings.filterwarnings("ignore", category=DeprecationWarning)

to dbt/logger.py and now it works. (Not sure if this is the best solution though)
Expected Behavior
It should not get the recursion error.
Steps To Reproduce
git clone git@github.com:dbt-labs/jaffle_shop.git
cd jaffle_shop
pyenv local 3.10.1
python -m venv .venv
source .venv/bin/activate
pip install dbt-postgres
dbt run

Relevant log output
Traceback (most recent call last):
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/logbook/handlers.py", line 216, in handle
    self.emit(record)
  File "jaffle_shop/.venv/lib/python3.10/site-packages/dbt/logger.py", line 467, in emit
    super().emit(record)
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/logbook/handlers.py", line 836, in emit
    msg = self.format(record)
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/dbt/logger.py", line 454, in format
    msg = super().format(record)
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/logbook/handlers.py", line 195, in format
    return self.formatter(record, self)
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/logbook/handlers.py", line 387, in __call__
    line = self.format_record(record, handler)
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/logbook/handlers.py", line 371, in format_record
    return self._formatter.format(record=record, handler=handler)
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/logbook/helpers.py", line 283, in __get__
    value = self.func(obj)
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/logbook/base.py", line 675, in thread_name
    return thread_get_name()
  File "/jaffle_shop/.venv/lib/python3.10/site-packages/logbook/concurrency.py", line 141, in thread_get_name
    return currentThread().getName()
  File "/home/xx/.pyenv/versions/3.10.1/lib/python3.10/threading.py", line 1442, in currentThread
    warnings.warn('currentThread() is deprecated, use current_thread() instead',
RecursionError: maximum recursion depth exceeded

### Environment

```markdown
- OS: Ubuntu 20.04
- Python:3.10.1
- dbt: 1.0.1

What database are you using dbt with?
postgres
Additional Context
No response

When I do the same for https://github.com/mjirv/dbt-datamocktool it works without problems. However, when I repeat it for jaffle_shop it fails. Maybe this is an issue just on my side or with the jaffle_shop repo?

Hey @senickel, thanks for the detailed write-up!
I believe this is a duplicate of https://github.com/dbt-labs/dbt-core/issues/4537. dbt v1.0 does not officially support Python 3.10; we're looking to add support for it in v1.1 (https://github.com/dbt-labs/dbt-core/issues/4562), which will require (at minimum) addressing the flood of deprecation warnings related to the legacy logger / logbook.
Until then, the official resolution will be to downgrade your Python version to 3.9 while using dbt.


Can you do regions with line charts?

I like chartist but I'm wondering if it is capable of doing regions with the line charts, something similar to this:

I don't care about the different shading, I'm talking about the green/red background colors in the chart from top to bottom.

I have a similiar need. I have days of the week along the X axis and I'd like to darkend the weekends. But not sure how I can do that.
In the same chart I need to shade regions on the Y axis which I have done by adding additional series and turning off the line and points. However the colors overlap and mix

I'm also interested, for day/night marking with different background color

https://stackoverflow.com/questions/37328302/fill-an-svg-shape-with-a-gradient

https://stackoverflow.com/questions/10894377/dynamically-adding-a-svg-gradient/10894745
Javascript:
chart.on("created", function () {
// attach the necessary events to the nodes:
createGradient($('svg')[0],'MyGradient',[
{offset:'0%', 'stop-color':'#00CF70'},
{offset:'100%','stop-color':'#00C1AC'}
]);
$('svg').addClass('ct-created');
});
CSS:
 .ct-series-a .ct-area {       fill: #00AA59;     }
.ct-created .ct-series-a .ct-area {       fill: url(#MyGradient);     }

@duchuy Did you try it? I'm trying to do something similar but I can't make any of this work.

I also have a need for this as I need to implement a RAG (red/amber/green) background relative to the values of the Y axis. The code above doesn't work for me either.


[WIP] Add monitor to metadata sync, active sync and replication checker

What changes are proposed in this pull request?
Please outline the changes and how this PR fixes the issue.
Why are the changes needed?
Please clarify why the changes are needed. For instance,

If you propose a new API, clarify the use case for a new API.
If you fix a bug, describe the bug.

Does this PR introduce any user facing changes?
Please list the user-facing changes introduced by your change, including

change in user-facing APIs
addition or removal of property keys
webui

@jiacheliu3 is this still WIP, do you plan to have it reviewed and merged at some point?


Default sorting in Sort header

Question:
How can I change Angular Material code below, so that data-table is sorted by 'name' column, ascending order by default. Arrow (indicating current sort direction) must be displayed.

    Dessert (100g)
    Calories
    Fat (g)
    Carbs (g)
    Protein (g)

    {{dessert.name}}
    {{dessert.calories}}
    {{dessert.fat}}
    {{dessert.carbs}}
    {{dessert.protein}}

What is the expected behavior?

What is the current behavior?
I was trying something like this, to show arrow (indicating sort order) but it doesn't work.

What are the steps to reproduce?
Here's link to Plunker
StackOverflow Question

You can do it like this:

  @ViewChild(MatSort) sort: MatSort;

  ngOnInit(): void {
    this.sort.sort(<MatSortable>{
        id: 'id',
        start: 'desc'
      }
    );
  }

You're mistaking matSortStart for matSortDirection.
Try this:

https://plnkr.co/edit/sg0hC5d8LTjLKhbH9Eug?p=preview
matSortStart can be used to reverse the cycle used when sort (e.g. when the user clicks to sort, it starts at desc instead of asc).

@andrewseguin Thank you - that's the solution I was looking for. Probably documentation  should be updated, because it is not very obvious how to do it.

// And we should remember that matSortActive shall go along with matSortDirection, to start working.

Related to this, how can I change the sort dynamically after initialization? For example, I have a table and every time I change the sort, I create a new route. Now if I want to go back and dynamically set the order of the prev page, I can set the order but the active field is not shown.

@mhosman as I said above, maybe, try to set both matSortActive and matSortDirection.

@ichepurnoy yes, I set both but nothig... maybe is a bug. I have something like this:

If I set the sortActive and sortDirection values in the ngOnInit it works okay dynamically, but after the view init if I try to change those values is not working.

@mhosman:  try this instead:

same issue as @mhosman

same problem as @mhosman, I've try both methods assigning:

... matSortActive="{{ sortActive }}" matSortDirection="{{ sortDirection }}" ...
... [matSortActive]="sortActive" [matSortDirection]="sortDirection" ...
Both method didn't work after initilized (only the first time I've set the values this will work).
Any ideas on how to solve this???

It is bug for sure. I solved this issue with a small CSS workaround:
Template:
...  [matSortActive]="sortActive"   [matSortDirection]="sortDirection" matSortDisableClear
CSS:
th.mat-header-cell .mat-sort-header-container.mat-sort-header-sorted .mat-sort-header-arrow{   opacity: 1 !important; }

@pavelekNET I also needed to add the transform to the css (or else the arrow was not aligned properly).
.mat-header-cell .mat-sort-header-container.mat-sort-header-sorted .mat-sort-header-arrow {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

// And we should remember that matSortActive shall go along with matSortDirection, to start working.


use yes/no for slave-read-only

I used this role to install a redis 5.0.8 master/slave setup. On the slave I got the following error in journalctl -u redis_6379:
Mär 25 13:59:02 *** redis-server[11357]: *** FATAL CONFIG FILE ERROR ***
Mär 25 13:59:02 *** redis-server[11357]: Reading the configuration file, at line 32
Mär 25 13:59:02 *** redis-server[11357]: >>> 'slave-read-only False'
Mär 25 13:59:02 *** redis-server[11357]: argument must be 'yes' or 'no'

This PR fixes the error.

Currently, these should be set to "yes" or "no" (with quotes) to avoid being interpreted by YAML as booleans and ending up as True/False in the config. While I think this method is probably superior, it's likely to cause a breaking change for anyone currently using redis_slave_read_only: "no", which I think would evaluate to True.


Since v1, resetModel throw error

Hey,
Since upgrading to v1 (1.1.1 to be precise), I have this error when calling resetForm:
TypeError: Cannot read property 'inputs' of undefined
    at resetModel (webpack:////Users/adrien/Documents/GitHub/brigad-front-end/node_modules/formsy-react/lib/index.js?:221:12)
    at eval (webpack:///./client/src/common/user-details/js/DisplayCreateUserStates/components/CreateUserState.js?:95:9)
    at _callee2$ (webpack:///./client/src/action-creators/jobSeeker/states.js?:196:17)
    at tryCatch (webpack:////Users/adrien/Documents/GitHub/brigad-front-end/node_modules/regenerator-runtime/runtime.js?:65:40)
    at Generator.invoke [as _invoke] (webpack:////Users/adrien/Documents/GitHub/brigad-front-end/node_modules/regenerator-runtime/runtime.js?:299:22)
    at Generator.prototype.(anonymous function) [as next] (webpack:////Users/adrien/Documents/GitHub/brigad-front-end/node_modules/regenerator-runtime/runtime.js?:117:21)
    at step (webpack:///./client/src/action-creators/jobSeeker/states.js?:21:221)
    at _next (webpack:///./client/src/action-creators/jobSeeker/states.js?:21:409)
    at <anonymous>

Everything works as expected though. Maybe something was broken in the big update?
Thanks in advance!

Looks like you confused the repo.

This is true, I am sorry!


feat: solidity adapters

Description:
Commit Message
feat: wormhole and layerzero adapters

see the guidelines for commit messages.
Changelog Entry
version: <log entry>

Checklist:

[x] I have performed a self-review of my own code
[ ] I have documented my code in accordance with the documentation guidelines
[ ] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have run the unit tests
[ ] I only have one commit (if not, squash them into one commit).
[ ] I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Should we make these upgradable for now? Or keep them constant? @redlarva

Should we make these upgradable for now? Or keep them constant? @redlarva

I'm uncertain about it, as there is no sensitive information stored in it. Moreover, if there are any connection issues, we have the option to create a new contract or connection, right? So, considering this, I think it shouldn't be made upgradable.


Benchmarking operations

Find out where the easy wins are in the codebase and optimize them.
This should be done after we do first betas.

These benchmarks should also be added into CI so we can see if we're regressing on performance.

We're open to any new benchmarking code that anyone happens to write, so I'm adding the Hacktoberfest tag here.

this issue is too vague to implement anything against. I'm going to close it.


Close #197, use cache to massively reduce RAM

Feature described in docs of data/image_data.py

@virajkaram I'm just going to merge this, I was waiting for your review but I want to get this in to make sure it is working in production.