No edit button, and link displayed in editor on adding a drawio diagram

I have an empty page with a single test diagram:
{{#drawio:TestDiagram2}}
Displaying the page shows a placeholder saying simply:
TestDiagram2
empty draw.io chart
No drawio edit button is present. When I load the visual editor I see a template section for the drawio content, and then a link as follows:
TestDiagram2 empty draw.io chart

I'm running mediawiki in docker, and have visual editor, code syntax highlighting and SVG support enabled:
MediaWiki | 1.31.1
PHP | 7.1.25 (apache2handler)
MariaDB | 10.1.37-MariaDB
ICU | 57.1
VisualEditor | 0.1.0 (6854ea0)22:33, 5 November 2018 | MIT | Visual editor for MediaWiki | Alex Monk, Bartosz Dziewoński, Christian Williams, David Lynch, Ed Sanders, Inez Korczyński, James D. Forrester, Moriel Schottlender, Roan Kattouw, Rob Moen, Timo Tijhof, Trevor Parscal, C. Scott Ananian and others
DrawioEditor | 1.0 |   | draw.io flow chart creation and inline editing | Markus Gebert
SyntaxHighlight | 2.0 | GPL-2.0-or-later | Provides syntax highlighting  using Pygments - Python syntax highlighter | Brion Vibber, Tim Starling, Rob Church, Niklas Laxström, Ori Livneh and Ed Sanders
NativeSvgHandler | 1.2 |   | Serves SVG images directly to clients | Povilas Kanapickas, Ilaï Deutel
Any thoughts as to what might be happening?

Well, I have the same problem now, using mediawiki 1.33.1 - someone now how to fix this? :)

in our environment this seemed to be down to whether the user was logged in or not. If logged in, Visual Editor and drawio worked nicely for us.

I have the same problem so I can't use the extension at all. With no edit button how can the editor be invoked?
Mediawiki 1.35
PHP 7.3
MariaDB 10

Same issue here. It worked for months. Now I can only see my already created images/drawings, but there's no edit button any more :-( Any help?!

Tried to debug this a bit. Seems that the DrawIO JS is not loaded at all?!
LocalSettings.php still contains:
require_once "$IP/extensions/DrawioEditor/DrawioEditor.php";

is this no longer sufficient or what?

Found out it relates to
        /* check for conditions that should or will prevent an edit of the chart */
        $readonly = (!$wgEnableUploads
            || (!$img && !$wgUser->isAllowed('upload'))
            || ($img && !$wgUser->isAllowed('reupload'))
            || $parser->getTitle()->isProtected('edit')
            );

Looks like one of the conditions tends to false which let readonly be true ... will further investigate.

oh, damn... found the issue. I protected the page to "admin only", that caused the edit-button to disappear.

I also experienced the "no edit button" but my user guide was on a locked admin only page.
After removing the admin lock, the extension works (mediawiki 1.27) and I have visual editor installed also.
Marking the page with draw.io extension admin-only-move doesn't effect it. Working, thanks @tuxedo0801!


cs setup on mac fails to write in .bash_profile with AccessDeniedException

Not sure how common this is but one student reported this on macOS 10.14.6:
Checking if a JVM is installed
Found a JVM installed under<EMAIL_ADDRESS>Should we update ~/.profile, ~/.bash_profile? [Y/n] Y
Exception in thread "main" java.nio.file.AccessDeniedException: /Users/Lenny/.bash_profile
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
	at java.nio.file.Files.newOutputStream(Files.java:216)
	at java.nio.file.Files.write(Files.java:3292)
	at coursier.env.ProfileUpdater.$anonfun$addToProfileFiles$5(ProfileUpdater.scala:97)
	at coursier.env.ProfileUpdater.$anonfun$addToProfileFiles$5$adapted(ProfileUpdater.scala:95)
	at scala.Option.foreach(Option.scala:407)
	at coursier.env.ProfileUpdater.$anonfun$addToProfileFiles$1(ProfileUpdater.scala:95)
	at coursier.env.ProfileUpdater.$anonfun$addToProfileFiles$1$adapted(ProfileUpdater.scala:91)
	at scala.collection.immutable.List.foreach(List.scala:392)
	at coursier.env.ProfileUpdater.addToProfileFiles(ProfileUpdater.scala:91)
	at coursier.env.ProfileUpdater.applyUpdate(ProfileUpdater.scala:168)
	at coursier.env.ProfileUpdater.applyUpdate(ProfileUpdater.scala:165)
	at coursier.cli.setup.MaybeInstallJvm.$anonfun$task$13(MaybeInstallJvm.scala:83)
	at scala.runtime.java8.JFunction0$mcZ$sp.apply(JFunction0$mcZ$sp.java:23)
	at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
	at scala.util.Success.$anonfun$map$1(Try.scala:255)
	at scala.util.Success.map(Try.scala:213)
	at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
	at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:497)
	at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)

It can be fixed by first running:
[ -f ~/.bash_profile ] && sudo chmod 0666 ~/.bash_profile

I don't know how that happened but it might be worth adding to the instructions if it's a common problem?

(weirdly just running chmod u+w ~/.bash_profile didn't solve the issue)

could it be the owner of the .bash_profile was some other user? that would explain why making it world-writable helped where making it writable fof the owner didn't.

Thanks for the report, @smarter!
Not sure how common that is… Maybe the initial ~/.bash_profile was created from a sudo command (on my machine, under macOS, sudo -s gives me a shell whose HOME is also my standard user home).
Maybe we could print a more sensible message if we detect insufficient permissions.

Yes, I think that'd be fine. A more extreme solution would be to ask the user something like: "Insufficient permissions detected in file .bash_profile. Would you like to update the permissions to make this file writable? [Y/n]"


⚠ Bofrost.de has degraded performance

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

HTTP code: 200
Response time: 2512 ms

Resolved: Bofrost.de performance has improved in d66fcae after 9 minutes.


Compile on musl libc

A set of strawman patches to enable compilation with musl libc, some are of very dubious quality.
Related to #8899.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

It's okay, @grpc-jenkins, there's no need to panic

Jenkins gets nervous about outsiders :)
But this is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Jenkins: this is ok to test

👍 I would like to see this merged. We are having problems compiling grpc on Alpine Linux; running into the PATH_MAX not defined error that https://github.com/grpc/grpc/pull/9065/commits/69388e4d4e12f36273429766e9279050ade536e9 fixes (I'm sure the rest of the commits are necessary as well, I just haven't gotten past the PATH_MAX part yet).

To get this merged:

review comments will need to be responded to
ideally I'd like to see the portability test suite extended so we don't need to be continually fixing this (there should be a docker image that builds with alpine)... @jtattermusch could you help there?

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

I'd also really like to see this merged because using google-cloud-ruby on Alpine Linux (the linux distro of choice for small footprint containers) is not possible without it, and I've built a whole bunch of stuff assuming using google-cloud-ruby on Alpine was possible.
I don't have much insight into the grpc project, but if there are tasks I can get the ball rolling on so someone can fixup later, I'm all for contributing

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Assume this is stale


Index ID to UID resolution for high QPS endpoints

For the new ingest service, I'm using the index UID as the queue ID for the WAL. However, I must resolve the index ID for each ingest request to do so.

We can probably add some optimizations here depending on how we want to handle index deletion and recreation interleaved with continues indexing requests. Basically, if in the sequence:

Create an index
Index record A
Delete an index
Index record B
Create an index with the same name
Index record C

on step 4 we want to always get an index doesn't exist error and have "C" to be the only one thing indexed in the newly created index on the step 5, we might need to have these checks every time. If we are ok with not getting notified that index no longer exists occasionally and potentially having A, B, and C in the newly created index, or not having anything in the newly created index, I think we have a lot of leeway in caching index ID to UID or making the queue survive index recreations. If we are not ok with this but we are ok with potentially losing the record "C" the caching will still work.
If we forget the whole ID to UID relationship for a moment, wouldn't we still have to check for index existence in the step 4?
Should this be an enhancement instead of a bug?


Update workflow-builder.Dockerfile

Bump to the latest 1.33 respin
FLPATH-1641
https://issues.redhat.com/browse/FLPATH-1641

/hold don't merge yet

Is there a need for an update to the tekton task on the chart repository?


Set a time limit on exchangeShare and add a method to get error information

Summary
Set a time limit on exchangeShare
Add a method to get error information
QuickMPC-libClient-py
https://github.com/acompany-develop/QuickMPC-libClient-py/pull/32
Purpose
Server continues to wait even if client is terminating with an error
Since grpc determines that metadata is limited to 7kb, and stack trace information may exceed 7kb
Contents
Fix getShare to wait up to 50 seconds
Add method to get error information
If the metadata exceeds 7kb, send a message recommending that it be retrieved using the get_job_error_info method
Add test
Testing Methods Performed
CI

@arukuka @mdonaka
Thanks for the review!
Please check the correction made.


Connection status check

Feature request
Is your feature request related to a problem? Please describe.
When using realtime-js, for example, there are hooks we can use to check the connection status:
// Socket Hooks

client.onOpen(() => console.log('Socket opened.'))
client.onClose(() => console.log('Socket closed.'))
client.onError((e) => console.log('Socket error', e.message))

While I understand the implementation is different and we are not using sockets for the storage API, I think it would be nice if I could get a feedback when it comes to the connection, to know whether the URL and KEY I passed to the SupabaseStorageClient constructor are good prior to calling any methods.
Describe the solution you'd like
I am unsure on the way to implement this, but it would be nice if we could have a testConnection method or maybe have the constructor automatically test the connection and return null if the parameters aren't ok, so that we know something went wrong.

Upon closer inspection this can be easily achieved by checking if the client object is null and as such i don't think it warrants any changes in the codebase as it is trivial to be implemented by the user. Closing this issue.


Java compatibility with inline value classes

Description
When declaring an inline value class in Kotlin, the functions receiving it as a parameter are mangled by adding a stable hash code to the function name.
@JvmInline
value class UInt(val x: Int)

// Represented as 'public final void compute(int x)' on the JVM.
fun compute(x: Int) { }

// Represented as 'public final void compute-<hashcode>(int x)' on the JVM.
fun compute(x: UInt) { }

This solution provided by the language makes these functions incompatible with Java: we can't call a function with an invalid identifier.
For disabling mangling and bringing Java compatibility to these functions, we should mark them with the JvmName annotation.
@JvmInline
value class UInt(val x: Int)

// Represented as 'public final void compute(int x)' on the JVM.
fun compute(x: Int) { }

// Represented as 'public final void computeUInt(int x)' on the JVM.
@JvmName("computeUInt")
fun compute(x: UInt) { }

Checklist

[ ] Identify types declared as inline value class and there usages.
[ ] Create an issue for each types identified and add it in the Subtasks checklist below.
[ ] Change the status of this issue to Blocked and wait for the resolution of all subtasks.
[ ] Update the Unreleased > Added section in changelog.

Subtasks

[ ] #154

For testing the Java compatibility of the library, we will enable the use of Java sources in JVM compilations.

This issue moved to the discussion #156 for a better process following.


bug: update quickstart for terraform

Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration (see the examples/* directory for references that you can copy+paste and tailor to match your configs if you are unable to copy your exact configuration). The reproduction MUST be executable by running terraform init && terraform apply without any further changes.
If your request is for a new feature, please use the Feature request template.

[x] ✋ I have searched the open/closed issues and my issue is not listed.

⚠ Note
Before you submit an issue, please perform the following first:

Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Module version [Required]: there is no tag yet, however this is the commit: https://github.com/aws-ia/ecs-blueprints/commit/b3179237b08929a261bd853c9933a6ac8afa00c9

Terraform version: Terraform v1.4.0 on darwin_arm64

Provider version(s): provider registry.terraform.io/hashicorp/aws v4.58.0

Reproduction Code [Required]

Steps to reproduce the behavior:

Expected behavior

The command cp terraform.tfvars.example terraform.tfvars to work
Actual behavior

cd ecs-blueprints/examples/core-infra/

terraform init

cp terraform.tfvars.example terraform.tfvars
# exit code 1

Terminal Output Screenshot(s)

cd ecs-blueprints/examples/core-infra
terraform init

cp terraform.tfvars.example terraform.tfvars
cp: terraform.tfvars.example: No such file or directory

Additional context

the only terraform.tfvars.example I found was in the backstage folder

ok I also saw JUST FOR TESTING - DO NOT RELY ON THIS in the module https://github.com/clowdhaus/terraform-aws-ecs/. Maybe this is still all WIP

docs have been updated in #128 - modules will switch back to terraform-aws-ecs once https://github.com/terraform-aws-modules/terraform-aws-ecs/pull/76 is merged


Update swedbank-pay-design-guide-theme.scss

This fixes the absurd amount of margin above and below of mermaid schemas.

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


Fix enum options default not None

fixes #46

converter checks if value is Enum type and gets enum.value, or is string
New test to check default is correctly selected when option not provided

Codecov Report

Merging #48 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #48      +/-   ##
==========================================
- Coverage   99.96%   99.96%   -0.01%
==========================================
  Files         166      166
  Lines        2924     2904      -20
==========================================
- Hits         2923     2903      -20
  Misses          1        1

Impacted Files
Coverage Δ

...test_parameter_types/test_enum/test_tutorial001.py
100% <100%> (ø)
:arrow_up:

docs/src/commands/callback/tutorial004.py
100% <0%> (ø)
:arrow_up:

docs/src/commands/one_or_multiple/tutorial002.py
100% <0%> (ø)
:arrow_up:

docs/src/commands/index/tutorial002.py
100% <0%> (ø)
:arrow_up:

docs/src/subcommands/name_help/tutorial008.py
100% <0%> (ø)
:arrow_up:

docs/src/subcommands/name_help/tutorial004.py
100% <0%> (ø)
:arrow_up:

...s/src/subcommands/callback_override/tutorial001.py
100% <0%> (ø)
:arrow_up:

...test_tutorial/test_subcommands/test_tutorial001.py
100% <0%> (ø)
:arrow_up:

docs/src/subcommands/name_help/tutorial006.py
100% <0%> (ø)
:arrow_up:

...s/src/subcommands/callback_override/tutorial003.py
100% <0%> (ø)
:arrow_up:

... and 10 more

Continue to review full report at Codecov.

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

Thanks for your contribution @sullivancolin ! :rocket: :cake:
I wasn't able to reproduce the error from the issue with the latest Typer, so I think the underlying bug might have been fixed by Click 7.1, released recently.
Could you confirm?

Confirmed fixed by new release of Click! 🎉

Great! Thanks for reporting back and closing the issue. :+1:


Use webcodecamjs by file-input method

getUserMedia is still very limited on ios, how can i use webcodecamjs by file-input method
i upload image, webcodecamjs decode it

Hello,
I created a new version, based on your request. :)
I will publish this version in few days.
Regards
András

Thanks.
Look forward that version.

That version just upload img,
i change

to that

i can not get img from camera, just select img from photo library
how can i upload img from camera


No "Release" folder created

I want to use the Java interface, so I should compile and produce the scip.jar myself? Fllowing the instructions, a "builder" folder is created, but without the "release" dir. So the "cd Release" throws an error.
Can anyone provide me with the correct scip.jar?

The scip.jar on its own is not going to help you, you also need the JNI library.
JSCIP is fairly straightforward to compile with cmake, especially on GNU/Linux.
The missing directory (which is actually called Release, not release, it is the name of the CMAKE_BUILD_TYPE, which defaults to Release in JSCIP) is probably missing because of some error during the build process. The files are only created on a successful build. See your other bug report, #41. Closing as a duplicate.


fix: handle numeric types when generating Avro values

In addition to #94, this PR fixes the serialization of numeric values, for example, when Jackson deserializes an Integer from the file when the Avro schema expects a Long.

I'll backport it to the next 0.19 release which should be published today.

Yes, done!


Uncaught TypeError: Comp is not a function

Describe the bug
I followed the example of the doc. But the rooter does not work. I let you see the example on stackblitz. I have the following message in my console in the browser:
Uncaught TypeError: Comp is not a function
    at chunk-BMOKTV46.js?v=c0f3a5c4:560:12
    at untrack (chunk-BMOKTV46.js?v=c0f3a5c4:452:12)
    at Object.fn (chunk-BMOKTV46.js?v=c0f3a5c4:556:37)
    at runComputation (chunk-BMOKTV46.js?v=c0f3a5c4:753:22)
    at updateComputation (chunk-BMOKTV46.js?v=c0f3a5c4:738:3)
    at devComponent (chunk-BMOKTV46.js?v=c0f3a5c4:566:3)
    at createComponent (chunk-BMOKTV46.js?v=c0f3a5c4:1326:10)
    at shared.element.component.element.element [as outlet] (routing.js:52:21)
    at get children [as children] (components.jsx:57:68)
    at Object.fn (chunk-BMOKTV46.js?v=c0f3a5c4:1086:35)

Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-bptwek?file=src/App.jsx
Steps to Reproduce the Bug or Issue

Create a rooter like the doc in jsx
See the error in console

Expected behavior

A router with routes, without error in console

Screenshots or Videos
No response
Platform

OS: [Linux]
Browser: [Brave]
Version: [last]

Additional context
No response

Instead of <Route path="/users" component={
Users
} /> ...
...do...

<Route path="/about" element={
This site was made with Solid
} />
or  <Route path="/users" component={() =>
Users
} />
or  <Route path="/users" component={Users} /> (and create a Users component)

There are examples of these on the router readme page


'View on github'-button to user page for non-projects

The 'View on github' button now points to the user page ('site.github.owner_url')
instead of the repository page ('site.github.repository_url') when the page
does not belong a project ('site.github.is_project_page' false).
Thus, the links now points to 'github/username' instead of ' github/username/username.github.io'.

Thanks @mueller-physics!


Fix : 9784 Added the note for display.max_colwidth in dsintro.rst

[x ] closes #9784
[ ] tests added / passed
[ ] passes git diff upstream/master | flake8 --diff
[ ] whatsnew entry

ok sir, i will add an example with Long names or strings that will make it more clear.

sir, any reviews

filename changed to generic

thanks!


chore: run npm install on branch switch

https://github.com/mint-vernetzt/mint-vernetzt/issues/59#issuecomment-944997172

It seems to take a big while on my toaster, it does not feel right. I need consultation.


There is a way to use local or change the language of the phrases?

I want to translate the sentences to different lenguges.
var phrasing = {     less_than_x_seconds: 'less than %d second%s',     half_a_minute: 'half a minute',     less_than_a_minute: 'less than a minute',     less_than_x_minutes: 'less than %d minute%s',     x_minutes: '%d minute%s',     about_x_minutes: 'about %d minute%s',     about_x_hours: 'about %d hour%s',     x_days: '%d day%s',     about_x_months: 'about %d month%s',     x_months: '%d month%s',     about_x_years: 'about %d year%s',     over_x_years: 'over %d year%s',     almost_x_years: 'almost %d year%s'   };
This is the only peace of code that needs to be translated rigth?

Hi @gomitaana. Correct. The library needs a small refactoring in order to allow passing phrasing as an option to the distance function.


Configure Renovate

Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.
🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.

Detected Package Files

package.json (npm)
packages/eslint-plugin-codegen/package.json (npm)
packages/expect-type/package.json (npm)
packages/fs-syncer/package.json (npm)
packages/io-ts-extra/package.json (npm)
packages/memorable-moniker/package.json (npm)
You have configured Renovate to use branch master as base branch.

What to Expect
With your current configuration, Renovate will create 11 Pull Requests:

chore(deps): update dependency eslint-config-xo to ^0.30.0

Schedule: ["at any time"]
Branch name: renovate/eslint-config-xo-0.x
Merge into: master
Upgrade eslint-config-xo to ^0.30.0

chore(deps): update dependency eslint-config-xo-typescript to ^0.31.0

Schedule: ["at any time"]
Branch name: renovate/eslint-config-xo-typescript-0.x
Merge into: master
Upgrade eslint-config-xo-typescript to ^0.31.0

chore(deps): update dependency fp-ts to v2.6.2

Schedule: ["at any time"]
Branch name: renovate/fp-ts-2.x
Merge into: master
Upgrade fp-ts to 2.6.2

chore(deps): update dependency glob to v7.1.6

Schedule: ["at any time"]
Branch name: renovate/glob-7.x
Merge into: master
Upgrade glob to 7.1.6

chore(deps): update dependency io-ts to v2.2.4

Schedule: ["at any time"]
Branch name: renovate/io-ts-2.x
Merge into: master
Upgrade io-ts to 2.2.4

chore(deps): update dependency js-yaml to v3.14.0

Schedule: ["at any time"]
Branch name: renovate/js-yaml-3.x
Merge into: master
Upgrade js-yaml to 3.14.0

chore(deps): update dependency @types/jest to v25

Schedule: ["at any time"]
Branch name: renovate/jest-25.x
Merge into: master
Upgrade @types/jest to ^25.0.0

chore(deps): update dependency @types/node to v14

Schedule: ["at any time"]
Branch name: renovate/node-14.x
Merge into: master
Upgrade @types/node to ^14.0.0

chore(deps): update dependency babel-jest to v26

Schedule: ["at any time"]
Branch name: renovate/babel-jest-26.x
Merge into: master
Upgrade babel-jest to ^26.0.0

chore(deps): update dependency expect to v26

Schedule: ["at any time"]
Branch name: renovate/expect-26.x
Merge into: master
Upgrade expect to ^26.0.0

chore(deps): update dependency jest to v26

Schedule: ["at any time"]
Branch name: renovate/jest-26.x
Merge into: master
Upgrade jest to ^26.0.0

❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section.
If you need any further assistance then you can also request help here.

This PR has been generated by Renovate Bot.

Codecov Report

Merging #36 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #36   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           21        21
  Lines          437       437
  Branches        77        77
=========================================
  Hits           437       437

Continue to review full report at Codecov.

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


suppress "stock file is absent, creating a new one" eprint

Instantiating a runtime by calling Runtime::load_attach() currently prints stock file is absent, creating a new one.
This is inconvenient and I think this output should be suppressed.
Similarly to what's been done in #23, I propose to protect that eprint behind a feature flag (e.g. log, which appears otherwise unused).

Agree


Task manager

Fixes issue #41
Added responsive design, interactive features, and board management to enhance the Task Manager App's functionality and user experience.

https://github.com/Kritika30032002/ReactCreations/assets/113297899/cf879078-eaf5-4a98-bff2-f50b7462caa8

Thanks for your valuable contribution.
Don't forget to star the repo.

Great Project!


safari ！An error occurs when the iPhone is opened

Describe the bug
Describe the bug
If you use Safari to open the website, the following error occurs！
ios16.3.1 ，iphone14pro！

—————— -
Unexpected Application Error!
Invalid regular expression: invalid group specifier name
RegExp@[native code]
module code@https://****.com/assets/MemoResourceListView-8931b1bc.js:270:88898
evaluate@[native code]
moduleEvaluation@[native code]
moduleEvaluation@[native code]
moduleEvaluation@[native code]
@[native code]
asyncFunctionResume@[native code]
@[native code]
promiseReactionJobWithoutPromise@[native code]
promiseReactionJob@[native code]

Steps to reproduce
1，Log in to my website，Register an account
2，A bug occurs ，
3，Uninstall and reinstall，still exists
Screenshots or additional context

Using docker to install and log in is normal, but the iPhone prompts a bug.
Yes, I use my iPhone to log into my website and write，but encountered a problem

@paluo90 what version of Memos are you running? This may be similar to this issue: https://github.com/usememos/memos/issues/2633
Try updating to the latest version or re-building/re-deploying your Memo instance

@paluo90 what version of Memos are you running? This may be similar to this issue: #2633
Try updating to the latest version or re-building/re-deploying your Memo instance

It doesn't look like it，version V0.18, but it still doesn’t work，I reinstalled version V0.18, but it still doesn’t work.

@paluo90 I’m not able to recreate this error in my Memo instance v0.18.1 using iOS 17 and safari.
Have you tried accessing your website on a different device like desktop or Android to see if it works?

@paluo90 I’m not able to recreate this error in my Memo instance v0.18.1 using iOS 17 and safari.
Have you tried accessing your website on a different device like desktop or Android to see if it works?
I am ios16, on ipados16 can be opened normally, android can be opened normally, what is the reason for this?

@paluo90 I’m not able to recreate this error in my Memo instance v0.18.1 using iOS 17 and safari.
Have you tried accessing your website on a different device like desktop or Android to see if it works?

I am ios16, on ipados16 can be opened normally, android can be opened normally, what is the reason for this?

@paluo90 maybe related to ios version, the latest 17 is ok

@qxxiao My God, if update the latest ios, I don't want to do that, maybe it is not possible to solve it fundamentally

By the way, I forgot one thing, I had no problem logging in to the demo station with my iPhone, and when I installed it, there was a problem with my web page, so... This may be an issue to be fixed

@okhanyu hello！

Just to add I'm having the same issue with my iphone with both Safari and Firefox.
I'm on iOS 15.8 - on an iphone 7. All was fine until the 18.0 update. The MoeMemos app still works ok.

The same problem, and my iphone is on iOS 15.4.1

Maybe fixed in the latest version. Please give a try in demo site: https://demo.usememos.com

@boojack Sorry, the official demo site doesn't have this problem, but my own site still exists, version v0.18.1

@boojack The demo site works fine. I have a 0.18.1 docker installation. It was working up until 0.18.0.

Let's wait for the next release.

the same problem on ipad safari and chrome

ios14 is also not worked

ios11 is also not worked

@Stars521 @aefa6 @chxsamidare on your iOS devices, can you go into your web browser settings (Safari if that's your default browser), clear all of Safari's cache/history, and then re-try to see if this issue still happens on those devices?

Sorry, I am unable to assist you with testing as I have already reverted the version of "memos" to 0.17

@Stars521 @aefa6 @chxsamidare on your iOS devices, can you go into your web browser settings (Safari if that's your default browser), clear all of Safari's cache/history, and then re-try to see if this issue still happens on those devices?

This is the iPhone 11 accessing the website in incognito mode. It is still the same problem as before. The same error message is reported.

@Stars521 @aefa6 @chxsamidare on your iOS devices, can you go into your web browser settings (Safari if that's your default browser), clear all of Safari's cache/history, and then re-try to see if this issue still happens on those devices?

This is the iPhone 11 accessing the website in incognito mode. It is still the same problem as before. The same error message is reported.

@Stars521 and that error message still happens after you cleared the web browser you are using’s cache in settings?

@Stars521 @aefa6 @chxsamidare on your iOS devices, can you go into your web browser settings (Safari if that's your default browser), clear all of Safari's cache/history, and then re-try to see if this issue still happens on those devices?

This is the iPhone 11 accessing the website in incognito mode. It is still the same problem as before. The same error message is reported.

0.18.2 works fine
ios15.4.1


Support typed config variables in settings

Currently, all variables in settings.json, including config variables, must be strings.
However, some fields in settings.json require other types, e.g. numbers, or lists of numbers, etc.
I propose that ${config:<my-setting> should return a value with the type of <my-setting>, using .toString if the variable is inside a string (i.e. expand as normal).
Example use case (to relieve #30609):
{
  "editor.rulers": [
    ${config:editor.wordWrapColumn}
  ]
}

However, one issue is that this isn't valid JSON. In which case, another proposal could be that "${config:<my-setting>}" expands as normal, but we add a "${configWithType:<my-setting>" variable expansion to return the value and type of <my-setting>.

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Update Page “index”

Automatically generated by Netlify CMS

👷 Deploy Preview for hopeful-ptolemy-f48884 processing.
🔨 Explore the source changes: 36253b9fd6d299f9c8bb97c265bd4d3fdf421bb1
🔍 Inspect the deploy log: https://app.netlify.com/sites/hopeful-ptolemy-f48884/deploys/61dee23e3b7ab7000a81b72b


[WIP]✨ Added support for compact Popover

resolves #1758

got a warning: Property 'open' does not exist on type 'ThemeProps<DefaultTheme>' -> need fix


[launcher] - fails to run

From 2020.20.04 9pm msi
Description: A .NET Core application failed.
Application: PowerLauncher.exe
Path: C:\Program Files\PowerToys\modules\launcher\PowerLauncher.exe
Message: Error:
An assembly specified in the application dependencies manifest (PowerLauncher.deps.json) was not found:
package: 'PropertyChanged.Fody', version: '3.2.7'
path: 'lib/netstandard1.0/PropertyChanged.dll'

duplicate of #2279


Driver Example Usage

Driver example usage
Write test results to single zarr store
clean up esn kwargs stuff
cost terms to testing config section for easy evaluation

TODO

[ ] Cleanup notebook
[ ] docstrings

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

Comparison is base (c6bbad6) 97.68% compared to head (3a62522) 97.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
+ Coverage   97.68%   97.75%   +0.07%
==========================================
  Files          11       11
  Lines         949      982      +33
==========================================
+ Hits          927      960      +33
  Misses         22       22

Flag
Coverage Δ

unittests
97.75% <100.00%> (+0.07%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Closes #13 #18 #31


Add Bobabeam mainnet

Network Name: Milkomeda Algorand Testnet
RPC URL: https://bobabeam.boba.network/
Chain ID: 1294
Currency Symbol: BOBA
Block Explorer URL: https://blockexplorer.bobabeam.boba.network/

You deleted everything under .github folder


Add link back to ESMO page

Add a link back to the ESMO page for the global hackathon. Link is: https://www.wcrp-esmo.org/activities/wcrp-global-km-scale-hackathon-2025
Should be mentioned in the first section (Welcome).
Do we need a menu content section for the global hackathon as well? Or is one link in the first section sufficient?

I would argue that a link to the first section is sufficient. I am not a big fan of external links in content menus.

closed with #7


Change cache key generation to avoid requesting the API with irrelevant query parameters

Cache will be removed in 3.0.0.


mapperFromUnderscoreCaseToCamelCase doesn't work with numbers

Example property name:
artifactToleranceFactor1
Expected result:
artifact_tolerance_factor_1
Actual result:
artifact_tolerance_factor1
I had a quick go at fixing this myself, but I didn't get very far.
Would this be considered a bug, or would creating a new mapper be more appropriate?

Sorry for bring this up, but my json has some properties like address1, option1,... and I have identical Obj-C properties address1, option1... But they're all nil because of this, right? I have to add custom key mapper:
+ (JSONKeyMapper *)keyMapper {
    return [JSONKeyMapper mapper:[super keyMapper]
                  withExceptions:@{
                                   @"address1" : @"address1",
                                   @"option1" : @"option1"
                                   }];
}

which looks pretty akward. option1 -> option_1, is this how it supposed to be in camelCase?

@kientux It's not possible to convert between camel case and snake case in a "lossless" manner - ultimately you have to decide between adding underscores before numbers or not.
If the option we chose doesn't match your case, you probably should copy the mapperFromUnderscoreCaseToCamelCase code and make your own version which works the way you'd prefer.
If you need to continue this discussion, open a new issue about it - no need to send notifications to the people in this thread :)


[Code health] Remove dead code around LOI mutations

@gino-m Can we close this bug in favor of more concrete issues? I couldn't find any relevant evidence of dead code in mutation repositories.


i have error in "window.ClearBackground" function.

i copied code from examples/core/core_basic_window.cpp. but i getting this error on ClearBackground:
Starting build...
/usr/bin/g++ -fdiagnostics-color=always -g '/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/cpplearn.cpp' -o '/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/cpplearn'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::LoadFileText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:74: undefined reference to `LoadFileText'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:76: undefined reference to `UnloadFileText'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::LoadDirectoryFiles(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:154: undefined reference to `LoadDirectoryFiles'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:156: undefined reference to `UnloadDirectoryFiles'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::LoadDroppedFiles()':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:171: undefined reference to `IsFileDropped'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:174: undefined reference to `LoadDroppedFiles'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:176: undefined reference to `UnloadDroppedFiles'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::TextReplace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:363: undefined reference to `TextReplace'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::TextInsert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:376: undefined reference to `TextInsert'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::TextSplit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char)':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Functions.hpp:390: undefined reference to `TextSplit'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `main':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/cpplearn.cpp:12: undefined reference to `SetTargetFPS'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/cpplearn.cpp:16: undefined reference to `BeginDrawing'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/cpplearn.cpp:22: undefined reference to `EndDrawing'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::Color::DrawText(char const*, int, int, int) const':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Color.hpp:163: undefined reference to `DrawText'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::Window::Init(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Window.hpp:64: undefined reference to `SetConfigFlags'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Window.hpp:66: undefined reference to `InitWindow'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Window.hpp:67: undefined reference to `IsWindowReady'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::Window::ShouldClose() const':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Window.hpp:76: undefined reference to `WindowShouldClose'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::Window::Close()':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Window.hpp:90: undefined reference to `IsWindowReady'
/usr/bin/ld: /home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Window.hpp:91: undefined reference to `CloseWindow'
/usr/bin/ld: /tmp/cc8mt7P8.o: in function `raylib::Window::ClearBackground(Color const&)':
/home/linisowinload/Desktop/youtube gen/Projects/C++ Learn/raylib_cpp/include/./Window.hpp:171: undefined reference to `ClearBackground'
collect2: error: ld returned 1 exit status

skill issue

I believe you may need to link raylib. Use one of the proejct template or start from a raylib project template.

truly a skill issue, learn how to use a compiler first.
The linker is clearly telling you, that there are missing references, which means you have forgotten to include raylib into your linker flags: -lraylib. please refrain from opening issues without using google to find out about your issues. example would be: "ld returns 1 with error undefined reference" or "compilation fails due to error undefined reference". You could also ask chat gpt, giving you a very nice answer about how to use a compiler correctly.

https://github.com/RobLoach/raylib-cpp/tree/master/projects


eb(ref, op, val) does not accept sql template tag escaped op argument.

Hey 👋
Seems like eb(ref, op, val) does not accept sql template tag escaped operators in 2nd argument.

https://tsplay.dev/NrYbaw
Also, these are uncaught in the kysely playground. (cc @wirekang)

Isn't this a duplicate of https://github.com/kysely-org/kysely/issues/891? eb assumes the operator is arithmetic and returns the operand type and not bool.

Oops. Forgot about it. 🫢

Also, these are uncaught in the kysely playground.

I updated the playground to use newer version of typescript(5.0.2 ->5.4.5), it seems fixed.


Serialize empty URL as string when creating menu items

get_menu_item_as_dict function used to serialize menus to JSON (which is used by Storefront 1.0 for rendering menus) was serializing empty URLs as None. As a result, one could create menu items that were rendered in Storefront as http://localhost:8000/en/None. This PR changes this behavior to link to the homepage in such case.
Pull Request Checklist

[x] Privileged views and APIs are guarded by proper permission checks.
[x] All visible strings are translated with proper context.
[x] All data-formatting is locale-aware (dates, numbers, and so on).
[x] Database queries are optimized and the number of queries is constant.
[x] Database migration files are up to date.
[x] The changes are tested.
[x] GraphQL schema and type definitions are up to date.
[x] Changes are mentioned in the changelog.

Here is the report for 461a16273658e03339151673a9d468a02f283052 (mirumee/saleor @ fix-serializing-menu-to-json)
Base comparison is 0922898bd8f9fb70f906ea3a81a6e420f7b4873c.
No differences were found. (click me)

# api.benchmark checkout
  test name                           	left count 	right count	duplicate count
  ------------------------------------	-----------	-----------	---------------
  add billing address to checkout     	         34	         34	             20
  add shipping to checkout            	          7	          7	              0
  checkout payment charge             	         14	         14	              0
  complete checkout                   	          6	          6	              0
  create checkout                     	         48	         48	             24

# api.benchmark homepage
  test name                           	left count 	right count	duplicate count
  ------------------------------------	-----------	-----------	---------------
  retrieve main menu                  	          5	          5	              0
  retrieve product list               	          4	          4	              0
  retrieve secondary menu             	          5	          5	              0
  retrieve shop                       	          2	          2	              0

# api.benchmark product
  test name                           	left count 	right count	duplicate count
  ------------------------------------	-----------	-----------	---------------
  product details                     	         13	         13	              3

# api.benchmark variant
  test name                           	left count 	right count	duplicate count
  ------------------------------------	-----------	-----------	---------------
  retrieve variant list               	         15	         15	              8


Missing PR(pull request) labels [bug, fix, enhancement, dependencies etc.]

Feature Request: Create PR Labels
Create a standardized set of labels for pull requests (PRs) to improve the organization, prioritization, and clarity of contributions. Labels will help categorize PRs based on their type, urgency, or scope, making the review and merging process smoother.

The default labels are already included. I've added your suggestions too 👍🏼


Using _bulk_docs with new_edits false and without _rev should responds 400 Bad Request

Overview
Using _bulk_docs with "new_edits": false and without _rev responds with 500 Server Error. I understand I should always include _rev into the document, but if I don't, it is a bad request, isn't it?
Testing recommendations

Related Issues or Pull Requests
Related Issues: https://github.com/apache/couchdb/issues/2242
Checklist

[ ] Code is written and works correctly
[ ] Changes are covered by tests
[ ] Any new configurable parameters are documented in rel/overlay/etc/default.ini
[ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

We should be able to rely on _revisions:{start: ..., ids: [...]} instead and shouldn't necessarily need _rev


Fix/#6461 swagger decorator

Pull Request
Now referencing swagger decorator from easey-common. Removed /workspace endpoints from swagger

In the easy-common package, https://github.com/US-EPA-CAMD/easey-common/blob/master/src/utilities/swagger-decorator.const.ts#L10 is currently receiving an invalid value. It should be set to const env= this.configService.get("app.env") instead.

PR created for this fix: https://github.com/US-EPA-CAMD/easey-common/pull/195


Range-Requests for OCFL files

There are different use cases where it would be helpful, if the OCFL Java API supports RangeRequests:

download of very lage files
mulitpart downloads / resume download on error
retrieve parts of files

Cover Images / first page from PDF files
get single files from TAR archive or uncompressed ZIP

Currently we can only get the whole input stream, skip first bytes and close early, after the request is fulfilled.
But most of the implementations support RangeRequest directly (like RandomAccessFiles in Java or Range-Requests for S3Objects).
It would be very useful if the OCFL Java API could be enhanced with methods to request ranges of files and pass them through to the underlying implementations.

@rsteph-de Thanks for filing this issue. I haven't had a chance to investigate the options yet, but hope to later this week and will then get back to you.

@rsteph-de Sorry, I finally had time to look at this a little. What do you think about the following:

Add a new method to OcflFileRetriever with the signature InputStream retrieveRange(Long start, Long end) that can be used to execute a range request
Add a new method to OcflObjectVersionFile with the signature InputStream getRange(Long start, Long end) that calls the above method

Would this work for you?
I would use the values provided to construct a range string like in the rfc, but don't really want to accept a range string because I need to make this work for a RandomAccessFile too.

@pwinckles Looks good to me

@pwinckles Thank you for starting to work on this issue. I discussed your suggestion with Mewel who is going to use this feature to implement range requests on OCFL files in our repository framework. Your solution will work for us.

Great. I hope to be able to get a PR ready for you all to review within a week or so.

@rsteph-de @Mewel I just posted a PR: https://github.com/OCFL/ocfl-java/pull/120
Please let me know if it works for you.

@rsteph-de @Mewel This will be released in https://github.com/OCFL/ocfl-java/releases/tag/v2.2.1. However, the publish to Maven Central is currently failing, and it's unclear why. I'll try again tomorrow.

@rsteph-de @Mewel the publish worked today. It should be available in central tomorrow. Please open need tickets if you need anything else.


manual made project files for a software driver?

Is there any way to manually create a project file for a software driver I want to write when my device does not have internet to make the wdf installer work?
What do I need to do you ask? Well for my program it is a need to filter the threads by a list of handles I pass in (std::vector<HANDLE>) to a function I want exported and then imported to a function to filter if it is a system made or user made thread. Then if they are then return the # of user made threads in that list. I would also like in that driver also be able to detect when (if the application asks) whenever some other process calls CreateRemoteThread using the handle to the process for means of deploying an registered callback from within the driver to the application.
Edit: Why does kernel32 not have a function for that system / user thread distinction for user mode applications in case they want to do that so they can avoid all this software driver hackery or even a way for applications to see if they even want the thread from a call to CreateRemoteThread from another process too then if not have the application tell the function no; and make it error with an unauthorized error code from the caller (the other process in this case)?
And yes; I get you need backwards compat then; but then you can do an api call to turn on the new stuff for the process wide only then am I right and have it check some sort of list to see if the process subscribed to it. no?
So maybe something to list that needs done:

Ways to filter between system (kernel made) threads / user (application made) threads without needing any sort of drivers.
A way to update CreateRemoteThread that can allow the application to decide if it wants the thread if the handle from GetCurrentProcess() != input handle on the call. If not make the function return an error code that represents "unauthorized".
A way to subscribe to (2.) on this list by introducing another function that adds the current process to a list then CreateRemoteThread looks to see if it is before doing the updated behavior to prevent breaking existing applications. Maybe in that function it could just be some sort of callback registration function that uses the handle to the process (returned from an internal GetCurrentProcess() call) to add the callback to the list.

I know this might seem a bit much; but any improvement to even the windows threadig API that allows something like this done is a win for me and my projects.

Hi,
This forum is not the correct place for this query. Your query is non-DMF specific. I think you can get better help if you post here:
https://social.msdn.microsoft.com/forums/office/en-us/home?forum=accessdev


Simplify check-dist workflow

git diff can control exit status.

Node 12 may not be suitable for an action.

Glad to contribute.


try to handle multiple decls and assignments

closes #44

Codecov Report

Merging #45 into master will increase coverage by 0.12%.
The diff coverage is 93.33%.

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
+ Coverage   85.38%   85.51%   +0.12%
==========================================
  Files           9        9
  Lines         698      704       +6
==========================================
+ Hits          596      602       +6
  Misses        102      102

Flag
Coverage Δ

#unittests
85.51% <93.33%> (+0.12%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/TypeProfiler.jl
44.44% <ø> (ø)

src/virtualprocess.jl
93.87% <93.33%> (-0.31%)
:arrow_down:

src/print.jl
83.15% <0.00%> (+0.86%)
:arrow_up:

Continue to review full report at Codecov.

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


(PUP-7407) Deprecate/reimplement absolute_path to use ruby's built-in. (WIP)

CLA signed by all contributors.


Question: show Done button from fragment

Hello! thanks for this library, it's great.
This is what i need to achieve:

By default I have showDoneButton(false)
I have 3 slides with some instructions
in the 4th (the latest one) I show 2 options to the user choose current location or a city
When the user chooses location I hide all the elements (with animations and stuff) and i'm trying to show again the done button to dismiss the intro. I'm calling ((TutorialActivity) getActivity()).showDoneButton(true); from the fragment but it's not working. Also I've created a function on my activity to toggle the button from there but it's not working either.

What am I missing?
Thanks again :)

I found why:
public void showDoneButton(boolean showDone) {
        this.showDone = showDone;
        if (!showDone) {
            TextView done = (TextView) findViewById(R.id.done);
            done.setVisibility(View.GONE);
        }
    }

Above code should be:
public void showDoneButton(boolean showDone) {
        this.showDone = showDone;
        TextView done = (TextView) findViewById(R.id.done);
        if (!showDone) {
           done.setVisibility(View.GONE);
        } else {
           done.setVisibility(View.VISIBLE);
        }
    }

I will try to add and test that code this weekend and submit a pr.

Hi, I believe this case is handled by the pull request I have submitted (#100). Although, admittedly it's a pretty big pull request, so I'm not sure how long it will take to get incorporated.

@danluong it's been pulled :) Will incorporate into the lib soon.

Cool. I will check later and if is not maybe I will wait to your pull merged to change it.
Anyway the designers decided to dismiss the tutorial after showing a message for one second :) so no hurry

@albertogarrido I really just have to figure out how to release this lib onto Maven and I'll be good :)


fix: make type parameter optional and default single

The documentation for accordian has the following as the example usage:
<Accordions>
  <Accordion title="My Title">My Content</Accordion>
</Accordions>

However, this resulted in the error:

Raw Error
Type '{ children: Element; }' is not assignable to type 'IntrinsicAttributes & ((Omit<AccordionSingleProps, "value" | "onValueChange"> | Omit<AccordionMultipleProps, "value" | "onValueChange">) & RefAttributes<...>)'.
  Property 'type' is missing in type '{ children: Element; }' but required in type 'Omit<AccordionMultipleProps, "value" | "onValueChange">'.ts(2322)
index.d.mts(23, 5): 'type' is declared here.
(alias) const Accordions: ForwardRefExoticComponent<(Omit<AccordionSingleProps, "value" | "onValueChange"> | Omit<AccordionMultipleProps, "value" | "onValueChange">) & RefAttributes<...>>
import Accordions

This PR makes the accordion type optional. I've defined CustomProps for now, and plan to add the updateAnchor option similar to the  component in #1070

It is expected, the usage in TSX files requires type property. It’s only added as a fallback for convenience in MDX files

Also the accordion component is mainly for displaying FAQs and additional sections, I prefer to have a copy button instead of changing hash when opening it, it’s more intuitive for people to quickly link to a section or answer

It is expected, the usage in TSX files requires type property. It’s only added as a fallback for convenience in MDX files

ah alright, understood. Should this be documented somewhere?
Feel free to close this PR.

Also the accordion component is mainly for displaying FAQs and additional sections, I prefer to have a copy button instead of changing hash when opening it, it’s more intuitive for people to quickly link to a section or answer

That makes sense - I just thought it'll be good to support bot. On our side, we have people (not many) getting confused by the hash not changing when they select a different accordion (when they were initially sent a link with one). For context, we use the accordion to show a weekly schedule of events.
I could also implement this client side though, so not an issue. Won't make a PR for it in that case. Thanks @fuma-nama.

Yeah it’s better to implement it on user land. I will improve the docs later


PIDDEBUG: it's normal ?

Is it normal to have this? PIDDEBUG and Oopsy request.

The timeline does not appear on all content. Is something wrong or is it me?

PIDDEBUG is just temporary debugging.  I'll remove it when I think that issue is fixed.
Oopsy request prints because you have Debug clicked.
I am not sure why the timeline is not appearing.  I think you'd have to be more specific about which content it's not appearing in or when.  I don't know of any issues in this area.

Oopsy request
It appears, as soon as the program is launched, without me being in any content.

Ok thank you.


Bug: NATS queue subscribers workers consume the same message multiple times

Hi!
Describe the bug
I have some faststream workers that have to process messages from a subject through a subscription.
A message has to be processed only once, so I use a queue group for this purpose.
I also need late ack, in case the worker dies, in order to retry processing the message.
The problem is that I noticed some messages are processed several times, and some messages are delivered late.
I'm not sure if it's a bug from my code, faststream or NATS...
How to reproduce
Code is in the zip file attached.
faststream nats bug.zip
To run the NATS server:
docker compose up nats_js_test

To watch the subjects:
nats --server localhost:4222 subscribe "mysubject.*"

To run faststream workers:
faststream run mre_app:app --workers 15

To publish some messages:
nats pub mysubject.queue "{{.Count}}" --count=14

Expected behavior
We publish 14 messages, and there are 15 workers, so all messages should:

be processed once and not more
be processed immediately and not wait in the queue

Observed behavior
Some messages are processed late: in the logs below, we can see that the first messages are processed as soon as they arrive (at 05 minutes and 18 seconds), while the next messages are received at 05 minutes and 48 seconds.
...
2024-01-04 21:04:49,274 INFO     - mysubject | myqueue | mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-04 21:05:18,347 INFO     - mysubject| myqueue | mysubject.queue | de006108-5 - Received
2024-01-04 21:05:18,348 INFO     - mysubject| myqueue | mysubject.queue | 7fa8fc2b-5 - Received
2024-01-04 21:05:18,350 INFO     - mysubject| myqueue | mysubject.queue | 53fd4080-e - Received
2024-01-04 21:05:18,353 INFO     - mysubject| myqueue | mysubject.queue | 78b50dd5-4 - Received
2024-01-04 21:05:18,357 INFO     - mysubject| myqueue | mysubject.queue | eb2353c1-5 - Received
2024-01-04 21:05:18,359 INFO     - mysubject| myqueue | mysubject.queue | 3e7c0161-1 - Received
2024-01-04 21:05:18,361 INFO     - mysubject| myqueue | mysubject.queue | 4446dad5-5 - Received
2024-01-04 21:05:18,366 INFO     - mysubject| myqueue | mysubject.queue | fbb659af-9 - Received
2024-01-04 21:05:18,369 INFO     - mysubject| myqueue | mysubject.queue | 358fe74d-a - Received
2024-01-04 21:05:18,370 INFO     - mysubject| myqueue | mysubject.queue | 6439cd36-2 - Received
2024-01-04 21:05:48,357 INFO     - mysubject| myqueue | mysubject.queue | 13e6cb4c-4 - Received  # late
2024-01-04 21:05:48,378 INFO     - mysubject| myqueue | mysubject.queue | e027f20f-e - Received  # late
2024-01-04 21:05:48,380 INFO     - mysubject| myqueue | mysubject.queue | 7bbb0898-8 - Received  # late

Some messages are processed twice:
[#25] Received on "mysubject.start"
content-type: text/plain
correlation_id: 41c214e1-9a25-439d-8bf4-a06d7f3e20b8

mysubject.queue received task_id=5 at 2024-01-04 20:05:48.365336

...

[#41] Received on "mysubject.start"
content-type: text/plain
correlation_id: e37cd05a-5827-43c8-9199-3f0807ede7a1

mysubject.queue received task_id=5 at 2024-01-04 20:05:48.461788

When I set the number of workers in the @broker.subscriber(max_workers=15), the bug disappears. However, I cannot use that for my app unfortunately, since I need real parallelism for processing the tasks, and not concurrent processing.
Environment
Running FastStream 0.3.11 with CPython 3.11.5 on Darwin
Thanks for the help!

@Jonas1312 can you show me your handler and broker code?

@Jonas1312 can you show me your handler and broker code?

it's in the zip file attached to the post above
https://github.com/airtai/faststream/files/13835151/faststream.nats.bug.zip

Sorry, didn't see it
I'll check

@Jonas1312 according to NATS docs you should use durable PullSubscriber to reach exactly-once delivery. I tested the following code and it works fine as you wish.
import asyncio
import logging
import time
from datetime import datetime

from faststream import FastStream, Logger
from faststream.nats import ConsumerConfig, NatsBroker, NatsMessage, PullSub
from faststream.nats.annotations import NatsBroker as Broker

MSG_PROCESSING_TIME = 10

broker = NatsBroker(ping_interval=5, graceful_timeout=MSG_PROCESSING_TIME + 1, log_level=logging.DEBUG)
app = FastStream(broker=broker)

@broker.subscriber(
    subject="mysubject.queue",
    stream=JStream(
        name="mysubject", subjects=["mysubject", "mysubject.>"], declare=False
    ),
    durable="mydurable",
    pull_sub=PullSub(),
    config=ConsumerConfig(ack_wait=MSG_PROCESSING_TIME, max_ack_pending=-1),
)
async def process_msg(
    task_id: int,
    msg: NatsMessage,
    br: Broker,
    logger: Logger,
) -> None:
    logger.info(task_id)
    await msg.in_progress()

    await br.publish(
        subject="mysubject.start",
        message=f"mysubject.queue received {task_id=} at {datetime.utcnow()}",
    )

    start = time.time()
    while time.time() - start < MSG_PROCESSING_TIME:
        await asyncio.sleep(1)
        await msg.in_progress()

    await br.publish(
        subject="mysubject.end",
        message=f"mysubject.queue processed {task_id=} at {datetime.utcnow()}",
    )

Thanks for your answer @Lancetnik
I tried your code, but it still doesn't work for me unfortunately
There are 15 workers, 14 messages to process, so they should all be processed as soon as they arrive in the queue. In the logs below, the 8 first messages are processed immediately (at 11 minutes and 43 seconds), while the next ones are processed 30s later (12 minutes and 13 seconds):
2024-01-05 08:11:26,707 INFO     - Started child process [5187]
2024-01-05 08:11:26,713 INFO     - Started child process [5188]
2024-01-05 08:11:26,719 INFO     - Started child process [5189]
2024-01-05 08:11:26,728 INFO     - Started child process [5190]
2024-01-05 08:11:28,990 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:28,990 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:28,991 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,000 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,022 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,023 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,038 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,046 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,056 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,070 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,073 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,085 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,090 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,098 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:29,101 INFO     - mysubject| mysubject.queue |            - `ProcessMsg` waiting for messages
2024-01-05 08:11:43,498 INFO     - mysubject| mysubject.queue | 95fa82a0-e - Received
2024-01-05 08:11:43,500 INFO     - mysubject| mysubject.queue | 38e12540-d - Received
2024-01-05 08:11:43,501 INFO     - mysubject| mysubject.queue | a56f8fc2-d - Received
2024-01-05 08:11:43,503 INFO     - mysubject| mysubject.queue | 926fea7f-e - Received
2024-01-05 08:11:43,512 INFO     - mysubject| mysubject.queue | b5d6f01c-5 - Received
2024-01-05 08:11:43,514 INFO     - mysubject| mysubject.queue | 9817aae1-9 - Received
2024-01-05 08:11:43,517 INFO     - mysubject| mysubject.queue | b6b98171-f - Received
2024-01-05 08:11:43,520 INFO     - mysubject| mysubject.queue | 2342eb53-1 - Received
2024-01-05 08:12:13,512 INFO     - mysubject| mysubject.queue | 1c0399fb-5 - Received  # late
2024-01-05 08:12:13,513 INFO     - mysubject| mysubject.queue | 193d38fe-a - Received
2024-01-05 08:12:13,515 INFO     - mysubject| mysubject.queue | 7d410104-5 - Received
2024-01-05 08:12:13,528 INFO     - mysubject| mysubject.queue | 9ee6a36c-5 - Received
2024-01-05 08:12:13,598 INFO     - mysubject| mysubject.queue | b5d6f01c-5 - Processed
2024-01-05 08:12:13,598 INFO     - mysubject| mysubject.queue | 38e12540-d - Processed

And when I do nats --server localhost:4222 subscribe "mysubject.*", I see 54 messages, when there should be 3*14 messages, which means that some messages are processed several times.
Code to reproduce (with the pull sub mode):
import asyncio
import time
from datetime import datetime

from faststream import FastStream
from faststream.nats import ConsumerConfig, JStream, NatsBroker, NatsMessage, PullSub

NATS_URL = "nats://localhost:4222"
MSG_PROCESSING_TIME = 30
broker = NatsBroker(
    servers=NATS_URL,
    ping_interval=3,
    # wait for consumed messages processed correctly before apllication shutdown
    graceful_timeout=MSG_PROCESSING_TIME + 1,
)
app = FastStream(broker=broker)

@broker.subscriber(
    subject="mysubject.queue",
    stream=JStream(name="mysubject", subjects=["mysubject", "mysubject.>"], declare=False),
    durable="myowndurable",
    pull_sub=PullSub(batch_size=1, timeout=3),
    config=ConsumerConfig(ack_wait=MSG_PROCESSING_TIME, max_ack_pending=-1),
    # max_workers=15,
)
async def process_msg(task_id: int, msg: NatsMessage) -> None:
    await msg.in_progress()

    broker = NatsBroker(NATS_URL)

    async with broker as br:
        await br.publish(
            subject="mysubject.start",
            message=f"mysubject.queue received {task_id=} at {datetime.utcnow()}",
        )

    start = time.time()
    while time.time() - start < MSG_PROCESSING_TIME:
        await asyncio.sleep(1)
        await msg.in_progress()

    async with broker as br:
        await br.publish(
            subject="mysubject.end",
            message=f"mysubject.queue processed {task_id=} at {datetime.utcnow()}",
        )

@Jonas1312 seems like you can't use max_pending=-1 and setup it explicitly https://docs.nats.io/nats-concepts/jetstream/consumers#maxackpending
The same with MaxWaiting https://docs.nats.io/nats-concepts/jetstream/consumers#pull-specific
Also I added manual ack_sync for Exatly Once semantic
In the following setup all messages are processing at once (msg.raw_message.metadata.num_delivered) and in the same time by different workers
import asyncio
import logging
import os
import time

from faststream import FastStream, Logger
from faststream.nats import ConsumerConfig, JStream, NatsBroker, NatsMessage, PullSub

MSG_PROCESSING_TIME = 30

broker = NatsBroker(
    ping_interval=5,
    graceful_timeout=MSG_PROCESSING_TIME * 1.2,
    log_level=logging.DEBUG,
)
app = FastStream(broker=broker)

@broker.subscriber(
    subject="mysubject.queue",
    stream=JStream(name="mysubject", subjects=["mysubject", "mysubject.>"], declare=False),
    durable="myowndurable",
    pull_sub=PullSub(batch_size=1, timeout=100.0),  # long-polling timeout
    config=ConsumerConfig(
        ack_wait=MSG_PROCESSING_TIME * 1.2,  # wait a little bit more than processing
        max_ack_pending=1000,  # explicit limit
        max_waiting=1000,  # explicit limit
    ),
)
async def process_msg(
    task_id,
    msg: NatsMessage,
    logger: Logger,
) -> None:
    logger.info(
        f"{os.getpid()} {msg.raw_message.metadata.num_delivered} {msg.raw_message.metadata.sequence.consumer} {task_id}"
    )
    await msg.in_progress()

    start = time.time()
    while time.time() - start < MSG_PROCESSING_TIME:
        await asyncio.sleep(1)
        await msg.in_progress()

    await msg.raw_message.ack_sync()   # ack sync for exactly-once semantic

@Jonas1312 @Lancetnik sorry to dig into closed issue. I just wanted to ask - why messages was processed more than once? Is that because it was distributed among workers multiple times or because re-delivery. From my understanding we should design our processing flow in away so duplicate processing will not hurt our data (for instance we can assign some identifications to items of work and refuse to process if item is no longer in KV)

It was a double-delivery from the NATS side. We can scale our consumers by queue-group for PushSubscriber or durable for PullSubscriber (reccomended by NATS team way), but we tried to set correct options to make this decision working. NATS sends messages in a strange way until we sets max_ack_pending limit explicitly.
But, by default PullSub + durable works with exactly-once correctly.

@Lancetnik thanks for explanation. That takes some magic off the topic! Though, they (NATS) could explain it a little bit better in docs (while they docs are great!)
Here is the link for others that will eventually arrive to this issue. It demonstrates this and other issues with limits:
https://natsbyexample.com/examples/jetstream/pull-consumer-limits/go

@Lancetnik Actually I wanted to dig into this issue a little more to understand underlying logic better. I've tested your code from https://github.com/airtai/faststream/issues/1114#issuecomment-1877859307 and it works just fine
Just for future readers - NATS probably fixed this in the current version: 2.10.12
I see 42 messages as expected (no redelivery):
[#42] Received on "mysubject.end"
content-type: text/plain
correlation_id: ce8eb4a2-f561-47b2-89bc-988890c96a82

mysubject.queue processed task_id=13 at 2024-04-04 01:31:38.521003

and all of them were processed at the same time:
jetstream ❯ faststream run bug:app --workers=15
2024-04-04 03:31:21,756 INFO     - Started parent process [16613]
2024-04-04 03:31:21,760 INFO     - Started child process [16615]
2024-04-04 03:31:21,762 INFO     - Started child process [16616]
2024-04-04 03:31:21,763 INFO     - Started child process [16617]
2024-04-04 03:31:21,765 INFO     - Started child process [16618]
2024-04-04 03:31:21,767 INFO     - Started child process [16619]
2024-04-04 03:31:21,768 INFO     - Started child process [16620]
2024-04-04 03:31:21,771 INFO     - Started child process [16621]
2024-04-04 03:31:21,773 INFO     - Started child process [16622]
2024-04-04 03:31:21,777 INFO     - Started child process [16623]
2024-04-04 03:31:21,779 INFO     - Started child process [16624]
2024-04-04 03:31:21,785 INFO     - Started child process [16625]
2024-04-04 03:31:21,789 INFO     - Started child process [16626]
2024-04-04 03:31:21,798 INFO     - Started child process [16627]
2024-04-04 03:31:21,806 INFO     - Started child process [16628]
2024-04-04 03:31:21,812 INFO     - Started child process [16629]
2024-04-04 03:31:28,504 INFO     - mysubject | mysubject.queue | e556d3d3-9 - 1
2024-04-04 03:31:28,505 INFO     - mysubject | mysubject.queue | 732a0949-b - 2
2024-04-04 03:31:28,506 INFO     - mysubject | mysubject.queue | a4bff34b-2 - 3
2024-04-04 03:31:28,507 INFO     - mysubject | mysubject.queue | b9d854d2-c - 4
2024-04-04 03:31:28,508 INFO     - mysubject | mysubject.queue | ff70a3f6-c - 5
2024-04-04 03:31:28,509 INFO     - mysubject | mysubject.queue | ff4523c6-5 - 6
2024-04-04 03:31:28,509 INFO     - mysubject | mysubject.queue | ec8d2217-5 - 7
2024-04-04 03:31:28,509 INFO     - mysubject | mysubject.queue | 2c0cec31-e - 8
2024-04-04 03:31:28,510 INFO     - mysubject | mysubject.queue | c3d4c250-4 - 9
2024-04-04 03:31:28,511 INFO     - mysubject | mysubject.queue | 0bb2ca30-1 - 11
2024-04-04 03:31:28,511 INFO     - mysubject | mysubject.queue | 01222ffa-f - 10
2024-04-04 03:31:28,511 INFO     - mysubject | mysubject.queue | 9e3e63fb-4 - 12
2024-04-04 03:31:28,511 INFO     - mysubject | mysubject.queue | 223765aa-d - 13
2024-04-04 03:31:28,512 INFO     - mysubject | mysubject.queue | 731e0f27-9 - 14

and this happens with default setup:
@broker.subscriber(
    subject="mysubject.queue",
    stream=JStream(
        name="mysubject", subjects=["mysubject", "mysubject.>"], declare=False
    ),
    durable="mydurable",
    pull_sub=PullSub(),
    config=ConsumerConfig(ack_wait=MSG_PROCESSING_TIME),
)

So yeah. Just a note for future readers.


Restructure test and refactor options/obligations to satoshi conversion

Restructure tests into separate folders for contracts and lib
Add tests for satoshi/option conversion
Slight refactor of conversion

NPM is down so install is failing, I'll merge this anyway and test locally.


feat: support konghq.com/rewrite annotation in Ingress.

What this PR does / why we need it:

This PR support konghq.com/rewrite annotation.
Which issue this PR fixes:

Fixes https://github.com/Kong/kubernetes-ingress-controller/issues/4308
Special notes for your reviewer:

Since a new featuregate has been added, the conf of integration test workflow has been updated.
In this implementation, konghq.com/rewrite annotation is only effective for IngressV1 so far, should we also support the KNative?

PR Readiness Checklist:
Complete these before marking the PR as ready to review:

[x] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@randmonkey LGTM :shipit:

LGTM in general, only some final additions on tests.


[USM] Fix postgres telemetry documentation

What does this PR do?
Updates the documentation of the createQueryLengthBuckets to include the latest changes.

Motivation
Include correct documentation.

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Issue #808: improve Numba import time

Issue #808.
Before:
$ time python -c "import numba"
real	0m0.657s
user	0m0.625s
sys	0m0.031s
After:
$ time python -c "import numba"
real	0m0.368s
user	0m0.317s
sys	0m0.054s

Interesting.  Are these CFFI types unused unless we are using a CFFI-wrapped function?

They're only used for cffi support, so, yes (or perhaps your question was asking something more specific?).

Nope, I was just trying to get a sense for how often we need these types loaded.  (Answer sounds like "Very, very rarely.")


[Good First Issue List] Issues for first-time contributors

Name server (Good First Issue List)

#44
#55
#56
#1553

rocketmq-remoting (Good First Issue List)

#1290
#1376
#1377
#1378
#1379
#1380
#1381
#1382
#1383
#1384
#1385
#1507
#1508
#1509
#1510
#1511
#1512
#1513
#1514
#1515
#1516

rocketmq-client (Good First Issue List)

#1422
#1674
#1675
#1676
#1677

rocketmq-common(Good First Issue List)

#1529
#1637
#1638
#1639
#1640

Rocketmq Broker (Good First Issue List)

#1679
#1680

rocketmq-common(Good First Issue List)

#1529
#1637
#1638
#1639
#1640
#1684

rocketmq-store(Good First Issue List)

#1689

Name server (Good First Issue List)

#44
#55
#56
#1553


Merge feature requests to update topics in (README)

git commit -m" Commit by improving repository topics-list in: (README).git"

git add -m" commit by adding script arrangement in the current repository content.git"


Could not retrieve a transcript for the video

I am using [YouTube Captions] API for getting caption but this API not working as expected.
API:-  https://youtube-captions1.p.rapidapi.com/graphql
Could not retrieve a transcript for the video :-  https://www.youtube.com/watch?v=ExcRbA7fy_A!
I am getting this error :-
{"data":{"video":{"captions":null}},"errors":[{"locations":[{"column":5,"line":3}],"message":"\nCould not retrieve a transcript for the video https://www.youtube.com/watch?v=ExcRbA7fy_A! This is most likely caused by:\n\nSubtitles are disabled for this video\n\nIf you are sure that the described cause is not responsible for this error and that a transcript should be retrievable, please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues. Please add which version of youtube_transcript_api you are using and provide the information needed to replicate the error. Also make sure that there are no open issues which already describe your problem!","path":["video","captions"]}]}
Please check let me know what the issue.
Thanks

Hi @nitesh-modi, this project has no association with the the API you are using. You'll have to get in contact with the maintainer of the API for them to take care of your issue. From what I can tell it looks like their IP address is being blocked.

But the API response says: 'Please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues.'

Because this API apparently is implemented using this module and the maintainer just forwarded this error message to the user. The underlying issue is already being discussed in #303. But there is nothing that you or I can do to fix this, the maintainer of that API has to take care of it.


patch zip-file download error

I used pygerrit2 for gerrit download zip-file. My gerrit version was 2.14.7, and pygerrit version was 2.0.2.
I write my test code like the example:
auth = HTTPBasicAuth('_username_', '_password_')
rest = GerritRestAPI(url='http://_ip_:_port_', auth=auth)
response = rest.get("/changes/_changeid_/revisions/current/patch?zip"
But it always raise the exception:
response = rest.get("/changes/%s/revisions/current/patch?zip"%(str(change_id)))
File "/usr/local/lib/python2.7/dist-packages/pygerrit2/rest/init.py", line 145, in get
return _decode_response(response)
File "/usr/local/lib/python2.7/dist-packages/pygerrit2/rest/init.py", line 44, in _decode_response
content = response.content.strip().decode("UTF-8")
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe7 in position 10: invalid continuation byte
Please show me tips

Unable to reproduce this, I can retrieve patch zip files without issue.
I believe this was fixed in 5fb143c which was part of 2.0.3. The offending call to  .decode("UTF-8") was removed in that commit.


172 generic types ops

All operations now use new types, tests updated accordingly
harmonization routine handles Julian day time.
The UC09 notebook now uses make_local. I'm mostly interested in you all checking out the notebook to see how we have to use the new ds approach.

Codecov Report

Merging #190 into master will increase coverage by <.01%.
The diff coverage is 89.28%.

@@            Coverage Diff             @@
##           master     #190      +/-   ##
==========================================
+ Coverage   74.66%   74.67%   +<.01%
==========================================
  Files          67       67
  Lines        8681     8704      +23
==========================================
+ Hits         6482     6500      +18
- Misses       2199     2204       +5

Impacted Files
Coverage Δ

cate/ops/coregistration.py
100% <ø> (ø)
:arrow_up:

cate/ops/harmonize.py
100% <100%> (ø)
:arrow_up:

cate/ops/timeseries.py
100% <100%> (ø)
:arrow_up:

cate/ops/correlation.py
92.59% <100%> (+0.28%)
:arrow_up:

cate/ops/plot.py
24.61% <40%> (-2.93%)
:arrow_down:

cate/webapi/websocket.py
31.44% <0%> (-0.58%)
:arrow_down:

cate/cli/main.py
68.1% <0%> (-0.22%)
:arrow_down:

cate/util/opmetainf.py
95.27% <0%> (+0.39%)
:arrow_up:

Continue to review full report at Codecov.

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

Closes #172 #163 #158

How can I see what flake8 complains about?

Exactly! Marco, how do we know what's wrong?

use the Details link which leads to the travis logs.
scroll down to the end
exapand the line flake8 --exit-zero|tee flake8_report.txt

./test/ops/test_harmonize.py:70:26: E226 missing whitespace around arithmetic operator
./test/ops/test_plot.py:39:29: E251 unexpected spaces around keyword / parameter equals
./test/ops/test_plot.py:39:31: E251 unexpected spaces around keyword / parameter equals
Or run flake8 locally or look at pycharm warnings.

Cool, thanks!

Can this be merged? It mainly contains only some changes to operations so that they use the new types, as well as updates to the corresponding tests.

This looks good. The make_local section could be written simpler.
Instead of:
oz_remote_sources[0].make_local(local_name='ozone.mon',
                            time_range='2007-01-01, 2008-05-01',
                            monitor=monitor)
oz_local_ds = local_store.query('local.ozone.mon')[0]
oz = oz_local_ds.open_dataset()

You could write:
oz_local_ds = oz_remote_sources[0].make_local(local_name='ozone.mon',
                            time_range='2007-01-01, 2008-05-01',
                            monitor=monitor)
oz = oz_local_ds.open_dataset()

@mzuehlke The reason I did it that way was because make_local raises an error if a name already exists. This way the notebook can be run multiple times until the ds interface is changed somehow.

Thanks!

@JanisGailis valid reason.


Add icon and unicode_emoji parameters to diskord.Guild.create_role method.

Summary
For some reason those two parameters weren't in this method like in others so I added it.
I couldn't test it since it requires level 2 boost ._.
Checklist

[ ] If code changes were made then they have been tested.

[x] I have updated the documentation to reflect the changes.

[ ] This PR fixes an issue.
[x] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

Thanks


Add a CODE_OF_CONDUCT.md

AIM
Create a Code of Conduct which all Project Administrators, Mentors and Participants must abide by.
Details

Mention the Standards which everyone should abide by on welcoming and inclusive language including constructive criticism.
Add the required responsibilities for Project Maintainers.
Mention the Scope of this Code of Conduct.

I would like to work on this issue

@Neel2904 You are already assigned you one issue. I cannot assign you this until you submit a PR for the previous Issue

I would like to work on this issue.

Can I work on this issue?

I have assigned you the issue @mohit1448

I am closing this issue since code changes are merged


Add an ioctl example

This matches libfuse's example:
https://github.com/libfuse/libfuse/blob/d30247c36dadd386b994cd47ad84351ae68cc94c/example/ioctl.c
Unfortunately, it doesn't work at present. After mounting at /tmp/foobar, you can test it by compiling libfuse's ioctl client:
git clone https://github.com/libfuse/libfuse
cd libfuse/example
gcc -Wall ioctl_client.c `pkg-config fuse3 --cflags --libs` -o ioctl_client
./ioctl_client /tmp/foobar/fioc

This example returns ENOTTY without ever hitting the ioctl handler:
openat(AT_FDCWD, "/tmp/foobar/fioc", O_RDWR) = 3
ioctl(3, _IOC(_IOC_READ, 0x45, 0, 0x8), 0x7fffaf4404b0) = -1 ENOTTY (Inappropriate ioctl for device)

Whereas the libfuse example works:
ioctl(3, _IOC(_IOC_READ, 0x45, 0, 0x8), 0x7ffdb6c5b970) = 0

I'm happy to do the work for a fix, but I haven't been able to figure out where the bug is yet :)

Ok, figured it out. I needed --features abi-7-11 and to generate the ioctl codes correctly.


Weird behavior with the mask

Reproduction
https://formkit.link/033713494457849aac57cb4ba02d9ae1
Describe the bug
Just add few number values, then delete these values.
The cursor jumps around when adding and deleting
Environment
• OS: [all]
• Browser [ chrome ]

Yep, looks like something we can take a look at — crux of the issue here is the suffix being used with a repeatable group — something we need to sort out.


feat (typings) Added Typing support

feat (FormlyConfig) Implementation of FormlyConfig

@mohammedzamakhan awesome :smile:


Unit tests pass when ran locally or on a cloud server but not from within GitHub action

Description
I maintain a Rust library, https://github.com/sdd/kiddo.
The library has an opt-in feature, simd, disabled by default. Enabling this feature turns on conditional compilation for some code paths that use SIMD intrinsics.
Running the test suite without the simd feature enabled works fine on GitHub Actions (see example here: https://github.com/sdd/kiddo/actions/runs/6626247812/job/17998782025)
Running the test suite with the simd feature enabled works fine on my local Linux desktop (a Ryzen 5900x), as well as on an EC2 linux host that runs on an Intel Xeon that has AVX2, but fails on the GitHub Actions runner. (see https://github.com/sdd/kiddo/actions/runs/6626251084/job/17998791562?pr=97)
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[X] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[ ] macOS 13
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
20231016.1.0
https://github.com/sdd/kiddo/actions/runs/6626251084/job/17998791562?pr=97
Is it regression?
No
Expected behavior
Test suite passes
Actual behavior
Test suite fails on immutable::float::query::nearest_one::tests::can_query_nearest_one_item and immutable::float::query::nearest_one::tests::can_query_nearest_one_item_large_scale
Repro steps
Running the tests:
git clone git@github.com:sdd/kiddo.git
cd kiddo
export RUSTFLAGS='-C target-feature=+avx2'
cargo test --workspace --all-features --release -- --show-output

All tests pass everywhere I've tried to run them, except GitHub actions, where two of the tests fail when the simd feature is enabled, enabling compilation of the codepath that runs SIMD intrinsics on x86/x86_64 architectures with the AVX2 CPU feature present

as I can see, according to cat /proc/cpuinfo there's avx2 support
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 79
model name	: Intel(R) Xeon(R) CPU E[5](https://github.com/ilia-shipitsin/avx2/actions/runs/6628213838/job/18004801821#step:3:6)-2[6](https://github.com/ilia-shipitsin/avx2/actions/runs/6628213838/job/18004801821#step:3:7)[7](https://github.com/ilia-shipitsin/avx2/actions/runs/6628213838/job/18004801821#step:3:8)3 v4 @ 2.30GHz
stepping	: 1
microcode	: 0xffffffff
cpu MHz		: 2294.6[8](https://github.com/ilia-shipitsin/avx2/actions/runs/6628213838/job/18004801821#step:3:9)6
cache size	: 51200 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 20
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt md_clear
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit mmio_stale_data
bogomips	: 458[9](https://github.com/ilia-shipitsin/avx2/actions/runs/6628213838/job/18004801821#step:3:10).37
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:

can we run some simple AVX2 related test to see that cpu is working as expected ? currently it looks like "something on rust side"

My mistake. I was setting the RUSTFLAGS env var on the wrong pipeline step. I have things working on GH actions perfectly well now. Thanks for your time!


Allow copy on a previously image drive

There should be a way to take a previously imaged drive and copy it to another drive

Duplicate of #266 ?

take a previously imaged drive

That's basically an ISO or IMG, as any other image Etcher supports.


feat(frontend): chain-fusion receive with copy new design block

Motivation
In the recent / new design the new "copy qrcode block" is used on the main "Receive" modal.
Notes
Reviewed by Artem. We know that it could look better on mobile.
Changes

Align ReceiveAddresses to new design
Remove unused component given that the addresses are now displayed as any other addresses
Make address optional in ReceiveAddress and replicate skeleton logic that existed in the removed component ReceiveAddressWithLogo
Subtext removed under "ICP for exchanges" as requested by design

Screenshots
Before:

After:

what if the addresses are ellipsed on mobile only?

I thought about it too! Maybe something we can come with agree.


fix!: remove configcat 7 peer dependency

This PR

Removes ConfigCat 7.0.0 from valid peer dependency versions of config cat provider, as the flags changes information is not present in 7.0.0.
Related Issues

Notes

Follow-up Tasks

How to test

Please update the readme to reflect this change.
https://github.com/open-feature/js-sdk-contrib/tree/main/libs/providers/config-cat

Done, thanks @beeme1mr!


Multiple instances of flubber.js

Hello. Firstly, thanks very much for the work you've done to create flubber.js. It works fantastically and is a huge help.
I'm wondering how to run multiple instances of flubber.js on one DOM. I apologize beforehand if this is very obvious, but I've attempted a few things and struggled a bit and haven't been able to identify a way to allow this to happen. It appears the code identifies anything that is a path and removes each one except the first one. I tried to assign the different paths a class and use the d3 selector (i.e. d3.selectAll("path").filter(".nameOfClass"); with no luck. If you could provide any advice or suggestions it would be greatly appreciated. Thanks for your time.

Hi there - I'm not sure exactly what you mean by "multiple instances," if you mean transforming multiple paths independently of each other, you can certainly do that.
To clarify, Flubber itself has no knowledge of <path> elements and doesn't manipulate them, it only provides string values that you can apply to paths as needed.
For example, if you had a page with two path elements on it:
<path id="horse" />
<path id="zebra" />

and you wanted to turn one from a triangle into a horse, and the other from a triangle into a zebra, you could do something like:
// Your start/end path strings
var triangle = "M....Z",
    horse = "M...Z",
    zebra = "M....Z";

var triangleToHorse = flubber.interpolate(triangle, horse),
    triangleToZebra = flubber.interpolate(triangle, zebra);

d3.select("#horse")
  .transition()
  .attrTween("d", function() { return triangleToHorse; });

d3.select("#zebra")
  .transition()
  .attrTween("d", function() { return triangleToZebra; });

Or, slightly more concise:
var triangle = "M....Z",
      horse = "M...Z",
      zebra = "M....Z";

d3.selectAll("#horse, #zebra")
  .data([horse, zebra])
  .transition()
  .attrTween("d", function(animal) {
    return flubber.interpolate(triangle, animal);
  });

If this doesn't clear it up and you can post your full non-working code, I'll try to take a look.


Graphcool

Thanks for this great project! Would love to have the Graphcool logo in here as well.
Here is the source: http://graphcool-random.s3.amazonaws.com/images/logo-green.svg

Ping @gilbarbara :)

Added 02e637e09b55966e802dfe0bc93595594e0214bb
Thanks