fix: update german translations

PR Checklist
Please check if your PR fulfills the following requirements:

[x ] The commit message follows our guidelines: https://github.com/riccardoperra/codeimage/blob/main/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[x ] Other... Please describe: Update of i18n / german translations

What is the current behavior?

Issue Number: N/A
What is the new behavior?
The new translations are more fluid for german users
Does this PR introduce a breaking change?
[ ] Yes
[x ] No

Other information
Because some of the german words are very long, at least on my screen, some of the labels are partly hidden behind the related inputs / selects. What is the best way to avoid that? Should I insert some hyphens?

Thanks for the PR 😄

Is there a good solution for the long words?

Probably no, the word-break css property could help but It doesn't look good sometimes (for example when it breaks for just 1/2 words)

Yes, that's true. But I found it looking better than if the words are partly hidden. Sadly hyphens is not well supported.

Yes, that's true. But I found it looking better than if the words are partly hidden. Sadly hyphens is not well supported.

Yes, this could be a good solution.
https://github.com/riccardoperra/codeimage/blob/ed9671c2f9e4c56f95e736397bb0cb14277166a7/apps/codeimage/src/components/PropertyEditor/EditorSidebar.css.ts#L81-L95
Didn't try but I think that the display should be block to get the ellipsis working so the vertical align center must be done also with line-height
Also, the padding could be adjusted as 10px to get more space
https://github.com/riccardoperra/codeimage/blob/ed9671c2f9e4c56f95e736397bb0cb14277166a7/apps/codeimage/src/components/PropertyEditor/EditorSidebar.css.ts#L89
You can open a new PR about that 😄


Import or update the vulnerability information problems

Hi，
Documentation:
When you deploy Eclipse Steady using Docker, not only the vulnerability data from project KB is automatically imported, but it is also periodically updated so that any new vulnerabilities are imported automatically into your Eclipse Steady backend.
However, in the course of actual use, I found that there were only 124 vulnerabilities in my backend and 747 in the official library, whether there were problems in automatic updates.
Second, when I use kaybee to add vulnerability information, I don't know how to value the parameter KB_IMPORTER_PATH. I didn't find kb-importer jar file.
Can you help me? Thank you very much！

Hi@serenaponta
Thank you very much for your reply
With your help, I found the address of KB-importer. Jar and successfully obtained the steady.sh file after running the command Kaybee merge. Then when I continued to run the steady.sh file, I reported an error. Return "Please configure the necessary variables in the script and try again"
I found the parameter BACKEND_BUGS_TOKEN in docker/.env and thought it was the value of USER_TOKEN.
I can't find the problem. Can you help me?
In addition, after the above failure, I want to redeploy steady to see if the vulnerability will be uploaded automatically, but there is a problem that the image cannot be found. When I deployed steady before, it was still version 3.2.2. I saw that version 3.2.3 was updated on April 4th. Is it that the image of version 3.2.3 was not updated?
Here is a screenshot of my parameters

Hi @11111821https://github.com/11111821 ,
You correctly used the value of  BACKEND_BUGS_TOKEN to configure the variable USER_TOKEN. By default, steady.sh always  will returns the message "Please configure the necessary variables in the script and try again" to remind the user to configure the variables. The comment just above the echo points out that the echo has to be commented once the variables are configured as follows:
  ## COMMENT OUT THE NEXT LINE AND EDIT THE FOLLOWING LINES
#  echo "Please configure the necessary variables in the script and try again" && exit 1

The alternative is to already set the variables and comment out the line with "echo" in the kaybeeconf.yaml configuration file. In this way the echo will be already commented out for all steady.sh scripts you may generate using the corresponding configuration file.
As mentioned in my previous comment, the images of version 3.2.3 will be released next week. In the meantime, if you want to try again with version 3.2.2 you can set VULAS_RELEASE=3.2.2 in docker/.env. With version 3.2.2 is important to not stop the container until the initial import is complete and the daily cron job may encounter some issues. Sorry for the delay in releasing the new images.
From: sudo @.>
Sent: mercredi 13 avril 2022 05:50
To: eclipse/steady @.>
Cc: PONTA, Serena @.>; Comment @.>
Subject: Re: [eclipse/steady] Import or update the vulnerability information problems (Issue #543)
@.***
Thank you very much for your reply
With your help, I found the address of KB-importer. Jar and successfully obtained the steady.sh file after running the command Kaybee merge. Then when I continued to run the steady.sh file, I reported an error. Return "Please configure the necessary variables in the script and try again"
I found the parameter BACKEND_BUGS_TOKEN in docker/.env and thought it was the value of USER_TOKEN.
I can't find the problem. Can you help me?
In addition, after the above failure, I want to redeploy steady to see if the vulnerability will be uploaded automatically, but there is a problem that the image cannot be found. When I deployed steady before, it was still version 3.2.2. I saw that version 3.2.3 was updated on April 4th. Is it that the image of version 3.2.3 was not updated?
Here is a screenshot of my parameters
[EFCAD90B-104D-4B59-B551-EB34ADD25F2A]https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F57307064%2F163096069-0823a3d8-9ef1-419d-a7d5-d9dcf8a94f82.png&data=04|01|serena.ponta%40sap.com|564364b068f34fd6712f08da1d00b5e1|42f7676cf455423c82f6dc2d99791af7|0|0|637854186139337816|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=BXwUTk5%2BjMu7bphWJCgYoqNZQuO7PDEYUnv%2Faw6%2FC8U%3D&reserved=0
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F57307064%2F163096297-86ad4f16-504b-4c6b-ae07-5c6127cf13fd.png&data=04|01|serena.ponta%40sap.com|564364b068f34fd6712f08da1d00b5e1|42f7676cf455423c82f6dc2d99791af7|0|0|637854186139337816|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=p62jmjJJBJR0PVJuffq8ah%2FIkuZP0FQDc4lXqCdrT4Y%3D&reserved=0

Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feclipse%2Fsteady%2Fissues%2F543%23issuecomment-1097524761&data=04|01|serena.ponta%40sap.com|564364b068f34fd6712f08da1d00b5e1|42f7676cf455423c82f6dc2d99791af7|0|0|637854186139337816|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=QFqN7g9%2F9SIBe9l5ohoai%2F%2FV7rciAnn1N1Ug%2BxLAkLE%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKGJZBHTAZJCWFZZREBOJULVEY77FANCNFSM5TGC356Q&data=04|01|serena.ponta%40sap.com|564364b068f34fd6712f08da1d00b5e1|42f7676cf455423c82f6dc2d99791af7|0|0|637854186139337816|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=5Tp1IkEy4d7%2B2utReelXfmiJdJv0RKVdisBqJnTAr2w%3D&reserved=0.
You are receiving this because you commented.Message ID<EMAIL_ADDRESS>

Hi， @serenaponta
In the afternoon, I redeployed steady-3.2.2. At this time, the vulnerability information can be imported to the back end. Although the speed is very slow, it is feasible! I look forward to the release of steady-3.2.3, and thank you very much for your detailed reply!

@11111821, we just released steady 3.2.4 and published the corresponding docker images. In particular it contains some improvements to make kb-importer restart in case it was stopped before the initialization was done and fixes an issue with the cron job to keep the vulnerability database up to date.
The performance improvement is still not part of release 3.2.4 and it's work in progress (#537)

hi @henrikplate Okay, no problem


Support for wildcards on tableToIgnore / columnToIgnore

Would be nice if the code supported regex-based table/column ignore. We have tables that are generated with a prefix followed by some hash (_tmp_1477937742941_0dbe9593_J as an example). Would be nice to be able to ignore all "tmp%" tables when doing comparisons.

Nice use case!
We actually have a PR #35 open which enables this functionality: https://github.com/DBDiff/DBDiff/pull/35. Feel free to give it a test or to add the specific commits into your local version of DBDiff.
I do expect it may be some months before we're ready to merge this in!


Question about building Turi on 10.13.5

Hi,
I was following the guide for building Turi, but got some compilation errors on 10.13.5 using Xcode 9.4.
Errors (warnings removed):
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:256:205: error: array parameter is missing a nullability type
      specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness-on-arrays]
typedef void (*CVPixelBufferReleasePlanarBytesCallback)( void * CV_NULLABLE releaseRefCon, const void * CV_NULLABLE dataPtr, size_t dataSize, size_t numberOfPlanes, const void * CV_NULLABLE planeAddresses[] );
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:286:40: error: array parameter is missing a nullability type
      specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness-on-arrays]
    void * CV_NULLABLE planeBaseAddress[],
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:287:22: error: array parameter is missing a nullability type
      specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness-on-arrays]
    size_t planeWidth[],
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:288:23: error: array parameter is missing a nullability type
      specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness-on-arrays]
    size_t planeHeight[],
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:289:28: error: array parameter is missing a nullability type
      specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness-on-arrays]
    size_t planeBytesPerRow[],

78 warnings and 5 errors generated.
make[2]: *** [src/toolkits/image_deep_feature_extractor/CMakeFiles/image_deep_feature_extractor.dir/mlmodel_image_feature_extractor.mm.o] Error 1
make[1]: *** [src/toolkits/image_deep_feature_extractor/CMakeFiles/image_deep_feature_extractor.dir/all] Error 2

Clang:
Clang --version:
Apple LLVM version 9.1.0 (clang-902.0.30)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Any ideas what am I doing wrong?

Your problem may be answered here : https://stackoverflow.com/questions/37691049/xcode-compile-flag-to-supress-nullability-warnings-not-working
Try to disable nullability-completeness-on-arrays.

@avlaskin Sorry that you are having build issues on 10.13.5. I think @mdenty is onto what is happening, which is that we are using strict compilation flags that turn build warnings into build errors. This is great for keeping your code in good shape and finding bugs, but can also reduce the chance of a successful build. I will see if I can reproduce this today.

This is strange. It looks like Core Video adds nullability only if the environment supports it. This is determined in CoreVideo.framework/Versions/A/Headers/CVBase.h:
#if (TARGET_OS_IPHONE || TARGET_OS_MAC) && defined(__has_feature) && __has_feature(nullability)
    #define COREVIDEO_DECLARE_NULLABILITY 1
#endif

For some reason, this #if must be evaluating to false on @avlaskin's environment, while still complaining that nullability is missing (so the environment obviously supports nullability).

Open question: Do we still expect latest master to build on Xcode 9 (as of the 5.0b1 release), or do we now require Xcode 10? If the latter, let's document it in the build requirements. Either way, let's make sure that:

This issue won't repro on 4.x branches with Xcode 9
This issue won't repro on 5.x branches/current master with Xcode 10

And if this issue only repros on Xcode 9 on latest master, that may be a won't fix at this point. @nickjong, @hoytak, @gustavla, what are your thoughts on this? I am thinking it makes sense to restrict building to the latest Xcode (since that's the only build environment most of us are using), which should also work on the previous OS (so Xcode 10 on 10.13 should still work).

Since Xcode 10 is still a beta, I would say no.
Even if we decide to support only latest Xcode - I wouldn't count beta versions in this definition.
Once 10.14 Mojave and Xcode 10 are officially release - we can stop supporting Xcode 9 (IMHO).

Looking into this now.

@gustavla, here is how it is defined on 10.13.5:
#if (TARGET_OS_IPHONE || TARGET_OS_MAC) && defined(__has_feature) && __has_feature(nullability)
	#define COREVIDEO_DECLARE_NULLABILITY 1
#endif

@avlaskin That's strange! Then I don't understand why it's complaining that it is not getting nullability declarations. Can you do this around the same place?
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
#pragma message("CV_NULLABILITY " STR(CV_NULLABILITY))

What does it say?

CoreVideo.framework/Headers/CVPixelBuffer.h:32:9: warning: CV_NULLABILITY CV_NULLABILITY
      [-W#pragma-messages]
#pragma message("CV_NULLABILITY " STR(CV_NULLABILITY))

And imho you wanted to check these: CV_NULLABLE :
warning: CV_NULLABLE _Nullable
      [-W#pragma-messages]
#pragma message("CV_NULLABLE " STR(CV_NULLABLE))

Which essentially means that it is defined in the expected way. In fact compiler seems complaining about different part of declaration. I know this is too wild, but I got it compiled using this modification (additions are in bold):
typedef void (*CVPixelBufferReleasePlanarBytesCallback)( void * CV_NULLABLE releaseRefCon, const void * CV_NULLABLE dataPtr, size_t dataSize, size_t numberOfPlanes, const void * CV_NULLABLE planeAddresses[**CV_NULLABLE**] );

CV_EXPORT CVReturn CVPixelBufferCreateWithPlanarBytes(
    CFAllocatorRef CV_NULLABLE allocator,
    size_t width,
    size_t height,
    OSType pixelFormatType,
    void * CV_NULLABLE dataPtr, // pass a pointer to a plane descriptor block, or NULL
    size_t dataSize, // pass size if planes are contiguous, NULL if not
    size_t numberOfPlanes,
    void * CV_NULLABLE planeBaseAddress[**CV_NULLABLE**],
    size_t planeWidth[**CV_NULLABLE**],
    size_t planeHeight[**CV_NULLABLE**],
    size_t planeBytesPerRow[**CV_NULLABLE**],
    ...

@avlaskin That's some really great debugging, thanks!
You are right, it's only the arrays with [] it's complaining about and not the pointers with *. I had never seen the syntax for where to place the nullability in this setting before, but it looks like you are right that you place it inside the empty brackets. This alone suggests that these are genuinely missing from the CVPixelBuffer.h. Basically, it looks like it's complying with nullability except for -Wnullability-completeness-on-arrays.
However, I'm not sure how to reconcile this with the fact that I can't seem to repro this. If we can confirm this with a second repro, we can probably just add an well-placed exception for -Wnullability-completeness-on-arrays. However, it still feels like something is off here.

@gustavla This repros for me on macOS 10.13.5 with Xcode 9.4. I'm working on a fix.

Pleasure to help, guys. Our iMac Pro has huge GPU inside and it's utilisation so far was 3%(mainly for text rendering). I am sure, it would be a big win for many people around the globe to make a use of it using Turi Create.

It looks like #675 may resolve this issue, too. My 10.13 partition is still on 10.13.4 and Xcode 9.3, but I cannot reproduce this issue after that fix.

I have a fix for this.

@znation Thanks for clarifiing that. Because the read me in section GPU support states:
"Turi Create automatically utilizes Mac GPUs for the following tasks (requires macOS 10.13+):"
However in section Version 5.0 it says :
"GPU Acceleration on Macs (10.14+)"
So it was not quite clear that Turi creat requires 10.14.

Thanks for pointing that out @avlaskin. I updated the readme in https://github.com/apple/turicreate/pull/727 -- to clarify, GPU support on macOS requires 10.14+, but Turi Create will still work on 10.12 and 10.13, and fall back to CPU for those tasks.

For me the the build problem described here is still open using Xcode 10b2 on OSX 10.14b2.
I have to add target_compile_options(image_deep_feature_extractor PUBLIC "-Wno-nullability-completeness") to the image_deep_feature_extractor make list to get this library build.

@b-straub What's the commit hash you're on (where you can still repro this build issue)? I'll sync to that commit and investigate.

Note also that this last round of build fixes may require you to run ./configure --cleanup on an existing checkout, or otherwise to invalidate the appropriate CMakeCache.txt

I usually run git clean -f -d -x after making sure my repo doesn't contain any non-committed files I care about, to clean out the repo back to a fresh clone state. That's worth a try after syncing forward with any CMakeLists.txt changes and hitting build failures. @b-straub if the issue still repros for you after cleaning out the CMake cache, let us know what commit you're on and we'll try to repro it.

Indeed after cleaning all the build is working.

Good to know, thanks @b-straub! Sounds like we can leave this issue closed.


investigate audio headers to see if they have duration

I don't think we can do this (at least not consistently).  Here's the possible approaches:

The headers might report the content-length, but that length seems to be in bytes.  The challenge is in converting from bytes to time.  That formula is dependent on bit-rate of the audio, and some audio files have variable bit-rates.  You can't get bit rate from the headers, you have to look into the file (and once you do that you can probably just get the length).

The above doesn't apply if the audio is streaming.  This example was useful for understanding why:
https://musicpartners.sonos.com/node/465

This is old, but seems useful if we ever want to pull the audio settings out to calculate duration.  (We don't.)
https://stackoverflow.com/questions/624741/how-do-i-get-the-length-of-an-mp3-from-its-url


Create python-package.yml

This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
  fail-fast: false
  matrix:
    python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
  uses: actions/setup-python@v3
  with:
    python-version: ${{ matrix.python-version }}
- name: Install dependencies
  run: |
    python -m pip install --upgrade pip
    python -m pip install flake8 pytest
    if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
  run: |
    # stop the build if there are Python syntax errors or undefined names
    flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
    # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
    flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
  run: |
    pytest

Closing as the PR changes add an Ethereum address into multiple files, some weird .exe and a bunch of copy-pasted licences.


Make better use of logging

We should add some better logging into wagtail.
Some examples:

INFO logs when pages are created/published/edited/deleted/etc
WARNING logs when there are permission issues, bad uploaded files, etc

This could really help people diagnose issues with their sites. And it would've been very useful if we had this on RCA on a couple of occasions in the past.

I'm thinking the logger names for the whole admin interface should be prefixed with wagtail.admin.
Eg. wagtail.admin.pages, wagtail.admin.images, etc.
Loggers for the internals of a particular module would be named after the module.
eg. wagtail.core, wagtail.images, etc.
Any ideas/comments?

Sounds good to me!

Any hope of this happening? :-) Trying to find out why moderation emails aren't going through, but there doesn't seem to be a way to figure that out in retrospect.

Not sure if this can be closed now that we have extensive logging / page history and auditing features.
https://docs.wagtail.org/en/stable/extending/audit_log.html

Yep, closing. While @kaedroho does specify that this refers to Python logging to the console / logfiles as distinct from the database, I believe the audit log serves this purpose for 'INFO' level logging. That just leaves 'warning' logs, and since the list suggested here is open-ended, this doesn't count as an actionable task that can ever be considered 'complete'.
If anyone still feels there are places where Wagtail is still lacking adequate logging, I'd suggest they open a new issue identifying specific conditions that should be logged.


Added MLFlowLogger

@nik-fedorov @deepslug
it's ready for review!
the previous related PR (merged): https://github.com/OML-Team/open-metric-learning/pull/516

Great! Thank you!


a role can have multiple children but only one direct parent

I have a problem with the role hierarchy, a role can have multiple children but only one direct parent.
However, I need two roles, each one of them must have an identical role, but it is not possible.
Help me

Hello,
I'm confused. You need two roles, each one of them must have one role?
What does it mean?

On Nov 13, 2018, at 9:38 AM, P-A<EMAIL_ADDRESS>wrote:
I have a problem with the role hierarchy, a role can have multiple children but only one direct parent.
However, I need two roles, each one of them must have an identical role, but it is not possible.
Help me
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/OWASP/rbac/issues/109, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVjWxXQTHf8YmbzWsfHwsp1YR5MWnFiks5uutlsgaJpZM4Ybyd8.

My question was to know if it was possible for a role to have multiple parents.
Let me explain, I'm doing 'global' roles that contain sub-roles that contain permissions.
I want these sub-roles to have one or more global roles as parent.
I understood that this relationship was at the time of creation of a role and therefore it is not possible to change it unless you tell me otherwise.
Excuse my English.


Test different versions of tabulate

Add Travis jobs for testing minimum supported versions
and testing against Debian sid packages, specifically
tabulate 0.7.5, which is also included in Ubuntu wily+.
Also restore testing of tabulate 0.7.6dev from #21.

[Current coverage][cc-pull] is 98.49%

Merging [#25][cc-pull] into [master][cc-base-branch] will increase coverage by 0.60%

@@             master        #25   diff @@
==========================================
  Files             8          8
  Lines           331        331
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            324        326     +2
+ Misses            7          5     -2
  Partials          0          0

File tests/fixtures.py (not in diff) was modified. more

Misses -2
Partials 0
Hits +2

Powered by Codecov. Last updated by [bf2fd0e...042f3dd][cc-compare]
[cc-base-branch]: https://codecov.io/gh/pyexcel/pyexcel-text/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/pyexcel/pyexcel-text/compare/bf2fd0e6de7ff1f96a1e2438e19f37af56de732d...042f3ddacb84f105451bf9c899945d137cdc4f19
[cc-pull]: https://codecov.io/gh/pyexcel/pyexcel-text/pull/25?src=pr

Thanks


Dance Academy website

Dance Academy website
I would like to add a project dance academy website in which you can submit a form and can enroll in the program where you can practise your dance skills and learn how to dance from best mentors

[x] Html
[x] CSS
[x] JavaScript
[x] NodeJs

/assign


Feature Request: Font Awesome 5.0

Feature Request
A feature request: upgrade support to the "free" version of Font Awesome 5.x. Thanks for the skin... it is great.

Love to upgrade, but this will require some work. What is at issue, open source version vs pro (paid) and the icons available to the open source. Some changed, some did not, some have a different call to render them.

Maybe better to stick with Fork-Awesome?:
https://github.com/ForkAwesome/Fork-Awesome

We implemented a temporary fix for this by creating a customizations folder in the MW directory, then placing the FontAwesome5 basic (free) set items we downloaded there, then added the following workaround in LocalSettings.php:
Load Theme Customizations
$wgResourceModules['ourtheme-customizations'] = array(
'styles' => "/fontawesome-5-8-2/css/all.css", // Stylesheet to be loaded in all skins
'scripts' => "", // Script file to be loaded in all skins
'localBasePath' => "$IP/customizations/",
'remoteBasePath' => "$wgScriptPath/customizations/"
);
function efCustomBeforePageDisplay( &$out, &$skin ) {
$out->addModules( array( 'ourtheme-customizations' ) );
}
Not an ideal way to do it but it gets the job done as a temporary workaround. :)


[luaPackages.luasystem] Darwin install fails due to unecessary tight coupling with glibc

Describe the bug
Installing the Lua module/package of busted fails on OSX with a notice stating it cannot be installed on darwin architecture.
This is due to a tight coupling in the nix derivation for luasystem to glibc - this is performed in this override specification lua-modules/overrides.nix#L228. Unfortunately, glibc is not available on darwin so this breaks the build for OSX.
To Reproduce
Steps to reproduce the behavior:

Specify (pkgs.lua.withPackages(ps: with ps; [ luasystem ]))
Attempt to build/nix-shell/rebuild on Darwin

Expected behavior
busted is built and installed.
Additional context
To workaround this I have the following shell.nix to get busted to install:
let
  pkgs = import (
    builtins.fetchTarball {
      name = "nix-master-25fb1e59d6";
      url = https://github.com/NixOS/nixpkgs/archive/25fb1e59d61b735f2e7c759c37feb449ce7eb8ae.tar.gz;
      sha256 = "0bxb2qlp9cf1g78pa2mqllp7d0s0n8ypr7m39q3rl76adlmkr8qa";
    }
  ) {};
  # remove the glibc override configured in https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/lua-modules/overrides.nix#L228
  luaSystemNoGlibc = pkgs.luaPackages.luasystem.override({
    buildInputs = [];
  });
  # tie the custom luasystem into the busted dependencies specification
  bustedNoGlibc = with pkgs; luaPackages.busted.override({
    propagatedBuildInputs = with luaPackages; [ lua lua_cliargs luafilesystem luaSystemNoGlibc dkjson say luassert lua-term penlight mediator_lua ];
  });
  # ignore collisions between versions of lua - they look to be the same - not sure why it happens
  luaBusted = (pkgs.lua.withPackages(ps: with ps; [ bustedNoGlibc ])).override(args: {
    ignoreCollisions = true;
  });
in
  with pkgs;
  stdenv.mkDerivation {
    name = "nix-setup";
    buildInputs = [
      bashInteractive
      # install the custom busted library
      luaBusted
    ];
  }

Metadata

system: "x86_64-darwin"
host os: Darwin 18.7.0, macOS 10.14.6
multi-user?: no
sandbox: no
version: nix-env (Nix) 2.3.1
channels(simon): "darwin, home-manager-19.09, nixpkgs-20.03pre197736.91d5b3f07d2"
nixpkgs: /Users/simon/.nix-defexpr/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
  luaPackages.luasystem

You haven't mentioned the error

@Infinisil I thought that this bit would be enough, sorry.

Installing the Lua module/package of busted fails on OSX with a notice stating it cannot be installed on darwin architecture.

The exact error message issued is:
~/.nixpkgs on  more-system-defaults-more-lua [!?] via impure took 1m38s
└─λ. nix-shell --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'nix-setup' at /Users/simon/.nixpkgs/shell.nix:26:5:
while evaluating the attribute 'passAsFile' of the derivation 'lua-5.2.4-env' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating 'requiredLuaModules' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/top-level/lua-packages.nix:35:24, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/development/interpreters/lua-5/wrapper.nix:13:14:
while evaluating 'unique' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:643:12, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/top-level/lua-packages.nix:37:6:
while evaluating 'requiredLuaModules' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/top-level/lua-packages.nix:35:24, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/top-level/lua-packages.nix:45:30:
while evaluating 'unique' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:643:12, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/top-level/lua-packages.nix:37:6:
while evaluating 'unique' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:643:12, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:649:17:
while evaluating anonymous function at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:152:16, called from undefined position:
while evaluating the attribute '__impureHostDeps' of the derivation 'lua5.2-luasystem-0.2.1-0' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/development/interpreters/lua-5/build-lua-package.nix:144:3:
while evaluating 'unique' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:643:12, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/stdenv/generic/make-derivation.nix:174:9:
while evaluating anonymous function at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/stdenv/generic/make-derivation.nix:174:36, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/stdenv/generic/make-derivation.nix:174:21:
while evaluating 'chooseDevOutputs' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/attrsets.nix:474:22, called from undefined position:
while evaluating 'unique' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:643:12, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/development/interpreters/lua-5/build-lua-package.nix:54:18:
while evaluating 'unique' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:643:12, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:649:17:
while evaluating anonymous function at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/lib/lists.nix:152:16, called from undefined position:
while evaluating the attribute 'handled' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/stdenv/generic/check-meta.nix:251:7:
while evaluating 'handleEvalIssue' at /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/stdenv/generic/check-meta.nix:147:38, called from /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/stdenv/generic/check-meta.nix:252:14:
Package ‘glibc-2.27’ in /nix/store/afd08slyr6pwgqrf1r9jyd6nbqbvai2a-nix-master-25fb1e59d6/pkgs/development/libraries/glibc/default.nix:129 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

The a minimal nix-shell derivation that triggers this is:
let
  pkgs = import (
    builtins.fetchTarball {
      name = "nix-master-25fb1e59d6";
      url = https://github.com/NixOS/nixpkgs/archive/25fb1e59d61b735f2e7c759c37feb449ce7eb8ae.tar.gz;
      sha256 = "0bxb2qlp9cf1g78pa2mqllp7d0s0n8ypr7m39q3rl76adlmkr8qa";
    }
  ) {};
in
  with pkgs;
  stdenv.mkDerivation {
    name = "nix-setup";
    buildInputs = [
      bashInteractive
      (lua.withPackages(ps: with ps; [ busted ]))
    ];
  }


Typos in files

This PR fixes several minor typos.

@microsoft-github-policy-service agree

@aw350m33d please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree


Tutorials

This'll be nice. Having a dedicated section for tutorials seems like a good idea.

Let's check this out on CI. 👍


Translation and commentary selection not working

Selecting a different translation or commentary doesn't change it on the verse details page.
https://user-images.githubusercontent.com/32533774/139717761-18ec4716-6200-47ad-abae-a0bc3c731eed.mp4

Done.


what does the size for seq_len, label_len, and pred_len represent?

in the file data_loader.py
what does the numbers in "size" represent? I asked ChatGPT and copilot and this is the best I could come up with:
        # size: 512, 48, 96
        # self.seq_len (512): This is the length of the input sequences to the model.
        #   In the context of time series forecasting, this would be the number of time steps from the past data that
        #   the model will use to make its predictions.
        # self.label_len (48): This is the length of the label sequences. In time series forecasting,
        #   this could be the number of time steps that the model is trained to predict ahead in the future.
        # self.pred_len (96): This is the length of the prediction sequences. This could be the number of time steps that
        #   the model is actually used to predict ahead in the future when it is deployed. This value can be different
        #   from self.label_len depending on the specific forecasting strategy used. For example, in some cases,
        #   the model might be trained to predict only the next few steps, but then used to make predictions further
        #   into the future by feeding its own predictions back as input.

Is that accurate?

label_len

Your understanding is correct, but currently, Time-LLM only uses seq_len and pred_len and does not use label_len。

Your understanding is correct, but currently, Time-LLM only uses seq_len and pred_len and does not use label_len。
label_len is actually used in data_loader.py

Moreover, label_len is set to different values (48, 720) in various experiments in TimeLLM_Traffic.sh. Is this correct?


Resample raise NotImplementedError for freq > day

Quick fix until #726 can be properly resolved.

If we can merge #728 before the release, then this can be closed without merging.

No longer needed, as #728 was merged. Closing.


OPCT-6 - fix/rbac: manage custom ServiceAccount and roles

https://issues.redhat.com/browse/OPCT-6
This PR creates custom permissions to be used on Sonobuoy's service accounts.
The default sonobuoy's permissions are crashing the cluster upgrade feature (implemented on #33), described on OPCT-6. The goal is to avoid using system groups to not fall into pod admissions security admissions introduced on kube 1.24 (4.11).
The groups system:authenticated and system:serviceaccounts previously used were crashing the upgrade. Ref KCS 5875621
$ oc adm policy who-can use scc anyuid | grep serviceaccounts
        system:serviceaccounts

Tests checklist:

[x] Run a full test on regular mode on baseline platform (AWS) and check the results. Expected: no failures increased when comparing with latest baseline results payload
[x] Run the full test on upgrade feature (SPLAT-651/#33) to validate full functional in both modes (regular and upgrade).

Converted to draft as the results with this RBAC seems not to be good: https://issues.redhat.com/browse/SPLAT-874?focusedCommentId=21301414&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-21301414

/hold

/unhold
/lgtm
This lgtm so far but I'll run a quick test before approving. @mtulio can you remove draft state from this PR?

@bostrt I am unsure if we will keep using the approach on this PR (system's SCC) or this one (custom SCC). I am testing the second approach on the upgrade PR #33 .
I think we need to run more tests and collect the results more broadly tests before merging this.
Please update here with your results, I will do once I have from upgrade feature.
/hold

@bostrt this PR is ready for review and validation. It is the same RBAC changes used on #33 .

/lgtm
I have a test running in AWS right now and if it looks good, I'll approve.

@bostrt I ran tests onto 4.11 (regular mode) and got good results, similar failures ratio as v0.2.1+ (less than 1%). I am ok to a final review, then backport to v0.2.
$ echo $CLUSTER
opct-411pr34
$ ./.$CLUSTER-openshift-provider-cert results .$CLUSTER/clusters/$CLUSTER/opct/*.tar.gz  |egrep ^'(Plugin|Run)' -A 5
Plugin: 99-openshift-artifacts-collector
Status: passed
Total: 3
Passed: 3
Failed: 0
Skipped: 0
--
Plugin: 10-openshift-kube-conformance
Status: failed
Total: 662
Passed: 657
Failed: 5
Skipped: 0
--
Plugin: 20-openshift-conformance-validated
Status: failed
Total: 3805
Passed: 1717
Failed: 38
Skipped: 2050
--
Run Details:
API Server version: v1.24.6+5658434
Node health: 7/7 (100%)
Pods health: 262/262 (100%)

$ bc <<< "scale=4; (5/662)*100"
.7500
$ bc <<< "scale=4; (38/3805)*100"
.9900

/unhold

@bostrt I am thinking that we don't need to backport this PR to v0.2 for the following reasons:

4.12 is not supported on v0.2
upgrade feature is not supported on v0.2

Let me know your thoughts.

@mtulio I was originally thinking we could separate the RBAC work from the upgrade work in 0.3 but if you want to work on stabilizing 0.2 that works for me.

@bostrt yes, we are working to stabilize v0.3/upgrades, but I was thinking in scenarios if we need it on the older releases. But nothing came to my mind.
I am ok to merge here and not back port to v0.2.

I am ok to merge here and not back port to v0.2.

This works for me too. If anything comes up, we can always backport.

/lgtm
/approve


Azure Spring App no longer starts without snakeyaml dependency

Describe the bug
We get an IllegalStateException during startup and the service fails to start, however the same code and config was able to start not so long ago.
This regression is probably caused by the recent addition of two configuration files which are automatically added by Azure to SPRING_CONFIG_ADDITIONAL_LOCATION environment variable (etc/azure-spring-cloud/context/azure-spring-apps.yml and /etc/azure-spring-cloud/context/azure-spring-apps-deployment.yml)
java.lang.IllegalStateException: Attempted to load Config resource 'file [/etc/azure-spring-cloud/context/azure-spring-apps-deployment.yml]' via location 'file:/etc/azure-spring-cloud/context/azure-spring-apps-deployment.yml' but snakeyaml was not found on the classpath
To Reproduce
Deploy a SpringBoot application without the org.yaml::snakeyaml dependency (i.e. by excluding it)
Expected behavior
A service does not require snakeyaml as dependency.
Could you not as an alternative define the configuration using good old properties files? Spring can process properties files without any additional dependencies.

We are changing it to properties file instead of yaml file.


fix(linux): don't share UserContentManager between webviews (dev)

Fixes #1308
Init scripts are registered to the UserContentManager, so if it is shared between WebViews, the init scripts conflict. IPC handlers are also tied to the UserContentManager. Use a unique UserContentManager for each WebView instead of sharing it across the WebContext.
Corresponding PR on the v0.24 branch: #1325

Note: This doesn't completely fix opening multiple windows with TAURI_WEBVIEW_AUTOMATION=true in Tauri, because it tries to register the tauri:// custom protocol for each webview separately.


Not Logging Data After Recent Update?

I've confirmed the INARA API key, started Elite Log Agent prior to launching ED and seen INARA API activity when doing the validate API key, but no other activity / data is being logged.  I see no further API activity logged.  Data would log / update as recently as March 9, the last time I had played ED.  I'm running Elite Log Agent v<IP_ADDRESS>9 on an up to date Windows 10 PC with AMD CPU / Graphics.

I also downloaded and compiled v 2 and I get the same result. see screen grab

s

Good day. Can you post your log (or email it to me)?

I emailed you the logs form the EliteLogAgent.  But I have remedied the issue.  I deleted every file from the %USERPROFILE%\Saved Games\Frontier Developments\Elite Dangerous directory and now the log agent is picking up events like normal.


we should treat the incorrect pseudo-classes as if they do not exist

These are correctly handled in #410


Why shouldn't we use PIN24 as the NSS pin?

https://github.com/japaric/mfrc522/blob/40ffdb4e0f14cc47c3585e796f0d63218cdf7916/examples/rpi.rs#L5

I do not get your advice: Why is it important not to use PIN24 as NSS pin?

PIN24 is a Chip Select pin triggered by the SPI driver itself. With SPI, whenever you want to exchange data, you have to signal to a chip you want to talk to it through this.
I assume there is something wrong or broken somewhere with the standard behavior of this pin - if I try using pin 24 as Chip Select (effectively ignoring whatever pin I gave this library, and instead using the automatic chip select), this library stops working.

I fixed this a long time ago in https://github.com/japaric/mfrc522/pull/10, by the way.


CLOUD-42448: Add OpenStack into Integration test

@biharitomi pls review

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1684/


Remove TimedSwitch as this is some legacy code for convering PSRs

comment from @themandalore

so a while ago we had to switch what some PSR's meant.  We had an update date and as long as you updated the miner it would handle the switch for you.  That said, we can remove all the "before's" now and probably even the timedSwitch as I doubt we'll use that method again

duplicate of https://github.com/tellor-io/TellorMiner/issues/182


Staff Page - Enhancements

Order Positions based on Heiarchy
The correct order is as follows

As a (type of user)
I want (goal)
so that (reason/ why/ value)
Acceptance Criteria
Scenario 1:
GIVEN ... (you or your condition)
WHEN ... (what you do)
THEN ... (what you see)
Scenario 2:
xxxxxx
Validation Rules?
(If yes, list here)
Screenshot
(Link above will always be the most up-to-date version.)

The staff response already has "position" as a nested object in which you will see a field called "sort_order" which can be used to get this done


Isort I001 conflicts with pylint C0411

Take the following code block as an example:
import numpy as np
from lamdacust.handler import lambda_handler
from moto import mock_s3, mock_sqs

Here lamdacust is the user defined module
The above order is valid according to ruff's rule I001, but not according to pylint C0411 which says to follow the order of standard imports first, then third-party libraries, then local imports.
Ruff version: 0.0.269
Editor: VSCode

I'm guessing that Ruff isn't picking up lambdacust as first-party. Can you share your directory structure and configuration file? E.g., are you using a src directory or something like that?

No not using src
Here's the structure
.
├── lamdacust
│   ├── handler.py
│   ├── __init__.py
│   └── loaders.py
├── poetry.lock
├── pyproject.toml
├── README.md
└── tests
    ├── data
    │   └── text.txt
    ├── __init__.py
    ├── pyproject.toml
    └── test_handler.py

The config I addopted from somewhere not sure where from
[tool.poetry]
name = "lamdacust"
version = "0.1.0"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
numpy = "^1.24.3"
pillow = "^9.5.0"

[tool.poetry.group.dev.dependencies]
boto3 = "^1.26.135"
botocore = "^1.29.135"
jupyter = "^1.0.0"
boto3-stubs = {version = "^1.26.135", extras = ["s3", "sqs"]}
moto = {extras = ["s3"], version = "^4.1.9"}
pytest = "^7.3.1"
pytest-cov = "^4.0.0"
ruff = "*"
ruff-lsp = "*"
pylint = "^2.17.4"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.black]
skip-string-normalization = 1

[tool.ruff]
# https://beta.ruff.rs/docs/rules/
select = ["ALL"]

[tool.black]
skip-string-normalization = 1

[tool.ruff]
# https://beta.ruff.rs/docs/rules/
select = ["ALL"]

ignore = ["INP001", # implicit-namespace-package
          "ANN",    # type annotations
          "T20",    # flake8-print (warns when there are print statements)
          "ARG001", # unused-argument

          "D212", # See https://github.com/charliermarsh/ruff/issues/2281

          "D211", # See https://github.com/charliermarsh/ruff/issues/2281
]

# Exclude a variety of commonly ignored directories.
exclude = [
    ".bzr",
    ".direnv",
    ".eggs",
    ".git",
    ".hg",
    ".mypy_cache",
    ".nox",
    ".pants.d",
    ".ruff_cache",
    ".svn",
    ".tox",
    ".venv",
    "__pypackages__",
    "_build",
    "buck-out",
    "build",
    "dist",
    "node_modules",
    "venv",
]
per-file-ignores = {}

# Same as black.
line-length = 88

# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

# Assume Python 3.10.
target-version = "py310"

# Enumerate all fixed violations.
show-fixes = true
# Show source code for each violation.
show-source = true

# This is how you tell Q000 errors to prefer single quotes
[tool.ruff.flake8-quotes]
inline-quotes = "single"

[tool.ruff.pydocstyle]
convention = "numpy"  # Or "numpy", or "pep257" or "google"

For the tests I disabled S101 but other than that that's the entire config

This works correctly for me:
❯ cargo run -p ruff_cli -- check bar.py --select I -n --fix
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
     Running `/Users/crmarsh/workspace/staging/target/debug/ruff check bar.py --select I -n --fix`

Fixed 1 error:
- bar.py:
    1 × I001 (unsorted-imports)

Found 1 error (1 fixed, 0 remaining)

And bar.py now contains:
import numpy as np
from moto import mock_s3, mock_sqs

from lamdacust.handler import lambda_handler

I'm happy to take another look if you're able to produce a repro, maybe something that works with --isolated?

OK I figured it out. It works for code inside that module or at root level
The issue was coming from tests, maybe because it assumed it as a root module because of the nested pyproject.toml.
This was the entire content in it
[tool.ruff]
extend = "../pyproject.toml"
ignore = ["S101"]

Seems similar to #4674

Yeah I think it's roughly the same issue. You could add src = ["../"] to the nested configuration, or src= ["."] to the top-level configuration -- I think either would solve the problem.

Yeah that fixed it. Thanks,


Small change to character example to allow rebinding actions

Big shout out to Hayato for finding and fixing this one.
You can't rebind keys correctly without changing the character example cpp as follows:
Index: Plugins/AdvancedLocomotion/Source/ALSExtras/Private/AlsCharacterExample.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/Plugins/AdvancedLocomotion/Source/ALSExtras/Private/AlsCharacterExample.cpp b/Plugins/AdvancedLocomotion/Source/ALSExtras/Private/AlsCharacterExample.cpp
--- a/Plugins/AdvancedLocomotion/Source/ALSExtras/Private/AlsCharacterExample.cpp
+++ b/Plugins/AdvancedLocomotion/Source/ALSExtras/Private/AlsCharacterExample.cpp    (date<PHONE_NUMBER>013)
@@ -37,7 +37,9 @@
auto* InputSubsystem{ULocalPlayer::GetSubsystem(NewPlayer->GetLocalPlayer())};
if (IsValid(InputSubsystem))
{
remove >            InputSubsystem->AddMappingContext(InputMappingContext, 0);
FModifyContextOptions Options;
Options.bNotifyUserSettings = true;
InputSubsystem->AddMappingContext(InputMappingContext, 0, Options);
}
}

Please provide a properly formatted code sample.

Please provide a properly formatted code sample.

Sorry, I'm no programmer by any stretch.
In the AlsCharacterExample.cpp, you just need to pass the Notify User Settings flag as true in order to be able to rebind the keys.
The follow line was removed:
InputSubsystem->AddMappingContext(InputMappingContext, 0);
This was added in it's place:
FModifyContextOptions Options; Options.bNotifyUserSettings = true; InputSubsystem->AddMappingContext(InputMappingContext, 0, Options);

Fixed in b397900fcb59412d63e316bfd7b94963b6135595.

Thank you for the quick fixes!


Role assignment based on reaction WIP

:space_invader: WIP DO NOT MERGE :space_invader:

Could enable overwriting a welcome message with a new one, as a single command, instead of Delete then Create, but that's not a necessity.
Also, where does the welcome message body come from?


[Publisher] Remove 'No' from modal actions in API definition error messages

Description:
In API definition section error messages which modal contains "No" as an action which is not required.

Suggested Labels:
Improvement
Affected Product Version:
2.2.0

Fixed in the latest pack(13/06)


Feature Request - Webhooks

Thinking Rancher should support Web hooks in the API, this would be ideal to take advantage of Docker Hub automated builds and give a CD type of a feel when deploying containers built by the DockerHub or other CI product.

:+1:

Do you want Rancher to be the consumer of webhooks or publish webhooks? What events in Rancher do you think should have webhooks?

For my purposes, Rancher would be the consumer of webhooks, updating containers when triggered with the webhook.  Surely there are times when it would be good for rancher to publish webhooks, but I cannot think of one.  I bet someone will, though!

:+1:

:+1:

+1 Tutum does this to great effect, very easily. https://support.tutum.co/support/solutions/articles/5000513815-triggers

:+1:

See #52.

:+1:

:+1:

:+1:

I would say that Rancher should both publish and consume Webhooks.  For the consumption of webhooks, I'd use it for container/recipe lifecycle actions (deploy, redeploy, terminate) based on either my own application logic or something like Docker Hub.
As for publisher, everything that can be an option to publish, would be fantastic - like GitHub's model. If the hook exists, its easy to build a system that notifies Slack of container activity, integrate into my own DNS and even could notify VictorOps/PagerDuty when my critical containers go offline.

A simple webhook receiver for scale up/down on a given stack.service would be nice.
Of course, the Rancher API exists which can do all of this, but simple webhooks for common integration points could be helpful.
The main thing we'd like is webhooks going out on events such as configuration changes (host add/del, service start/stop/add/del) and thresholded events (host CPU threshold, host lost contact, service degraded or down) for monitoring purposes.

The blocker for me, was having a webhook that would automatically redeploy containers. That is, pull the :latest image and redeploy.
I threw together a node server that could let me automatically redeploy containers for now, but first class integration would be ideal.

Agreed. Also it would be nice to publish web hooks for events like degraded or otherwise failed services which could be used in a monitoring service or even just connected to something like slack.

So I hate to mention this because "The other guy does it"-driven-development is never a Great Idea (TM), I want to provide one sample of something from tutum which I think relates as well:  Their haproxy image has the ability to connect to the tutum API and in semi-real time add & remove instances from the HAproxy backend - for linked containers.
I think the Rancher/webhook translation could be (for the sake of a similar example) an HAproxy image that uses the regular API to register for webhooks notifications of containers coming/going that are of a certain classification (linked, or a specific tag/name/etc), to add/remove from the backend pool. Again, that'd be almost completely real time.
So haproxy has easy to use monitoring/up/down detection etc, but it could also be nginx which isn't as good at that.

@ShakataGaNai it's entirely possible to build that against the Rancher API/metadata, but I'm not sure what you think that would buy us.
We already have a haproxy balancer with all those capabilities going the other way (pushing config down to the haproxy container), while being able to manage that the config actually matches across multiple instances on multiple hosts.

@ca0abinary  If you're using Nagios or MRTG, I have a plugin that works against the Rancher API for monitoring.  Sure, its an active check rather than an active notification, but it does the job.  The only problem is identifying degraded services, because the Rancher API does not (yet) have 'degraded' as a service state even though the web UI does ( #1052 fixes this )
Check plugin: https://github.com/sshipway/check_rancher

:+1:

+1
in my case it would be great to subscribe to rancher events.

+1

+1

+1

:+1:

So is this feature planned? Any hint when we can expect this to be added?
I'm new to rancher, maybe 'release/future' label is supposed to answer that, I'm not familiar with its semantics.

This is a highly requested feature so we will add it.  release/future just means "not 1.0."   1.0 is due at end of this month and we are past feature freeze.  I'd really hope we could address this shortly after, right now we are narrowly focused on 1.0 so we haven't started looking post 1.0.  I will say that this feature was supposed to be in 1.0 but we ran out of time.

+1

I am really looking forward to this feature! :)

+1

:+1:

I spent the weekend cobbling some Rancher interaction onto a project I found on GitHub. Maybe this will help bridge the gap:
https://github.com/ThatsNinja/dockerhub-webhook-listener
Also, +1

:+1:

+1

:+1:

It occurs to me that this feature could be provided via a template item, without too much difficulty.  There already exists an (undocumented?) websocket for many events, and a periodic scan could be done for monitoring events; then a standard webhook URL (with optional credentials) configured via a passed env var to pass all events to as JSON (which can subsequently decide itself which to accept and which to drop).  If only I had lots of free time to play with the idea...!

+1

👍

+1

👍

+9

+1

+1

+1

+1

+1

+1

+1

+1
Hah, requested more than 1 year ago , any progress?
@deniseschannon ...?

+1

+1

+1 (Awesome work with everything. Rancher is wonderful.)

If you're looking for single command upgrade and confirm the upgrade, repulling the image on a service, i made a quick script while webhooks are not supported
made a quick script on a docker image do do the job from my ci
https://github.com/codecasts/rancher-deployer
Not really simple but for those using a CI/CD system, you can embed the variables there:
docker run --rm \
    -e RANCHER_URL="http://my-rancher.com:8080/v1/projects/1a5" \
    -e RANCHER_ACCESS_KEY="my_api_key" \
    -e RANCHER_SECRET_KEY="my_api_secret \
    -e RANCHER_STACK_ID="1e9" \
    -e RANCHER_STACK_NAME="myapp-production" \
    -e RANCHER_SERVICE_NAME="web" \
    codecasts/rancher-deployer:latest

@hernandev  thats wonderful, i'll try this out

@hernandev Cheers m8, thanks, better than nothing.

I made a wrapper for use rancher with webhooks.
If you need you can check here:
https://hub.docker.com/r/leen15/rancher-wrapper/
I'm using this wrapper with jenkins.

I'd like a webhook for stack deployments. I'd like to post to a slack channel when a rancher stack deployment begins and ends.

Inspired on other solutions, we've built https://github.com/manastech/rancher-autoredeploy/, which sets up a small http server for listening requests from docker hub, and upgrades the matching services in the rancher environment using the API. Hope it helps until the feature is implemented!

We will be starting with adding webhooks for scaling up/down services in our next release and look to expand to further use cases.
https://github.com/rancher/webhook-service

Tested with v1.4.0-rc2. The webhook feature to scale up/down services is implemented and is functional.

Is there documentation on how to use it?  Been looking forward to this for a long time 💯

The webhook-service will have drivers to execute different actions. It has one driver for scaling up/down a service right now. We're adding more such drivers and even the community can add their own drivers. The steps on adding your own drivers will be explained in a blog in a few days

Docs on using webhook-service: http://docs.rancher.com/rancher/v1.4/en/cattle/webhook-service/
Steps for contributing: https://github.com/mrajashree/Webhook-blog/blob/master/Steps.md

Top of my wishlist for webhooks is redeployment based on commit to a git repo.

@JulianKingman redeployment of services? can you please explain a bit?

@mrajashree I think the workflow he's getting at is to be able to push a commit to github, then have a linked service automatically upgrade. That was the only thing I was missing when migrating from Tutum / Docker Cloud. Even without that, Rancher has been worth it x 10.

@mattidupre that's exactly right. Other webhooks would be good, too, like dockerhub

I'm on rancher server 1.5.2, trying out the serviceUpgrade webhook listener, and I set up my docker registry to notify the trigger url as provided by rancher server. Unfortunately it doesn't work, docker registry2 does send the request, but I'm getting this in the rancher-server logs:
rancher_1  | time="2017-04-07T15:04:04Z" level=error msg="Error in request: Error Incomplete Docker Hub webhook response provided in executing driver for serviceUpgrade"

How would I go about debugging this further?

@JulianKingman we have already implemented the Docker Hub webhook in 1.5
https://docs.rancher.com/rancher/v1.5/en/cattle/webhook-service/#upgrading-a-service-based-on-docker-hub-webhooks
Is this what you were looking for?

@mrajashree  We have tried the receiver hook to upgrade a service and it works great. The problem is that our images are tagged based on short git commit SHAs. example: 0.1.0-SNAPSHOT-166-ea72735 So each time we build the image, its name will change. Since receiver hook expects a fixed image name, this does not serve our purpose.
Can the receiver hook accept image names in the POST ?


[Feature request] Select first element by pressing 'enter' key

Right now I have to press "down arrow" key and then "enter" to select first element. It would be great to press just one key, especially when there's only one element left in the list.
Using http://leaverou.github.io/awesomplete/ example:
Type "js", hit "enter" and get "Node.js"

@76200 there is an option autoFirst (data-autofirst attribute) that does so

@tporadowski right ;)

Yup, use data-autofirst (or the JS property autoFirst). :)
The idea is that this behavior is desirable in cases where the majority of input will come from the popup, but not when the popup is merely suggestions and the majority of input will come from freeform text.
My estimate is that the latter is more common than the former, so the default of autoFirst was chosen to be false.


Allow referencing an existing cwt configuration.

In some cases, you do not have an alias for a specific context type, for example the plugin cannot infer that something is for example part of a pop_job declaration or part of authority declaration.
For example i have to copy the below, to make sure (especially with dynamic calls) that the inlines know the context.
inline_scripts = {

    ## context_configs_type = multiple
    ant:governments/authorities/* = {
        ## cardinality = 0..inf
        advanced_authority_swap = {
            ### Will also be used to attempt and find an icon from "interface/icons/governments/authorities/"
            ## cardinality = 0..1
            name = localisation
            ### Used to customize the description in the case of a swap
            ## cardinality = 0..1
            description = localisation
            ## cardinality = 0..1
            negative_description = negative_localisation
            ## cardinality = 0..1
            inherit_name = bool
            ### Decides if we should inherit the modifiers from the base Authority and combine it with the advanced authority
            ## cardinality = 0..1
            inherit_effects = bool
            ### Decides if we should inherit the icon of the original authority
            ## cardinality = 0..1
            inherit_icon = bool
            ### Used to swap out the ruler council position
            ## cardinality = 0..1
            ruler_council_position = <councilor>
            ### This will decide when the swap to advanced authority type will be made
            ## cardinality = 0..1
            ## replace_scopes = { this = country root = country }
            trigger = single_alias_right[trigger_clause]
            ### The modifiers that are used instead of the authority after the swap, can include the original by using inherit_effects
            ## cardinality = 0..1
            ## replace_scopes = { this = country root = country }
            modifier = single_alias_right[modifier_clause]
            ### Translation tags used for the authority swap
            ## cardinality = 0..1
            tags = {
                ## cardinality = 1..inf
                localisation
            }
            ### you can either have a hereditary system (has_heir = yes), or an election system (has_heir = no)
            ## cardinality = 0..1
            has_heir = bool
            ### oligarchic generate candidates only from leaders in the country
            ## cardinality = 0..1
            election_type = enum[election_type]
            ## cardinality = 0..1
            election_term_years = int
            ### actual election term = election_term_years +/- election_term_variance
            ## cardinality = 0..1
            election_term_variance = int
            ## cardinality = 0..1
            can_have_emergency_elections = bool
            ### -1 == no limit
            ## cardinality = 0..1
            max_election_candidates = int
            ### If there are multiple options, the one with the highest weight is picked. Scope: Country
            ## replace_scopes = { this = country root = country }
            ## cardinality = 0..1
            weight = {
                alias_name[modifier_rule] = alias_match_left[modifier_rule]
            }
        }
    }
}

Would i be possible to instead somehow reference an existing configuration?
Maybe allow specifying a cwt config path like copy_config = /authority or copy_config = /job/resources (just an idea)> Sadly not everything has an alias (plus it would be laborious to make for everything)

Mayhaps an alternative would also be to have something like
inline_scripts = {

    ## context_configs_type = multiple
    ant:governments/authorities/* = {
        ## cardinality = 0..inf
        advanced_authority_swap = cwt_config_path[authority/advanced_authority_swap]
    }
}

Similar to #68 ?

Yes and no.
In #68, you inherit the context/config of the invocation place. (useful for conditional inlines)
In this, you want to inherit/copy the context/config of an existing cwt declaration. (useful for when the above is not useful/impossible to infer)


[GraphQL/Schema][RFC] Scalars for Move Types

Description
Continuing #13946 which converts the Move value representation into a scalar.  This PR is an RFC to do the same for the various type representations, for similar reasons (they are deeply nested structures which are difficult to query with GraphQL).
The downside is that we lose the ability to query, e.g. module information, struct declaration, etc for a type in the same query as the type (it needs to be issued as a separate query). This seems reasonable, however, because it is difficult to do this in practice because such a query would be all or nothing (e.g. the modules of all fields, or all type parameters, etc).
If the number of scalars is piling too high, we can also return a generic JSON scalar for all of these types (MoveData, MoveTypeSignature, MoveTypeLayout, OpenMoveTypeSignature), but the type specificity is beneficial for writing clients in typed languages (like Rust).
Test Plan
:eyes:

@Jordan-Mysten / @hayes-mysten  -- another one for your consideration.  On reflection after trying to implement the types as they were in the draft schema, and imagining how it would be used, it's probably better if the main recursive structure was returned all in one go as a scalar.


Privacy & Security Question Bug

I was looking through the form today and I found a bug on the questions for indicator 9a re: PII data.
& 1) It didn’t ask about sharing third party data as listed in the questionary “If yes - does this project share this data with third parties? Please describe the circumstances with which this project shares data with third parties. Please add links as relevant.”

appears to cut off the question about ensuring security and privacy (see image)

Hi @Lucyeoh I'm on it. I am a bit unclear as to how it should look like. I will add “If yes - does this project share this data with third parties? Please describe the circumstances with which this project shares data with third parties. Please add links as relevant.” to the description below and send a screenshot. However, if there's anything else from that section of the questionary I should include, please let me know.

Yes, @nathanbaleeta it should align with the questionary that you are linking, and also please make sure that if you are making any changes to the data schema, that it aligns with the data schema on the receiving end.

@Lucyeoh This is the screenshot. cc @lacabra


Show low tide info on calendar grid

Add this info (after a newline):
-1.501ft at 7:18am

https://github.com/natbat/pillarpointstewards/blob/e7727b5d9993dfb0fbc48fdf9e972c395a04406d/pillarpointstewards/templates/shift.html#L36


Bug report: Auto format json file when opened option doesn't work

As the title says
also support for txt files would be nice too

@MikoMMM , could you please mention steps to reproduce the issue. Also, please provide example json (if possible) which is not working for you.

Didn't hear anything from user. Hence, closing it.

I am having the same issue.  Should I open a new ticket?  I downloaded the latest update and installed it.  I found the new "Setting" option and went in there and checked "Auto format json file when opened".  I hit OK and opened my JSON file, and it was not auto formatted.
My JSON:
{"type":"asdf","nodeRoute":"/asdf","url":"https://apiasdf","method":"POST","batch":true,"orderData":{"orderNo":"asdf","itemNumber":"asdf","outputQuantity":40,"lotNo":"asdf","palletCount":1,"orderLineNum":4,"shiftNum":1,"shiftTallyCount":6,"isPartial":false},"body":{"requests":[{"method":"POST","id":"OUTPUT-JOURNAL-asdf","url":"companasd","headers":{"Content-Type":"application/json"},"body":{"orderNo":"asdf","itemNumber":"asdf","outputQuantity":40,"lotNo":"asdf"}},{"method":"POST","id":"NAV-POST","dependsOn":["OUTPUT-JOURNAL-asd"],"url":"compasdf","headers":{"Content-Type":"application/json"}}]}}

And my file does have a .json extension.


How do you load text files to Lua?

What is your question?
In #8395 I learned how to load and save save data to Lua, but I never learned how to load Text files.
Soooo...
How do I do that? :0..

.

Necrmind! Just checked the source like a big boii and found getTextFromFile()!


[Feature Request]: Implement ESLint and Prettier &

Project
Website (Potter DB Search)
Describe the feature you want to request
Everyone has different code styles, therefore it would be useful to implement prettier and eslint to have a general code style for Potter DB.
(Optional) Describe a solution for this feature
Install prettier and eslint, configure it for next.js and for compatibility between those.
Options should be default, see here.
Additionally add a git hook to automatically format and lint the files on commiting.

Is it okay for me to work on this?
I plan to use husky to manage the pre-commit git hook.

Sure, I will assign you.
Husky sounds like a good tool to implement the hook 👍.


[BE] UCI ODK Adapter - shift to CDAC service instead of UCI

Currently, we are using UCI for sending SMSes to users under the SMS module. We need to start consuming CDAC service instead because UCI has some internal issues causing instability in sending SMSes.

Blocker items:

[ ] Need currently deployed CDAC service URL & Credentials
[ ] If the above is not available, then need help in debugging the deployed service on staging.

Currently, the hosted service on staging is throwing exceptions with the below listed environment variables:
root@saksham-audit-03:/opt/CDAC-Service# cat .env
USERNAME="hpgovt-hpssa"
SENDER_ID="HPGOVT"
PASSWORD="hpssa@12"
#TEMPLATE_ID=TEMPLATE_
SECURE_KEY=5e92f23b-0d09-46ef-a428-dcd7cae79169

@ChakshuGautam

Hey, can you restart the service and try again? The domain is resolving on my laptop. Alternatively, can you ping the base URL from the droplet?

Hey, can you restart the service and try again? The domain is resolving on my laptop. Alternatively, can you ping the base URL from the droplet?

No luck on restart. ping msdgweb.mgov.gov.in is not responding from CLI on server as well as my local machine.

Update as on 24.01.2023:

[x] Code sided changes DONE; PR raised;
[ ] Test cases
[ ] Final integration (blocked on CDAC Service)

Related (production deployment blocker) ticket: https://github.com/Samarth-HP/CDAC-Service/issues/6


Readme should contain some indication of expected time requirements

Eg 90min for a human genome or st eq

Thanks for the issue, it's added to the README.


Close #172 - Add Model.MaxTokens type for chat.Model.maxTokens

Close #172 - Add Model.MaxTokens type for chat.Model.maxTokens

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

Project coverage is 84.59%. Comparing base (31219eb) to head (97aa8f0).

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #176      +/-   ##
==========================================
+ Coverage   84.35%   84.59%   +0.24%
==========================================
  Files          18       18
  Lines         377      383       +6
  Branches        5        4       -1
==========================================
+ Hits          318      324       +6
  Misses         59       59

Files with missing lines
Coverage Δ

...d/src/main/scala-2/openai4s/types/chat/Model.scala
97.18% <100.00%> (+0.26%)
:arrow_up:


Implement core::error::Error for all error types

Implemented core::error::Error and core::fmt::Display for all error types. Addresses https://github.com/rust-osdev/uefi-rs/issues/594
I'm fairly new to Rust so there might be some coding conventions I'm not familiar with. I tried to match the style of existing Display implementations. Any and all feedback is appreciated.
Checklist

[x] Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
[x] Update the changelog (if necessary)

Thanks for the contribution, this is a good addition!
Please fix the nits that were addressed by Nicholas. Then, we're good to go!


Update deps in react-todo and add fable-compiler

This made it work for me

Sorry, I've updated automatically the dependencies of all samples for 0.5.4 release, so this shouldn't be needed anymore. Thanks anyways!


Added UI changes and neccessary features to main page Fixes #2

Description of Changes:

Animated Button Outline:
Added an animated outline effect to buttons for a more dynamic user experience. This enhances visual feedback when interacting with buttons.

Smooth Transition on Input Hover:
Implemented smooth transition effects on input fields during hover. This improves the interface by providing a seamless, polished interaction when users focus or hover over input elements.

Alert for Empty Form Submission:
Added an alert prompt to notify users when attempting to submit an empty form. This prevents unintentional submissions and enhances form validation.

Fixes #10


Status Widget Location Doesn't Save

Moving the status widget overlay to different points on the screen resets back to the top left each time you log in.

Known issue, will be fixed with the next update

This is already fixed, next release it will be live


Update reference to TCG Reset Attack Mitigation spec

The TCG specification for Reset Attack Mitigation has been updated to version 1.10. This change updates all the references to the Reset Attack Mitigation spec to this newer version.

Thanks for the PR, @RonaldAi.
Changes have been merged and should show up live on docs.microsoft.com soon.


Invitations rate limit implemented

Now, we have an invitation rate limit of 10 invites per hour.
Email-ProjectId constraint is removed on the DB level in order to track sent invitations.
How it works:
-If you click "Cancel", it sets "isCanceled" to true in the DB.
-The invited users cannot accept an invitation if it is canceled.
-If you invite a user again, it says an error. To change a role, a user needs to cancel an invitation and send a new one.
-A user cannot get/see canceled invitations.
Additionally, added loggedCallId index and onDelete: SetNull

Great work!


Mouse is stuck clicked

I click and draw, when I release the mouse it stays clicked and continues drawing. If I press ALT+Click, mouse releases.  This happens on other tools as well.

Do you have any specific configuration, like using a trackpad or something similar?

No, just a USB wireless mouse.

I can't reproduce your issue, could you please provide extra informations about your setup? OS version, mouse model etc. 🤔

I can't reproduce it either, I will provide more details if I encounter this issue again.


How can one chunk vendor CSS? (from SaSS)

Version
3.2.3
Reproduction link
https://stackoverflow.com/questions/53964974/vue-js-cli-3-how-can-i-create-a-vendor-bundle-for-css-sass
Environment info
System:
    OS: macOS 10.14.2
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  Binaries:
    Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node
    Yarn: Not Found
    npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm
  Browsers:
    Chrome: 71.0.3578.98
    Firefox: 64.0
    Safari: 12.0.2
  npmPackages:
    @vue/babel-preset-app:  3.2.2
    @vue/cli-overlay:  3.2.0
    @vue/cli-plugin-babel: 3.2.2 => 3.2.2
    @vue/cli-service: 3.2.3 => 3.2.3
    @vue/cli-shared-utils:  3.2.2
    @vue/component-compiler-utils:  2.4.0
    @vue/preload-webpack-plugin:  1.1.0
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    babel-plugin-transform-vue-jsx:  4.0.1
    vue: 2.5.21 => 2.5.21
    vue-hot-reload-api:  2.3.1
    vue-loader:  15.4.2
    vue-router: 3.0.2 => 3.0.2
    vue-style-loader:  4.1.2
    vue-template-compiler: 2.5.21 => 2.5.21
    vue-template-es2015-compiler:  1.6.0
    vuex: 3.0.1 => 3.0.1
  npmGlobalPackages:
    @vue/cli: 3.2.1

Steps to reproduce
npm run build
What is expected?
chuck vendor SaSS to a separate file, similar to how chunks-vendor.js is handled
What is actually happening?
all SaSS is transpiled to one CSS file

I have tried every which way I can think to chunk out to a vendor CSS file to no avail. The issue details and expected output is thoroughly demonstrated through a question (unanswered) on StackOverflow: https://stackoverflow.com/questions/53964974/vue-js-cli-3-how-can-i-create-a-vendor-bundle-for-css-sass

Same issue here, I need some scss files to be compiled into separate file but no matter what I try all scss files are bundled in the componentName.css. putting the import in

I think this is a "sass loader" problem. After changing the imports from module.sass to module.min.css, everything does works fine.


Allow omitting generic when it can be inferred from argument value.

Suggestion
TypeScript should allow to omit to specify generic if it's type matches an argument.
🔍 Search Terms
infer argument generic, single generic required, omit single generic
✅ Viability Checklist
My suggestion meets these guidelines:

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[X] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
Let's assume I want something like that (this is oversimplified example of something I wanted to achieve):
class DataStorage<Type, Name extends string> {
    private data: Type | undefined;

    public readonly name: Name;

    public constructor(n: Name) {
        this.data = undefined;
        this.name = n;
    }

    public set(d: Type) {
        this.data = d;
    }

    public get() {
        return this.data;
    }
}

Some kind of generic data storage class, where I can specify the data type it holds, or just leave it and have a data storage with type of unknown.
When I don't pass any generics when calling the constructor the name property is correctly inferred and data type is unknown:
const x = new DataStorage("x");
x.set(1); // I can set whatever I want
const val = x.get(); // val is unknown
const name = x.name; // name is literal "x"

Now when I want to pass just the type of data the storage can hold, like that:
const y = new DataStorage<number | boolean>("y");
y.set(1);
const val = y.get(); // val is number | boolean | undefined
const name = y.name; // name is just string, not literal "y"

TypeScript gives me TS2558: Expected 2 type arguments, but got 1. error. So it's either all or nothing. // ts-ignore won't help here as y.name cannot be inferred anyway, plus this is a public facing API, I don't want developers of this class to use // ts-ignore everytime
Of course I can just pass both generics:
const y = new DataStorage<number | boolean, "y">("y");
y.set(1);
const val = y.get(); // val is number | boolean | undefined
const name = y.name; // name is "y"

But this requires repetition that could be avoided in this case (as passing nothing clearly shows).
Using defaults is not helpful as well:
class DataStorage<Type, Name extends string = ""> {
 // ...
}

const y = new DataStorage<number | boolean>("y");
// TS2345: Argument of type '"y"' is not assignable to parameter of type '""'

📃 Motivating Example
It lets users to have an automatic typesafety without repetition.
💻 Use Cases
Use case is explained in Suggestion section.
Shortcomings? I don't see any.
Such tweak looks like totally possible to implement, of course it should only allow to omit these generics that are last on the list (similar to when I'd give default value for first generic and not second - typescript errors with TS2706: Required type parameters may not follow optional type parameters. in such case) and these that are specified in arguments list.
Implementing it should only make the currently invalid code to compile, never other way around.
My current workaround is repetition. I require users to repeat the name in generics and then in arguments.

Duplicate of #26242.


Refactor updatePath method in test.component.ts

In the test component, update path and the form that triggers it should be refactored to use Angular's built in form support, instead of using query selector and value={{}}. This is not the only place where this happens all places where a querySelector is used can be replaced with the angular way.

The queryselector already gets fixed with the PR for issue #409

The use of value={{}} example gets fixed in the PR for issue #396


Feature request @ApiHideProperty

I am willing to contribute my work around supporting @ApiHideProperty annotation of the  @nestjs/swagger package. I have a working hack and looking for guidance and gotchas before i create a PR. Is there anything to watch out for ?

What is the actual use case of @ApiHideProperty? So, in contrast to @DtoReadOnly, the property would still be in the dtos, but it should not be part of the swagger documentation?
Taking the example field name String, it would normally generate:
@ApiProperty()
@IsNotEmpty()
@IsString()
name: string;

With @ApiHideProperty it should generate:
@ApiHideProperty()
@IsNotEmpty()
@IsString()
name: string;

or can it be just:
@IsNotEmpty()
@IsString()
name: string;

?
And what is your working hack so far?

@Brakebein thanks for your reply and sorry for the delay. Basically i ran into a problem where i needed to access DB audit fields like createdAt, updatedAt, createdBy, and updatedBy in DTOs but wanted to hide them from Swagger exactly like you said. and the hack to work around is the code that would handle /// @ApiHideProperty true

Now, I finally implemented it. By adding /// @DtoApiHidden, it will add @ApiHideProperty() to a field instead of @ApiProperty().
Please check and test<EMAIL_ADDRESS>

@Brakebein thanks a lot tested it and it works perfectly!


Fix olx.format.PolylineOptions#factor type

This property is optional.

Please merge.

Thanks for the review


Inference times

Hello @libornovax,
Thank you for your great work on an end to end pipeline for 3D object detection. I was wondering if you have any benchmarking numbers for inference time from your experiments. This is what I got -

x86-64 PC with 12GB GTX 1080, 32GB RAM - average 115 ms for 1242x375 image.
Nvidia Jetson TX2 - average 2.1 sec for 1242x375 image.

Hi, as far as I remember I was running the inference on GeForce GTX Titan X (12GB) in about 10fps. That is around 100 ms / image on the KITTI images (1242x375). So your number (1) would agree since it can of course vary depending on the data read speed and how many boxes on the output you are reconstructing.

@suvam-bag @libornovax I tried, about 50ms, using 2080ti.


Re-orient Trees

In AFD under your browser there's no way to re-orient the tree. While simple ATT&CK Flows are not an issue, complex ones become very cumbersome and a significant challenge to work with via the browser and keeping it organized. Adding a function to sort or re-organize the tree in order to better group the branches and leaves would help a lot.
Alternatively, have you considered using Modelio or some other Open source modelling software that supports tree organizing? That might be more sustainable for the long run.

Is this the same as #46?


Use the gray color for all abstract classes

This is meant as a small quality of life thing and something that should be "obviously better", so I haven't made a proposal for it yet. The changes in this PR are as follows:

Gray out all abstract class icons that currently exist
In Create Dialog and Search Help, use either NodeDisabled.svg for abstract nodes that don't have icons, or the newly added ObjectDisabled.svg for abstract non-node objects that don't have icons

I think this gives a pretty good result overall:

You can more easily tell if a class is abstract from its icon

Virtual objects no longer appear like disabled nodes

Search Help now aligns with what you see in the creation dialog.

(CollisionShape2D and CollisionShape3D currently appear with a white Object icon)

Missed something.

Applied this also to the inspector.

^ Light theme in case you're worried about contrast.

To add to that, we may sneakily use some of these icons for other visual elements where it can be important to preserve the color to convey the context/meaning.

This was actually my initial idea. I'm not against this per-se, but to be devil's advocate:

Counterintuitively, doing this programmatically might lead to worse results than expected. The main thing is that, for example, to turn the light color into a disabled color, if our programmatic rule is to keep half of the original color, then we have to modulate not with #808080, but rather a really dark color #1f1f1f. I've not tested this though.
It increases the amount of colors significantly, and with resources, these colors will often be used exactly once. Seeing an unfamiliar color might become unclear if it's something abstract or something you don't know. The color availability is reduced. It increases the risk of things blending in backgrounds.
Less association between the 20% of abstract classes that have icons, and the 80% that are missing icons and so are using a grayed out node/object icon.

So I'll resist it a little for now, so we can have some discussion about these pros and cons.
@YuriSizov I don't get what you mean.

I don't get what you mean.

These icons may be used for things other than node types in the editor. And in those cases it is very likely important that icons have their assigned color palette, as Akien mentions.

Doing this programmatically might lead to counterintuitive results. The main thing is that, for example, to turn the light color into a disabled color, if our programmatic rule is to keep half of the original color, then we have to modulate not with #808080, but rather a really dark color #1f1f1f. I've not tested this though.
It increases the amount of colors significantly, and with resources, these colors will often be used exactly once. Seeing an unfamiliar color might become unclear if it's something abstract or something you don't know. The color availability is reduced. It increases the risk of things blending in backgrounds.
Less association between the 20% of abstract classes that have icons, and the 80% that are missing icons and so are using a grayed out node/object icon.

Why have them programmatically? It's basically 3 colors. There is red (3D), green(Control), blue(2D) basically RGB. If the color isn't at least a shade of the aforementioned 3 colors, as Akien mentioned above, gray degrades the colorcoding intuitiveness.

Idea: 3 non-programmatical 60% gray colors for GUI, 2D, and 3D. Gray for white icons and everything else

I'm pretty sure we can find a modulate value that makes it look desaturated without having to change the icons.

If we have a custom color for abstract 2D, 3D, and GUI nodes, then I'd prefer to have it in the icons so their appearance is consistent everywhere you find. IMO the only good point was about their color communicating something about their inheritance, and this would solve it.

Related: #794
We shouldn't be using solely color to convey inheritance

I saw that proposal, but my personal conclusion was as follows:

The problem was always hypothetical, not a report from a colorblind person. In fact, no type of color blindness other than monochromia (extremely rare) should struggle to tell apart red and blue.
White and green are problematic, but that's only a problem with Node, Node2D, Node3D, Control.

So then we're left with 10-15 nodes that share the same icon between blue and red. It seems like an obvious conclusion that a different shape improves usability, but I beg to differ:

As aforementioned, colorblind users don't actually struggle to tell apart blue and red.
Our icons are meant to work in 16x16. Flat icons are very easy to read and understand, but all suggestions that people updooted were for fancy 3D effects would be difficult to read in practice.
The suggestion that didn't involve 3D effects had arbitrary pillars, like blue=masculine, red=feminine. People didn't like that.

Because of this, I only appreciate a change of 3D icons when there's an important functional difference it tries to communicate (e.g. CollisionPolygon3D).
NavigationObstacle and NavigationAgent use different shapes for their 2D and 3D versions' icons, even though they don't need to, and I think this shows the shortcomings of this whole idea. NavigationAgent3D is painful to recognize at small scales because it has this fancy 3D effect, whereas the simple flat NavigationAgent2D is insta recognizable.
So yes, I think improving this for monochromia people makes it way too much worse for everyone else for it to be worth it IMO.
And besides, just because colorblind people exist, doesn't mean we shouldn't use colors for usability. It rather means we shouldn't rely on them and consider them more of a last resort, when nothing else works. And I don't think anything else works here.

The dimmed colors version looks nice, assuming it's done with modulation.

No, it's not modulation, it's three new color in the editor themes that are 60% gray and 40% green/red/blue.

It rather means we shouldn't rely on them and consider them more of a last resort,

What I said, just in different words ;)

Not really, because I'm saying essentially "we should use color to represent inheritance because there's nothing better"

Next take: The colors used are a bit different, in a way that should be distinct enough from both plain gray and the node color. No modulation is used, I didn't get any nice colors from applying modulation indiscriminately.
I changed EditorNode's get_class_icon() function to get at the core of the issue, as there were more places listing nodes than just the 3 I addressed. Afaik now it looks good everywhere. The new get_class_icon() uses my logic as a default fallback for missing icons, and provides a way to use a different type of fallback - only used by EditorHelp, afaik.

I just remembered I had already done something similar with the colors in Node1D:

I used faded cyan for CollisionObject1D. So, yeah, I like the colors in this PR.

I opted for some desaturation because while cyan is a bright color, our 2D blue is even darker than the 50% gray.

How it looks with the latest revision of this PR:

Before
After

PS: Scrollbar, Slider and Separator abstract classes are lacking icons. Maybe we can use diagonally rotated variants like we did for BoxContainer?

@Calinou Was already in my plans, I just wanted to finally determine what'll happen with abstract node icons.

Pushed fixes to the above.

Thanks!

With this PR, descendants of types without explicit icons are missing icons. I think this is a bug. Before:

After:

With this PR, descendants of types without explicit icons are missing icons.

Not entirely this PRs fault, but it did expose something.


error in chrome

Unrecognized manifest key 'browser_specific_settings'.
and
found unexpected key 'browser_style'

Duplicate of #198.


CiV: update for SD card mediation options

This commit adds description of --sdonly and --sdemmc-coexist options.
Signed-off-by: Kaur, Taranpreet<EMAIL_ADDRESS>Signed-off-by: Tzeng, Tonny<EMAIL_ADDRESS>

@taranpreetkaur0013, please help to review whether I get you right. Thanks.


scratch plugin does not work

i've a scratch based binary image, but when i configure drone's command of this plugin, it fails of no /bin/sh found, i think it may be that drone call sh -c  for each command. has any settings can i set it for only run my own command not sh -c

:wave: hey there, per our issue template, for end-user support please use one of our support channels, such as our chatroom or our mailing list.


Customize style

Is there any plan to let us customize the style (color, font, etc.)? This would be really useful, I don't understand why we cannot do it in any place picker lib in Flutter...

@YSDC Which styles are you referring to?
If it is regarding the TextField, please use searchInputConfig of type  SearchInputConfig and to update the TextField's decoration please use searchInputDecorationConfig SearchInputDecorationConfig class.
If it is regarding the selected widget at the bottom, please use either

selectedLocationNameStyle
selectedFormattedAddressStyle
selectedActionButtonChild

or if you want to add a custom selected widget, please use selectedPlaceWidgetBuilder of type SelectedPlaceWidgetBuilder

Thanks it worked! It would be worth mentioning it in the Readme such that people know from pub.dev all the options you offer :)


feat(anvil): Use pending as default block for estimateGas

Motivation
Should fix https://github.com/foundry-rs/foundry/issues/3017
The latest block was the default block when None is passed for gas estimation; however it might make more sense to take into account pending txs.
Solution
Set the block to Pending if None is given for gas estimation.
Note that this doesn't work when using ethers-rs since it overrides the None block parameter to Latest: cf. https://github.com/gakonst/ethers-rs/blob/13a0144abae32c45c01b1639929f612527994dd1/ethers-providers/src/provider.rs#L577
I think we might want to just not pass the block parameter if it's None

I don't think that the test error comes from this PR

the failing test is unrelated, checking

failing check due to a new warning in forge-std
unrelated


req.field('key', 'value') is broken

the 2.0.0 release use<EMAIL_ADDRESS>while will cause
TypeError: Cannot read property 'path' of null
    at FormData._getContentDisposition (/.../node_modules/superagent/node_modules/form-data/lib/form_data.js:195:43)
    at FormData._multiPartHeader (/.../node_modules/superagent/node_modules/form-data/lib/form_data.js:169:33)
    at FormData.append (/.../node_modules/superagent/node_modules/form-data/lib/form_data.js:64:21)
    at Request.exports.field (/.../node_modules/superagent/lib/request-base.js:184:23)

the call chain

https://github.com/visionmedia/superagent/blob/v2.2.0/lib/request-base.js#L184
https://github.com/form-data/form-data/blob/v1.0.0-rc4/lib/form_data.js#L64
https://github.com/form-data/form-data/blob/v1.0.0-rc4/lib/form_data.js#L169
https://github.com/form-data/form-data/blob/v1.0.0-rc4/lib/form_data.js#L195

value.length <- the exception

That looks like a bug in FormData (I don't see what we can do about it in superagent). Can you report the problem there?

I'm sorry, Just found that error happens when the value is empty.
And can be reproduced by code below:
.field('key'), value is undefined
'use strict';

const request = require('superagent');
const co = require('co');

const main = co.wrap(function*() {
  const res = yield request
    .post('http://localhost')
    .field('x');
});

if (module === process.mainModule) {
  main().catch(e => console.error(e.stack || e));
}

So should we add a assert(value, 'value can not be empty') here or the form-data repo ?

what does an empty field means in a multipart/form-data ?
Looks there already got some clues

form-data/form-data#147
request/request#2208

.set('header',undefined) throws, .query('field',undefined) sets query string to ?field, so it could go either way.
Throwing may be easier, but making undefined remove fields from the form could be more useful.

Since form-data is going to fix this in v2, and current this will throw a unknown error
TypeError: Cannot read property 'path' of null, and I found a hidden bug in my bussiness code after figuring out what really happens. 😂

I guess it's better to close solved issues to let the opening issues number down. 😂


How to load custom light in ArSceneView?

Is there anything like SceneView's loadHdrIndirectLight  but for ArSceneView? My model looks quite dark even with Config.LightEstimationMode.ENVIRONMENTAL_HDR.

I have found some light effect within the ARScene composable and tried this code :  mainLight = rememberMainLight(engine, creator = {             LightNode(                 engine = engine,                 builder = LightManager.Builder(LightManager.Type.SUN)             )         }), but my model is still quite dark - I want to illuminate the model completely to look like this for example:

The issue was resolved by updating the library to the latest version.

https://github.com/SceneView/sceneview-android/commit/d2bfbfc82643316ff4bbba975b3a4a4ccdfa84e9


Add --signing-algorithm flag

Summary

Give the user the option to choose which signing algorithm to use when generating keypairs (#3271).
Code based on https://github.com/sigstore/cosign/pull/3479 .
Release Note

Documentation

Shall we add the --signing-algorithm to the verify/verify-blob commands as well?