username cannot begin with any character other than letters: UPDATED

Fixed the behavior of validate_user function in validations.py
Closes #1
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!


Bug in ms5611 driver framework

I tested the ms5611 on snapdragon board with official PX4 firmware.
The attached is the log from the df_ms5611_wrapper.cpp

As you can see there are many error values in the log.
I think there must be some bug in the driver.
Hope someone could solve it.
Thanks.

Did you try latest master (from today)? We fixed an issue recently thanks to @dxwang.

It was a timing fix. Please retry and see if its still the same.

Hello @LorenzMeier
I tried the latest DriverFramework submodule.
The same problem can be observed as well.
Actually, there is no update related to ms5611 driver from the commit I used to the latest commit.
Any ideas?
Thank you very much.

There was a fix and we validated it to be good. Can you share the commit you tested?

Hello @LorenzMeier
I checked and tested it again.
The commit of driver framework I used is 0b9afafa2e05ae3899c6d38231196ace265003b2
The bug still existed.
Hope that someone could take a more thorough test.
Thank you very much.

@langxm1223 any update? Have you tried this recently?

@dagar Sorry for the delay.
Still the same here.
Furthermore, I also observed some nan value of the pressure variable from the sensor driver.
No clue yet, probably bug in memory copy.
Thanks.

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)


Allow to add trackable from the trackable id input keyboard

As suggested in the https://github.com/ably/ably-asset-tracking-android/issues/209 I replaced the "Enter" key with a "done" key. If a user presses that "done" key then it acts just as if he has clicked on the "Add trackable" button.

@KacperKluka can you please add the same? Feel free to do it in separate PR if thats easier.

@kavalerov I've created https://github.com/ably/ably-asset-tracking-android/issues/288 for the subscriber example app :wink:


soundness improvements around hypervisor-shared memory

This PR improves the soundness of code around hypervisor-shared memory.
The first patch, 174274d0e8ffb7757b74a42eef1082b05b8ea0a9, is blocked on https://github.com/google/zerocopy/pull/1601. Let me know if you want me to drop that patch if we don't want to wait on a new zerocopy release. I used the following patch to override zerocopy for testing:
diff --git a/Cargo.toml b/Cargo.toml
index b7bdb46..d87444d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,6 +49,9 @@ zerocopy = { version = "0.7.32", features = ["alloc", "derive"] }
 # other repos
 packit = { git = "https://github.com/coconut-svsm/packit", version = "0.1.1" }

+[patch.crates-io]
+zerocopy = { git = "https://github.com/Freax13/zerocopy.git", rev = "68e1cc8" }
+
 [workspace.lints.rust]
 future_incompatible = { level = "deny", priority = 127 }
 nonstandard_style = { level = "deny", priority = 126 }

Please move that patch to a separate draft-PR, which you can then "undraft" once all blockers are solved.

Done.

Just rebased onto main. I resolved the TODOs by switching to the functions in crate::cpu::mem.


branch: a11y-dag

Identified by print-branches.sh. @jonathanolson @jessegreenberg please describe.

This branch is now stale, it has been pruned.

But for documentation, it was used to explore having the a11y implementation support DAG, which it now does.

Should be re-deleted as part of phetsims/special-ops#198

Deleted, closing.


Data Sampling - number of entities to process calculation can lead to no entities being processes

Data Sampling - number of entities to process calculation can lead to no entities being processes
Description:

Under some circumstances the number of entities to be processes can be defined to 0 which means the backend does not process sampling of entities for a given period

Root cause:

Improvements required in the macro trackme_data_sampling_algo_entities_to_process

In version 1.2.25


Adding validate_collection()

This PR adds a method for validating "to-many" resource relationship data. Since the current validate method is wrapped by the @contextmanager decorator, we cannot return an iterable, and would rather not return a list of resources. Therefore a new generator method is introduced: validate_collection. Both methods call validate_resource (new method factored out from validate).
Use of validate_resource:
        tags = [resource.obj.name for resource in self.validate_collection(self.resource_class)]
        self.account.tags.add(*tags)

failing build is from Response.serialize, which was not touched in the PR


307 Temporary Redirect

Hello! I hadnt been able to make my Graylog and TheHive work. My config:
[launch_config]
ip = <IP_ADDRESS>
port = 8000
[stream_resolver]
Status can be: disabled or enabled
Auth can be: token or password
status = enabled
graylog_url = https://***..
auth_type = token
token = ***********
login =
password =
[irp_platform]
Platform can be: TheHive4;
platform = TheHive4
[thehive4]
Auth can be: api_key or password
url = http://...:9002
auth_type = api_key
api_key = **********
login =
password =
[telegram]
Status can be: disabled / enabled
status = disabled
chat_id =
token =
[logger]
name = AlertGateway
file_name = event.log
[sentry]
Sentry is application monitoring and error tracking software
Status can be: disabled / enabled
status = disabled
dsn_url =
traces_sample_rate = 1.0
All i got in the log files is "POST /input HTTP/1.1" 307 Temporary Redirect" and no alerts made. Can you give me a hint to where to dig?

Hello,
Please check URL block in your Graylog Notification Channel. Do you have a / at the end of the path?
For example: http://example/input/
If this is a reason, i fix it in readme.

Thank you for quick answer. Adding the / helped and on the graylog side there is no error while sending test notif anymore. But alerts still not appearing on the hive. Does field "URL" for the hive configuration supports custom port? Or only by http/https (40:443)?

Does field "URL" for the hive configuration supports custom port?

Yes, you can use custom port.
Can you provide any errors from Thehive4?

i guess there is a problem with parsing my alerts?

i guess there is a problem with parsing my alerts?

Looks like.
But it's interesting because I did not catch such errors. Can you send me an example? You can send it via email (malinkinsa@gmail.com). I will try to reproduce and correct this behavior whenever possible.

Error example:
[info] o.e.ErrorHandler - POST /api/alert returned 400
org.elastic4play.AttributeCheckingError: [Invalid format for artifacts: JsonInputValue({"dataType":"other","data":"value1"}), expected artifact][Invalid format for artifacts: JsonInputValue({"dataType":"other","data":"value2"}), expected artifact]
	at models.AlertModel.creationHook(Alert.scala:104)
	at org.elastic4play.services.CreateSrv.processAttributes(CreateSrv.scala:54)
	at org.elastic4play.services.CreateSrv.$anonfun$create$1(CreateSrv.scala:114)
	at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
	at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:56)
	at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:93)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)

It happens even when sending test notification from Graylog.
Graylog Version - Graylog 4.3.7

What version of TheHive4?
I checked on the clean graylog 4.3.7/5.0.0 and Latest TheHive4 - and can't reproduce this error.

thehive version

docker version

Sorry for my mistake - your supported version is 4+


Fixed #6106 -- makemessages overrides the *.po files even if they are already up to date

ticket-6106
Added --update option to msgmerge_options so that *.po files are not re-created if they
are not required to be. Also added --backup=none inorder to remove unwanted backup files

No worries. I'm happy to work on this!

Would it be an idea to _run_makemessages() only once, and compare it to the contents original PO file instead (as referred to in self.PO_FILE, see here)?

So I followed the approach you suggestd about running _run_makemessages once. However, initially the self.PO_FILE  does not exists as the RunInTmpDirMixin runs these tests in an new directory.

A test for a change should normally fail without the changes it's introducing, but your current test passes where it probably shouldn't.

If we consider all probable cases, this test can possibly fail without the changes but will surely not fail with them.

What about a test case for example like this?
https://github.com/awtimmering/django/commit/eb34607af365b6846c27604b40b21b4dbdbb50e4
This prepares a simple directory with one code file with a POT-Creation-Date of 2014-04-25, and then runs makemessages. If all is well the POT-Creation-Date should not be updated. To be sure I added another test that does add a new translatable string to ensure that in that case the PO file is updated with the new string, although this test is probably unneeded as I assume other tests would start failing if it didn't.

What about a test case for example like this?
awtimmering@eb34607

This looks fine. It cover ups this update in a much better way.

Feel free to copy/use them as you see fit to augment your PR.

Added tests from @awtimmering's suggestions!

I see that the test is failing on windows. On testing it out, it turns out the the __init__.py in i18n\unchanged\locale\de\LC_MESSAGES/django.po is changed to .\__init__.py and thus the POT-Creation-Date is also updated.
Now sure how we can fix this?
We could possibly have two django.po files and using os.name=='nt' we can select the appropriate one. Not sure if this is the best solution tbh

Very interesting. While that feels wrong, there already are quite some specifics in makemessage and in the tests related to dealing with these Window style paths, eg. makemessages.py line 128, and test_extraction.py line 64.
So for now I am inclined to say I agree.
An alternative way to look at it is: Going forward, Hybrid dev teams (Windows + non-Windows) users would potentially consider it a bug that their django.po file changes, whereas it doesn't for devs only using one of the two platforms.
I'm not familiar enough with the xgettext tool set, but makes me wonder
a) why the choice was made to specifically respect the .\foo.py windows paths generated by xgettext,
b) and based on that, whether we could/should convert these paths to unix style post processing (and if needed, re-convert to windows style pre-processing?)
Any thoughts?  We could also potentially summarize this on the PR and call in some help from others who might have ideas.

Additional context:

early PR dealing with some of the Windows specific behavior: https://code.djangoproject.com/ticket/21209#no1
related on --no-location: https://code.djangoproject.com/ticket/16903

Couldn't find any specific context actually discussing why the choices were made as they are.

@awtimmering I'm out of station for the weekend. I'd only be able to work on this next week. If you have time, do go ahead!

@abbasidaniyal: Apologies for letting this sit for a number of weeks. What about something like this?
https://github.com/awtimmering/django/commit/a0e081548925246d0efcd36d32621c1228537135

Thanks @pauloxnet !
@abbasidaniyal I'll update my suggestions in https://github.com/django/django/pull/14800#issuecomment-962596639 to reflect Paolo's feedback tonight.

@awtimmering Can you submit PR via GitHub with the new version of this patch containing the Windows fix?

@felixxm Absolutely, see https://github.com/django/django/pull/15073. Marked @abbasidaniyal as Co-author.

@awtimmering Thanks :+1:
Superseded by #15073.


Wrong eyes joint names for iCubGenova11

For some reason, the name of the eyes version and vergence for this robot are eyes_vers and eyes_verg
https://github.com/robotology/robots-configuration/blob/0891fbec0448283c5f62fe91f6b7c4e98b4cac8e/iCubGenova11/hardware/mechanicals/head-eb21-j2_5-mec.xml#L12
which are different from:

the documentation https://icub-tech-iit.github.io/documentation/icub_kinematics/icub-joints/icub-joints/#head-20
the simulation https://github.com/robotology/icub-models/blob/b2391b90432e13f053a2b516e2d423a94f3e84e1/iCub_manual/conf_manual/iCubGazeboV2_5_visuomanip/gazebo_icub_eyes.ini#L15
those of other robots, e.g., https://github.com/robotology/robots-configuration/blob/0891fbec0448283c5f62fe91f6b7c4e98b4cac8e/iCubGenova10/hardware/mechanicals/head-eb21-j2_5-mec.xml#L12

This is creating issues when trying to use the same software in simulation and on the real setup as joints names are different.
Can I open a PR to fix that?
cc @pattacini

Hi @xEnVrE,
It seems that the typo exists from the beginning (see https://github.com/robotology/robots-configuration/pull/399).

Can I open a PR to fix that?

Sure!
Would you be willing to fix the following robots as well?

iCubValparaiso01
iCubLisboa01
iCubShanghai01

This came out from a search: https://github.com/search?q=repo%3Arobotology%2Frobots-configuration+eyes_verg&type=code&p=1.
The PR should be against master as it's a fix.

Would you be willing to fix the following robots as well?

Done!

Thank you @xEnVrE!


Fedora doc changes to address #6348

eparis based on git blame

I'm going to close this, I know you don't like having to create node representations yourself, but restarting control loops to add (and not being able to remove) nodes stinks.  Otherwise this is fixed.

@eparis why not allow for --machines and the ability to add/remove via json/cli?

--machines is absolutely present in the code and still works (although we might remove it in the future).  But --machines does not bring anything and instead breaks the mental model of how resources work.
For external storage resources, like your nfs exports, we don't list them as command line arguments to daemons.  You add them as resources using kubectl. Or you have a cloud provider which adds them automatically.
Same for nodes, if you have a cloud provider, it is automatic. If not, you need to tell the system about them using the apiserver/kubectl.
While --machines is still there, I do not plan to suggest people use it. Instead I suggest they use the system consistently no matter if the resource is a pod, node, volume, or whatever.


Bump versions of build and test packages to support arm64 binaries

Confirmed working in release https://github.com/gruntwork-io/kubergrunt/releases/tag/v0.0.0-alpha.1

Thanks for review! Merging + releasing now.


New Theme: silhouette-hugo

Theme submission
Link to my theme repository: https://github.com/mattbutton/silhouette-hugo.git
I wasn't sure about the "I have committed the /resources directory with all generated assets," step. I'm using Hugo Pipes to minify the css, and have included the resources directory within exampleSite. Is this the correct place to put it?
I made sure that...

[x] the repository contains a good README.md describing my theme
[x] an open source license has been added to LICENSE.md
[x] all metadata have been added to theme.toml
[x] screenshots have been added in the images/ folder with the required dimensions
[x] in case I'm using a customized demo via the exampleSite folder that

[x] https://example.com is set as base url in exampleSite/config.{toml, yaml, json} to avoid the abuse of unused domains
[x] the site's content is as neutral as possible (contains no ads etc.) and reflects the features of my theme

[ ] I tested my theme against the gohugoio/HugoBasicExample

[ ] I've checked the developer tools' console in my browser for error messages

[x] in case my theme is using Hugo Pipes features like toCSS and PostCSS that I have committed the /resources directory with all generated assets, for my theme to work in the basic version of Hugo

Hello @mattbutton and thanks for the theme submission.
In your theme.toml please provide a description for your theme.

I wasn't sure about the "I have committed the /resources directory with all generated assets," step. I'm using Hugo Pipes to minify the css, and have included the resources directory within exampleSite. Is this the correct place to put it?

Please have a look in the following section of the repo's README: https://github.com/gohugoio/hugoThemes#resources
You need to move the generated resources directory under the root of your theme.
Please do the above and let me know so that I can test your theme further.

Hi @onedrawingperday, thanks for the feedback.
I've added a description to theme.toml and moved the resources directory to the root of the theme.
I've also added some favicons which were missing, and fixed some image paths.

@mattbutton Everything is looking good on my end when I test your theme's demo.
@digitalcraftsman This theme is ready to be added to the showcase.

Thanks @onedrawingperday and @digitalcraftsman

Hey Matt,
thanks for sharing your nice theme. I've added your theme a moment ago and it should appear soon on the Hugo theme site. Next, I'll promote your theme on Hugo's official Twitter account.


Add Example Terraform file

@JohannesRudolph @felixzieger, Could you guys check this terraform demo template. I do not have any access, so i improvised to build one 👍  If you guys need any help also let me know.
meshLove ❤

Hello @felixzieger 👋
I have created a small list of examples to create this API beforehand to understand how it works. Probably you can access the list on the following page as well.
https://github.com/stars/DorukAkinci/lists/terraform-providers

Meanwhile i have no write access on this Repo, so you should merge it 😄  I have added one more commit to fix tagging.

hey @DorukAkinci thanks for adding the example and the additional tips, will merge this now.
We have great plans for this provider going forward together with our new https://github.com/meshcloud/landing-zone-construction-kit, it will be awesome! Thank you so much for kicking this off.


Manual update failure from 2.0.1 to 2.1.0

I tried to manually update a Superset installation from 2.0.1 to 2.1.0 on a Ubuntu 20.04.6 LTS cloud instance.  It first gave a warning about pip to be updated.  With that I updated pip first and then apache-superset.  The update mentioned conflicts for pyopenssl and cryptography so I used pyopenssl cryptography==39.0.2.  However, the db upgrade step failed as it cannot connect to db although superset_config.py file is just working fine on 2.0.1.
How to reproduce the bug

pip install --upgrade pip
pip install apache-superset --upgrade
pip install pyopenssl cryptography==39.0.2
superset db upgrade

Expected results
superset db upgrade command to succeed and db to be updated.
Actual results
superset db upgrade command fails with an error that it cannot connect to the database.  The log connection string seems to be wrong but it works as expected on 2.0.1.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):

Latest Chrome
superset version: 2.0,1
python version: 3.8.10
any feature flags active:
"ALERT_REPORTS": True,
"DASHBOARD_NATIVE_FILTERS": True,
"DASHBOARD_CROSS_FILTERS": True,

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

hi @ngurmen can you add more details about the error if it's still happening? I haven't heard of similar reports, so I think this may be something related to your config or system.

hi @eschutho, I did not try further to upgrade to 2.1.1.  Since then I upgraded my server instance to support Python 3.10.  The earlier server was on Python 3.8.  With that I was able to upgrade to 3.0.0 skipping the 2.1.1.

Ok, great. I'm glad that you were able to resolve it.


kernelArgs broken with Leap Micro 6.0

I'm trying to build a raw image with a configuration that worked for 5.5 e.g:
apiVersion: 1.0
image:
  imageType: raw
  arch: x86_64
  baseImage: openSUSE-Leap-Micro.x86_64-6.0-Default-Build22.15.raw
  outputImageName: openSUSE-Leap-Micro.x86_64-6.0-Default-Build22.15.metal3.raw
operatingSystem:
  kernelArgs:
  - ignition.platform.id=openstack
  - net.ifnames=1

I built a local container image based on<PHONE_NUMBER>52a654f4ada0afc905339b93b07c31 which builds the image without errors but when booting the image we don't see the cmdline args added:
controlplane-0:~ # cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.4.0-17-default root=UUID=7429bc86-6e9b-4d30-ad99-4c620001b3fa rd.timeout=60 rd.retry=45 console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet net.ifnames=0
1

It seems this may be a similar issue to https://github.com/suse-edge/edge-image-builder/issues/487 but it's impacting the deployed image, not the install device for the installer iso

This was mentioned by @agterdenbos in https://github.com/suse-edge/edge-image-builder/pull/488 - I suspect we'll have to align with a similar sed-fix as an interim solution, but IMO we should consider a more robust approach in future e.g parsing the cmdline args into a map then merging user-specified overrides to render the new cmdline string (this could also resolve https://github.com/suse-edge/edge-image-builder/issues/264 which for some reason was closed without actually fixing anything)

I'm not sure we actually need to sed the grub.cfg at all, I think it can be re-generated based on the /etc/default/grub e.g:
AFAICS we don't have to sed the grub.cfg at all, we can just update /etc/default/grub then re-generate the config via a guestfish shell e.g
guestfish <<EOF
add ${IMAGE}
run
mount /dev/sda3 /
sh "btrfs property set / ro false"
sh "grub2-mkconfig -o /boot/grub2/grub.cfg"
sh "btrfs property set / ro true"
download /boot/grub2/grub.cfg /tmp/grub.cfg.after
exit
EOF

cat /tmp/grub.cfg.after | grep ignition
	linux	/boot/vmlinuz-6.4.0-17-default root=UUID=7429bc86-6e9b-4d30-ad99-4c620001b3fa  ${extra_cmdline} console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet net.ifnames=0 ignition.platform.id=openstack net.ifnames=1
		linux	/boot/vmlinuz-6.4.0-17-default root=UUID=7429bc86-6e9b-4d30-ad99-4c620001b3fa  ${extra_cmdline} console=ttyS0,115200 console=tty0 security=selinux selinux=1 quiet net.ifnames=0 ignition.platform.id=openstack net.ifnames=1


On Firefox, shows this on console : "Error: Failed to execute 'close' on dialog..."

On Firefox, on the console shows this error every time that I close a dialog :
 Uncaught Error: Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.
    close dialog-polyfill.js:460

The same problem here

I'm encountering this issue - any movement on it yet?

Well... actually you can remove this polyfill on Firefox v >= 98 . It's what I actually I did.

Make sure you are using the polyfill only when needed, before registering the dialog, example;
if (typeof HTMLDialogElement !== "function") {
        dialogPolyfill.registerDialog("your-dialog");
}

This should fix any errors you are having.

This should fix any errors you are having.

Except if the user it's using a older Firefox release (very strange, but can happen)

This also happens in older versions of Safari, eg 12.1.2. We solved this by wrapping the call in a try ... catch block

In my testing, this problem occurs in Firefox v52 and under. Firefox 53+ works fine, and is not needed in 98+.


Adding semicolon after @inject statement results in IIS crashing and failed codegen.

Repro:

Create a View.
Add @inject IUrlHelper foo
Start app in debug mode (f5)
Add semicolon to end of @inject IUrlHelper foo => @inject IUrlHelper foo;, hit save.

Result: IIS terminates.
Expected Result: compilation error or ignore ';'.
**Note: ** You can also see the impact of adding a semicolon to the end of the @inject when in the editor by the tons of error messages that appear due to the semicolon (essentially because code fails to generate).
/cc @ToddGrun

14bd7dcd5ea57badcf37f02e2e5c035103b55d79
baa70d284d5fdf4e63d2208d05f16cad779a26d5


feat: bundle deps

Codecov Report
Base: 37.23% // Head: 37.08% // Decreases project coverage by -0.14% :warning:

Coverage data is based on head (04a2af8) compared to base (be4f48d).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
- Coverage   37.23%   37.08%   -0.15%
==========================================
  Files          14       14
  Lines         881      879       -2
  Branches       57       57
==========================================
- Hits          328      326       -2
  Misses        551      551
  Partials        2        2

Impacted Files
Coverage Δ

packages/dite/src/node/compiler/index.ts
5.68% <50.00%> (-0.71%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[Platform Initiative] Jupyter Book MVP for 2i2c communities

Description
We wish to build a MyST MVP that will allow communities to build interactive starter documentation to help them bootstrap themselves and provide their users with a rich, interactive and informative onboarding experience. The MVP will, at minimum, allow for the creation of landing pages, and the hosting of content such as Code of Conduct pages, content and image galleries and and interactive tutorials, complete with responsive hero blocks and wide screen support.
User stories for this initiative
Here's a proposal for user stories that should be possible on our hubs as part of this MVP.

As a community admin, I want to automatically get a Jupyter Book site with my hub (e.g., at docs.myhub.2i2c.cloud).

I do not want to have to manually connect it to my hub(s) for launch functionality.
If an automated solution is not feasible, I want to be able to copy a template and hook it up to my hub with minimal manual steps.
If I have a different technical preference for my community knowledge base, I want the ability to disable this workflow.
Relevant Productboard feature

I want this skeleton of this book to follow best-practices as defined by 2i2c, and have at least three sections in the skeleton :

A landing page to orient readers to the community: e.g., a brochure-style page, such as https://www.pangeo.io/.

This needs to support a wide "welcome" message, a description of what the community is and what it does, and two buttons to "learn more" in the documentation and "go to the hub" for community members.
This page should be a myst content page like all other docs pages.

A knowledge base to learn community workflows. e.g., community how to guides and tutorials, such as the CryoCloud tutorials and How-Tos.

I want a sample piece of content for each one already there.

A showcase to share and discover user content: A place for community members to upload content for sharing with others in my community (e.g., the pangeo gallery)

It should automatically display a list of all source files in a folder / yaml file / etc sorted with key community metadata.
It should be displayable as a gallery with embedded images and the results of computations used as an image.

(🙏 only for MVP if it's not a ton of work): A blog to publish ongoing communication for internal and external consumption (e.g., the Pangeo blog).

The blog should have an RSS feed.
It should otherwise behave the same as any other content on the docs.

As a content author, I want to be able to update content on the book by pushing markdown files and editing a myst.yml file in a github repository, and have it automatically update on the website.

(🙏 only for MVP if it's not a ton of work) I want to push/pull content from my community's knowledge repository within JupyterHub (either JupyterLab or VSCode) in less than 3 clicks and no command line usage.
(➡ for the future): I want to be able to publish content to CurveNote just as easily in order to have a public record that is more discoverable/archivable/etc for publishing workflows. (Relevant Productboard feature)

As a community member reading community docs, I want to be able to launch into my community's JupyterHub straight from my book  (Relevant Productboard feature).

Should support at least one of my community's JupyterHub and BinderHub directly.
The source file of the current page should be opened in my interactive session.
(🙏 only for MVP if it's not a ton of work) I want to be able to connect a Thebe session to my community's content with computation provided by my BinderHub.
(➡ for the future): I want to be able to launch arbitrary Jupyter Book content with my JupyterHub / BinderHub.  (Relevant Productboard feature)

As a content author, I want to be able to share content to non-community-members that runs on my community's BinderHub.

(only for MVP if it's not a ton of work) As a community admin, I want to be able to control and see what content can run on my community's BinderHub so that I know it isn't being used for abuse or unsustainable usecases.

Definition of Done

Each of the user stories above is enabled, or explicitly pushed to a future initiative.
All new functionality is fully documented.
A fully working implementation is validated by at least one of our communities.
We've defined the mechanisms that trigger when and how this is deployed for new communities (e.g. only in certain tiers, automatically for everyone, etc).
The new functionality is communicated to our communities.

Driving use-cases
These are use-cases that we'll use to drive forward development, prototyping, and validation of this initiative:

https://github.com/2i2c-org/meta/issues/1631

To do

[ ] Validate list of user stories above with communities via mockup/prototype
[ ] Create a prototype using the new features based on ClimateRisk use case (see https://github.com/2i2c-org/meta/issues/1631).
[ ] Demonstrate the prototype to target communities and gather feedback
[ ] Create starter documentation for the new features.
[ ] Generalize and automate the prototype so it can be deployed for new communities with minimal toil.
[ ] Communicate the new features to our communities

I've gone through and updated the issue body to incorporate the user stories that I think should satisfy this MVP. They focus around a basic knowledge base workflow for communities, and providing them the basic building blocks they'd need to start using a Jupyter Book for their hub.
Consider this a proposal for feedback and editing from @agoose77, @Gman0909 , @jmunroe , and @colliand . I think that this initiative is likely relevant to all of your current priorities so don't hesitate to suggest if you think there is something critically missing here.

I've taken the liberty of editing the body of the original issue to add relevant PB links, and have added one feature to PB to capture one of the new use cases.

@colliand to me the user story you show above is captured by the last one on the list (though it is more generalized than yours):

As a content author, I want to be able to share content to non-community-members that runs on my community's BinderHub.

Do you agree we can just refine the one above to incorporate a key functionality you think it's missing?
One quick note: I feel like "generate magic links" and "publish to a Jupyter Book w/ a launch button" are two related but distinct stories...I'm curious which of the two feels more important to prioritize. Perhaps @jmunroe can suggest which would be most useful for the AGU demos


[options] object is not responsive to mutation

If I want to do a 'select your city in one input, and then select your address in a second input, I'd do it something like this'.
    <input
      autocomplete="off"
      placeholder="City"
      name="city"
      ngx-google-places-autocomplete
      [options]="addressOptionsCity"
      #placesRef2="ngx-places"
      [value]="address.city"
      (change)="handleAddressTextChange($event)"
      (onAddressChange)="handleCityChange($event)"
    />
    <input
      autocomplete="street-address"
      placeholder="Property Address"
      name="address"
      ngx-google-places-autocomplete
      [options]="addressOptions"
      #placesRef="ngx-places"
      [(value)]="address.formatted_address"
      (change)="handleAddressTextChange($event)"
      (onAddressChange)="handleAddressChange($event)"
    />

  addressOptionsCity: Options = {
    bounds: null,
    componentRestrictions: {
      country: 'NZ'
    },
    types: ['(cities)']
  };
  addressOptions: Options = {
    bounds: null,
    componentRestrictions: {
      country: 'NZ'
    },
    types: ['address']
  };

  public handleCityChange(address: Address) {
    //this.addressOptions.location = address.geometry.location;
    //this.addressOptions.radius = "150000"; //150km

    this.addressOptions.types = ['establishment']; //This is just to demonstrate that options isn't working.

 }

nb. Options.location and Options.radius aren't in your Options interface, but they are in the Google Places API . My understanding is that they should still pass through.
In anycase - for this example - we'll just change the addressOptions type when the city changes.
But in this example, the change the referenced options object does not propagate through to the autocompleter.

Ok,  a hacky way to do this is to directly reference the autocomplete object, like this:
export class AddressPickerComponent implements OnInit {

  @ViewChild('placesRef') placesRefAddress: GooglePlaceDirective;

  public handleCityChange(address: Address) {
    this.placesRefAddress.autocomplete.setTypes(['establishment']);
}

This will give you a typescript 'private member' warning, so a fix should be  create getAutocomplete() to expose the autocomplete object.
The alternative is to add a lifecycle method on ngOnChanges() to reset the options object.

@dwjohnston
Hi and thanks for a workaround!
Were you able to fix typescript warning without changing source code?

This will give you a typescript 'private member' warning, so a fix should be create getAutocomplete() to expose the autocomplete object.

Hi @dwjohnston ,
After changing options you should call reset function
https://github.com/skynet2/ngx-google-places-autocomplete/blob/master/src/ngx-google-places-autocomplete.directive.ts#L81


BigQuery: after login stuck at "Extract Catalogs"

System information:

Operating system (distribution) and version
MacOS 11.6.1 on Intel
DBeaver version
<IP_ADDRESS>201221033

Connection specification:

Database name and version
BigQuery
Driver name
BigQuery
Do you use tunnels or proxies (SSH, SOCKS, etc)?
No

Describe the problem you're observing:
I can connect fine to BigQuery using a service account, when I try to login with the "User-based" authentication I get past the  the Authorization code request and I am able to receive a code and paste it into the box but then it gets stuck at "Extract Catalogs"
Steps to reproduce, if exist:
Include any warning/errors/backtraces from the logs
in the logs i get the following:
2022-02-01 17:44:52.879 - Connect with 'connectionname (google_bigquery_jdbc_simba-17eb6288e1b-1cf0070ea012da80)
2022-02-01 17:44:52.879 - Execution context opened (connectionname; Main; 3)
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-02-01 17:45:17.374 - Error setting client application name: [Simba]JDSI Property ApplicationName not supported.
2022-02-01 17:45:17.375 - Execution context opened (connectionname; Metadata; 4)
2022-02-01 17:45:43.683 - Error setting client application name: [Simba]JDSI Property ApplicationName not supported.

@giordyb Can you check if the user that you are using to connect has needed permissions to use extract catalogs query?

Hi @Matvey16 , the service account that I am using to connect via the "service-based" oauth type has the "BigQuery Data Owner" and "BigQuery Metadata Viewer" role at the Dataset level and works fine.
The user that I am using to connect via the "user-based" oauth type is mine and have both the  "BigQuery Editor" role at the project level and the "BigQuery Owner" role at the Dataset Level (I've created that dataset).
So I don't think it's a permission issue.
would the error "Error setting client application name: [Simba][JDSI](https://github.com/dbeaver/dbeaver/issues/20100) Property ApplicationName not supported." that I see in the logs would have anything to do with it?

It seems like this error has nothing to do with this issue. Could you please make a screenshot of the Query Manager when DBeaver is stuck at "Extract Catalogs"?

here you go, this happens after I go through the oauth authentication and stays that way indefinitely.

@giordyb I think he meant this query manager to look at what query this task is stuck

@Matvey16 @akilovich  I'm not getting anything in query manager

.

@giordyb Please turn all types of queries on in query manager settings. Maybe you have metadata queries disabled

Thank you @Matvey16 , I've configured the filter as you suggested, here are the results:

.

It seems like the database driver executes a non-optimal query. I am curious if we can substitute it with something better.

@Matvey16 Have you managed to reproduce the issue? I think we need to schedule this ticket in some milestone if you know how to replicate the issue.

Could you please retry with the latest driver and DBeaver version?
You can download driver here: https://storage.googleapis.com/simba-bq-release/jdbc/SimbaJDBCDriverforGoogleBigQuery42_<IP_ADDRESS>4.zip
Then you need to open your connections settings.
Click on the "Driver settings"
Choose "Libraries"
Delete old jar file
Download a new jar file
Reconnect

It's been a while since no update here. If the issue is still actual please let me know and provide additional information.


Upload files directly into a group

It would be handy to be able to upload files directly into the groups page. Right now you can only add files that were uploaded in another page.

Actually, you can upload directly into the group. There is a drop down list that you choose the group when you upload the file. Please let me know if it is not clear or not working very well.


Update translations from crowdin.com

Please update transslations files (strings.xml) from https://crowdin.com/project/gnucash-android

I helped you to translate 25% of the Portuguese/Brazillian. :blush: :ok_hand:

Translations were broken in commit b401372732a34d729b772e601650c27515a3fb15.
For example in /app/src/main/res/values-ru/strings.xml string title_use_account_color was "Цвет счёта в отчётах", but now it is "Цвет счёта в отчётых". It is wrong.
On Crowdin it was fixed over a year ago. And it was correct in v2.4.0-beta2 359e242ec8f8ac5ccc8ffb9ec2f792291bc133db.


Adding LUKE model to paddlenlp

The LUKE model has been reproduced and integrated into paddlenlp.

 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.


enable sending of emails

It's disabled by default unless a TESTING flag is set to True

Ready for review.

:+1:


Delete KKSM-RecoverAll

Moves 1.4.0.ckan to RecoverAll
Must be merged in conjuction with KSP-CKAN/Netkan#3884

KerboKatzSmallUtilities-RecoverAll has been available for 8 hours. We can't just remove it randomly and leave users without an upgrade path. The less-worse situation is leaving things as they are.


Fails to run on Linux

Hi
I am one of the Linuxbrew maintainers. We are packaging get-flash-videos in our package manager, which is based on the homebrew package manager for OS X.
We have the following sanity check to see if get-flash-videos works fine:

get_flash_videos http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm

This fails with the following error:

Using method 'bbc' plugin version 0.01 for http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
Downloading http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
Error: Can't use string ("<?xml version="1.0" encoding="UT"...) as a SCALAR ref while "strict refs" in use at /home/linuxbrew/.linuxbrew/Cellar/get-flash-videos/1.25.93/lib/perl5/FlashVideo/Site/Bbc.pm line 88.
Couldn't extract Flash movie URL. This site may need specific support adding,
or fixing.
Please confirm that the URL is valid and that you are running the latest
version of get-flash-videos.
If the latest version does not support this site please create a bug
report at https://github.com/monsieurvideo/get-flash-videos making
sure you include the output with --debug enabled. Alternatively,
fix it yourself and send us a pull request.
Couldn't download any videos.

The same command line works fine on mac. I guess there is something with the $$content variable in Bbc.pm at line 88, but my perl knowledge stops here. Could you please have a look?
Issue on our bugtracker for reference: https://github.com/Linuxbrew/homebrew-core/pull/3467

The latest github version works for me on Fedora 23 with perl v5.22.2.

get_flash_videos-1.25.93 http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
Using method 'bbc' plugin version 0.01 for http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
Downloading http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:   duration              283.58
INFO:   moovPosition          53109262.00
INFO:   width                 688.00
INFO:   height                384.00
INFO:   videocodecid          avc1
INFO:   audiocodecid          mp4a
INFO:   avcprofile            77.00
INFO:   avclevel              31.00
INFO:   aacaot                2.00
INFO:   videoframerate        25.00
INFO:   audiosamplerate       48000.00
INFO:   audiochannels         1.00
INFO: trackinfo:
INFO:   length                7089000.00
INFO:   timescale             25000.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            avc1
INFO:   length                13612032.00
INFO:   timescale             48000.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            mp4a
BBC_-_Do_whatever_it_takes_to_get_him_to_talk.flv: 99% (51977.68 / 52238.87 KiB)
Done. Saved 53477629 bytes to BBC-__Do_whatever_it_takes_to_get_him_to_talk.flv
[pwalden@walden3 Videos]$

Just tried running here on OpenBSD... (BSD Unix rather than Linux), also tried on Debian and both worked.
The issue might be BBC may only work within the UK, for this. But doesn't explain mac working, unless some VPN is being used. That part of code is not normally run, suggesting something different is being return for some reason such as region checking.
Try running with the -d flag on Linuxbrew, the extra info might help track this down.
Only need something like this to start with, may not even be getting this far
$ get_flash_videos -d http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
1 plugins installed:

Hulu.pm
Trying to open plugin ~/.get_flash_videos/plugins/News.pm
Trying to open plugin ~/.get_flash_videos/plugins/Bbc.pm
Using method 'bbc' plugin version 0.01 for http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
Downloading http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
-> GET http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
<- 301 text/html; charset=iso-8859-1 266 (266): UTF8 off, ASCII, 266 characters 266 bytes
-> GET http://news.bbc.co.uk/1/hi/programmes/hardtalk/9560793.stm
<- 200 text/html (74047): UTF8 on, non-ASCII, 74047 characters 74049 bytes
-> GET http://news.bbc.co.uk/media/emp/9560000/9560700/9560793.xml
<- 200 text/xml (1446): UTF8 on, ASCII, 1446 characters 1446 bytes
-> GET http://open.live.bbc.co.uk/mediaselector/4/mtis/stream/p00jq9g1
<- 200 text/xml (4790): UTF8 on, ASCII, 4790 characters 4790 bytes
FlashVideo::RTMPDownloader=HASH(0xb7ab3be1118)

The issue might be BBC may only work within the UK, for this.

I am in the US and it works here.

The error happens both on our Travis and circle builds (Ubuntu Trusty), and for me locally on ubuntu 17.04 (zesty). I'm sitting in Germany. But I can run the command with my mac, so I doubt there is any country limitation here.
Here is the output with -d:
$ get_flash_videos -d http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
No plugins installed
Trying to open plugin ~/.get_flash_videos/plugins/News.pm
Trying to open plugin ~/.get_flash_videos/plugins/Bbc.pm
Using method 'bbc' plugin version 0.01 for http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
Downloading http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
-> GET http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm
<- 301 text/html; charset=iso-8859-1 266 (266)
-> GET http://news.bbc.co.uk/1/hi/programmes/hardtalk/9560793.stm
<- 200 text/html (76337)
-> GET http://news.bbc.co.uk/media/emp/9560000/9560700/9560793.xml
<- 200 text/xml (1446)
Error: Can't use string ("<?xml version="1.0" encoding="UT"...) as a SCALAR ref while "strict refs" in use at /home/linuxbrew/.linuxbrew/Cellar/get-flash-videos/1.25.93/lib/perl5/FlashVideo/Site/Bbc.pm line 88.

Couldn't extract Flash movie URL. This site may need specific support adding,
or fixing.

Please confirm that the URL is valid and that you are running the latest
version of get-flash-videos.

If the latest version does not support this site please create a bug
report at https://github.com/monsieurvideo/get-flash-videos making
sure you include the output with --debug enabled. Alternatively,
fix it yourself and send us a pull request.
Couldn't download any videos.

Assuming you are using the latest build, the error is originating from this statement:
$playlist = from_xml($$content, KeyAttr => {item => 'kind'})
If $content is in fact the string

("<?xml version="1.0" encoding="UT"...)

, and not a reference to a string, then the $$ dereference would complain.
I do not know why this is working on my instance or the mac.
Whate version of perl are you using? (perl -V)

The fix to the code is to change from_xml($$content, to from_xml(\$content,
but that doesn't explain why the code is being reached because the previous from_xml must fail to find the expected xml content, and unlikely to work just by fixing this piece of code that is not normally run (it's to fix occasional site issues, and never would have worked).
The download of
http://news.bbc.co.uk/media/emp/9560000/9560700/9560793.xml
has the same length so have to look at the difference between the contents.
The mac working might point to the agent setting in the HTTP GET being different, if no difference in the download then the other is XML::Simple version of lib-xml-simple-perl, debian uses 2.20-1, OpenBSD uses 2.24, for some reason the mac version works and the other doesn't. Need to determine where the problem lies I made temporary changes by copying Bbc.pm to the plugins directory. as in code below to print the extra things..
You could try downloading http://news.bbc.co.uk/media/emp/9560000/9560700/9560793.xml first
I can use this on OpenBSD
ftp http://news.bbc.co.uk/media/emp/9560000/9560700/9560793.xml
Need to use curl/wget instead.
Then would expect to see XML with item kind in the download
$ grep kind 9560793.xml
<item kind="programme" duration="283"
Compare between the working and non-working, but curl/wget aren't used by get_flash_videos, so if the same, means need to move on and look at exactly what get_flash_videos downloads, that means adding a block of code after the eval { from_xml.
  my $playlist = eval { from_xml($browser, KeyAttr => {item => 'kind'}) };

  {
    use Data::Dumper;
    my $content = $browser->content;
    print "User Agent: ".$browser->agent()."\n";
    print $content;
    my $playlist1 = from_xml(\$content, KeyAttr => {item => 'kind'});
    print Data::Dumper->Dumper($playlist1);
  }
  if ($@) {
    # Try to fix their potentially broken XML..
    my $content = $browser->content;
    if ($content !~ m{</media>}) {
      $content .= "\n</media></item></playlist>\n";
    }
    $playlist = from_xml(\$content, KeyAttr => {item => 'kind'});
  }

First copy Bbc.pm to ~/.get_flash_videos/plugins and amend, once finished remove, get_flash_video will pick up the alternative Bbc.pm, check before use by
$ perl -c .get_flash_videos/plugins/Bbc.pm
.get_flash_videos/plugins/Bbc.pm syntax OK

Bbc.pm modified, to fix strict ref issue in from_xml call, and provide additional debug information.

FYI, still working for me after this update.

Ok I tested the patched plugin. It did output more stuff than before, and especially:

Must have XML::Simple to download 1 videos
A required Perl module for downloading this video is not installed.

Adding that dependency fixed it. I could even run get_flash_videos without the modified plugin, so the problem was that this dependency was missing. For me everything is fine now, and we can close this issue.
The error message was way better with the modified code so you may want to change that part for the next release. Thanks everybody for the quick help!

Thanks for feedback, closing issue - as missing dependency.


[UIE-130] Move Environments tests out of FeaturePreviews tests

It looks like some tests for the PauseButton from the Environments module got added to the FeaturePreviews test file in #3914. This moves those tests to Environments.test.

Rebased to resolve merge conflict.


Incorrect regex in documentation

This Java example has the line String excludeSystemEventsRegex = "/^[^\\$].*/"; NOTE surrounding /
https://developers.eventstore.com/clients/grpc/subscriptions.html#filtering-out-system-events
I have to remove the outer / and use just final String excludeSystemEventsRegex = "^[^\\$].*";
Java client: 4.0.0
ESDB docker container: tags/oss-v21.10.8

Thanks @causton81 for reporting that issue.


HMR app on react changes

Building on @mattlong's POC here: https://github.com/medplum/medplum/pull/3211
I couldn't get @types/grecaptcha to work with Vite aliasing.  Vite aliasing seems more valuable than those type definitions (we only use it in a couple places), so I'm inclined to push this through.
I was curious if we could go ahead and do this for all monorepo dependencies, most notably @medplum/core.  Unfortunately, the answer is "not yet", because @medplum/core is not yet using ESM in source.  For example, it still has references to process.env rather than import.meta.env.  ESM is a slippery slope, and has often caused issues with @medplum/server, so I'm leaving it alone for now.  Exciting future prospects though.

coverage: 93.926%. remained the same
when pulling 13c00ef35c431489c954a3d1a6b44447c44a3a4a on cody-mattlong-esbuild-watch-poc
into 83a78b3e25f66495bc893509700b7bf95b5e0509 on main.

Deployed and tested on staging: https://app.staging.medplum.com/


Timeout download library

When i try to run for example: buckaroo install boost/locale it gave me this error.
Download error!
There was an error downloading a file.
 * URL:
   https://raw.githubusercontent.com/njlr/typeof/360bfb1315950104951f68e66cfb9ba
 * Target: /home/nicht/Dev/Merlin/Merlin/buckaroo/official/boost/typeof/BUCK
 * Cause:
   java.net.SocketException: Connection reset

EDIT: Wrong error message.

Thanks for creating  this issue.
If I read you correctly, your issue is about the error message.
Installing boost/locale works correctly with an existing and stable internet connection, is that correct ?
Any suggestions how to improve the error message?

Wellp, not actually the error message. But i figured out that was because my connection was unstable.


Issue when trying to Override userPoolGroupRole with Amplify Override Auth

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.18.0
Amplify CLI Version
12.10.1
What operating system are you using?
Windows
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
None
Describe the bug
I am attempting to add custom policies to my user pool groups. I have recently moved from Auth/guest to Group based permissions in my app. After this I noticed that adding the policies to just the AuthRole was not enough, and they also need to be added to the group roles.
When trying to modify the User Pool Group Role to add a new policy through the override.ts as in the documentation here -https://docs.amplify.aws/javascript/build-a-backend/auth/override-cognito/
I get the following error -
🛑 Executing overrides failed.
Cannot read properties of undefined (reading 'userPoolGroupRole')
Expected behavior
I should be able to add a policy to the group role in the same way I can for the authRole.
Reproduction steps

Run Amplify Override Auth
Attempt to modify the userPoolGroupRole to add a new policy
Push to Amplify

Project Identifier
No response
Log output

# Put your logs below this line

× There was an error pulling the backend environment dev.
🛑 Executing overrides failed.
Cannot read properties of undefined (reading 'userPoolGroupRole')

Resolution: There may be runtime errors in your overrides file. If so, fix the errors and try again.
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

Additional information
See below for my override.ts -
import {
  AmplifyAuthCognitoStackTemplate,
  AmplifyProjectInfo,
  AmplifyUserPoolGroupStackTemplate
} from '@aws-amplify/cli-extensibility-helper'

export function override(
  resources: AmplifyAuthCognitoStackTemplate,
  amplifyProjectInfo: AmplifyProjectInfo,
  groupResources: AmplifyUserPoolGroupStackTemplate
) {
  // add policy to group role
  const groupRole = groupResources.userPoolGroupRole['Teachers']

  const bedrockPolicy = {
    policyName: 'bedrock-invoke-model-permissions',
    policyDocument: {
      Version: '2012-10-17',
      Statement: [
        {
          Sid: 'BedrockModelInvocation',
          Effect: 'Allow',
          Action: ['bedrock:InvokeModel', 'bedrock:InvokeModelWithResponseStream'],
          Resource: '*'
        }
      ]
    }
  }

  // If policies property exists and is an array, append to it.
  // Otherwise, initialize it as an array with our new policy.
  if (Array.isArray(groupRole.policies)) {
    groupRole.policies.push(bedrockPolicy)
  } else {
    groupRole.policies = [bedrockPolicy]
  }

  resources.userPool.addPropertyOverride('AdminCreateUserConfig', {
    InviteMessageTemplate: {
      EmailMessage: {
        Ref: 'invitationEmailMessage'
      },
      EmailSubject: {
        Ref: 'invitationEmailSubject'
      }
    }
  })

  // Enable device tracking
  resources.userPool.addPropertyOverride('DeviceConfiguration', {
    ChallengeRequiredOnNewDevice: true,
    DeviceOnlyRememberedOnUserPrompt: true
  })
}

Note that the other overrides on the userpool are working fine. its only trying to add a policy to the role that is breaking
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Deleting my Amplify folder, re pulling from the cloud and running Amplify override Auth then selecting UserPoolGroups resolved this.


Fix ‘always run’ tense

Fixes a tiny grammatical typo in the Readme:
is always ran

becomes
is always run

🤘

Nice


Remove unused packages that have vulnerable dependencies

We got an internal report for a vulnerability:
  A remote code execution vulnerability exists when parsing certain
  types of graphics files. This vulnerability only exists on systems
  running on MacOS or Linux. This CVE ID is unique from CVE-2021-26701.

The report also included this statement:
  Root dependencies for System.Drawing.Common

  Microsoft.PowerShell.SDK 6.2.2
  Microsoft.Windows.Compatibility 2.1.1

It turns out that we don't need these dependencies anymore, so we can remove them.

The functional tests are failing because of a change in microsoft/git, so the functional tests will pass in that environment. I'm going to merge this using admin privileges and verify microsoft/git still passes afterwards.


Hi there! This projects seems very interesting....

Hello:
As far as Docker Hub... I make use of AWS AMI Linux (EC2) to run my current services.... If I want to go the serverless route with Docker, what would be my options since right now I am relying on a 24/7 server plan with Amazon?
 (I'm just barely scratching the surface on Docker)
Thanks!!!

Hello!  You could definitely run containers directly on ECS and not need to manage actual instances if you used Fargate (otherwise you'd need to manage the instances).  You might want to check that out if you'd like to go the Docker route.  Let me know if you have any questions!


Fix/myz 8719 remove idp login components

fix: remove deprecated components
Priority

[ ] 1 - Highest
[ ] 2 - High
[ ] 3 - Medium
[x] 4 - Low
[ ] 5 - Lowest
[ ] 6 - Not a Priority

Types of changes

[x] Bugfix (non-breaking change which fixes an issue)
[ ] Feature (non-breaking change which adds functionality)
[ ] Component (add a Component as approved by Design System)
[ ] Docs (add documentation)
[ ] Chore (changes that adds small enhancement)
[ ] Breaking (fix or feature that would cause existing functionality to not work as expected)

Abstract

Screenshots
Note

Component and Fix approval flow to Master branch
A Pull Request to be merged must have two approvals, one from a member of the product team who developed it and another from a member of the dst dev team other than the team representative.

Ci sono degli <z-app-topbar> rimasti in alcuni file di Storybook.

E poi ci sono <z-app-topbar> e <z-user-dropdown> in due file di test: file-upload.html e notification.html.

Valutare anche la rimozione di ZMenuDropdown?


[Tabs] Don't fire onChange if current value

[x] I have followed (at least) the PR section of the contributing guide.
Closes #22378

@jjoselv Thanks!

Anytime! :blush:


NNCP: Fail when reason is NoMatchingNode

No need to wait 480 seconds if the reason is NoMatchingNode
Short description:
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
#98
Special notes for reviewer:
Bug:

/verified

/verified

/approve

/approve

/verified

/approve

/verified
/approve

/approve
/verified

/unverified

/unapprove

/approve


mkdir(): Permission denied

Hi,
Is it possible to set different $outputDir?
http://take.ms/XrFm0

+1

+1


Git and Contributing

I was reading through the ReadMe and I noticed that the ReadMe is had too much wording which might discourage a developer from wanting to contribute to the  project,
I suggest we keep it simple so anyone can understand the project easily, I would like to work on it

I was reading through the ReadMe and I noticed that the ReadMe is had too much wording which might discourage a developer from wanting to contribute to the project, I suggest we keep it simple so anyone can understand the project easily, I would like to work on it

I understand the issue!
Can you fix it ?

yes sure


Australia Region

I am in Australia and can get it setup but its not initialising. Seems to be stuck in an initialising loop.

What car do you have? Works for my Australian Ioniq 6

Can't get my Kona 2024 EV working either

I have it working on my Kona 24 EV, it can be a little temperamental to setup, and it has on occasion stopped working for several days then come back to life. I have had to change my password at least once because Hyundai changed the complexity requirements/restrictions.


Using XState with ReasonML

Bug or feature request?
Feature request
Description:
Just to know, anyone using XState inside Reason? I tried to figure out some content about but didn't found anything. Would be awesome if we have some recipe for Reason inside the official documentation as we have for some frameworks/libs.

Does Elm also have the ability to track invalid states? I am currently exploring the combination of Svelte as View with Elm's Update and Model. Sending just data via Ports it occurred to me that I could explore using Xstate/FSM in between Svelte and Elm.
Elm has a philosophy of making impossible states impossible but to me that isn't the same as what Xstate is focused on, which seems to be a much more formalised system that would tie in to something like DDD's high level approach. Whereas Elm's mechanisms are low level and only code based. What do you think?
Should I pursue Xstate as in-between process manager for Svelte?

This will hopefully happen one day but is outside the scope of this repo, sorry!


Added http requests to upload multipart files

Added http requests to upload multipart files
Implemented attachment flow with test

#1986  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tommylau523 and the rest of your teammates on  Graphite


Did checkstyle stop enforcing this. prefix on class members?

Make sure checkstyle is not borked in general. If only this. enforcement got relaxed, can't say I'll miss it.

Are you saying checkstyle checks are not working anymore?

Checkstyle definitely works in general. It just got me on a non-standalone-brace in a catch block, which is good.

So, this. enforcement on class members was disabled a loooong time ago in Spring Cloud.


docs: new docs folder created to host the docs for AsyncAPI CLI

Pull request summary
This pull request is a continuation of AsyncAPI pull request #1097.

@Souvikns Alright. I will do just that

okidoki @activus-d, another action item:
👉🏽👉🏽 please go through your PR and delete the prev/next buttons since we already covered why those are not needed in CLI repo

@alequetzalli the branch has been updated. Kindly review

what is this about? O_O do you know @derberg?

@alequetzalli approve and merge if you are happy with the PR.

Oh, cruel and bitter irony 😂😂😂
@derberg

@alequetzalli yes, manually you do not have right, but if all is green you have 👇🏼
/rtm
also for merging latest master, you can use /autoupdate
but, anyway I just noticed at the beginning @Souvikns requested changes, so we cannot merge.
@Souvikns can you give final approval please 🍺

/rtm

@allcontributors please add @activus-d for docs

btw, in case you are interested, I opened a good first issue to automate publishing to website https://github.com/asyncapi/cli/issues/448


Sign release binaries with GPG

Checklist

[X] I'm reporting a feature request
[X] I've verified that I'm running yt-dlp version 2021.12.01. (update instructions)
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
I'm looking to pull the latest binary release as part of a Docker deployment. It would be great if I could verify my download isn't someone else spoofing the file by comparing a GPG signature.

We should be able to use this https://github.com/marketplace/actions/import-gpg. If someone can make a PR, that would be appreciated

Is it trustworthy? There is a danger that an external action may exfiltrate the keys. Honestly, I would rather set up signing manually just to be safe.

I started some exploratory work on this.  The actual signing is not too hard to do, but there are a couple of obstacles.  The biggest one is that the Windows binaries are built on Windows, which I am not sure even has a GPG binary installed, and even if it did, it would still necessitate writing build steps separately from the other systems.  Though on the other hand, by the same token the users will not necessarily have a way to verify the signature either.
A smaller obstacle is that I am kind of confused where I should place the signing step.  The build steps sometimes overwrite the artifacts to later upload them under different names, which means I cannot add just one ‘sign and upload’ step at the end.  (Not to mention, there are many ‘ends’ where it would need to be added.)
A bigger problem is how to figure out key rotation and distribution. Also, incorporating signature verification into the updater will necessitate adding a dependency; at the very least on the gpg binary itself, though it would be better to use the GPGME bindings.

youtube-dl had a rsa_verify function in the updater. Will need to look into the details of how it worked
The GHA windows VM does not have gpg installed and installing it ourself may be difficult depending on what limitations the VM has set up for security. The action I mentioned above is using openpgpjs
In my opinion, there is no need for us to re-invent the wheel here. We can fork/freeze the dependencies to address any concerns of trust.

Hi, I was also wondering if a public signing key could be provided. I'm currently running Linux Mint 21 and used the APT package manager to install yt-dlp. I then went to add the stable PPA so that I could get the latest version, but no signing key was provided on launchpad.
If creating and implementing the signing key(s) for the binaries, package managers, etc. is too much work, is it possible to make the key(s) for just package managers?
If I'm missing something please let me know! Thanks.

Closed by 12647e03d417feaa9ea6a458bea5ebd747494a53


Small Bugs Fixed

Changes

removed unnecessary str and context variable

changed color picker dialog variable name

dialog dismisses after clicking button

Thanks


fix #3689

add testcase for #3689 and fix it

Branch: issue3689
Type:

[x] Bug fix
[x] Bug fix (Test)
[x] New Test Case

now JSONArray.parseArray("//*") will thrown exception instead of return null
remove double lines of code which come from commit a88fee7aec2baf1c6d50fdb2bad62fd674d8731e

Codecov Report

Merging #3711 (d6b2f6d) into master (14a95cc) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #3711      +/-   ##
============================================
- Coverage     80.29%   80.29%   -0.01%
+ Complexity     7519     7518       -1
============================================
  Files           157      157
  Lines         28096    28096
  Branches       6790     6790
============================================
- Hits          22561    22559       -2
- Misses         3499     3501       +2
  Partials       2036     2036

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/com/alibaba/fastjson/JSON.java
81.96% <100.00%> (+0.19%)
161.00 <0.00> (+2.00)

...com/alibaba/fastjson/serializer/SerialContext.java
82.69% <0.00%> (-3.85%)
21.00% <0.00%> (-1.00%)

...main/java/com/alibaba/fastjson/util/FieldInfo.java
86.42% <0.00%> (-0.34%)
98.00% <0.00%> (-1.00%)

Continue to review full report at Codecov.

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

Codecov Report

Merging #3711 (cbd625b) into master (14a95cc) will increase coverage by 0.02%.
The diff coverage is 93.42%.

@@             Coverage Diff              @@
##             master    #3711      +/-   ##
============================================
+ Coverage     80.28%   80.31%   +0.02%
+ Complexity     7517     7510       -7
============================================
  Files           157      157
  Lines         28096    28089       -7
  Branches       6790     6778      -12
============================================
+ Hits          22558    22559       +1
+ Misses         3501     3499       -2
+ Partials       2037     2031       -6

Impacted Files
Coverage Δ
Complexity Δ

...ava/com/alibaba/fastjson/parser/JSONLexerBase.java
70.00% <50.00%> (-0.04%)
813.00 <0.00> (-1.00)

...java/com/alibaba/fastjson/parser/ParserConfig.java
80.41% <83.33%> (-0.06%)
226.00 <0.00> (ø)

...main/java/com/alibaba/fastjson/util/TypeUtils.java
79.50% <95.23%> (+0.26%)
651.00 <12.00> (-8.00)
:arrow_up:

src/main/java/com/alibaba/fastjson/JSON.java
81.96% <100.00%> (+0.19%)
161.00 <0.00> (+2.00)

src/main/java/com/alibaba/fastjson/JSONArray.java
91.47% <100.00%> (ø)
84.00 <0.00> (ø)

.../java/com/alibaba/fastjson/parser/JSONScanner.java
76.59% <100.00%> (ø)
518.00 <0.00> (ø)

...fastjson/parser/deserializer/EnumDeserializer.java
91.39% <100.00%> (ø)
30.00 <0.00> (ø)

...json/parser/deserializer/JavaBeanDeserializer.java
78.36% <100.00%> (ø)
317.00 <0.00> (ø)

...main/java/com/alibaba/fastjson/util/FieldInfo.java
86.42% <0.00%> (ø)
98.00% <0.00%> (ø%)

... and 2 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 14a95cc...cbd625b. Read the comment docs.


Get likes and retweets

Hi,
I would like to extract likes and retweets against all tweets.
Please help...

I think this project has been abandoned, you should use a different one

You could use my fork at https://github.com/ferguras/twitter-analysis
It has an boolean parameter that allows you to select if you want to have retweets collected or not. And it collects the original sender of the tweet.


Spontaneous log out from app (presumably because of batch requests)

Sometimes I'm facing an issue of spontaneous log out from app (approximately several times a day, but it depends on intensity of usage). I examined logs but everything seems to be ok (e.g. token is present, method is working, request is very typical etc.). On a first glance it doesn't depend on anything in particular, just usual get requests. I tried to find an answer on StackOverflow and here but without luck.
In initializers/devise_token_auth.rb I have config.token_lifespan = 4.weeks and config.batch_request_buffer_throttle = 5.seconds.
Backend is on Heroku. Devise_token_auth v0.1.33. Rails 4.2.0.
I understand, that it's a bit vague. I would be happy to provide more information, just need some directions.
Would appreciate any ideas.

I was just having the same problem for couple of days. After doing some debug i was finally able to track it down to SetUserByToken concern, specifically this place:
def update_auth_header

    # cannot save object if model has invalid params
    return unless @resource and @resource.valid? and @client_id

    # Lock the user record during any auth_header updates to ensure
    # we don't have write contention from multiple threads
    @resource.with_lock do

      # determine batch request status after request processing, in case
      # another processes has updated it during that processing
      @is_batch_request = is_batch_request?(@resource, @client_id)

      auth_header = {}

      if not DeviseTokenAuth.change_headers_on_each_request
        auth_header = @resource.build_auth_header(@token, @client_id)

        # update the response header
        response.headers.merge!(auth_header)

      # extend expiration of batch buffer to account for the duration of
      # this request
      elsif @is_batch_request
        auth_header = @resource.extend_batch_buffer(@token, @client_id)

      # update Authorization response header with new token
      else
        auth_header = @resource.create_new_auth_token(@client_id)

        # update the response header
        response.headers.merge!(auth_header)
      end

    end # end lock

  end

So what happens here is headers are updated after action is executed. What i found out when debugging in a client app - when i make 2 subsequent requests (i.e. login and then fetch account info), i get 2 different access tokens even though they fall into the same 5 second window (so access token must be the same). That made me look into this specific concern and see how headers are set.
Apparently i don't see headers being updated if the request is a batch request at all here.
My solution was to override this concern and add this line:
    response.headers.merge!(auth_header)

after
    elsif @is_batch_request
        auth_header = @resource.extend_batch_buffer(@token, @client_id)

Now, this seems to help me resolve the problem, even though i still don't understand why my client app was showing the different access token in the first place, if it wasn't really set by the server. While this remains a mystery to me just yet, i am happy that i was finally able to fix this for my project.
Hope it helps you too.

@finayev, thank you. Could you please share your initializer with patch?

It looks like we are not alone with this issue:
https://github.com/lynndylanhurley/devise_token_auth/issues/51
https://github.com/lynndylanhurley/devise_token_auth/issues/403
@lynndylanhurley I'm not closing this issue but feel free to close it if you see that it's the same problem.

Hi there @fertingoff    ,
In an effort to cleanup this project and prioritize a bit, we're marking issues that haven't had any activity in a while with a "close-in-7-days" label. If we don't hear from you in about a week, we'll be closing this issue. Obviously feel free to re-open it at any time if it's the right time or this was done in error!
If you are still having the issue (especially if it's a bug report) please refer to our new Issue Template to provide some more details to help us solve it.
Hope all is well.


fix(help): Corrects number of modes and uppercase for editor and Vim

Corrects the number of modes to three (Normal-Mode, Edit-Mode and Visual-Mode).
Corrects some unneeded uppercase characters for editor and Vim words.

Thanks for taking the time to go through the help instruction and fixing them :heart:

Thanks :-)


ecs.create_service and ecs.describe_service do not handle tags correctly

In #2450 and #2338 handling tags has been added, however boto3 supports setting and reading tags in create_service and describe_service.
Actual:
While one can call this:
service_matching_response: Dict = ecs_client.create_service(
            cluster=cluster_response['clusterArn'],
            serviceName=service_name_matching,
            taskDefinition=task_definition_response['taskDefinitionArn'],
            desiredCount=2,
            tags=[{
                'key': 'environment',
                'value': 'dev-i1234'
            }]
        )['service']

and it creates the service, the response from that method does not contain tags key.
Similarly, when calling:
result: Dict = self._ecs_client.describe_services(
            cluster=services_in_event.cluster_arn,
            services=services_in_event.service_arns,
            include=['TAGS']
)

the result does not contain tags key.
Expected:
tags and include should be handled properly and tags should be returned.

Also applies to describe_task_definition

@bblommers can you close this issue, the functionality was added with above PR.

@bblommers can you close this issue, the functionality was added with above PR.


Getting error on long pressing messages in SearchMessageScreen.

@zulipbot claim

I think the simplest solution is to not support that for the search results, which is also reasonable.

Got the problem :) it is because ActionSheetProvider is not present as parent of MessageList in SearchMessageScreen.js.
It will helpful to narrow to whole conversation using some searched keywords (through Narrow to conversation option). (Most of the time I do this)


Scaling in normalization modules

Hi, thank you very much for publishing this awesome repository :) After studying the recent changes, I was confused with the introduction of self.scale = dim ** -0.5 into ScaleNorm and RMSNorm in this commit.
If I understand the code correctly, the modules multiply the normalized variable by dim ** 0.5 (these two lines divide the variable by dim ** -0.5). Since both the queries and the keys are multiplied like this, the attention matrix is effectively multiplied by dim, which goes against the usual practice to multiply it by dim ** -0.5 (as you also do in the code).
I believe the normalized variables shouldn't be multiplied like this, what is the reason behind scaling it? Thank you very much for your time.

@davda54 I am just following the example put forth in the official repositories https://github.com/bzhangGo/rmsnorm/blob/master/rmsnorm_torch.py#L47 (RMS) https://github.com/tnq177/transformers_without_tears/blob/6b2726cd9e6e642d976ae73b9f696d9d7ff4b395/layers.py#L157 (Scale)

I see, turns out it was really just my confusion :) You divide it correctly by , as in the RMSNorm paper. Thanks for pointing me in the right direction, I'm closing this issue.


Fix bug that executing an RPC call (ERC-20 transfer message) crashed the UI

The situation was the following:
I was deploying and executing an instance of the demo'ed ERC-20 contract on-chain on the Canvas test network.
I tried to execute the ERC-20 transfer method as RPC call which resolves return values for me because I wanted to know if the call resulted in some error with the given arguments.
Unfortunately the UI crashed telling it could not properly decode the Result type.
Maybe this is connected to the fact that the UI cannot really handle enum types, yet but I still wanted to clarify this issue.

Possibly related to #52. I've opened PR #106 to address this issue + handling Option. However; I'm not sure if Result will be handled correctly either. I can take a look once  the PR has been merged.
As an aside, does anyone know if there's a more graceful way to handle constructing components in the Data::Data function? Adding an additional case for each possible Codec subclass doesn't scale.

Possibly related to #52. I've opened PR #106 to address this issue + handling Option. However; I'm not sure if Result will be handled correctly either. I can take a look once the PR has been merged.
As an aside, does anyone know if there's a more graceful way to handle constructing components in the Data::Data function?
Adding an additional case for each possible Codec subclass doesn't scale.

I've reproduced using the fix in #106 with the attached erc20.zip. The UI no longer crashes, however the returned value is the hex encoded value 0x00 because there's no handler for this type.
@Robbepop - should we open a new enhancement issue to handle Result?

@Robbepop - should we open a new enhancement issue to handle Result?

I found a pretty easy way to handle Result - if we change the catch-all return at the end of Data from
return truncate(codec.toHex(), TRUNCATE_TO);

to
return JSON.stringify(codec.toHuman());

then the resulting value for Result is nicely defined in a stringified JSON. In your ERC-20 example, we get {"Ok":[]} and {"Err":"InsufficientBalance"}, respectively.
Ideally, we could generically use codec.toHuman() to construct all of the return components out of the resulting JSON; however Codecs like Option have their toHuman method defined in such a way that doesn't yeild this nice object.


[mgmt] dns release

https://github.com/Azure/sdk-release-request/issues/5528

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure/arm-dns


use_tls

Laravel Version: 5.3
Adldap2-Laravel Version: 6.1.10
PHP Version: 7.1

Description:
config/adldap.php
Line 222
I set use_tls to true. The auth still wokrs. I wanted to track down how it was implemented and I could find anything. I searched for the string 'use_tls'. Still found nothing. Is it implemented?
Steps To Reproduce:
Testing with the config settings seems fine.

Hi @gaalgergely.
Inside your config/adldap.php file, there is an array with your connection information.
This array is passed directly to a new Adldap connection Provider instance:
https://github.com/Adldap2/Adldap2-Laravel/blob/master/src/AdldapServiceProvider.php#L41-L104
This configuration array is loaded by the connection Provider:
https://github.com/Adldap2/Adldap2/blob/master/src/Connections/Provider.php#L48-L86
And before we connect to your server, we prepare our connection object, and this is where SSL or TLS is used:
https://github.com/Adldap2/Adldap2/blob/master/src/Connections/Provider.php#L246-L269

Thank you!


Build with/without the minify flag produces almost the same uploaded code size

I have noticed that running the build with the minify flag does not seem to make much difference when it comes to the size of the actual code that is uploaded to the server.
Without the flag I get:

Compiled 9,615,889 characters Dart to 1,133,281 characters JavaScript in 10.4 seconds
...
functions: packaged functions (67.32 MB) for uploading

and with the flag:

Compiled 9,615,392 characters Dart to 429,438 characters JavaScript in 10.9 seconds
...
functions: packaged functions (67.12 MB) for uploading

Since the minified code is less then half of the non-minified I would expect much bigger reduction in the code that is uploaded as well.

It is likely because Firebase bundles all dependencies in the same archive. And most of those dependencies are regular Node.js packages, which we do not control from Dart.
Building Dart code only affects your final main.dart.js file (or whatever name you gave it) and you should only compare this file.
Based on your logs it does go down by more than 60% it looks like.

Ok that makes sense but in that case there is not much point in minifying I guess since the bulk of the code will always be in the libraries. Unless there is a way to minify the Node.js packages as well.

Yeah, I'm not sure if Firebase provides any tool to minify everything.
But it's really not that critical for server-side code. Minification is important for browser apps as far as I understand, since it improves latency. Server-code is loaded in memory and sits there.

That is true. Unless you have to debug your code by constantly re-compiling and re-deploying it to the server which I have been doing over the last seven days or so :-)
But I am pretty much done now.

You can at least write tests for you own code which does not depend on FirebaseFunctions.
I usually do one of two things:

Write a regular Dart test for any code that can be tested without depending on cloud stuff. I mark those tests with @TestOn('node') and just run them with pub run test.

Create a simple console app which invokes more complex logic, so I can test it without having to re-deploy every time I change something (I only need to re-build the script, but that's tolerable).

This way I can catch 99% of errors before having to deploy with Firebase tool.

I should probably write a blog post or something about this with more details. :)

This was sort of one off a proof of concept if you like. Going forward I will definitely need to adopt a bit more structured approach. So any thoughts you can share will be most welcome.


postgresql11Packages.pgrouting: 3.0.2 -> 3.1.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/pgrouting/versions.
meta.description for postgresql11Packages.pgrouting is: "A PostgreSQL/PostGIS extension that provides geospatial routing functionality"
meta.homepage for postgresql11Packages.pgrouting is: "https://pgrouting.org/"
meta.changelog for postgresql11Packages.pgrouting is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.1.0 with grep in /nix/store/c5yc0hchkaszi0ab7wajypmk85yyxn6j-pgrouting-3.1.0

directory tree listing: https://gist.github.com/9bb54c7056d419c4c0799600ba07124a

du listing: https://gist.github.com/38a5369d71b42a95ceba6078d38b8bad

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
postgresql11Packages.pgrouting
postgresqlPackages.pgrouting

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/c5yc0hchkaszi0ab7wajypmk85yyxn6j-pgrouting-3.1.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A postgresql11Packages.pgrouting https://github.com/r-ryantm/nixpkgs/archive/8c86aafbfe3f31ac513efd29d328a2a459cf11f1.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/c5yc0hchkaszi0ab7wajypmk85yyxn6j-pgrouting-3.1.0
ls -la /nix/store/c5yc0hchkaszi0ab7wajypmk85yyxn6j-pgrouting-3.1.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:

postgresql11Packages.pgrouting

Maintainer pings
cc @steve-chavez for testing.

Builds good for me!
[ 99%] Linking CXX shared library lib/libpgrouting-3.1.so
[100%] Built target update_files
[100%] Built target pgrouting-3.1
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/wjw6g6jk0gj438f03gd5rp7gwmgv1dq9-pgrouting-3.1.0
shrinking /nix/store/wjw6g6jk0gj438f03gd5rp7gwmgv1dq9-pgrouting-3.1.0/lib/libpgrouting-3.1.so
strip is /nix/store/0x8pbk0578knfpxf9gbl0lhmpynh2947-binutils-2.31.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/wjw6g6jk0gj438f03gd5rp7gwmgv1dq9-pgrouting-3.1.0/lib
patching script interpreter paths in /nix/store/wjw6g6jk0gj438f03gd5rp7gwmgv1dq9-pgrouting-3.1.0
checking for references to /build/ in /nix/store/wjw6g6jk0gj438f03gd5rp7gwmgv1dq9-pgrouting-3.1.0...
building '/nix/store/76z6kaqpigpygrzpac1lz976yfijsfag-postgresql-and-plugins-11.7.drv'...
created 630 symlinks in user environment

create EXTENSION pgrouting;
CREATE EXTENSION
select * from pgr_version();
┌─────────────┐
│ pgr_version │
├─────────────┤
│ 3.1.0       │
└─────────────┘


Not maintained anymore?

Is this project still being maintained?

No, but it still works perfectly fine if you need something like email templates in your project.


Why does azcopy check that each file exist?

Which version of the AzCopy was used?
Note: The version is visible when running AzCopy without any argument
10.14.1
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
azcopy copy https://blob.windows.net/PATH/TO/MAIN/FOLDER/ /DESTINATION/FOLDER --overwrite=false --check-length=false --list-of-files file_list.txt
What problem was encountered?
Azcopy creates a request for each file, and by that slowing the process.
There should be a method of just trying to copy the files and skip if failed.
Scanning log:
2022/06/20 11:53:53 ==> REQUEST/RESPONSE (Try=1/6.406603ms, OpTime=6.514003ms) -- RESPONSE SUCCESSFULLY RECEIVED
   HEAD <FILE_PATH>?timeout=901
   X-Ms-Request-Id: [...]

2022/06/20 11:53:53 ==> REQUEST/RESPONSE (Try=1/10.477304ms, OpTime=48.707522ms) -- RESPONSE SUCCESSFULLY RECEIVED
   HEAD <FILE_PATH>?timeout=901
   X-Ms-Request-Id: [...]
.
.
.

Hi @itihay, this is by design. Knowing the file details like size, metadata, tier helps us schedule blocks in much efficient way.

Hello @nakulkar-msft thank you for the reply. I believe the ability to avoid this could vastly improve the performance when copying many files at once

@nakulkar-msft we are having the same problem copying many files across different regions:
2022/09/16 13:24:49 ==> REQUEST/RESPONSE (Try=1/88.950271ms, OpTime=369.264181ms) -- RESPONSE SUCCESSFULLY RECEIVED
   HEAD <FILE>
   X-Ms-Request-Id: [...]

We use --include-path with the list of files to download. I understand the reasons this is needed. I was wondering if there could be potential improvements here. Example: make a bulk request with multiple file ids to reduce the number of calls.


Unable to install pygaggle

Tried installing on colab notebook, Kaggle notebook, mac conda environment, windows conda environment but not able to install it properly.
pip install -r requirements.txt
conda env create -f environment.yml && conda activate pygaggle.
Following is the issue I am getting, Kindly help me resolve the installation issue.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip

Can you share your colab?

Can you share your colab?

https://colab.research.google.com/drive/1JBNdMRRG1iLDpSoVDZlJ4M4Ol4i14s63?usp=sharing
Here is the Colab link, Kindly let me know if you are able to access it.

I have the same problem here, same error.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

Use Colab's fallback runtime version:
https://medium.com/google-colab/colab-updated-to-python-3-10-27eb02daa162
It should work until mid-May.

Thanks @jayralencar, I was able to install pygaggle in colab with python v3.9.16 using Colab's fallback runtime, without any errors.

Thanks @jayralencar, I was able to install pygaggle in colab with python v3.9.16 using Colab's fallback runtime, without any errors.

I think it's better to keep this issue open. The problem may return in mid-May when the Colab fallback runtime version stops working.

It worked, thank you @ronakice.

It works well with the instructions of cloning and running the requirement.txt file but doesn't works with pip installation. It needs to be updated.
@ronakice

pip install pygaggle

Reference: https://pypi.org/project/pygaggle/

I faced the same issue and found a way to install pygaggle correctly on google colab as of the time of posting, here are the steps to make it work:
(Colab notebook here)

Install OpenJDK21

the default version of OpenJDK on Colab's machines is OpenJDK11 and will cause issues when trying to import stuff

Install pyserini<=0.23.0

As per https://github.com/castorini/pygaggle/issues/332 0.23.0 is fine, I actually downgraded to 0.22.1 and it works fine as well
For some reason the download will timeout on colab's machines so you need to increase the timeout limit: --default-timeout=100

Clone the entire repo with the --recursive flag, pip install the requirements.txt file from the pygaggle folder, and then install the library directly from the pygaggle folder !pip install pygaggle/ (need to include slash)

It would be nice if we can just pip install pygaggle, but for now this will do


fix: update s3 client in review component

There is an issue when creating a review from the diagram view if no accessKeyId/secretKey are provided in the properties file.

Thanks!


Three parameter formulas in run inference

Hello, I'd like to inquire about the source or basis of the three formulas of  β，β0，σ2 . where can I find them.

have you solved this problem?


use ES6 import/export

and enforce it with eslint

Benefits?

Really easy and future-proof syntax.

Benefits?

I do not see any direct benefit. The only interesting part is porting our code to an import/export pattern that is now part of ECMAScript instead of relying on require that is not part of the language.
BUT we already use things that are not part of the language (like the mighty css loading technique) so this is not true to say we only use standard things :).

Doable, but some require cannot be ported to import for now: decorators, they are placed somewhere in render() to be testable (mockable with rewire).
We can get out of it if we import on top but decorate in render with a simple guard DecoratedRefinementList = DecoratedRefinementList || decorate(RefinementList)

Could you link to an example of a decorator imported inside render? I don't think I get the issue, I had a look at a few widgets and decorators are required at the top of the file.

Sorry this was not in render but in main instantiation: https://github.com/algolia/instantsearch.js/blob/e05cbefd5fdff9e6f2fda869e8aa21194d1de2d4/widgets/menu/menu.js#L49
This weird notation is done to allow unit testing, otherwise the HOC cannot be mocked..

Quick win, doable, we then need to ensure to disallow using require and force import

Mostly done, will be released


Change name of variable to be more accurate

Just a tiny bit of cleanup from #387. This suggested variable rename was missed in the original PR.

oh huh, could have sworn I changed this 🤔  my bad, thanks for the update!

@pzuraq you did PRE_EMBER_MODULE_IMPORTS_VERSION, this is POST_EMBER_MODULE_IMPORTS_VERSION

Ahhh, that was it 😄


Add ec2 host alias

What does this PR do?
Add ec2 host alias.
Motivation
The ec2 hostname is not getting added as a host alias when running kubernetes, resulting in duplicate hosts being detected by things reported directly and being detected with the consul integration.
Additional Notes
Describe your test plan
Run agent, check infrastructure list "also known as" reported includes EC2 hostname.

Hi @adammw - Rick here from the community team.
I've tried to reproduce the original issue but have been unable to do so.  I think this may have been addressed by a change to the frontend.
Can you confirm if this is still an issue for you with the latest agent (without your patch)?

Hi @adammw - Rick here from the community team.
I've tried to reproduce the original issue but have been unable to do so.  I think this may have been addressed by a change to the frontend.
Can you confirm if this is still an issue for you with the latest agent (without your patch)?

I'm going to close this as a stale request.  Please feel free to comment here and we can re-open.

@shermdog @djmitche can confirm this is still present with agent v7.29.0, even if this isn't the right fix for it.
See the screenshot from our infrastructure list:

The kubernetes integration is appending the cluster name to the ec2 host name, which means that it won't actually match with logs/metrics that report from the ec2 host name without the cluster name appended.

THanks!  I've moved it to triage.

@adammw could you file a support ticket for this?  Please describe the issue and reference this PR as background.  I'll close this up for now, but the PR is still here to consider as a solution if necessary.  Thanks!


Remove .rnd use from tests, config, etc.

There are many instances of .rnd file  Most of this can and should be removed:
;g grep --fixed .rnd
.gitignore:/ms/.rnd
CHANGES:  *) In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd"
crypto/rand/randfile.c:#define RFILE ".rnd"
demos/certs/apps/apps.cnf:RANDFILE              = $ENV::HOME/.rnd
demos/certs/ca.cnf:RANDFILE             = $ENV::HOME/.rnd
doc/man1/openssl-ca.pod.in: ./demoCA/.rnd                  - CA random seed information
doc/man1/openssl-req.pod.in: RANDFILE               = $ENV::HOME/.rnd
doc/man3/RAND_load_file.pod:Otherwise, the file is called C<.rnd>, found in platform dependent locations:
doc/man5/config.pod: RANDFILE= ${ENV::HOME}/.rnd
test/CAss.cnf:RANDFILE          = ./.rnd
test/CAssdh.cnf:RANDFILE              = ./.rnd
test/CAssdsa.cnf:RANDFILE              = ./.rnd
test/CAssrsa.cnf:RANDFILE              = ./.rnd
test/CAtsa.cnf:RANDFILE         = ./.rnd
test/P1ss.cnf:RANDFILE          = ./.rnd
test/P2ss.cnf:RANDFILE          = ./.rnd
test/Sssdsa.cnf:RANDFILE              = ./.rnd
test/Sssrsa.cnf:RANDFILE              = ./.rnd
test/Uss.cnf:RANDFILE           = ./.rnd
test/conf_include_test.c:    if (!TEST_ptr(str) || !TEST_str_eq(str, "./.rnd")) {
test/recipes/25-test_req.t:open RND, ">>", ".rnd";
test/recipes/80-test_ssl_old.t:    open RND, ">>", ".rnd";
test/recipes/90-test_includes_data/conf-includes/includes1.cnf:RANDFILE         = ./.rnd
test/smime-certs/ca.cnf:RANDFILE                = $ENV::HOME/.rnd
test/test.cnf:RANDFILE          = ./.rnd

Your wish is my command: see #10436.


Typo fix: Recommanded -> Recommended

I spotted a typo and figured the least I could do is fix it!

Perfect :)