NIFI-10194: Simplified SendTrapSNMP error handling

Summary
NIFI-10194
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[x] Apache NiFi Jira issue created

Pull Request Tracking

[x] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[x] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[x] Pull Request based on current revision of the main branch
[x] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[ ] Build completed using mvn clean install -P contrib-check

[ ] JDK 8
[ ] JDK 11
[ ] JDK 17

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

LGTM
Thanks Level for you work!
Pushed to main

Thanks for the review!


Taskoverview/navigation

Use location state to use a custom url in taskoverview's back-button.

React Router does not grant direct access to the history stack, since its mutable. Instead it has location state, which seems like the correct place to accomplish this.
When navigating to taskoverview, pass an object { pathname: string, state: { from: string; } } instead of the task overview url. Then the back-button will redirect to the from property url

This is used in TaskRow (except when location is already task overview) and the relation "modal"
RoadmapGraphSidebar is changed to VersionDetailsModal. This is to get a modal url, so we can navigate back to it from task overview.

Great points - added fixes 👍


Add MinHorizontalTransformer

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (815b333) to head (1157f2e).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #374   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           53        54    +1
  Lines         1381      1396   +15
  Branches        55        55
=========================================
+ Hits          1381      1396   +15

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Complete installation with dependencies

It would be great to have full installation instructions for a Linux based installation
Short install instructions provided here are assuming you already have CouchDB installed nad configured but this is something that most (probably) of potential users won't have
I am currently stuck on that particular step. I have no idea how to install and configure CouchDB for the purpose of TinyList
Stuck at the CouchDB configuration and TinyList configuration to use that installed CouchDB instance

I started to write a response, but instead I just went ahead and created a wiki article for it:
https://github.com/baggachipz/tinylist/wiki/Configuring-CouchDB-for-use-with-TinyList
Let me know if that helps you out. Cheers!

Thank you for the couchDB installation and configuration steps
I can access my Tinylist instance from my subdomain but when I click "Get Started" button I am stuck on the following screen

No idea what is going on and how to even debug what is wrong
That is the reason why I asked for step-by-step instructions
I am sure that many of possible users of your application are not the developers but enthusiasts as myself. Because of that, i am quite sure that there will be many who will try it but will just walk away because the initial setup is just too complicated

Same issue here... Click on "Get started" and nothing happens... It keeps loading forever...
Log:
db_1        |
db_1        | [notice] 2020-10-18T13:22:39.774839Z nonode@nohost <0.1940.0> c43720f993 <IP_ADDRESS>:5984 <IP_ADDRESS> tinylist GET /_active_tasks 200 ok 1
db_1        | [notice] 2020-10-18T13:22:43.728758Z nonode@nohost <0.323.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
db_1        | [error] 2020-10-18T13:22:43.728954Z nonode@nohost emulator -------- Error in process <0.2922.0> with exit value:
db_1        | {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}
db_1        |
db_1        | [error] 2020-10-18T13:22:48.729882Z nonode@nohost emulator -------- Error in process <0.2969.0> with exit value:
db_1        | {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}
db_1        |
db_1        | [notice] 2020-10-18T13:22:48.729963Z nonode@nohost <0.323.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
db_1        | [notice] 2020-10-18T13:22:53.731905Z nonode@nohost <0.323.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
db_1        | [error] 2020-10-18T13:22:53.731931Z nonode@nohost emulator -------- Error in process <0.3004.0> with exit value:
db_1        | {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}
db_1        |
db_1        | [notice] 2020-10-18T13:22:54.770784Z nonode@nohost <0.1940.0> 39e3a6bd2c <IP_ADDRESS>:5984 <IP_ADDRESS> tinylist GET /_active_tasks 200 ok 1
db_1        | [notice] 2020-10-18T13:22:58.732979Z nonode@nohost <0.323.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
db_1        | [error] 2020-10-18T13:22:58.733036Z nonode@nohost emulator -------- Error in process <0.3054.0> with exit value:
db_1        | {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}
db_1        |
db_1        | [notice] 2020-10-18T13:23:03.733668Z nonode@nohost <0.323.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
db_1        | [error] 2020-10-18T13:23:03.733834Z nonode@nohost emulator -------- Error in process <0.3089.0> with exit value:
db_1        | {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}
db_1        |
db_1        | [notice] 2020-10-18T13:23:08.734657Z nonode@nohost <0.323.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
db_1        | [error] 2020-10-18T13:23:08.734834Z nonode@nohost emulator -------- Error in process <0.3136.0> with exit value:
db_1        | {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}
db_1        |
db_1        | [notice] 2020-10-18T13:23:09.761632Z nonode@nohost <0.1940.0> 3f977ed1b7 <IP_ADDRESS>:5984 <IP_ADDRESS> tinylist GET /_active_tasks 200 ok 1
db_1        | [notice] 2020-10-18T13:23:13.735659Z nonode@nohost <0.323.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
db_1        | [error] 2020-10-18T13:23:13.735803Z nonode@nohost emulator -------- Error in process <0.3171.0> with exit value:
db_1        | {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}

I've updated the instructions after re-creating the environment on my (new) local machine and noticing I was missing a step or two. Please give it a try again and let me know if there are any issues.

I've updated the instructions after re-creating the environment on my (new) local machine and noticing I was missing a step or two. Please give it a try again and let me know if there are any issues.


Rename duplicate entrypoints

Fixes https://github.com/jupyter/notebook/issues/6501
cc/ @Zsailer @RRosio @ericsnekbytes

Hm, this seems like it would lead to more confusion around the entry-points.
What if notebook_shim owned these entry-points, and we removed the entrypoints from both nbclassic and notebook<7?
Then, notebook_shim would attempt to load the underlying methods from nbclassic first, and fallback to notebook if not available.

The potential issue with notebook_shim installing the entrypoints is that the decision will be taken based on the current env situation. Then the env can evolve, e.g. you could install notebook<7, and a few days after install nbclassic.
My understanding is that the entrypoints are installed once, and stay there until removed. They are not meant to be changed at runtime.

Actually, thinking about this more... why does nbclassic need to define these entrypoints at all? Shouldn't it just depend on whatever comes from the notebook package? I can't think of a good use-case for why you would want nbclassic to configure notebook extensions, server extensions, and bundlers separately from notebook. I think nbclassic should inherit all of these from the notebook package.

Nevermind... I just remembered that nbclassic doesn't depend on notebook anymore. Sorry for the noise.

No noise at all here, the picture is not easy to have in mind. Indeed, we need such entrypoints for extensions, bundlers... as nbclassic can be installed without notebook.

@Zsailer We have discussed this at the last notebook community call, and have not found other alternatives so far. Any other thoughts/questions you would have?

Thanks, @echarles.
I'm still concerned with the degradation in the user experience here. We have already experienced a lot of confusion jupyter serverextension entrypoint:
jupyter serverextension ...

vs.
jupyter server extension ...

Now we are looking at adding another one
jupyter nbclassic-serverextension ...

I'm worried about the extra confusion that this will create.
I think we should optimize for user experience here. Thinking about this more, I think I came up with a solution. Granted, it means we have to maintain one more (lightweight) package, but I believe it provides the expected user experience.
I've created a new repo: jupyter_notebook_entrypoint. This repo would own the entrypoints, eliminate all conflicts, and resolve the entrypoints based on what packages the user has installed.
To get this working, Notebook v6, Notebook v7, and nbclassic would all need to remove their console script definitions for these entrypoints and depend on this package. Try it out and let me know what you think!

Simple and elegant @Zsailer. I have tested and it works great. Looking at your code, I see the following logic, which can be fine tuned (v7 first, but then not sure about nbclassic of v6).

# Attempt to load form notebook v7 first.
# If using notebook v6 is installed, use that.
# If notebook is not installed, fallback to nbclassic.

I am also working on the endpoints aspect where we need to register under /tree the notebook v7 by priority. I don't think this is related to this discussion, but likes to highlight it also as we will have multiple places where we detect the presence of absence of packages, eg. https://github.com/jupyter/nbclassic/blob/33f5cbd89ee38e46a66bba03cefa15618eba1f84/nbclassic/init.py#L10-L15

@Zsailer While discussing this question internally, I came with comparing the explicit approach (what this PR does) and the implicit approach (what jupyter_notebook_entrypoint is providing).
I can see 2 downsides to jupyter_notebook_entrypoint which can be mitigated:

As a user typing the same command (one of the entrypoints), I don't know what is effectively implicitly called. This can be mitigated by adding logs to tell the user which entrypoints in installed. I am not sure if some logs can be shown at runtime.
This is another package to release and notebook/nbclassic (with their branches) need to be updated. This package is not supposed to evolve, but the needed code (jupyter-releaser...) still needs to be setup.

We discussed this more in the Notebook meeting today. I agree with @echarles's characterization—jupyter_notebook_entrypoints is more of an "implicit" approach and opens the door for a different kind of confusion for users that might be more difficult to debug in the long run.
I think we should stick with the "explicit" approach here in this PR. I also recommend that we spend some time during one of the Notebook Meeting calls and "dogfood" these changes a bit. We might find that we need to add some logging to the entrypoints in notebook and nbclassic to help users understand the difference. This will likely require a landing page with documentation explaining the relationship between these packages.
Thanks, @echarles, for doing this work here!

Thanks, @echarles, for doing this work here!

Thx for the alternatives and discussions @Zsailer


performance optimize , move make new database connection out of critical section.

performance optimize , move make new database connection out of critical section.

Thanks for spotting and resolving!


Failed to load js/css files

I run on Docker with CeleryExecutor (docker-compose -f docker-compose-Celery.yaml up -d)
And i couldn't load Airflow page properly using Google Chrome.

Does anyone have this issue?

closed, the problem is gone after i disabled my anti-virus software


Example build failure with gcc 5.4, cxxstd=11

This is with the tip of develop as of this morning:
b2 toolset=gcc-5 cxxstd=11 variant=debug -j3
testing.capture-output ../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union.run
====== BEGIN OUTPUT ======
postcondition assertion "!integer()" failed: file "../../libs/contract/example/features/union.cpp", line 100
terminate called after throwing an instance of 'boost::contract::assertion_failure'
  what():  assertion "!integer()" failed: file "../../libs/contract/example/features/union.cpp", line 100
Aborted (core dumped)

EXIT STATUS: 134
====== END OUTPUT ======

    LD_LIBRARY_PATH="/home/travis/build/jeking3/boost-root/bin.v2/libs/contract/build/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden:/home/travis/build/jeking3/boost-root/bin.v2/libs/system/build/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden:/usr/bin:/usr/lib:/usr/lib32:/usr/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

    status=0
    if test $status -ne 0 ; then
        echo Skipping test execution due to testing.execute=off
        exit 0
    fi
     "../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union"   > "../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union.output" 2>&1 < /dev/null
    status=$?
    echo >> "../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union.output"
    echo EXIT STATUS: $status >> "../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union.output"
    if test $status -eq 0 ; then
        cp "../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union.output" "../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union.run"
    fi
    verbose=0
    if test $status -ne 0 ; then
        verbose=1
    fi
    if test $verbose -eq 1 ; then
        echo ====== BEGIN OUTPUT ======
        cat "../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union.output"
        echo ====== END OUTPUT ======
    fi
    exit $status

...failed testing.capture-output ../../bin.v2/libs/contract/example/features-union.test/gcc-5/debug/cxxstd-11-iso/threading-multi/visibility-hidden/features-union.run...

https://api.travis-ci.org/v3/job/540752932/log.txt

Yes, I saw this yesterday and fixed it 4h ago. If you update develop it should be fixed now. Unfortunately, I don't know if the fix re-introduced a valgrind warning that was there a few months back...
In any case, those are examples, not tests, so you don't need to run them. I won't fixed the valgrind warning even if it's re-introduced now because it's specific to an example used in the docs and it doesn't matter for the lib and its tests.

Examples should work however, otherwise they are bad examples.

Yes, this reintroduced the valgrind issue.  Having CI on the repository will help eliminate this game of whack-a-mole.  I'm working on it.


add task1,2 and images

@ciciecho-ds : just 2 minor comments, should we

Task 3: move the link to the notebook to next line, highlight the link so it's more eye-catching for TA to grade.
Task 4: highlight the link also.

@ciciecho-ds : just 2 minor comments, should we

Task 3: move the link to the notebook to next line, highlight the link so it's more eye-catching for TA to grade.
Task 4: highlight the link also.

I haven't added anything for 3 and 4.

@ciciecho-ds : just 2 minor comments, should we

Task 3: move the link to the notebook to next line, highlight the link so it's more eye-catching for TA to grade.
Task 4: highlight the link also.

I haven't added anything for 3 and 4.

Oh sorry, I misunderstood.


Switch to cached database for routing import

Signed-off-by: Andrew Butt<EMAIL_ADDRESS>On our hard drive based storage system, this change decreases the runtime of the import graph nodes step of routing import from over an hour to under 2 minutes.

The flip side is this increases the RAM usage dramatically.  How's your runtime with the "create_edges" step right now?  "create_edges" doesn't use a database cache either.
Rather than bringing all of the database into memory, we should identify which query's are problematic and fix them.  py-spy uses a sampling methodology that should quickly be able to identify where wall-clock time is being spent.

In general, the access patterns for the routing import step should be:

index lookups that SQLite should be caching already
Row scans that should be disk lookahead friendly

In general, the access patterns for the routing import step should be:
* index lookups that SQLite should be caching already

* Row scans that should be disk read cache friendly

If there are access patterns that don't match this, we should fix them, as I'd expect they will improve routing import time on SSD based machines as well.

https://github.com/andrewb1999/summer-of-code-resources/blob/master/profile.svg
Here is an example profile from py-spy for the import graph nodes step.  You can see that most of the time is spent on line 652, 673, and calls to update_connection_box.
Any idea why these queries would be so taxing in specific?  I assume this means they do not match the access pattern described, but I'm unsure how to fix it.

Those all look good.  I believe the issue is that the SQLite cache is too small and results in evicting the b-trees on use, rather than holding them in memory.  The b-trees shouldn't be too big, but the default cache size is only 2 MB, which they will likely thrash.

I just checked the 3 indicies that get hit by the queries you listed, and they total about ~120 MB of b-trees.  I believe if you try setting the sqlite cache to 256 MB, the runtime should improve dramatically, with a bounded increase in memory usage:
PRAGMA main.cache_size = -256000;

I just checked the 3 indicies that get hit by the queries you listed, and they total about ~120 MB of b-trees. I believe if you try setting the sqlite cache to 256 MB, the runtime should improve dramatically, with a bounded increase in memory usage:
PRAGMA main.cache_size = -256000;

I added a line in the python cur.execute('PRAGMA cache_size = -256000;') right after opening the sqlite db and did not observe a noticeable runtime improvement.

Which graph is this on?

Which graph is this on?

arty-swbut


Strange bug

When i tile in another virtual desktop, sometime, on the other desktop put the window on half screen, even if there is only that window.
You can try to recreate it by open firefox in desktop 1, then switch to desktop 2 and do some tiling
Sometime everything works fine, but other time there is this strange bug.

Oh, and sometime the autotile don't work, like the second image

I want to say that some of these bugs are caused by a race condition between the geometry being changed in the windows and the desktop/status of the windows being changed. There's not a whole lot that I can do because this is internal within KWin, but I'm working on setting some flags so that geometryChange will not be triggered. In the meantime, bind the untile/retile window keybind to something in your shortcuts and you should be able to double-click it to fix most problems.

Also it almost goes without saying, but make sure you're using version 0.2.2. A lot of these bugs existed very, very frequently in v0.1.3 and lower.

v0.3.0 has some added protection against these race conditions, try it out and see if it works

Well, it look like that now works!
But, now when i create a new window it pop up at left, and the already existing window go to the right.
I don't know if is a bug or not, but is a bit strange i think

This is intended behavior, but I can see how some people may not like it. I'll add a switch to change the insertion order. Closing this issue because the original problem has been resolved

The switch to change the insertion order has been added, so windows will now pop up on the right if you enable it in the script settings.


Add foreign key for campaign.company_id

Implements #374
After execution, the campaign table contains campaigns_company_id_fkey as constraint:
 constraint_catalog | constraint_schema |             constraint_name             | table_catalog | table_schema |       table_name        | constraint_type | is_deferrable | initially_deferred | enforced
 postgres           | api               | campaigns_company_id_fkey               | postgres      | api          | campaigns               | FOREIGN KEY     | NO            | NO                 | YES

@Nnachevvv Was there a need to change schema.prisma file or the migration was enough? I don't see such diff in the PR

@kachar I think this field has been already added in our schema before:
https://github.com/podkrepi-bg/api/blob/d75283f2b172ec61c1845e534cec78016df24479/schema.prisma#L203
The command yarn prisma db pull only aligns the lines, so I think the migration is enough, but I maybe be wrong

Ah, so the field has been added but without a migration, and now we add the migration. Thanks for clarifying that and kudos for your efforts. 🚀


Add support for age backend

Summary
Feature request to add age as a supported backend
Additional context
age's goal is to be a replacement for gpg, so it would be great to have it as an alternative in gopass.

I was actually trying to find the interface that an encryption backend must satisfy. Looking around in the code this seems to be the closest readable definition :
https://github.com/gopasspw/gopass/blob/master/pkg/backend/crypto/plain/backend.go

Looks like the best place to start, good find.  age is still unstable, so probably best to wait until the API shakes out a bit more.

Good idea. I yet have to read the age specs, but I believe @FiloSottile knows what he's doing.
Once age is stable it shouldn't be difficult to implement it as a backend.
Of course we'd also need to properly implement the agent, otherwise it'd be no fun.
But maybe that's something upstream will take care of. They seem to consider age as a password store backend already.

Hey, I would love for this to happen once we mark the format as stable. I will have indeed to figure out an agent protocol. There's a chance we'll just reuse the ssh-agent one. I will update this issue once that's settled.

Just noticed that age supports ssh public keys, which makes key handling very ... handy.
I'll try to take a stab at replacing the custom crypto backend soon.
However it doesn't support a caching agent (yet).

Disregard that comment. I need to contemplate more on https://github.com/FiloSottile/age/issues/7.
If we could use age as library then perhaps wouldn't even need any kind of (complex) agent support.
I wonder if we can get away with caching the passphrase while gopass is running. This would support the few bulk operations we have. It wouldn't help with external programs calling gopass repeadetly.

I fail to understand the reasoning behind not supporting the standard ssh agent. I was hoping that age would be an nice way out of the GPG complexity.  :-(

So we have preliminary age support now.
The private key is not (yet?) password protected, so it's not as safe (depending on your attack scenarios) as the other backends. But it works and it can be easily extended. I'm considering to protect the private key with age itself (using the passphrase mode).
I'd absolutely love to use age as a library, especially to make it easier for users who can't easily compile from source or are using windows. But last time I checked age hid it's API in an internal/ package that can't be used from the outside.

This is awesome! (I'm planning to work on the public API next week!)

Any progress on this? I'd love to use age backend with ssh keys via ssh-agent as identities :-)


Cannot map model

Hello, I'm trying to map a model but every time I index the changes nothing has been used.
Made sure to clear everything from ES when testing it.
Commands that i tried:
php artisan elastic:update
and
php artisan scout:import "App\Models\AgencyOffer"
Tried to map it both from the config file explorer.php and also with mappableAs neither worked.
Here is how my mapping looks like:
'indexes' => [
        'agency_offers_index' => [
            'properties' => [
                'id' => 'keyword',
                'agency_id' => 'keyword',
                'agency_broker_id' => 'keyword',
                'agency_client_id' => 'keyword',
                'name' => 'object',
                'description' => 'object',
                'ref_code' => 'long',
                'deal_type' => 'long',
                'status' => 'long',
                'property_main_type_id' => 'long',
                'property_sub_type_id' => 'long',
                'property_source_id' => 'long',
                'property_location_domain_id' => 'long',
                'property_location_domain_city_id' => 'long',
                'property_location_domain_sub_city_id' => 'long',
                'property_location_domain_city_street_id' => 'long',
                'address' => 'text',
                'coordinates' => 'text',
                'old_price' => 'long',
                'price' => 'long',
                'price_with_commission' => 'long',
                'property_currency_id' => 'long',
                'exclusive' => 'long',
                'top' => 'long',
                'nocommision' => 'long',
                'ask_price' => 'long',
                'youtube_link' => 'text',
                'bird_eye_360' => 'text',
                'property_portal_ids' => 'long',
                'created_at' => 'date',
                'updated_at' => 'date',
                'deleted' => 'long',
                'deleted_at' => 'date',
                'restored_at' => 'date',
                'coordinates_full' => 'text'
            ]
        ]
    ]

Versions:
Tried with both 3.2.1 and 3.3.0
Laravel 9.37
PHP 8.1.10
Elasticsearch 7.9.3

Tried to debug why it fails to map it properly but could not find anything.
So instead I used https://github.com/babenkoivan/elastic-migrations to create my migrations and then load the data into ES and works fine.
Still would like if I don't have to use elastic-migrations, but until I find solution i will stick with it.

I have written about it. If you want to apply mapping index, you need use "scout:index IndexName" and after that "elastic:update"

I have written about it. If you want to apply mapping index, you need use "scout:index IndexName" and after that "elastic:update"

Thanks for the comment, will try it tomorrow.

Tested it, works fine. I wonder why is this not documented in Laravel Scout anywhere in their docs.
Probably also good idea to be added in Explorer docs?
Also with my mapping above I noticed something is wrong somewhere, because it only imports 19 results out of 1k+
Thanks once again, will close the issue.

I don't know) I learned about it by reading a lot of different information. But I don't like that when the index is filled and data doesn't match the mapping, then the elastic skips the data without writing it

He didn't write error( I don't know yet how to fix the display of errors when the mapping does not match


Unit test failures

Proposed changes
Investigation into unit test failures. Changes to tidy some resources
Checklist
Before creating a PR, run through this checklist and mark each as complete.

[x] I have read the CONTRIBUTING document
[x] I have run make install-tools and have attached any dependency changes to this pull request
[x] If applicable, I have added tests that prove my fix is effective or that my feature works
[x] If applicable, I have checked that any relevant tests pass after adding my changes
[ ] If applicable, I have updated any relevant documentation (README.md)
[ ] If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

Waiting for https://github.com/nginx/agent/pull/401 before I merge


WIP tls: add feature to build against OpenSSL

This adds a new feature "openssl" to build against OpenSSL instead of
BoringSSL. We need this because the OpenSSL and BoringSSL APIs are not
fully compatible (e.g. some "functions" are actually macros wrapping
SSL_ctrl()).
To build OpenSSL do:
 % git clone --branch=master-quic-support https://github.com/akamai/openssl/
 % cd openssl
 % export OPENSSL_INSTALL_PATH=$PWD/build
 % ./config enable-tls1_3 --prefix=$OPENSSL_INSTALL_PATH
 % make -j$(nproc)
 % make install_sw

To build quiche using the above OpenSSL build do:
 % export PKG_CONFIG_PATH=$OPENSSL_INSTALL_PATH/lib/pkgconfig
 % export LD_LIBRARY_PATH=$OPENSSL_INSTALL_PATH/lib
 % cargo test --features openssl

Depends on #125 and https://github.com/openssl/openssl/pull/8797 but note that this doesn't actually work yet (handshake fails), so will need to debug further.

Can we add the rustls and ring option? #129

@ghedo

The upstream OpenSSL PR is still open with no end in sight.

What is it blocked on?

perhaps target https://github.com/akamai/openssl/tree/OpenSSL_1_1_1d-quic ?


Allow for custom offsets for natural language dates with day names

This is an extremely useful plugin, but it handles day names a bit wrong for the way I think.
Some examples of how the plugin works, and how I think about dates:

Input
Plugin
My mind

@Friday
the Friday before today (same as "this Friday")
the Friday after today (same as "this Friday")

@this Friday
the Friday before today
the Friday after today

@last Friday
one week before the Friday before today
the Friday before today

@next Friday
the Friday after today
the next Friday after "this Friday"

Maybe I'm alone in this, but that's the way I think about those. I generally use future dates a lot more than past dates, whereas the plugin seems to do the opposite.
Right now, I can't really "trust" the plugin to insert the correct date, because:

I input a natural language date
the plugin replaces it with a date
I have to look it up in a calendar to check that it's correct

I might have as well looked up the date in the calendar in the first place ¯\_(ツ)_/¯

So, it would be great if the plugin allowed for customization for these phrases. For the above examples, it actually looks like there's exactly a 1 week offset between those, so that would work for me, but more customization is always better.

Or alternatively, if the plugin had e.g. @+Friday (Friday after today) and @-Friday (Friday before today), they would be completely unambiguous, although not quite as "natural".
You could even "chain" those and do something like @+Friday+7 (Friday after today plus 7 days) or @-Friday-week (Friday before today minus 1 week). But maybe these are past the point of the plugin, since they're not as natural.

Hi, thanks for the request. I just wanted to clarify exactly what the plugin is doing to interpret next, this, and last (though I'm not defending the behavior)

This Friday - the plugin actually checks for the closest Friday, either upcoming or past.
Next Friday - 7 days after This Friday
Last Friday - 7 days before This Friday

Ah okay, good to know. The ones I have above were just based on quickly testing how the plugin behaves, I didn't actually check the documentation or code. :sweat_smile:
To me "(this) Friday" is always either today (if it's Friday), or the Friday after today. If yesterday was Friday, it's already "last Friday" to me. "Next Friday" is sometimes a bit blurry; in conversation I would probably say "Friday a week from now", if I don't mean the very next Friday after today.
But to most people "(this) Friday" might be the "closest" Friday, like the plugin currently understands it, I'm not sure. Might also depend on where you're from (I'm from Finland), your native language, etc., localization is difficult. I don't care what the default is, if it would be configurable to what's "natural" for the particular user. :stuck_out_tongue:

hmm.. I guess the best way would be an option.
THIS means nearest (past or future) day = True (default) as it is the behavior now
THIS means next future day = False
And btw: THIS atm isn't working correctly. Today is Tuesday and my THIS Thursday is last week 😞


using together with existing helpers not rendering properly

I am using shadcn rails component which have
module Components::ButtonHelper
  def render_button(label = "", text: nil, variant: :default, as: :button, href: nil, data: {}, **options, &block)
    button_classes = " inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 h-10 px-4 py-2 "
    varianet_classes = case variant.to_sym

    ....
    text = capture(&block) if block
    render "components/ui/button", text:, button_classes:, as:, href:, data:, **options
  end
end

components/ui/button

<% case as %>
<% when :link %>
  <%= link_to href, class: button_classes, data: data do %>
    <%= text %>
  <% end %>
<% when :button %>
  <%= button_tag class: button_classes, data: data do %>
    <%= text %>
  <% end %>
<% end %>

and in phlex I am trying to render like this
class Posts::Index < ApplicationComponent
  attr_accessor :posts, :pagy

  def template(&block)
    div(class: "flex flex-row w-full") do
       div do
         h1(class: "text-4xl font-bold my-4") { "Posts" }
       end
       div(class: "ml-auto mt-5") do
            helpers.render_button(as: :link, href: new_post_path) do
              div(class: "flex flex-row") do
                lucide_icon("eye")
                h1(class: "px-2 text-gray-400") { "Show" }
              end
            end
       end
    end

This code should yield something like this
<button>

 <lucide-icon> </lucide-icon>
 Show

  <button>

But instead of that, its not wrapping button tag complete and the generated one is not wrapping button tag

 <lucide-icon> </lucide-icon>
 Show

So the question is, is there anyway i can use without rewriting the component for all shadcn helpers

#141 https://github.com/phlex-ruby/phlex-rails/issues/141
This seems to be due to capture helper conflicts as above issue


fix: sass exports

cascading patch

I am sorry I did not correctly check that in PR #914 that you previously opened.
I think we should always first open PRs to target the main branch. And then if a patch is needed, we should cherry-pick (with -x) from the main branch to the release branch.


Naming containers.

Currently when naming a container through cattle the name is not reflected in the actual docker. As a result you cannot go into docker and find the container based on its name.

Closed in favor of rancher/rancher#3845


Resolve the 2 Composer Files

There are two composer files, one in the project root directory and one in Laravel. I'm assuming we only need one of them?

Removed the unneeded composer fule


Add more documentation for using NBTUtil

I tried some combinations and still have no results.
Trying to operate on a "playerdata/*.dat" file.
I'm using Cygwin on Windows, so I may need to fix my paths.  I have been using Windows-style for now, with spaces.
Referenced these links for help:

https://minecraft.fandom.com/wiki/NBT_path_format
https://github.com/jaquadro/NBTExplorer/issues/35

Failed Examples:
> NBTUtil.exe "$file" --path='Inventory[]' --print
Operation complete.  Nodes succeeded: 0  Nodes failed: 0

> NBTUtil.exe "$file" --path='{}' --printtree
Operation complete.  Nodes succeeded: 0  Nodes failed: 0

@Pysis868
It took me some time to find out how this tool is working, you should try to specify the path to your file after the "--path" argument.
e.g.
NBTUtil --path "level.dat" --printtree

Additional info I've discovered through testing:

Linux users can use / instead of \ for path separator, both for "real files" and "NBT Paths": `NBTUtil --path MyWorld/level.dat/Data/Player

It does NOT understand neither absolute paths nor the relative "prefixes" ./ and ../, so you can only open files inside the current directory!
So to open a given level.dat you must cd to a parent directory and use a relative path that contains no ../, like:

cd ~/.minecraft/saves && NBTUtil --path "New World"/level.dat/Data/Player --print

It also does not seem to like opening files when you're at the filesystem root. Considering a /tmp/level.dat file, this works:

cd tmp && NBTUtil --path level.dat --print

and this doesn't:
cd / && NBTUtil --path tmp/level.dat --print

(and cd / && NBTUtil --path level.dat --print works if you actually have a level.dat in your filesystem root - I've tested it!)
So NBTUtil is very picky on the supported paths and directories it works


Initial Kinetis pinctrl Implementation

This PR adds an initial implementation of pinctrl for kinetis series MCUs, with the UART driver enabled. It is based on the work in #39743, but uses a pin group based approach instead of pin nodes. Pin mux configurations are defined at the SOC level as constant values, and these values are referenced in the pin groups in order to select pin mux options.

@gmarull please re-approve

@dleach02 @mmahadevan108 please review


Update elisp packages

Motivation for this change
Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

https://github.com/NixOS/nixpkgs/issues/150568

Version format change (yet again) for bqn-mode confuses repology: https://repology.org/project/emacs:bqn-mode/versions#nix_unstable

Version format change (yet again) for bqn-mode confuses repology: https://repology.org/project/emacs:bqn-mode/versions#nix_unstable

This is not a serious issue IMHO, because until now Nixpkgs is the only package manager who maintain emacs-bqn-mode.
When RFC 0107 be solved, this will not be an issue anymore.


No documentation how to configure expectations for standalone mockserver

Hi James,
Thanks for maintaining such a very useful project! I successfully use mock-server in my integration tests.
Nowadays I try to make a setup with expectations using standalone process for mock-server and didn't find a documentation how to archive that. Would be great if you add that to the website.
Thanks in advance!
Dmitry Ustimov

Sorry for the delay in responding.
What exactly are you trying to configure?  Perhaps the website is not clear enough and needs improving but as I understand there is a section on how to run the MockServer (http://www.mock-server.com/mock_server/running_mock_server.html).  Once you have run the MockServer next you need to interact with it, if you are using Java, JavaScript or Ruby I suggest you use one of the clients (http://www.mock-server.com/mock_server/mockserver_clients.html).  All you need to do is to provide the client with the ip address and port where you are running the MockServer, for example for Java see the code example http://www.mock-server.com/mock_server/mockserver_clients.html#java-mockserver-client
The overall flow is described at http://www.mock-server.com/mock_server/getting_started.html
If you think this is not clear please let me know what you feel is missing.  Getting the documentation clear and easy for people to understand is the most important thing.

I think what is not clear enough is the part that would describe what is expectation in relation to a mock server. As far as I understand expectations are just a configuration for mock server - they tell the mock server how to respond to requests. Would be much cleaner for me if it was described that mock client just configures the server sending rest requests for that purpose.
A sequence diagram showing that will be perfect I guess.
Thanks anyway! Good project!
Best regards,
Dmitry Ustimov

This is a good idea but it will be covered in #115, please add any additional comments to that ticket

@jamesdbloom
Didn't see update on this issue.
We also wonder if we run a stand-alone MockServer, how do we setup the request/response expectation?
In our automation script, we have expectation setup for each request, then run MockServer during automation running.
But what if we want to run a stand-alone MockServer?
from the document, it just tells us how to run it, but didn't mention anything about setting up the response/request, where to set it up?

There is no step by step way to create expecettion provided.  I have the docker with the mockserver running - now where should i place the java or js files with the code to create expectations .
those are not clear as Alshari86 as well mentioned

It would be just wonderful actually to clearly state that one need to use a client to send expectations to the server (via rest call, java class, or js) it's not what one will thinks first. But I also have to say that this is just a unique soft, so much great work done ! Respect !

This question/request has been here since 2015 and still there is not proper answer.. this is concerting.
I believe we are looking for something like this Stubbing, quite simple, create JSON file and place it in certain folder. Does mock server have this kind of functionality?
I my case, I'm trying to mock API responses for an app.
Thanks!

There's the swaggerhub, I found it very useful


[1.11.2] Builder/Quarry causes server crash : Ticking Block Entity

MC Vers 1.11.2. Forge <IP_ADDRESS>3
RFTools 1.1x-6.12
mcjtylib. 1.1x-2.4.3
Running a builder with a clearing quarry shape card.  Powered by a power cell.  Output to modular storage.  Seems to cause the server to crash every time it gets down close to bedrock.  This was reported by one of my players so I tried to reproduce it.  I could not reproduce it on single player mode.  However I was able to reproduce it on the server.  And it seems like it will continue to crash until it gets past whatever is causing it until it does the next chunk and hits it again.  I noticed crashes around the y level 8-12 area each time which is why my best guess is something to do with lava.
I am attaching several crash logs for you to look through.
crash-2017-07-23_20.21.30-server.txt
crash-2017-07-23_20.23.23-server.txt
crash-2017-07-23_20.26.32-server.txt
crash-2017-07-23_23.19.58-server.txt
crash-2017-07-23_23.22.21-server.txt
crash-2017-07-23_23.29.21-server.txt
crash-2017-07-23_23.33.00-server.txt

It might be a bug in another mod because it seems to be crashing in a drop handler that I don't recognize but I am on vacation right now so will have to look later

If your talking about this line   "nc.handler.DropHandler.addBlockDrop", that could be Nuclearcraft although the quarry seems to mine the NC ores just fine.  Have a good vacation.  Will wait till you get back and confirm.

Turns out it was a Nuclearcraft issue.  Something to do with checking for silk touch.  The drop handler was for rhodochrosite to drop when you mine red stone ore.  After I downloaded their patched mod file the quarry ran fine.  I'll put a link here just in case someone comes along with this same problem before those guys make it part of their next official release.
https://github.com/turbodiesel4598/NuclearCraft/issues/124


client_golang occassionally complains about superfluous response.WriteHeader calls

This is printed from time to time in Thanos Query:
Apr 26 10:40:39 foo docker[8275]: 2019/04/26 08:40:39 http: superfluous response.WriteHeader call from github.com/prometheus/client_golang/prometheus/promhttp.httpError (http.go:306)

And it seems like our logger isn't hooked up there. This error should be fixed (client_golang issue :eye: ?) and our logger should be used there too.
Version: master-2019-04-25-88544fc

This was the first hit when I Googled for this error message so I'm going to add here; hope that's cool. I'm running kbudde/rabbitmq-exporter. Today in my Grafana dashboard I noticed 2 gaps in metrics a minute apart, and looking in the logs for the exporter I see the same error as reported above occcuring at the gap marks:
2019-07-25T14:29:50.984499897Z 2019/07/25 14:29:50 http: superfluous response.WriteHeader call from github.com/prometheus/client_golang/prometheus/promhttp.httpError (http.go:306) 2019-07-25T14:30:47.083116154Z time="2019-07-25T14:30:47Z" level=info msg="Metrics updated" duration=17.006736909s 2019-07-25T14:31:49.433846886Z time="2019-07-25T14:31:49Z" level=info msg="Metrics updated" duration=19.340816118s 2019-07-25T14:31:50.078055124Z 2019/07/25 14:31:50 http: superfluous response.WriteHeader call from github.com/prometheus/client_golang/prometheus/promhttp.httpError (http.go:306)
I am not running Thanos though, just a single Prometheus instance running version 2.7.1.

Fixed with the 1.2.0 version of client_golang.

Seems like the same still happens with v0.10.0-rc.0. Need to reinvestigate.

The same thing might happen here: https://github.com/prometheus/prometheus/issues/6139

Still happening on v0.11.0.

Yes, we need to update client_golang - another reason of this was fixed
there.
On Tue, 17 Mar 2020 at 09:52, Giedrius Statkevičius <
<EMAIL_ADDRESS>wrote:

Still happening on v0.11.0.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thanos-io/thanos/issues/1086#issuecomment-599978631,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVA3OZU2JQW7JKSQ2OJFLLRH5B6TANCNFSM4HITVLIA
.

Still valid on 0.12.0.

@bwplotka - Any fix for this, we are seeing this potentially across the versions and none of them helped, Do we need to change to specific go_client version to fix the same.. Any pointers would ideally help

Exceptions we see as below
============================================
May 07 14:52:31 prometheusha-1-stg-v000-tt4v prometheus[3786]: level=error ts=2020-05-07T14:52:31.081Z caller=stdlib.go:89 component=web caller="http: superfluous response.WriteHeader call from github.com/opentracing-contrib/go-stdlib/nethttp.(*statusCodeTracker).WriteHeader (status-code-tracker.go:19" msg=)
May 07 14:59:49 prometheusha-1-stg-v000-tt4v prometheus[3786]: level=warn ts=2020-05-07T14:59:49.986Z caller=klog.go:86 component=k8s_client_runtime func=Warningf msg="/app/discovery/kubernetes/kubernetes.go:361: watch of *v1.Endpoints ended with: too old resource version: 498268073 (498277770)"
May 07 15:06:12 prometheusha-1-stg-v000-tt4v prometheus[3786]: level=info ts=2020-05-07T15:06:12.276Z caller=compact.go:495 component=tsdb msg="write block" mint=1588852800000 maxt=1588860000000 ulid=01E7QTD1CAYQB3CPRG907BHR0E duration=6m12.265832204s
May 07 15:06:29 prometheusha-1-stg-v000-tt4v prometheus[3786]: level=info ts=2020-05-07T15:06:29.929Z caller=head.go:662 component=tsdb msg="head GC completed" duration=12.940377064s
May 07 15:09:00 prometheusha-1-stg-v000-tt4v prometheus[3786]: level=info ts=2020-05-07T15:09:00.083Z caller=head.go:732 component=tsdb msg="WAL checkpoint complete" first=1273 last=1433 duration=2m30.153959595s
May 07 15:16:14 prometheusha-1-stg-v000-tt4v prometheus[3786]: level=warn ts=2020-05-07T15:16:14.995Z caller=klog.go:86 component=k8s_client_runtime func=Warningf msg="/app/discovery/kubernetes/kubernetes.go:361: watch of *v1.Endpoints ended with: too old resource version: 498310942 (498312556)"

As part of the investigation we have forked the latest stable build of Thanos v0.12.2 and upgraded the client_golang version from v1.5.0 to v1.5.1 presuming it might be the fix but none of them helped where started observing the similar issues
From the analysis it was evident that panic errors "superfluous response" originates only when there is a query with large cardinality

To be specific In our case as we are operating with istio-mesh component and using Kiali for service graph

we are pointing the Thanos querier as a datasource via grafana ton kiali any queries with more namespaces and adhoc queries with more than 1 week queries resulting into this panic errors and subsequently prometheus CPU start going high till ~70% and then it dies.

Do we have need to add specific configs/tweaks from Thanos Queries to fix this?

IMHO Adding Memcached can easen a bit, But it cannot be a permanent fix

Any specific directions/pointers are highly appreciable!!!
cc: @bwplotka @GiedriusS @brian-brazil

Let's discuss here maybe? https://github.com/prometheus/prometheus/issues/6139


Orientation on mobile -

First off, awesome job with pannellum!
I like the fact that you can orientate the view with gyroscope by default with orientationOnByDefault=true.
But after I touched and moved to orientate the view (on touchend event), I'd like to be able to reenable the orientation with gyroscope without having to click on the orientation control. Also when I click, I start over with the orientation 0,0.
Is there an easy way to disable the need to click on orientation control, and when orientation with gyroscope is enabled again to start from the latest orientation?

Since the last release, a draggable parameter was added, which disables mouse / touch controls, so touching the viewer won't disable the device orientation control. Is this what you're asking? If not, I don't understand your question. How else would you enable device orientation control if not with the button?

Sorry, I was not clear.
I'd like to be able to use both methods: device orientation and drag / touch. My problem is that when you touch the screen, you are not able to use device orientation until you click on device orientation control. I was wondering how to avoid that.
If I am still not clear enough, here are 2 viewers with the behavior I need:

https://developers.google.com/vr/concepts/vrview-web
https://aframe.io/examples/showcase/sky/
I could go with one of these 2 viewers but their APIs are not as complete as yours for my needs (and there are issues with the image on poles of the sphere)

Thanks

Now I understand what you're asking. I fixed the part about the yaw resetting when turning on device orientation in 1d1a07a9bbd68988816050e52c9e34f03db68e65.
To get the behavior you want, you can add startOrientation(); to the end of the onDocumentTouchEnd function in pannellum.js. When I did this, I found the transitions rather jarring, since the roll rotation resets when touching the screen, and the pitch jumps when releasing a touch. The pitch change could be animated to make it smooth, although this would be a non-trivial addition. I don't know a good way to address the roll issue. Due to these issues, I don't want to include your requested behavior at this time, but feel free to add it to your own copy.

Hi @mpetroff,
First of all, thank you so much for this plugin. I met with the same issue you guys are discussing on this thread, I was able to start the orientation when touchend is fired, but as you have mentioned in the last comment, it gives a jarring transition. Could you please tell me how I can animate the pitch change? Thanks!

As mentioned the implementing a smooth pitch transition is non-trivial. It has not yet been addressed.


Android sdkmanager not found

Steps to Reproduce

Even after installing and updating to the latest SDK manager and cmdline tools,   on running (flutter doctor --android-licenses ) I am unable to accept android licenses.

Logs

Logs

 Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.18362.720], locale en-IN)
    • Flutter version 2.8.1 at C:\src\flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (8 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[!] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at C:\Users\DELL\AppData\Local\Android\Sdk
    • Platform android-32, build-tools 32.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.63.2)
    • VS Code at C:\Users\DELL\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.34.0

[√] Connected device (2 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 98.0.4758.82

! Doctor found issues in 1 category.

AFTER RUNNING :-   flutter doctor --android-licenses
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.

@vkaushal17
Check this issue comment / solution and see if it helps to resolve issue at your end.


Call to undefined method GuzzleHttp\Message\Response::getInfo()

I'm getting the following error when trying to use Facebook auth provider.
Fatal error:  Call to undefined method GuzzleHttp\Message\Response::getInfo() in vendor/league/oauth2-client/src/Provider/Facebook.php on line 33
Apparently this method has been removed from Guzzle Response in version 4.

The Facebook provider has been moved out of the 1.0 branch and is now maintained separately here: https://github.com/thephpleague/oauth2-facebook


获取所有群

Room.findAll()  获取所有群不稳定,有多有少.

This works as expect. Because web wechat cannot get all groups in your wechat
What I did now like this:
async function initRoom() {
  console.log('begin to initRoom!')
  const roomList = await Room.findAll()
  if (roomList.length < MAX_GROUP) {
    console.warn(`room num not ready. retry after 10 seconds. room num: ${roomList.length}`)
    setTimeout(initRoom, 10000)
    return
  }
  return roomList
}

谢谢了,如果这样做的话,我就需要改一下业务流程了.

如何知道room的群主信息？
/**
* @private
* Get room's owner from the room.
* Not recommend, because cannot always get the owner
* @returns {(Contact | null)}
*/
owner(): Contact | null;

@lijirui  MAX_GROUP是多少？

If you can get room.owner(), then console log the contact, you can get the room owner's information.

MAX_GROUP depends on your situation, I don't know how rooms in your wechat bot.

This feature might be able to be enhanced by the New Puppets.
See: #1167

Close this issue due to inactivated for 60 days.


ui: migrated to dark theme

Additional Changes:

No of result increased from 20 to 50.
Added Popularity/Quality Sorting
Added feature to show weekly downloads

Additional Changes:

No of result increased from 20 to 50.
Added Popularity/Quality Sorting
Added feature to show weekly downloads

Yeah lets gooo


Handle faulty images gracefully

By inspecting the return code of the ImageMagick convert+crop, it should be possible to provide blank tiles for faulty images.

This is handled by checking for existence of the upper left tile for the given image.


Fix windows snapshot builds

Powershell doesn't support brace expansions, so explicitly spell out omp.h and
omp-tools.h.
See https://github.com/clangd/clangd/runs/4755216973?check_suite_focus=true for
parse error.

Hmm, change looks fine (at least not worse), but commands should be using bash by default even on windows. So I suspect something slightly more subtle.


Backward compatible capo and octave/transpose options

John did have key combos attached as well as he assigned the capo and octave on pins 21,22,23
This is required for older digi gurdies without the three buttons. Need to ensure the key combo is also in your code

Thanks for showing me the alternate keyings.  This will be a 1.0 thing.

Duplicate of https://github.com/bazmonk/digigurdy-baz/issues/37, or vice versa... either way, done :-)


Page for survey results

if it doesn't look like statistics hell at a glance and if nobody else is doing this

done


SDK for create the labeling project based on a registered data in code

Can I use python code to automatically create a labeling project based on the registered data?
[Enter feedback here]

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

ID: 4e5558ba-c622-2fb4-318b-85dffa50980e
Version Independent ID: 11408da5-766c-81d0-0225-3dfe7566e382
Content: Set up an image labeling project - Azure Machine Learning
Content Source: articles/machine-learning/how-to-create-image-labeling-projects.md
Service: machine-learning
Sub-service: mldata
GitHub Login: @kvijaykannan
Microsoft Alias: vkann

@huihuid
Thanks for your feedback! We will investigate and update as appropriate.

Hi @huihuid
you can use python code to automatically create a labeling project based on the registered data.
Here is a sample code to create a text labeling project in Azure Machine Learning:
import azureml.core
from azureml.core import Workspace
from azureml.core.compute import ComputeTarget, AmlCompute
from azureml.core.compute_target import ComputeTargetException
Connect to the workspace
ws = Workspace.from_config()
Define the compute target
compute_name = "cpu-cluster"
try:
# Check if the compute target already exists
cpu_cluster = ComputeTarget(workspace=ws, name=compute_name)
print("Found existing compute target")
except ComputeTargetException:
# If it doesn't exist, create it
compute_config = AmlCompute.provisioning_configuration(vm_size="STANDARD_D1_v2",
min_nodes=0,
max_nodes=4)
cpu_cluster = ComputeTarget.create(ws, compute_name, compute_config)
cpu_cluster.wait_for_completion(show_output=True)
Create a text labeling project
from azureml.data.labeling import LabelDataset
Load the data
dataset = LabelDataset.create_from_datastore(ws, "your_datastore_name")
Create the labeling project
labeling_project = dataset.begin_labeling(cpu_cluster)

Hi @Naveenommi-MSFT,
Regarding: from azureml.data.labeling import LabelDataset
I use the syntax to install  the azureml-data package, it got installed successfully:
! pip install azureml-data
However, got message when import LabelDataset:
ModuleNotFoundError: No module named 'azureml.data.labeling'
Seems there in no 'labeling' under 'azureml.data':

This is my version of 'azureml-data':

@huihuid
Your current error message implies that the 'labelling' module is missing from the 'azureml.data' package. This can be the result of a version discrepancy between the package version that is installed and the package version for which the code was written.
You can try updating the 'azureml-data' package to the latest version
Command:  pip install --upgrade azureml-data
If the issue persists, you can try uninstalling and reinstalling the package:
Command:
pip uninstall azureml-data
!pip install azureml-data
You may also look for the 'labelling' module in the documentation for the 'azureml-data' package to verify if it's included in the installation. Hope this helps.

@huihuid
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

@Naveenommi-MSFT Can you suggest which version you're using for azureml-data?
pip install it give the version as 100.0.0

This is what this error comes from:  ModuleNotFoundError: No module named 'azureml.data.labeling'


Two more station beacons

About the PR
Adds Evac and Security Checkpoint station beacon prototypes, so no one ends up mapping these with custom beacons that can't be modified en-masse, if they are ever to be renamed recolored etc

emo review agree

Done


Demo title PR

fixes #30

Done !! Great Work !!

but it was showing that PR run failed

Ok
On Thu, Jun 3, 2021, 1:08 PM Rohan Kulkarni @.***>
wrote:

Done !! Great Work !!
but it was showing that PR run failed
That was github actions don't worry !
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rohan-kulkarni-25/Learn-GITHUB/pull/31#issuecomment-853652819,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUATHGQ7HK5HX3RPWEIPNQTTQ4WQ7ANCNFSM46AFBNLA
.


add lndmon + refactor grafana dashboard

Closing this. Feel free to reopen if there's anything more to be implemented.


IOError: [Errno socket error] [Errno 101] Network is unreachable

When I git clone and type ' pip install . ', I get the following IOError:Network is unreachable ?
any solution will be appreciated.
root@hxh:/home/hxh/common_use/ctcdecode# python setup.py install
zip_safe flag not set; analyzing archive contents...

Installed /home/hxh/common_use/ctcdecode/.eggs/wget-3.2-py2.7.egg
Traceback (most recent call last):
  File "setup.py", line 55, in <module>
    os.path.join(this_file, "build.py:ffi")
  File "/home/hxh/anaconda2/lib/python2.7/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/home/hxh/anaconda2/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/hxh/anaconda2/lib/python2.7/site-packages/setuptools/dist.py", line 333, in __init__
    _Distribution.__init__(self, attrs)
  File "/home/hxh/anaconda2/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/home/hxh/anaconda2/lib/python2.7/site-packages/setuptools/dist.py", line 476, in finalize_options
    ep.load()(self, ep.name, value)
  File "/home/hxh/anaconda2/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 193, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/home/hxh/anaconda2/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/home/hxh/anaconda2/lib/python2.7/site-packages/cffi/setuptools_ext.py", line 25, in execfile
    exec(code, glob, glob)
  File "build.py", line 22, in <module>
    'third_party/openfst-1.6.7.tar.gz')
  File "build.py", line 14, in download_extract
    out=dl_path)
  File "build/bdist.linux-x86_64/egg/wget.py", line 526, in download
  File "/home/hxh/anaconda2/lib/pyt``hon2.7/urllib.py", line 98, in urlretrieve
    return opener.retrieve(url, filename, reporthook, data)
  File "/home/hxh/anaconda2/lib/python2.7/urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "/home/hxh/anaconda2/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/home/hxh/anaconda2/lib/python2.7/urllib.py", line 443, in open_https
    h.endheaders(data)
  File "/home/hxh/anaconda2/lib/python2.7/httplib.py", line 1038, in endheaders
    self._send_output(message_body)
  File "/home/hxh/anaconda2/lib/python2.7/httplib.py", line 882, in _send_output
    self.send(msg)
  File "/home/hxh/anaconda2/lib/python2.7/httplib.py", line 844, in send
    self.connect()
  File "/home/hxh/anaconda2/lib/python2.7/httplib.py", line 1255, in connect
    HTTPConnection.connect(self)
  File "/home/hxh/anaconda2/lib/python2.7/httplib.py", line 821, in connect
    self.timeout, self.source_address)
  File "/home/hxh/anaconda2/lib/python2.7/socket.py", line 575, in create_connection
    raise err
IOError: [Errno socket error] [Errno 101] Network is unreachable

@minushuang I have met the same problem? And How to fix this problem?
Step12/14 : RUN git clone --recursive https://github.com/parlance/ctcdecode.git
 ---> Using cache
 ---> 716635b0cded
Step 13/14 : RUN cd ctcdecode; pip install .
 ---> Running in 8ec5d61daecc
Processing /tmp/ctcdecode
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-o5WTDh/setup.py", line 55, in <module>
        os.path.join(this_file, "build.py:ffi")
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 272, in __init__
        _Distribution.__init__(self,attrs)
      File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
        self.finalize_options()
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 327, in finalize_options
        ep.load()(self, ep.name, value)
      File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 204, in cffi_modules
        add_cffi_module(dist, cffi_module)
      File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 49, in add_cffi_module
        execfile(build_file_name, mod_vars)
      File "/usr/local/lib/python2.7/dist-packages/cffi/setuptools_ext.py", line 25, in execfile
        exec(code, glob, glob)
      File "/tmp/pip-req-build-o5WTDh/build.py", line 22, in <module>
        'third_party/openfst-1.6.7.tar.gz')
      File "/tmp/pip-req-build-o5WTDh/build.py", line 14, in download_extract
        out=dl_path)
      File "/usr/local/lib/python2.7/dist-packages/wget.py", line 526, in download
        (tmpfile, headers) = ulib.urlretrieve(binurl, tmpfile, callback)
      File "/usr/lib/python2.7/urllib.py", line 98, in urlretrieve
        return opener.retrieve(url, filename, reporthook, data)
      File "/usr/lib/python2.7/urllib.py", line 245, in retrieve
        fp = self.open(url, data)
      File "/usr/lib/python2.7/urllib.py", line 213, in open
        return getattr(self, name)(url)
      File "/usr/lib/python2.7/urllib.py", line 443, in open_https
        h.endheaders(data)
      File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
        self._send_output(message_body)
      File "/usr/lib/python2.7/httplib.py", line 897, in _send_output
        self.send(msg)
      File "/usr/lib/python2.7/httplib.py", line 859, in send
        self.connect()
      File "/usr/lib/python2.7/httplib.py", line 1270, in connect
        HTTPConnection.connect(self)
      File "/usr/lib/python2.7/httplib.py", line 836, in connect
        self.timeout, self.source_address)
      File "/usr/lib/python2.7/socket.py", line 575, in create_connection
        raise err
    IOError: [Errno socket error] [Errno 99] Cannot assign requested address

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-o5WTDh/

@linrio
check the code 'build.py', download openfst-1.6.7.tar.gz and boost_1_63_0.tar manually.

Okay, I add an new download-site for Chinese. And I  PR an branch for Chinese users.


[Feature]: Port the z plugin to shrs

What would you like to see added?
Fish shell / zsh has a great plugin for intelligent directory hopping. Would be awesome to have a 3rd party plugin that ports this.

zsh version
fish version

created as a third party plugin https://github.com/MrPicklePinosaur/shrs_z


fix: arm64 binaries creation issue

Motivation
Fix binaries workflow for arm64

Replaced by https://github.com/ChainSafe/lodestar/pull/6858


TimeField: Warning: Prop autoCapitalize did not match. Server: "none" Client: "off"

Provide a general summary of the issue here
In NextJS, TimeField is having an issue with autoCapitalize.
This then leads to Error: Text content does not match server-rendered HTML.
🤔 Expected Behavior?
autoCapitalize isn't even a prop for TimeField so unsure how this is occuring?
😯 Current Behavior
Warning: Prop `autoCapitalize` did not match. Server: "none" Client: "off"
div
$cfa347761f172638$var$EditableSegment@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/datepicker/dist/import.mjs:195:46
$cfa347761f172638$export$6388987c5223b54e@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/datepicker/dist/import.mjs:170:61
div
$d2bb88c82604b25f$export$34dc4cfa15ead1@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/datepicker/dist/import.mjs:216:118
div
div
div
$79348162c55d687f$var$Input@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/datepicker/dist/import.mjs:324:66
div
div
$b7ca5b4454a2009d$var$Field@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/label/dist/import.mjs:460:88
$beaeefa091999363$var$DatePicker@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/datepicker/dist/import.mjs:849:89
div
ProviderWrapper@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/provider/dist/import.mjs:211:49
$f57aed4a881a3485$export$178405afcd8c5eb@webpack-internal:///(app-pages-browser)/./node_modules/@react-aria/overlays/dist/import.mjs:893:34
$1051245f87c5981d$export$8214320346cf5104@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/utils/dist/import.mjs:211:74
$18f2051aff69b9bf$export$a54013f0d02a8f82@webpack-internal:///(app-pages-browser)/./node_modules/@react-aria/i18n/dist/real-module.mjs:164:50
$7167f8da3cce35e4$var$Provider@webpack-internal:///(app-pages-browser)/./node_modules/@react-spectrum/provider/dist/import.mjs:147:23
Date

💁 Possible Solution
No response
🔦 Context
No response
🖥 Steps to Reproduce
"use client"

import { Provider, defaultTheme, TimeField } from "@adobe/react-spectrum"

export default function Page() {
  return (
    <Provider theme={defaultTheme} locale="en">
      <TimeField label="Date" />
    </Provider>
  )
}

codesandbox link
Version
3.32.2
What browsers are you seeing the problem on?
Firefox
If other, please specify.
No response
What operating system are you using?
Mac
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response

This is happening here:
https://github.com/adobe/react-spectrum/blob/8ad0c43026ca7e42f78c4e354652af828bf5a586/packages/%40react-spectrum/datepicker/src/DatePickerSegment.tsx#L54-L57
https://github.com/adobe/react-spectrum/blob/8ad0c43026ca7e42f78c4e354652af828bf5a586/packages/%40react-aria/datepicker/src/useDateSegment.ts#L374
but I'm not sure why it would be "none" on the server.

I believe it should be set to none, went all around the web looking for answers.
Latest doc I could find: https://developer.apple.com/documentation/uikit/uitextautocapitalizationtype

Constants
case none
Specifies that there is no automatic text capitalization.
case words
Specifies automatic capitalization of the first letter of each word.
case sentences
Specifies automatic capitalization of the first letter of each sentence.
case allCharacters
Specifies automatic capitalization of all characters, such as for entry of two-character state abbreviations for the United States.

Additional resources:
https://stackoverflow.com/questions/13284323/how-can-i-stop-auto-capitalization-in-a-html-text-input-field-on-an-android-sams
Although, now I'm even more confused:

Safari has "off"
Chrome has "off"
Firefox has "none"

I don't even think the prop should exist on a Time Field, with numeric inputs, autocapitalisation doesn't do anything anyway

so was anyone able to fix this?

FYI, created a bug against FF here https://bugzilla.mozilla.org/show_bug.cgi?id=1906555

I don't even think the prop should exist on a Time Field, with numeric inputs, autocapitalization doesn't do anything anyway

This isn't quite true, the editable segments can include non-numeric fields such as AM/PM. I don't recall if there are any others which are editable.
Since we still control the capitalization for that field though, we should still be ok to remove it unless someone thinks of another field like AM/PM where we don't.

This isn't quite true, the editable segments can include non-numeric fields such as AM/PM. I don't recall if there are any others which are editable.

Oh of course! My bad.


feat/(PROD-CPC-1179): Sort Products and Filtering Products by Customer Ratings

JIRA: link to jira ticket
Context:
This ticket is about implementing a feature that allows pet owners to sort and filter products by customer ratings on the product page. We are making this change to enhance the user experience by making it easier for users to find products , either by sorting ratings from highest to lowest or setting a custom rating range.
Does this PR change the .vscode folder in petclinic-frontend?:
No, this PR does not change the .vscode folder.
Reviewers need to check for any changes to the
.vscode folder and add a comment about it to their review comments.
Changes

Added sorting functionality for customer ratings (highest to lowest and vice versa) on the product page.
Implemented filtering options to allow users to specify a minimum and maximum rating range.
Updated the UI to reflect the new sorting and filtering options on the product page.
Modified the backend to support fetching filtered and sorted product data based on ratings.

Before and After UI (Required for UI-impacting PRs)
Before:

After:

Dev notes (Optional)
Specific technical changes that should be noted
Linked pull requests (Optional)
Pull request links

I can't see all of the components from the filter menu, I needed to zoom out to see it  But the main problem is that the images are gone when I filter by type

Thanks for pointing that out! I've fixed the issue, and the CSS has been updated with a more compact version to resolve the display problem.

Just for the future maybe implement an error handling for this


--defer and metrics

Hello everyone, we are trying out dbt_metrics and saw a strange problem within our CI environment.
We use dbt build --select state:modified+ --defer to only execute models that have changed, and since metrics themselves do not count as a model but rather are CTE, they of course are not executed.
What happens instead is when the CTE for the metric is compiled it does not respect the --defer flag and uses the current schema rather than the deferred one, does this make sense?
probably related to https://github.com/dbt-labs/dbt-core/issues/5525

Closing out as the issue is known in #64 and can follow along there as we begin to address it!


Bug report: URL Encoding outputs extra characters

Describe the bug
URL Encoding adds extra characters when certain bytes exist in the input.
To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

Version: 9.21.0
Compile time: 12/06/2020 12:53:19 UTC
User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Link to reproduce

Expected behaviour
The expected URL encoded value would be %b7g%e6%bfpk=%91 but currently it's returning %C2%B7g%C3%A6%C2%BFpk%3D%C2%91.
Note that if we use a "To Hex" operation right after the XOR, the returned value is correct: b7 67 e6 bf 70 6b 3d 91

Where did you get this expected value from? I have tried encoding the output of the XOR in your example using other online encoders (for example here) and they give very similar results of %C2%B7g%C3%A6%C2%BFpk%3D. which granted is still 2 characters different from the encoding produced here.

I took it from Burp Suite.

But you are right, it seems that every other encoder I've tried encodes it to %C2%B7g%C3%A6%C2%BFpk%3D%C2%91.
I thought it was a bug but maybe this has to do with literal encoding VS UTF-8 URL encoding.
Feel free to close the issue.
As an open suggestion, it could be useful to have a checkbox on the "URL Encode" operation block to switch between these 2 modes.

The issue here is the same as #322.


Electricity dispatch accounting by demand sector

As a users particularly interested in the impacts of electrification on the distribution system
I would like to have the ability to account for residential, commercial, and industrial demand subsector distribution impacts separately so I can properly allocate costs and focus efforts for distribution upgrade deferral.
AC

User has the ability to allocate distribution subsectors to an arbitrary number of electricity distribution representations in the supply side dispatch. Transportation, for instance, could be allocated between feeders representing residential subsectors and commercial subsectors.
Each of the distribution feeders connects to the transmission system in the appropriate regions to support two way power flow.
Energy storage and flexible load capabilities are set up on each of the distribution feeders.

Runs with test inputs from .csv on 3 distribution feeders and one bulk 'feeder'


What is the meaning of each number in the bbox of demo_RGBD?

Hi,What is the meaning of each number in the bbox of demo_RGBD? Thanks!


Back to Today doesn't change Month View

When we try to go back to today from a date in another month, the calendar view stays in that month and does not go back to today's month.
Please see more details in this report: https://go.playerzero.app/share/6324e6ea5389396e366ff852

Issue 2: When an event's date is modified, the dot under the date is not updated until the page is refreshed.
Please see more details in this report: https://go.playerzero.app/share/6357ffb936046d593b9f9adc


Add a new notification configuration to make dev list cleaner

Currently, the dev mailing list contains too many notifications, we may ignore the important emails by accident.
I would like to add a new notification configuration to make the dev list cleaner as we discussed in the mailing list.

Good  idea.


⚠ Bofrost.de has degraded performance

In bc29f0b, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1900 ms

Resolved: Bofrost.de performance has improved in dfc57de after 38 minutes.


Replace (skipSome spaceChar) with space1

Should be more efficient (since megaparsec 6)

You should have just pushed that one, it is a small change. I am OK with that kind of changes.


Unable to create a function with parameter when Type.IsValueType is true

I have a really simple adaption of the externref sample, running inside unity 2021.3, whose csharp runtime is ostensibly .NET standard 2.1 compatible:
(module
  (import "" "getX" (func $.getX (param externref) (result f32)))
  (func (export "run") (param externref) (result f32)
    local.get 0
    call $.getX
  )
)

public class WasmTest : MonoBehaviour
{
    public TextAsset watSource;

    void Start()
    {
        var engine = new Engine();

        var module = Module.FromText(
            engine,
            watSource.name,
            watSource.text
        );

        var linker = new Linker(engine);
        var store = new Store(engine);

        linker.Define(
            "",
            "getX",
            Function.FromCallback(store, (Vector3 vec) => ((Vector3)vec).x)
        );

        var instance = linker.Instantiate(store, module);
        var run = instance.GetFunction<object, float>("run");
        float res = run(transform.position);
        Debug.Log($"the x is {res}");
    }
}

However, as written, I get
WasmtimeException: Unable to create a function with parameter of type 'UnityEngine.Vector3'.
Wasmtime.Function.GetFunctionType (System.Type type, System.Boolean hasReturn, System.Collections.Generic.List`1[T] parameters, System.Collections.Generic.List`1[T] results, System.Boolean& hasCaller, System.Boolean& returnsTuple) (at C:/Users/s/source/repos/wasmtime-dotnet/src/Function.cs:2411)
Wasmtime.Function..ctor (Wasmtime.IStore store, System.Delegate callback, System.Boolean hasReturn) (at C:/Users/s/source/repos/wasmtime-dotnet/src/Function.cs:2242)
Wasmtime.Function.FromCallback[T,TResult] (Wasmtime.IStore store, System.Func`2[T,TResult] callback) (at C:/Users/s/source/repos/wasmtime-dotnet/src/Function.cs:300)
WasmTest.Start () (at Assets/wasmtest/WasmTest.cs:25)

If I change the function argument type from Vector3 to just object and do the cast manually, it works as expected. Looks like it's because it falls out of Value.TryGetKind at https://github.com/bytecodealliance/wasmtime-dotnet/blob/387edd242f105d5394399acd19c25509ebb42b02/src/Value.cs#L210 , because unity sets Type.IsValueType == true.
Is that test of IsValueType necessary? I don't know if this is just a weird unity environment thing.

Hi @hiinaspace:
The intention behind this is that externref is a reference to a host object, so it is intentionally limiting the support for .NET types to those that are reference types. It also prevents unintentional boxing of value types were they implicitly allowed.
As Vector3 is a value type, it gets rejected.  Using object and manually boxing a Vector3, as you've discovered, should work.
I think you'll have to stick with using object and doing an explicit boxing/unboxing of the value until I'm convinced that implicitly boxing value types for externref is the right approach.

At a bare minimum, we should improve this exception message to note that it's because the type is a value type and .NET types are required to be reference types to work with externref.


VS Code SCM Provider

This is an FYI message - fell free to close....
Hello,
Thanks for creating and extension for VS Code, we have now added an API for VSCode to enable pluggable SCM Providers.  This is currently in the 'preview' state and only in the 'insiders' build.  Our plan is to move this into 'stable' in our next release (early April 17).
This lays the foundation for rich SCM Extensions to be distributed through the marketplace.  These extensions will have access to all of the features our Git support leverages (this itself is now only using the public API).
Our ASK If you are interested in helping create an SCM provider, we want to help you and have created a new repo with all of the required details including - timelines, instructions, sample implementations, ...   https://github.com/Microsoft/vscode-SCMBuilders
Head on over there if you want to help to get going or to monitor progress - with any luck in the coming months we should have a set of high quality SCM providers for VS Code.
Sean
VS Code Team Member

Thanks @seanmcbreen , so far I was looking at the Git Extension in the vscode source.
It's nice to have an official documentation. :+1:

Work in Progress

Very very cool.  Let us know if you hit any road blocks.
cc @joaomoreno who does all of our Git work and created the API :)

@joaomoreno it would be nice if we could set our own label to SCMResource.
Supporting octicon icon set, like vscode.StatusBarItem does, could help identify additional informations, like:

file opened to previous revision
file needs to be resolved
file locked by user

@stef-levesque Can you file each feature request in our repo?

Is there anyway to know when a SCMResourceGroup is selected? I would like to update the SCMInputBox with the changelist description.

Interesting. This isn't implemented yet.

@stef-levesque FYI we're about to push some changes #23645 will which change the API quite a bit. The adoption isn't too big, I hope the comments clarify a bit of what's going on. I'll be here in case you need some help adopting it.

Another tiny change: Microsoft/vscode#23653

Hey @stef-levesque. Since a few more changes came in, I decided to write an adoption guide. Please let me know if you run into issues, if something isn't clear or you feel something's missing.

Thanks @joaomoreno, this should make it much easier!

@seanmcbreen @joaomoreno I am having an issue with submitting the Scm version of the extension.
window.withScmProgress has now moved from vscode.proposed.d.ts to vscode.d.ts.
But it is still marked as proposedApiFunction in the official 1.11.0 release:
see extHost.api.impl.ts
Now, removing enableProposedApi from package.json, the extension throws the following exception:
Error: slevesque.perforce cannot access proposed api
    at Object.U.V.o [as withScmProgress] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:362359)
    at Model.<anonymous> (/Users/slevesque/Documents/Projects/vscode-perforce/out/src/scm/Model.js:59:29)
    at next (<anonymous>)
    at fulfilled (/Users/slevesque/Documents/Projects/vscode-perforce/out/src/scm/Model.js:4:58)

From my understanding, I cannot publish my extension with enableProposedApi in it.

I would also need a way to change the placeholder text in the ScmInputBox.
I intent to use the box to display and update changelist description, and so should display:
Description (press Cmd+Enter to create changelist)
as a placeholder when the default changelist is selected.

@stef-levesque I've created Microsoft/vscode#24009 for the progress API. We'll get it out asap.
As for the placeholder text, do you mind filing an issue for that?

Thanks for the quick response.
I create Microsoft/vscode#24090 for the placeholder request

We just shipped a build with this fixed :)

Yes, works fine with 1.11.1

Just published version 2.0.0 with the beta version of the SCM Provider.
Please, try it and send feedback!

We are not perforce experts so our testing is a little lame sorry.  I did do a superficial PR for consideration.  Once you feel good about this i.e. have some great end user feedback (which I'm sure you will) we will help promote this e.g. a tweet twitter from _@_code to _@_perforce to help get the word out.  Let us know via here or smcbreen at microsoft.com.
THANK YOU!

Thanks, I would like to test it more before going more public. I also hope @hoovercj will have time to review the 'Source Depot' compatibility.
There is also a few features I would like before declaring Gold (especially clickable ResourceGroup, drag-and-drop, ...) There is still some work to be done :)

Makes total sense - our team is excited so I've seen at least one person notice it I'll ask us to wait a little while.  Again thank you - it's work like this that really make our product a lot better.
If we can help [recognizing we are not perforce dudes] we will.

Awesome, @stef-levesque! I'll check it out today and if the basics work with SD I'll see if I can get anybody else on my team to give it a go, too.

@hoovercj we miss you thanks!

@seanmcbreen <3 - I miss y'all, too!
@stef-levesque unfortunately there are a couple major blockers that prevent this from working as-is with SD. I've opened https://github.com/stef-levesque/vscode-perforce/issues/47

It seems, with vscode-perforce installed, that Perforce become the default Source Control. This might not be the expected behaviour.
I think that Git should stay the default SCM, unless specified otherwise. Maybe in the User Settings?

I agree seems like there should be a setting for default SCM at the workspace level so you don't need to use the UI switcher.
We do want to be able to detect if we should use a provider based on hints e.g. for git any .git* file means default o Git.  Is there something similar for perforce?
@joaomoreno thoughts?

For sd (which will hopefully use the perforce extension) there is a .ini file. I can't speak to actual perforce, though

For perforce, usually a .p4settings file anywhere in the folder hierarchy. But client settings can also be set globally (environment variables)

scm.ts
export const DefaultSCMProviderIdStorageKey = 'settings.workspace.scm.defaultProviderId';

I'm not sure that this value is exposed to the user.
scmService.ts
registerSCMProvider(provider: ISCMProvider): IDisposable {
	this._providers.push(provider);

	const defaultProviderId = this.storageService.get(DefaultSCMProviderIdStorageKey, StorageScope.WORKSPACE);

	if (this._providers.length === 1 || defaultProviderId === provider.id) {
		this.setActiveSCMProdiver(provider);
	}

I'm not too sure about the logic of this._providers.length === 1.
If the Perforce extension is quicker to register, and no workspace settings are available, it become de-facto the default.

@stef-levesque It becomes the active one for this session, but that fact doesn't get stored. We only store the user's preference, when the user himself changes it. If the user has picked Git beforehand, it will be set as the active once it's activated.
In any case we definitely need a story to pick the correct provider for the workspace, based on heuristics.
PS: I just noticed the typo in setActiveSCMProdiver 🏄 🌊 😆

Seems someone need vacations :smirk:


Api tests scenario related to share permission needs changes

The behavior of share permission is acting differently in ocis and oc10 .
Discussed in this comment: https://github.com/owncloud/ocis/issues/4052#issuecomment-1168655027
According to this comment, it is actual behavior so we need to refactor our test scenario of share permission in ocis
Related issue

https://github.com/owncloud/ocis/issues/1277
https://github.com/owncloud/ocis/issues/5248
https://github.com/owncloud/ocis/issues/4052 ( main discussion happened here)

Example
In this tests scenario permission is 7 but currently permission 7 is unavailable in ocis
  Scenario Outline: Public can or can-not delete file through publicly shared link depending on having delete permissions using the public WebDAV API
    Given user "Alice" has created a public link share with settings
      | path        | /PARENT       |
      | permissions | <permissions> |
    When the public deletes file "parent.txt" from the last public link share using the <public-webdav-api-version> public WebDAV API
    Then the HTTP status code should be "<http-status-code>"
    And as "Alice" file "PARENT/parent.txt" <should-or-not> exist

    Examples:
      | permissions               | http-status-code | should-or-not | public-webdav-api-version |
      | read,update,create        | 403              | should        | new                       |

QA Todo

[ ] search for similar tests scenario which uses share permission refactor scenario (there are other permission which behave different in oc10 and ocis please check in detail)
[x] remove the issue from the expected-failure file

@saw-jan @kiranparajuli589 @SwikritiT @individual-it @phil-davis

Permission 7 (read, update,create)

OCIS - Share not created

<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>error</status>
    <statuscode>400</statuscode>
    <message>Could not read permission from request</message>
  </meta>
</ocs>

OC10 - Share with permission 1 is created. Viewer role assigned.

@kobergj @kulmann @fschade is this actual behavior?

@micbar ^

IMO the currently-implemented general rule is:
In oC10: ignore permissions that are not useful/relevant to the resource (for example, create permission is not relevant to a shared file - the file is already created when it is shared). Mask off the irrelevant permission bits, and create (or update) the share with just the useful permission bits from those requested.
In ocis: if the requested permissions include permissions that are not useful/relevant to the resource, then fail the request. The client must request only permission bits that are useful/relevant.
Can someone confirm that these 2 different implementations are both acceptable?
Then we can make the understand what to expect for each backend.

Can someone confirm that these 2 different implementations are both acceptable?

@phil-davis Thanks for your analysis. That is obviously a difference. From my POV, the permission bitmask is nearing deprecation an is only be there because of legacy reasons. I am always against "magical" Api behavior, especially in this case where we are dealing with permissions. The API should return "Bad Request" and a reason.
Conclusion: we accept the behavior as it is.

@amrita-shrestha you (or you can assign someone) can "skip on ocis" the oC10 scenarios that fail because of this different behavior. Then out scenarios that demonstrate the agreed ocis behavior.
Maybe it will be easiest to have examples for ocis in the existing scenario outlines?
Anyway, however you do it, coordinate with @kiranadh1452 as he copies various parts of the core acceptance tests across to the ocis repo - we don't want to accidentally lose anything.

Will be blocked until https://github.com/owncloud/ocis/issues/5094 is completed

[ ] coreApiSharePublicLink1
[ ] coreApiSharePublicLink2
[ ] coreApiSharePublicLink3
[ ] coreApiShareReshareToShares1
[ ] coreApiShareReshareToShares2
[ ] coreApiShareReshareToShares3
[ ] coreApiShareUpdateToShares
[ ] coreApiSharees

all PR has been merged so closing this issue


Make Enhanced Moistness play quiet dripping sound, instead of (way too loud) Drowned swimming noises.

Title sums it up pretty well, the "dripping" sounds are way too loud. also their existance should be added to the enhanced moistness description.

I support this. I didn't notice it before but now that I've started getting wet more often (got riptide) it's getting annoying how slightly too loud it is.