sort code autocompletion with rules

supersedes #65655
This PR sort results based on the rules following :

if we are completing an empty string it is sort alphabetically (might be a good idea to modify that)
it ranks higher, in this order of priority, matches :

with lesser fragment
starting from the start of the string to complete
closer in terms of scope
with lesser mismatched case
starting the closest from the start

if it fails it will try sorting them based on all the position of matches ( going through all positions the first match matching at this position while the other doesn't will be ranked higher)
-if it still fails they are sorted alphabetically

The sort on option will first get the best match for each option based on the rules above. After that it will rank every option based on the best match found.
If you have found a case that is wrongly sorted I would gladly improve the rules. If in addition you have an idea on how to correct the rules for your use case feel free to propose a new rule.

Thank you for crediting and the inspiration from the very original PR's algorithm!

We'll ask the production team if it's worth it to merge it sooner rather than later in order to have feedback.

There is no hurry per se, but given the current state of the feature it's something we should fix for 4.1. I think we should still give it reasonable testing before merging, so we are not only dependent on arbitrary and sporadic user feedback.
We should consider adding tests for this, and then if we get more feedback for cases we didn't consider, then we add more tests. Testing this can be tricky. I think we might want to expose some more internal methods to get a list of ranked suggestions and their values for a certain context and input.

I'll look into it. For the moment I'll populate with all examples that were given on Mickeon's PR.

We should consider adding tests for this, and then if we get more feedback for cases we didn't consider, then we add more tests. Testing this can be tricky. I think we might want to expose some more internal methods to get a list of ranked suggestions and their values for a certain context and input.

I have been thinking on how to test completion since I started the test runner, so far I could not find a solution. The main problem is that completion is a list of things in the engine, which may change at any point. I wouldn't want that a change in Node (like adding a new function) breaks the GDScript test just because the completions list changed.
So for now I wouldn't fret about testing completion for this PR in particular. If at some point we're able to figure out testing we can include this code as one thing to test. It would be nice if more people tested the PR before merging but I think it's unlikely to happen. I believe this one is already better than the current state (which isn't great) and we can tweak it later if needed.

I do agree that it should not break just because someone added a new method somewhere. So that's why I was looking into giving him a set of options a string to complete and checking the order on this small set of options. It would only check the ordering and not really the autocompletion in itself. But as this PR is about ordering and not extracting options from environnement, it feels like that is what i should add test about here.

Thanks!


Tell user to not report Error Prone issue when AnnotatedPackages option is missing

Fixes #272

No way to remove the EP message there, I assume? :)

No way to remove the EP message there, I assume? :)

We could try to find a way to not crash the compiler and just report an error of some kind instead.  But that's hacky.  We could log a message but I'm worried that would get lost and then people would think their code has no NullAway warnings incorrectly.  So I think this is the best solution for now.


Dependency graph failing on firefox

Environnement:
Archlinux (updated) / i3
Firefox 41.0.2
Luigi 1.3.0 (pypi)
In my situation, I'm not able to see any dependency graph using the Visualizer.
The only thing that I get is this error message:

It's working great on Chrome.

It's comming from firefox, here's the bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1184589
Resolved by urldecoding window.location.hash.


Verifying Website Domains

Article Checklist
NOTE: (1st time contributors - submit ONLY one article to get familiar with the process, quality, and style-once published, you can then submit any number of articles.)
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

Grammar Checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?
Images were screenshots of running code on my computer, and quotes were not referring to a specific source they were mostly to emphasize a name of a package, application, or database. Added a resource section to cite documentation.

Technical Checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution Guidelines
For first-time contributors and for more details, see Contributing Guidelines
This fixes #1360

This fixes #1360

This fixes #1360

@hectorkambow
kindly run a plagiarism check

@hectorkambow
kindly run a plagiarism check

plagiarism check done

plagiarism check done

@adrianmurage, Thank you for taking the time to comment and revise.
I will consider your changes as I continue to offer article ideas.

@adrianmurage, Thank you for taking the time to comment and revise.
I will consider your changes as I continue to offer article ideas.

@adrianmurage
Made changes. Let me know if it meets expectations/standards. I can make further changes as needed.

@adrianmurage
Made changes. Let me know if it meets expectations/standards. I can make further changes as needed.

@hectorkambow
Could you kindly take a look at the hero image for this article?
I'm wondering if it's appropriate🤔

@hectorkambow
Could you kindly take a look at the hero image for this article?
I'm wondering if it's appropriate🤔

@adrianmurage
Made changes. Let me know if it meets expectations/standards. I can make further changes as needed.

@pkalynan this is a great first contribution.
Keep up the good work. : )

@adrianmurage
Made changes. Let me know if it meets expectations/standards. I can make further changes as needed.

@pkalynan this is a great first contribution.
Keep up the good work. : )

Article Checklist
NOTE: (1st time contributors - submit ONLY one article to get familiar with the process, quality, and style-once published, you can then submit any number of articles.)
Preliminary Checks - Formatting and Structure
* [x]  Does your article follow any of the suggested structure formats? - **see [example formats](https://github.com/section-io/engineering-education/blob/master/CONTRIBUTING.md#example-format-structure)**

* [x]  Is your article properly formatted in Markdown? - **see [Github Markdown guide](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)**

* [x]  Have you used the correct folder and file structure? - **see [Contribution Guidelines](https://github.com/section-io/engineering-education/blob/master/CONTRIBUTING.md)**

* [x]  Is your article over 750 words? - **Tool**: [Wordcounter.net](https://wordcounter.net)

* [x]  Have you used our preferred heading structure? - **[H3 (###) and up](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#headers)**

* [x]  Does your article provide enough value and detail about your topic? - **Articles should be clear, accurate, and fully explained.**

* [x]  Can your article be understood by beginners? - **Assume the audience is smart but has no prior exposure to the common terminology in your article.**

* [x]  Have you included a hero image that is 600x400 pixels and have the copyright to use it? - **Tools:** [Pixlr Image Editor](https://pixlr.com/e) for resizing and [Unsplash](https://unsplash.com) for Creative Commons images

* [x]  In your PR - add a comment that states **["This fixes #(enter your Idea Content Form #)"](https://youtu.be/TKJ4RdhyB5Y?t=278)** to link and close your Idea Content (issue) when the PR is merged.

Grammar Checks
* [x]  Have you spellchecked and grammar checked your article? - **Tools:** [Write&Improve](https://writeandimprove.com/?lang=en-GB) - [ProWritingAid](https://prowritingaid.com/) -  [Grammarly](https://grammarly.com)

* [x]  Have you checked your article for readability? - **Tool:** [Hemmingway](http://www.hemingwayapp.com)

* [x]  Have you added sources for quotes and images that aren't yours?
  Images were screenshots of running code on my computer, and quotes were not referring to a specific source they were mostly to emphasize a name of a package, application, or database. Added a resource section to cite documentation.

Technical Checks
* [x]  Are your code snippets properly formatted for syntax highlighting - **see [Syntax guide](https://gohugo.io/content-management/syntax-highlighting)**

Contribution Guidelines
For first-time contributors and for more details, see Contributing Guidelines
This fixes #1360

@pkalynan
Note that the hero image should be 600 x 400 pixels as pointed out here.
Also, go through the list and take note of the things pointed out.

Article Checklist
NOTE: (1st time contributors - submit ONLY one article to get familiar with the process, quality, and style-once published, you can then submit any number of articles.)
Preliminary Checks - Formatting and Structure
* [x]  Does your article follow any of the suggested structure formats? - **see [example formats](https://github.com/section-io/engineering-education/blob/master/CONTRIBUTING.md#example-format-structure)**

* [x]  Is your article properly formatted in Markdown? - **see [Github Markdown guide](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)**

* [x]  Have you used the correct folder and file structure? - **see [Contribution Guidelines](https://github.com/section-io/engineering-education/blob/master/CONTRIBUTING.md)**

* [x]  Is your article over 750 words? - **Tool**: [Wordcounter.net](https://wordcounter.net)

* [x]  Have you used our preferred heading structure? - **[H3 (###) and up](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#headers)**

* [x]  Does your article provide enough value and detail about your topic? - **Articles should be clear, accurate, and fully explained.**

* [x]  Can your article be understood by beginners? - **Assume the audience is smart but has no prior exposure to the common terminology in your article.**

* [x]  Have you included a hero image that is 600x400 pixels and have the copyright to use it? - **Tools:** [Pixlr Image Editor](https://pixlr.com/e) for resizing and [Unsplash](https://unsplash.com) for Creative Commons images

* [x]  In your PR - add a comment that states **["This fixes #(enter your Idea Content Form #)"](https://youtu.be/TKJ4RdhyB5Y?t=278)** to link and close your Idea Content (issue) when the PR is merged.

Grammar Checks
* [x]  Have you spellchecked and grammar checked your article? - **Tools:** [Write&Improve](https://writeandimprove.com/?lang=en-GB) - [ProWritingAid](https://prowritingaid.com/) -  [Grammarly](https://grammarly.com)

* [x]  Have you checked your article for readability? - **Tool:** [Hemmingway](http://www.hemingwayapp.com)

* [x]  Have you added sources for quotes and images that aren't yours?
  Images were screenshots of running code on my computer, and quotes were not referring to a specific source they were mostly to emphasize a name of a package, application, or database. Added a resource section to cite documentation.

Technical Checks
* [x]  Are your code snippets properly formatted for syntax highlighting - **see [Syntax guide](https://gohugo.io/content-management/syntax-highlighting)**

Contribution Guidelines
For first-time contributors and for more details, see Contributing Guidelines
This fixes #1360

@pkalynan
Note that the hero image should be 600 x 400 pixels as pointed out here.
Also, go through the list and take note of the things pointed out.

@adrianmurage
Okay. Thank you.

@adrianmurage
Okay. Thank you.

@hectorkambow
This article is ready for final review.
This is a new contributor and I'm not certain they have an author page, keep that in mind.

@hectorkambow
This article is ready for final review.
This is a new contributor and I'm not certain they have an author page, keep that in mind.

When this is the case - please ensure that we explain to the student how to go about including their author page - short bio and headshot image.  (otherwise it is not ready for final) 👍
@adrianmurage
@pkalynan  If you could please include a short bio and headshot image to include at the bottom of your article(s).
See the author folder in the repo as a guide.
🚀

Full Name: Priya Kalyanakrishnan
Short Bio:
Priya studied Analytics. She is skilled in other technical fields including programming in object-oriented languages, web coding, machine learning, and statistical coding. Although she may have studied the core basics, she continues to discover more as technology and interrelated areas of interests evolve.
Image Attached.

Hi @pkalynan

Full Name: Priya Kalyanakrishnan
Short Bio:
Priya studied Analytics. She is skilled in other technical fields including programming in object-oriented languages, web coding, machine learning, and statistical coding. Although she may have studied the core basics, she continues to discover more as technology and interrelated areas of interests evolve.
Image Attached.

Below are instructions on how to add your author information:
Navigate to the authors' folder

Inside it create a folder with your name as the folder name as I did here

Then inside the folder, you should have two files; your avatar and the index.md file

Your index.md file should then contain the information about you like so:

Once you've done this
@ me to go through it and when I confirm it's all good we can mark this as ready for final review and have your article published!!

Hi @adrianmurage
I have followed your instructions.

@pkalynan
Are these changes on a different PR?
I can't see them on this one

@adrianmurage
Yes, unfortunately - I could only have my author information on a different PR.

@pkalynan
You can and should have your author information on this PR.
I've created the directory under authors and added the index.md file
Kindly add your avatar to that directory and @ me when it's done.

@adrianmurage
Thank you for your patience. I really appreciate it.
You are correct, I should have added these files and folders myself. I really appreciate your help.
I added the avatar.

@pkalynan
You're welcome. I'm more than happy to help.
@hectorkambow I think this is now ready for final review.

Great work and article 🚀
Looking forward to more great tutorials
@pkalynan
cc @adrianmurage


Removing newlines and punctuation from the input

Had to add the regex package as re does not have a punctuation class.

@RuABraun , the build is failing because of some upstream issues with pyfasttext and Cython . Looks like the only way to fix would be to remove the cython dependencies and move to the fasttext binding that facebook provides. This might need a bit of overhaul , so i am going to keep this PR as it is for some time until the other issue is sorted out.


Fix: Use dirpath to resolve checkpoint path only when passed

What does this PR do?
Fixes cross-validation folds checkpoint saving behavior

I'm using the great library https://github.com/SkafteNicki/pl_crossvalidate to cross validate in my project. The library is overriding some of the internal behavior of the trainer and the logs directory.
Expected behavior
When new fold is created, the checkpoint path should be changed to the new directory
Current behavior
The checkpoint path is resolved once during the first fold then it is short circuited and therefore never resolving to the new fold directory.
Proposed fix
New variable to save whether the dirpath parameter was passed by the user or was resolved from logger
The following links the related issue to the PR (https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)
-->
Fixes #<issue_number>

Before submitting

Was this discussed/agreed via a GitHub issue? (not for typos and docs)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure your PR does only one thing, instead of bundling different changes together?
Did you make sure to update the documentation with your changes? (if necessary)
Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
Did you list all the breaking changes introduced by this pull request?
Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

Reviewer checklist

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

📚 Documentation preview 📚: https://pytorch-lightning--20082.org.readthedocs.build/en/20082/

I opened an issue #20092 to discuss this


Interface to pass settings to chemiscope widgets

A minimalistic approach to defining settings of the chemiscope widget in a jupyter notebook.
Basically one just passes the JSON string corresponding to the stored settings.
Required cleaning up a bit here and there.

Closing in favor of #219


NIFI-10212 added ListSmb processor and SmbConnectionPoolService

Summary
Added ListSmb processor and SmbConnectionPoolService
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[x] Apache NiFi Jira issue created

Pull Request Tracking

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

Pull Request Formatting

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

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

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

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

Licensing

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

Documentation

[ ] Documentation formatting appears as expected in rendered files

Hello,
I really like this new feature and i think it will be very useful!
Is it possible to add support for FetchSmbFile functionality also?
Thanks!

Of course it is possible! In fact I'm already working on it.

It might be worthwhile placing additional attributes on the flowfiles. You can get the following attributes from the FileIdBothDirectoryInformation class:

creationTime
lastAccessTime
lastWriteTime
changeTime
endOfFile
allocationSize
shortName

@kulikg - Did you have the intention of refactoring the existing GetSmb and PutSmb processors to utilise the client? Or do you think this is a body of work for later?

It would be really nice to refactor them but I'm not planning to do so in this PR.

LGTM
Thanks for your work @kulikg!
Pushed to main.


[WFLY-11182] Upgrade to WildFly Galleon Plugins 2.0.2.Final and prope…

…rly configure plugin dependencies
https://issues.jboss.org/browse/WFLY-11182

@wolfc fyi, this is the feature-spec-gen maven dependency-related change


App crashes when mass replacing

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.83.1
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:57:32.750Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 20.6.0
Steps to Reproduce:

Create an unsaved file tab
Past the following:

[1
1

(The bracket and two empty lines are important)
3. Search for \n and replace all with any character
4. The app crashes

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


Enrollment Report: data extraction

Please extract the data within the "BEACH Study Overview" report that is stored within Redcap.
Script: get_reportData_21221.Rmd
This script requires:

access to BEACH study RedCap project via API token
R/rstudio configuration using the keyringr package
UF VPN access

This script will output:

data as an *.Rdata object locally within the directory ~/data/processed/

I'm able to run the code and extract the data

This issue can be closed when all team members can pull the data: @xkcococo @michele-himadi @Decicco-Lewis
Please comment when you can pull data.

this has been resolved.


The CI badge in README still points to Travis

it should refer to GitHub Actions CI since #1266

fixed by #1296

No, it is not.

@int-index Which branch are you referring to then? ghc-9.0 uses GH Actions.

My  bad!


In installer/create-schematic.sh Europe region is misspelled as "ue-de"

line 1062
                jq -r '(.template_data[] | .variablestore[] | select(.name == "region") | .value) |= "ue-de"' temp.json > workspace-configuration.json
Is this intended?

Thank you, I have fixed the typo. I will leave the issue open a bit longer so I can test the script in some of the eu region data centers and see if its working.


Add ' in X ms.' like Flutter. Clean log message.

Old log message :
(3)___
[shelf_hotreload] Application reloaded.
New log message:
Application reloaded in 4 ms.

If the duration between start and end is same in two consecutive reloads, your issue might not be solved.


Chore: Swap Refactors

What changed? Why?

refactored swap to prep for wallet island

Notes to reviewers
How has it been tested?
locally

closing in favor of a cleaner branch


Add steps for custom certs

What this PR does / why we need it:
This PR adds the necessary steps to request certificates for custom domains.
Release note:

The developer documentation now contains information on how to request certificates for custom domains.

Thanks for the review @g-pavlov.


[Feature]:we can add swiper for showing upcoming or latest shop items display

Describe the feature
here we can add swiper for display upcoming and latest shop items
it help to advertising and more attraction of user purchasing
#showcase
Add ScreenShots

i made like this:
https://github.com/Indie-Kart/ecommerce-store/assets/137641079/781507aa-5bd7-4c11-b81b-6d8fd5ad301e
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

A similar PR has already been merged.


Reducing the complexity of out entity services

Throughout the application we lean on services that are initialised with data provided by module providers - this data is often grabbed from the url (ids etc.). This is great when you are using them in the context of a single entity (application summary, org summary etc.) but makes it much harder to use outside of that, forcing us to do a lot of bootstrapping just top access small portions of the service.
The issue is twofold:

A lot of bootstrapping is needed to use these services standalone
Each service provides a lot of functionality that you may or may not want, this extra functionality often comes with the overhead of more bootstrapping, often requiring extra services that may not be used.

Possible solution:
We should extract a lot of the functionality into smaller classes that group similar functionality that can be used by initialising it with a small amount of data. The provider based services can then be used as wrappers to these classes, providing pre-initialised objects from the classes or exposing methods to exactly mimic the current services.
This work is important to improve the information we show on favourite entities #3255.

I like this. It's possible the entity catalogue will make this easier.


bug

What version of Wallet are you using?
current version
What is happening?
cant signing message and transaction on wallet.
steps to reproduce
nil
How it should behave?
able to allow me signing messsages
What os are you seeing the problem on?
Windows Desktop
What browser?
Chrome
What is your browser version?
windows 7

@yunggerald25, thanks for the report. I have tested the message signing flow on a Windows 7 with Chrome version 108, and it worked correctly.
Please make sure the Wallet you are using is on the latest version. The version is shown on the sidebar at the bottom. It should be 0.7.2 or bigger.
If the error is there yet let me know than we can re-open the issue and work on it.


Add support for excluded_with on pointer fields

Fixes Or Enhances
Closes #745
Using a tag like excluded_with will now work as expected on pointer fields (e.g. *string). There are two commits here. The first commit adds in tests (which fail) to demonstrate the behavior that was missing. The second commit improves the code so that the tests pass.
I checked to see if this would also resolve this comment about struct pointers, but it does not.
Make sure that you've checked the boxes below before you submit PR:

[x] Tests exist or have been written that cover this particular change.

@go-playground/admins

Coverage remained the same at 76.07% when pulling b42122cba0ca45702a6da1bac6a5a14c0a5261cf on Jake-Convictional:exclude-nil into f6584a41c8acc5dfc0b62f7962811f5231c11530 on go-playground:master.


Merging status code 422 with 400

Having both 422 and 400 does not add much value, we can keep it simple and distinguish validation error vs general error from returned payload (see #8).

+1, simple is good.


feat(family): add ability to lookup metric by query type

Added ability to lookup metric by query type in Family::get_or_create
Example:
#[derive(Clone, Eq, Hash, PartialEq, EncodeLabelSet)]
struct Labels {
    method: String,
    url_path: String,
    status_code: String,
}

let family = Family::<Labels, Counter>::default();

// Will create or get the metric with label `method="GET",url_path="/metrics",status_code="200"`
family.get_or_create(&Labels {
    method: "GET".to_string(),
    url_path: "/metrics".to_string(),
    status_code: "200".to_string(),
}).inc();

// Will return a reference to the metric without unnecessary cloning and allocation.
family.get_or_create(&LabelsQ {
    method: "GET",
    url_path: "/metrics",
    status_code: "200",
}).inc();

#[derive(Debug, Eq, Hash, PartialEq)]
struct LabelsQ<'a> {
    method: &'a str,
    url_path: &'a str,
    status_code: &'a str,
}

impl CreateFromEquivalent<Labels> for LabelsQ<'_> {
    fn create(&self) -> Labels {
        Labels {
            method: self.method.to_string(),
            url_path: self.url_path.to_string(),
            status_code: self.status_code.to_string(),
        }
    }
}

impl Equivalent<Labels> for LabelsQ<'_> {
    fn equivalent(&self, key: &Labels) -> bool {
        self.method == key.method &&
            self.url_path == key.url_path &&
            self.status_code == key.status_code
    }
}

Performance difference:

61.247 ns - lookup by &Labels {method: "GET".to_string(), url_path: "/metrics".to_string(), status_code: "200".to_string()}
13.324 ns - lookup by &LabelsQ {method: "GET", url_path: "/metrics", status_code: "200"}

counter family with custom type label set and direct lookup
                        time:   [61.076 ns 61.247 ns 61.422 ns]
Found 9 outliers among 100 measurements (9.00%)
  8 (8.00%) high mild
  1 (1.00%) high severe

counter family with custom type label set and equivalent lookup
                        time:   [13.291 ns 13.324 ns 13.358 ns]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild

Fix: #157

Thank you for the work here.
I am hesitant to move forward.

This pull request increases the maintenance surface of this crate.
This patch ties us to the public interface of hashbrown, i.e. a breaking release in hashbrown requires a breaking release in prometheus-client.
While the benchmark shows a significant impact on the micro level, I wonder how much impact this has on the macro level. In other words, do you see this impacting your application?

I wonder whether keeping a Labels struct around across get_or_create calls would be a valid option for you. Or whether wrapping your strings in a Arc on the higher level.

Thank you for the answer. Concerns are reasonable.

While the benchmark shows a significant impact on the micro level, I wonder how much impact this has on the macro level. In other words, do you see this impacting your application?
I don't see the critical impact of cloning a dozen strings on each processed message. But looking into code like this is enough to decide to do something.

self.family.get_or_create(&Labels {
    one: one.to_owned(),
    two: two.to_owned(),
    three: three.to_owned(),
    four: four.to_owned(),
    five: five.to_owned(),
}).inc();

All my alternative solutions lead to having Arc<RwLock<hashbrown::HashMap<RealLabels, ...>>> which is very similar to Family :)
Anyway, you provide a good API. Thank you. Let me know if you need some help.

All my alternative solutions lead to having Arc<RwLock<hashbrown::HashMap<RealLabels, ...>>> which is very similar to Family :)

As you likely know, you can implement your own metrics, e.g. in this particular case it sounds like you should provide your own custom Family type that implements EncodeMetric.

Thank you for the answer. Concerns are reasonable.

Appreciate the understanding!

Anyway, you provide a good API. Thank you. Let me know if you need some help.

Always! Thank you for offering your help on https://github.com/prometheus/client_rust/pull/162#issuecomment-1709591211 @cheshirskycode!

Closing here given the concerns above. Please open a new pull request in case you want to continue the discussion.


clang warnings on Windows

Hi @samhocevar ,
with latest commit (0049adb), clang produces some warnings when compiling the code on Windows:
[...]/pfd/portable-file-dialogs.h:965:88: warning: extension used
      [-Wlanguage-extension-token]
                                 (CLSID_FileOpenDialog, nullptr, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&ifd));
                                                                                ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\combaseapi.h:207:30: note: expanded from macro
      'IID_PPV_ARGS'
#define IID_PPV_ARGS(ppType) __uuidof(**(ppType)), IID_PPV_ARGS_Helper(ppType)
                             ^

[...]/pfd/portable-file-dialogs.h:1261:27: warning: extension used
      [-Wlanguage-extension-token]
                          IID_PPV_ARGS(&folder));
                          ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\combaseapi.h:207:30: note: expanded from macro
      'IID_PPV_ARGS'
#define IID_PPV_ARGS(ppType) __uuidof(**(ppType)), IID_PPV_ARGS_Helper(ppType)
                             ^

Since these warnings appear in Windows headers, I believe this is more an issue with Clang.
Also I’m a bit surprised that commit 0049adb may have caused the problem to appear; are you sure about that? Maybe your version of Clang was updated at about the same time?
About the warning itself, do you think disabling it on your side may be acceptable? Like this:
#pragma clang diagnostic ignored "-Wlanguage-extension-token"
#include "portable-file-dialogs.h"
#pragma clang diagnostic warning "-Wlanguage-extension-token"


Goss validation fails within a container while reading the process name in ubuntu16.04

Describe the bug

Below process validation in goss is failing within a container:
root 15 1 0 19:08 ? 00:00:00 /usr/bin/python3.8 /usr/local/bin/verdict_controller_server.py --port 5000
# ps -p 15 -o comm,cmd
COMMAND         CMD
verdict_control /usr/bin/python3.8 /usr/local/bin/verdict_controller_server.py --port 5000

# cat /proc/15/comm
verdict_control

# cat process.yaml
process:
  verdict_control:
    running: true

# ../goss -g process.yaml validate
F

Failures/Skipped:

Process: verdict_control: running:
Expected
    false
to equal
    true

Total Duration: 0.027s
Count: 1, Failed: 1, Skipped: 0

Environment:

Version of goss - We are cloning v4 branch of goss
OS/Distribution version (if applicable) - Ubuntu 16.04.7 LTS

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.7 LTS
Release:        16.04
Codename:       xenial

@aelsabbahy Any luck on the issue, please?

I can create a v4-bugs label to track bugs specifically for that branch. I don't think the v4 branch is stable or complete.
That said.. it might be verdict_controller_server.py. If that doesn't work, I would suggest reading through the gopsutil code to see how it resolved process names.
Out of curiosity, why doesn't the release version of Goss meet your needs?

@aelsabbahy We are using v4 branch to utilize the stdout feature which is not yet merged in the release branch. Please refer to this issue.
We tried with the release branch and the process determination is working correctly, however, the stdout feature is quite needed for us, so we can't give it up at this point.

Hello, just following up on this.
Did the name in my last message work for you?

By that time we have faced this issue in multiple cases, however, the output of ps -p <pid> -o comm works in the release branch. But we need to keep using v4 for the stdout feature.

I created v4-bug to track bugs on the v4 release.
Feel free to open more bugs on this branch as you encounter them.
Is everything working well for you now with the process test?

v0.4.0 release candidate just released.. It uses the v0.3.X process detection (due to this issue and others).
Let me know if that works well for you.

Resolved in v4 release, feel free to re-open issue or open new issue if you have further issues.
Thank you for reporting this.


Travis CI build fails with timeout

Seems like there is an issue with the Travis CI build.
It failed with a timeout though I just added one function to two classes, which shouldn't trigger a timeout.
See here for the log: https://travis-ci.org/openlayers/ol3/builds/110145868#L4363

I restarted the build. It's not unusual for Travis to have occasional hickups.

Thanks! Unfortunately I was unable to restart the build by myself (beside committing to the existing pull request, which I wanted to avoid).

@sebasbaumh note that you can force push a commit to trigger a build.  While we don't force push to master, it is common for feature branches.
git commit --amend
git push --force your-origin your-branch-name

Ah ok.
I just refused to push a trivial commit, which would clutter the pull request, just for restarting the build.


Use idempotent deposit function in MS contract

Comment from Loredana:

In the TokenNetwork contract we have decided to use an idempotent setDeposit function, which receives the total amount of tokens that should end up as deposited in the contract, instead of the amount that is added when calling the function. The main reason for this was to ensure that you don't deposit tokens by mistake, due to an additional API call.
I think we should be consistent and also use this approach here.

See how it's done in the TokenNetwork contract and implement similar functionality in the MS contract.

@err508 remember to assign yourself to an issue when you start working on it.


Remove isort testing

isort tests that module imports are sorted in alphabetical order within system, 3rd party, and 1st party blocks.
Unfortunately, it seems to be somewhat flaky in its detection of 3rd party vs 1st party packages, to the extent that it produces inconsistent results between local testing and CircleCI testing, and even between different runs of the same code on CircleCI (??).
As such, we have decided to remove it and rely exclusively on flake8 for linting.

👍


dotnet vstest: how to remotely debug of test runs in Docker?

From @evil-shrike on February 7, 2018 23:20
Steps to reproduce
I need to remotely debug mstest unit-tests inside a Linux Docker container.
I publish my mstest project, build and run a container with that output and then run dotnet vstest in the container which I expect to debug from my Windows host in VS/VSCode. But it turned out to be not very easy, if not possible.
Please see full story in https://github.com/OmniSharp/omnisharp-vscode/issues/2015 (there I provided my full setup to debug in Docker). It seems that the problem is that VSCode cannot attach to an actual process executing tests. So step-by-step debugging doesn't work.
Initially I thought it's a vsdbg or VSCode issue, but it seems to be more related to how dotnet vstest works.
Actually it'd nice to debug from VS as well but remote debugging of Docker in VS is just a riddle for me. So let's stick to VSCode.
Expected  behavior
Run unit tests inside Docker and attach debugger, do step-by-step debugging.
Actual behavior
Test run (via dotnet vstest) but debugger isn't attached.
Copied from original issue: dotnet/cli#8562

Hi. Any comments/ideas/workarounds?

Found some workaround via setting VSTEST_HOST_DEBUG=1 envvar and then attaching debugger.
Full story: https://techblog.dorogin.com/running-and-debugging-net-core-unit-tests-inside-docker-containers-48476eda2d2a

@evil-shrike : Thank you for documenting the work you have done. @smadala : Please look at possible improvements here to remove the manual steps.


[Bug][Github] data too long for column 'title'

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
when importing https://github.com/BVLC/caffe to devlake v0.11, the following error occurs:

What you expected to happen
Apparently the "title" column in some recipient table (PR? issues?) is defined too short.
How to reproduce
just use the Github plugin to import https://github.com/BVLC/caffe
[
  [
    {
      "Plugin": "github",
      "Options": {
        "repo": "caffe",
        "owner": "BVLC"
      }
    }
  ]
]

Anything else
No response
Version
v0.11.0
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Thanks man! We will fix it ASAP


Paranoid

Switching to HKPS key pool server for secure key retreival

So I used to use sks-keyservers.net, but switched to the ubuntu keyserver because it was too unreliable (often failed during CI or docker hub builds).
See https://github.com/amacneil/docker-bitcoin/pull/9 https://github.com/amacneil/docker-bitcoin/pull/11
If we are going to be paranoid, what about just importing the gpg keys directly into this git repo? There isn't really any particular advantage to pulling the keys from a remote server (either way you have to trust me that I listed the correct key in this repo).

If we are going to be paranoid, what about just importing the gpg keys directly into this git repo? There isn't really any particular advantage to pulling the keys from a remote server (either way you have to trust me that I listed the correct key in this repo).

100% agree. I actually put gpg keys into the docker file as environment vars for downstream use. It's just a public key.

I also noticed sks-keyservers.net did not answer with keys every now and then...

I think, having key servers makes code easier to audit. I'd be quite cumbersome to verify each and every PGP keys instead of their fingerprint

all in all, PR can just be closed since it adds audit-ability (+1) but takes away code reliability (-1) = 0

I agree that the shorter keys are easier to visually inspect/audit.

did not answer with keys once only on more than a dozen try

Given how many builds we run in CI (all versions of all forks), this means we are almost guaranteed to fail every CI build. I don't see any other reason to switch away from the ubuntu keyserver (and I don't believe there are any security advantages of using hkps - even the official docker images do not use it), so closing this. Let me know if I've missed anything.

agreed


gitops env by branch draft

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: \gitops env by branch doc draft
Jira/GitHub Issue numbers (if any): \ DBOPS-428
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[X] Successful preview build.
[X] Code owner review.
[X] No merge conflicts.
[X] Release notes/new features docs: Feature/version released to at least one prod environment.

@jenniferopal due to an incident, there was a git reset hard done on the repo. pls close this PR and open a new PR with changes. If you're comfortable, you can also rebase.


Bower Extension

This kind of extension would expose a view helper to include bower plugins, ignore all the other junk in the bower folders, etc. I can't say I will likely get to this soon since I don't use bower but hopefully someone will!

Brunch.io does a great job with this, there may be some library or module that could be borrowed or studied as an example.  I can't help with this right now but this would be my first suggestion.

Cool, thank you! I'll check it out. Apologies that this was not prioritized, I just personally dislike bower and don't ever use it, so it hasn't been a priority to implement so far. I will eventually though, promise!

I think brunch uses this: https://github.com/paulmillr/read-components

I would use this

This isn't the extension, but @hhsnopek just helped me get a sample roots-bower setup going:
https://github.com/dbox/roots-bower
The biggest issue was trying to get rid of the bower_components folder in public/

https://www.npmjs.com/package/bower-installer This might be helpful too

Thanks @hhsnopek! I'm really sorry I just don't have time to work on this now, but I'm sure someone will be able to pull an extension together. It shouldn't be too tough, hopefully!

@jenius if not bower, what else do you use?

@FranzSkuffka usually npm. if not on npm, then direct or through a cdn. there are many options :grinning:

Fwiw, I rescind my +1. Npm does everything I need now.


problem on reuse cell after "fillOnTrigger"

Hello! thank you so much for this project - it is very helpful for us!
I'm using left expansion for done button - it removes cell from table view using tableView.deleteRows and "fillOnTrigger".
Trying to reuse cell with "dequeueReusableCell" but sometimes I get empty cells (it is cells which was previously "done" by swipe)
If I remove "fillOnTrigger" - everything works fine.
I think it is related to offsets somehow. I've explored controls in debug mode and they have necessary values but I can't see them on cell.
Also I've tried to change offset manually - it wasn't help.
Could you please suggest me workaround for this?
And second question: it is possible to disable "leftExpansion" after adding it? Some of my cells shouldn't have it but they does due to inherited cell.
Thanks and regards,
Alex

I've added some tag on item completion and when reusable cell contains this tag - I create new one. It is my workaround.


error download torrent

log:
Traceback (most recent call last):   File "C:\Users\Joel\Desktop\client_torrent\example.py", line 65, in <module>     asyncio.run(main())   File "C:\Users\Joel\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run     return loop.run_until_complete(main)   File "C:\Users\Joel\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete     return future.result()   File "C:\Users\Joel\Desktop\client_torrent\example.py", line 42, in main     await torrent.init()   File "C:\Users\Joel\Desktop\client_torrent\aiotorrent\aiotorrent.py", line 126, in init     await self._contact_trackers()   File "C:\Users\Joel\Desktop\client_torrent\aiotorrent\aiotorrent.py", line 102, in _contact_trackers     await asyncio.gather(*task_list)   File "C:\Users\Joel\Desktop\client_torrent\aiotorrent\core\trackers.py", line 202, in get_peers     await loop.create_datagram_endpoint(   File "C:\Users\Joel\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1296, in create_datagram_endpoint     infos = await self._ensure_resolved(   File "C:\Users\Joel\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1396, in _ensure_resolved     return await loop.getaddrinfo(host, port, family=family, type=type,   File "C:\Users\Joel\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 856, in getaddrinfo     return await self.run_in_executor(   File "C:\Users\Joel\AppData\Local\Programs\Python\Python39\lib\concurrent\futures\thread.py", line 52, in run     result = self.fn(*self.args, **self.kwargs)   File "C:\Users\Joel\AppData\Local\Programs\Python\Python39\lib\socket.py", line 953, in getaddrinfo     for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 11001] getaddrinfo failed

Hi can you please provide more info on this issue and also how to reproduce this issue?


Test samples in app.json

Maybe include a link to https://regex101.com/ for the regular expressions in the apps.json. This way you can later easily check the RegExp if something does not work.
Especially there you can also use a unit tester so you can easily test it with a lot of examples.
As you can't add comments in a JSON file you maybe have to add a new field.
If you'd rather not like to add this directly in the JSON what about at least recommending in the wiki for including it in the PR description.

The apps.json file shouldn't be used to put contribution instructions IMO.
Suggestions for tools that can be used by contributors, if desired, should
be added to the wiki. (If it's necessary – it's fairly easy to Google for
an online RegExp tester, after all.)
2015-10-18 12:31 GMT+02:00 rugk<EMAIL_ADDRESS>
Maybe include a link to https://regex101.com/ for the regular expressions
in the apps.json. This way you can later easily check the RegExp if
something does not work.
Especially there you can also use a unit tester so you can easily test it
with a lot of examples.
As you can't add comments
https://stackoverflow.com/questions/244777/can-i-use-comments-inside-a-json-file
in a JSON file you maybe have to add a new field.
If you'd rather not like to add this directly in the JSON what about at
least recommending in the wiki for including it in the PR description.
—
Reply to this email directly or view it on GitHub
https://github.com/AliasIO/Wappalyzer/issues/999.

I don't only mean the tool as such, but including the such a URL into the app.json: https://regex101.com/r/rO3eZ0/1 (I've just choose 1C-Bitrix as an example)
So e.g. this could be added like this
{ 	"apps": { 		"1C-Bitrix": { 			"cats": [ 				1 			], 			"headers": { 				"Set-Cookie": "BITRIX_", 				"X-Powered-CMS": "Bitrix Site Manager" 			}, 			"html": "(?:<link[^>]+components/bitrix|(?:src|href)=\"/bitrix/(?:js|templates))", 			"html_regex101": "https://regex101.com/r/rO3eZ0/1", 			"implies": "PHP", 			"script": "1c-bitrix", 			"website": "www.1c-bitrix.ru" 		},
This way later uses could simply check what this regexp is matching.

I'd be more in favour of including sample values that must pass validation. That way we can automate it. It would something like this:
{
    "apps": {
        "1C-Bitrix": {
            "cats": [
                1
            ],
            "headers": {
                "Set-Cookie": "BITRIX_",
                "X-Powered-CMS": "Bitrix Site Manager"
            },
            "html": "(?:<link[^>]+components/bitrix|(?:src|href)=\"/bitrix/(?:js|templates))",
            "tests": {
                "html": [
                    "src=\"/bitrix/templates/1c-bitrix-new/images/vlogo.png\"",
                    "src=\"/bitrix/templates/1c-bitrix-new/images/16.png\"",
                    "src=\"/bitrix/js/main/core/core_db.min.js?14328132264928\"",
                    "href=\"/bitrix/js/main/core/css/core_image.min.css?14293595955405\""
                ]
            }
            "implies": "PHP",
            "script": "1c-bitrix",
            "website": "www.1c-bitrix.ru"
        },

+1 for the validation idea but wouldn't this make skyrocket the weight of the extension ?
Could we put these tests in another specific file ? Or do you think it's better to keep everything in the same place and as it make it easier to understand and improve patterns (and why not trim it during the build) ?

I'd be more in favour of including sample values that must pass validation.

Yes, that's good too. Maybe a better way than putting these samples somewhere else.

@gadcam In the worst case scenario it will double the size of apps.json, adding 150KB. We could also strip out the tests in the build script.

We could also strip out the tests in the build script.

If we do that I have no further comments.
It will be another step forward no enable anyone to contribute with an almost complete knowledge on how work the pattern and Wappalyzer.

In the worst case scenario it will double the size of apps.json, adding 150KB. We could also strip out the tests in the build script.

If you care about the filesize of the app.json we could just use a new .json file for this (e.g. test.json). Obviously test.json does not have to be included in the add-on, but just used for CI tests.

@rugk I like that idea. For simplicity, apps.json could contain the tests so that only one file will contain all of the info as it does now. Then at build the tests in it could be removed after they are run.

Then at build the tests in it could be removed after they are run.

Yeah, that's also possible.

there also those of us that dont build the entire thing and just use the driver wappalyzer.js and apps.json
I think this should def be in a seperate file. or am i missing something i should be doing.? sorry for noobing

Yes maybe a separate file tests.json or validation.json is a nice idea.

Why did you close it?

Any progress on this? This is a pretty good idea.

shh #badbot :no_bell::robot::no_bell:


Documented collision free map

@mikewalch  made a suggestion while reviewing fluo-io/webindex#16.  Going to try that reorg of docs.

+1


[HTTP] Introduce error inheritance

$subject

blocked due to https://github.com/ballerina-platform/ballerina-lang/issues/28563

Subtask of https://github.com/ballerina-platform/ballerina-standard-library/issues/991


Remove unused code

Nothing calls this.  Looks like it was moved to EbeanPlugin.generateEvolutionScript and never removed here

Actually it could be called, imagine a function like scaffolding of model which will generate some sql tables. This could be usefull

No it is useful.


rcv1 sample replaced with the original data but not getting result.

Hi. I got the original RCV1-V2 dataset used your preprocess file (clean_str and clean_stopwors) and converted it to the required format {'token': List[str], 'label': List[str]}. I made the train, val, and test dataset according to the benchmark data split.
Then ran the helper.hierarchical_tree_statistic.py to get the rcv1-prob.json file.
Then used your taxonomy file and the "gcn-rcv1-v2.json"  config file (which I only replaced  "hierarchy": "sample_rcv1.taxonomy" with "hierarchy": "rcv1.taxonomy") but I am not getting a result. The precision, recall, Micro-f1 and Macro-f1 are all zero and loss is nan.
Do I need to perform any additional steps when running your code on other data (not the sample rcv1 dataset)?

Hi, Did you try to run this model directly using their RCV1-V2 data after preprocessing, which is stored in the HiAGM/data? I ran it and got a very bad result, which is far away from the result in this paper.

Yes. Same here!
The Sample data gives a result but obviously not a good result cause it's only sample data.
However, when getting the original RCV1-V2 dataset and using the preprocessed file they provided I got the precision, recall, Micro-f1 and Macro-f1 all zero and loss is nan.
I also tried with the WoS dataset and used their preprocess file and still could not get good results!

I also encountered the same problem, I got the accuracy, the recall rate, all of the micro-f1 and macro-f1 were zero, the loss was nan. How do you finally solve it? Thank you.

Hi, I try this code on another dataset and I have the same problem, I  got the precision, recall, Micro-f1, and Macro-f1 all zero, and the loss is nan. Are you solved this problem finally?

你好。我使用您的预处理文件（clean_str 和 clean_stopwors）获取原始 RCV1-V2 数据集，并将其转换为所需的格式 {'token': List[str], 'label': List[str]}。我根据基准数据分割制作了训练、验证和测试数据集。
然后运行helper.hierarchical_tree_statistic.py以获取rcv1-prob.json文件。
然后使用您的分类文件和“gcn-rcv1-v2.json”配置文件（我仅将“hierarchy”：“sample_rcv1.taxonomy”替换为“hierarchy”：“rcv1.taxonomy”），但我没有得到结果。精度、召回率、Micro-f1 和 Macro-f1 均为零，损失为 nan。
在其他数据（不是示例 rcv1 数据集）上运行代码时，我是否需要执行任何其他步骤？

请问一下您是怎么操作的呢，我一直操作报错

Me too. precision 、recall 、f1-score are 0,0,0,

You should using the complete version of dataset. The dataset which now available in this repository isn't complete and for this reason you can not get good out come!


"Belciugatele" is listed in the drop-down menu

Description:
"Belciugatele" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Belciugatele" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Belciugatele, CĂLĂRAȘI ".


GPU says Unknown even after running WinSAT

The "winsat" command is not missing. This command "wmic path win32_VideoController get name" produces an actual results if that helps.

does your Windows registry have a key at "SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinSAT" ?

There's "WindowsExperienceIndexOemInfo" but it's empty.

is the key above it empty?

No, the key above, which was supposed to be "WindowsExperienceIndexOemInfo," which no longer exists after I reinstalled Windows 10, is not empty. There are four DWORD values. They are "CKCLStart", "WsSwapInterference", "WsSwapResult", and "WsSwapThroughput" whose data are "0", "2686992", "452608", and "452608," respectively.

there should be many more DWORDS, as well as three strings

it looks like it might be an issue with your windows install and/or the registry itself, which in that case is an issue i cannot fix

Running "winsat formal" now fixes the issue. Maybe it has something to do with the previous state before reinstalling Windows. Just write this off as an user error. Keep up the good work.

thank you, glad things worked out


Compose error details are not propagated to Ibiza or CLI

If docker-compose throws an error, the error details are not propagated to either Ibiza or the CLI.

@alinamstanciu this is mostly because we directly invoke docker-compose binary, which prints arbitrary output instead of a structured one. I believe we should not rely on their output format and try to parse out something meaningful.
Here is a failure:
Pulling sleep (busyboxs:latest)...
Error: image library/busyboxs not found

Here is another:
Validation failed in file '/etc/docker/compose/docker-compose.yml', reason(s):
Unsupported config option for 'sleep' service: 'commands'

As you see, totally unstructured.
Would a better error message such as docker-compose failed with exit code 1, check out /var/log/.../docker-extension.log be more helpful to you?

Would it be possible to just pass-through the stderr contents when the exit code is not 0? Otherwise, the error message you suggested is good as well.
(Also, since docker-compose can be flakey at times, could you add some logic to retry docker-compose a second time in case of failure?)

@vishwam For now I just added the path of the log file that contains the docker-compose error to the error message that goes to the portal. This is effective in v1.1.1606092330
I have some concerns about adding retries as re-running docker-compose up has certain semantics about already running containers. Feel free to open another issue if not having retries really impacts you.


753 fix keys serialization for bfv scheme

Submitted instead of https://github.com/openfheorg/openfhe-development/pull/752


Preserve existing Random seed behavior in Python 3.11

Fixes #602. See https://github.com/holoviz/param/issues/602#issuecomment-1155147795 for rationale and caveats.
You might instead prefer to use a fixed seed of<PHONE_NUMBER>9543488215. That would change the current initial state on older CPython versions (particularly Python 2.7) and on 32-bit builds of CPython; these would become consistent with the initial state on 64-bit builds of supported CPython 3.x versions.

Added an explanatory comment and force-pushed.

Codecov Report

Merging #638 (42e2f98) into master (95280d3) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #638   +/-   ##
=======================================
  Coverage   84.26%   84.26%
=======================================
  Files           5        5
  Lines        3088     3088
=======================================
  Hits         2602     2602
  Misses        486      486

Impacted Files
Coverage Δ

numbergen/__init__.py
83.96% <100.00%> (ø)

Continue to review full report at Codecov.

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

Looks good to me! I'll let @jbednar make the final decision to merge though.


phpinfo() does not show aerospike PHP client version

It will be great if you can add functionality in the PHP client to display the version information when phpinfo is called.

Actually it does, something like this
aerospike

aerospike support => enabled
client version => 7.5.2


Solves Day 3

Closes #5

Part 1
Ok, so with this problem, we need to be able to walk the elements around a found number. This is going to require a little 2-step routine where we: 1) isolate a number, and 2) walk around its periphery. At least, that's what I've done in previous solutions for this problem... There is another basic approach, which involves first finding a symbol, then finding all of the numbers around the symbol. Just going based on the information given in the problem, it doesn't really seem like either approach comes with any definite advantage over the other. The worst-case scenario for the first approach is a schematic which contains a bunch of numbers separated evenly by the separator char ("."), while the worst-case scenario for the second approach is a schematic full of symbols but no numbers. In either case, we end up with a runtime complexity of O(m*n), where m is the number of lines, and n is the number of chars on each line.
The question is whether there is anything we can do that would improve the runtime complexity... I don't really think we can in this case. In the worst-case scenario, we're still going to have to walk over every line and every char on each line at least once in order to ensure that we find all of the part numbers, right?
The next question has to do with memory. Because we're having to walk the area around a given element (or set of elements), we're going to need access to our current line, the previous line, and the next line in the file when we're assessing a number to determine if it is a valid part number. This is super-duper easy if we just put the entire schematic into memory. Our data file is only 20K in size, so it wouldn't really be the end of the world if we put the whole schematic into memory. But, well, you know... We're using Rust for this problem, so it just feels kind of wrong to parse data like that...
So, here's what we can do. We can stream in a line in the file, and we can find the numbers in the line. We can check the characters to the left and right of the number to see if they are characters, and if so, we do our little summation, but if not, we need to hold onto the part numbers until the next iteration. We're also going to look for symbols and record the index of every one we find in a HashSet or something (this will be used on the next iteration). On the next iteration, we're going to find both part numbers (same as above), but this time we're going to also check the symbol HashSet for the previous line in order to validate the parts. Also, we're going to create a new HashSet of symbols, and see if we can validate any of the invalid parts from the previous line as well. Once we're done, we'll replace the previous symbol HashSet with the new symbol HashSet, and we'll remove the old invalid part numbers and insert our new set of invalid part numbers (for the current line).
To support this, we'll need a little PartNumber struct to hold onto the part number and the start and end positions of where it occurs on the line in the schematic. The only thing we need to know about the symbols we find is their index position, so we can just use a HashSet to hold those.

Just for argument's sake, if I didn't care so much about memory consumption and speed, a simpler approach would be to simply walk through the file one time and store the lines & char positions of every number and symbol in the file. After that's completed, you could simply walk through the list of numbers and see if there are any symbols in their vicinity with some nice and easy O(1) lookups.

Ok, first issue that we need to conquer is the functionality for determining if a character is a "symbol". AoC is not giving us a very strong definition for what qualifies as a valid "symbol", so we're going to take the more conservative approach that any character which is not a separator character (i.e. ".") or a number must be a "symbol". We could implement this with a HashSet, but it's far simpler to implement with regex, so that's what we're going to do.

Hmmm... So I'm almost done coding up this solution, and I'm starting to rethink my approach. My current approach is really optimized for memory consumption, but we're sacrificing a bit of runtime perf in the process (as we're having to loop over our current set of part numbers multiple times. Instead, what I really want to do is to grab three lines of symbol positions, then check the part numbers on the middle line against our found symbols. This way, we only have to loop one time over each line.
So for this approach, at any time, we're going to have 3 separate HashSets of symbol positions, and 2 separate vectors of PartNumbers. We're going to have our current line's data (symbols and parts), the previous line's data (symbols and parts), and the previous-previous line's data (symbols only). We're going to read all of our current line's data, then validate parts for the previous line. Then, before we begin the next iteration, we're going to shift everything back one (current becomes prev, prev becomes prev_prev)... Make sense? Yeah... Probably should just read all of the file contents into memory and stop trying to be so fancy with this thing.

Part 2
Ok, that last implementation was much better. Now on to part 2. This problem can actually be solved pretty much the same way as the previous problem. This time though, we're going to be looking for part numbers around a symbol, rather than symbols around a part number. Rather than using HashSets, we can just do some simple number comparisons to see if the index ranges overlap. Easy peasy.

Problem complete, ready to merge


[DO NOT MERGE] Prefix sharing (bug fixed)

Bug fixed and ready to run version

@suquark      hi，Will it work properly when you complete this PR?


front-end folder was not created

Required check list:

[✔] I didn't find in the repository's issues section a similar bug.
[✔] I understand, this is an Open Source and not-for-profit product.
[✔] This is not about a third-party project, framework, or technology.

My environment:

OS (uname -a): win 11
Go (go version): 1.21.0
npm 9.8.1
go-cli 4.0.1

Describe the bug:
_I created a project but front-end folder didn't create.
Steps to reproduce the behavior:

run cgapp create
select fiber as backend framework
select next-ts as front-end
select traefik
select Yes to start create

Expected behavior:
A clear and concise description of what you expected to happen.
i expected that front-end, backend , and other folders created but there was no front-end here
Screenshots:

Hi,
Did you install npm v7 or higher on your system?

Fixed in v4.1.0

I have the same issue in cgapp v4.1.0.


Smaller fixes

Disables the DNS validation check for emails when logging in as otherwise that check may prevent someone from logging in and updating their email address in the event that their domain is changed / an email service is shutdown.
Modifies the PDF template to hide fields for more items that are unset. Closes #1998. Also replaced a sloppy portion of the footer which would display extra commas for companies which did not have 3 address lines.

PDF Footer Before

PDF Footer After

Thanks, would love to see that live soon!


Changes related to new alias feature

Task description
[placeholder]
to/from account logic (subaccounts)
Sub-tasks

[ ] subtask 1
[ ] subtask 2
[ ] subtask 3

Add label for component and priority.

Not relevant after discussion with Mjølner.


use token if provided in request options, fallback to token from conf…

…ig/env

I had a use case where I needed to be able to dynamically set the API token at runtime. This is totally backward compatible. All it does is if you provide a :token value in the options for any request, it will use that instead of the one from the environment.

This sounds great, any reason for closing it?

I realized it needed a bit more work. I assumed that all the functions took
an options map, but looking further I realized the didn't. So I need to
change that too.
On Tue, Nov 1, 2016 at 12:32 PM, David Stump<EMAIL_ADDRESS>wrote:

This sounds great, any reason for closing it?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/davidstump/slackex/pull/4#issuecomment-257669672, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAWhH8HeSH2TKs6HP0UOVapzIYF9UW6oks5q55PbgaJpZM4KmYYI
.

--
Sasha Voynow
Lab Zero
Pier 9, The Embarcadero
San Francisco CA 94111
510 859 3206
skype: sasha.voynow
www.labzero.com

Gotcha. Sounds like a good update when its done 👍


union of 2 nulls throws exception

CrateDB version
4.8.1
CrateDB setup information
No response
Steps to Reproduce
 select null from sys.nodes
 union
 select null from sys.nodes;

Expected Result
NULL
Actual Result
SQLParseException[Couldn't create executionContexts from
NodeOperations: [1=>NodeOp{ phase{id=1/collect, nodes=[TWjirRwwSq-cS0-ktexcMg], dist=BROADCAST}, downstreamNodes=[TWjirRwwSq-cS0-ktexcMg], downstreamPhase=2, downstreamInputId=1}, 0=>NodeOp{ phase{id=0/collect, nodes=[TWjirRwwSq-cS0-ktexcMg], dist=BROADCAST}, downstreamNodes=[TWjirRwwSq-cS0-ktexcMg], downstreamPhase=2, downstreamInputId=0}]
Leafs: [MergePhase{executionPhaseId=2, name=union, projections=[io.crate.execution.dsl.projection.GroupProjection@5b831568], outputTypes=[undefined], jobId=c7d7857b-195a-bb97-4372-c5157d6dcbd1, numUpstreams=2, numInputs=2, nodeOperations=[TWjirRwwSq-cS0-ktexcMg], inputTypes=[undefined], orderBy=null}]
target-sources: [2=>[0, 1]]
original-error: UnsupportedOperationException: Cannot GROUP BY type: undefined]

another issue with the same root cause:
select nn, sum(counter)
from (select null as nn, 1 as counter from pg_stats) t
group by nn;

shows error
Cannot group or aggregate on 'nn' with an undefined type. Using an explicit type cast will make this work but adds processing overhead to the query.


[Event Modification] codeunit 90 "Purch.-Post"  OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists

Hello,
Is it possible to add the following to an Event:
    OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(PurchaseHeader, PostingDateExists, ReplacePostingDate, PostingDate);

to         OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(PurchaseHeader, PostingDateExists, ReplacePostingDate, PostingDate, ReplaceDocumentDate);
ReplaceDocumentDate as var

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Add genpkey command

As genrsa has been deprecated
Also, describe the static encryption method will be stored on the Metadata service (depending which one is used, can be other than Redis).

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

@acsfer Thanks！


Add more width for the date column in agenda view

As shown below, the date and day of the week column in Vietnamese looks quite odd because it is divided into 2 lines while the right column has a lot of empty space left. Max-width may need to be larger so that the date content is displayed in just 1 line.
Thank you for reading

Hi @kztera
Did you solve this with the custom headRenderer ?


docs(qa/v1): Add section on storage optimization

Closes #2746
Rendered

PR checklist

[ ] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[ ] Updated relevant documentation (docs/ or spec/) and code comments
[ ] Title follows the Conventional Commits spec

@Mergifyio backport v1.x


Can this feedstock add osx-arm64 to it's build pipelines?

Comment:
Based on what I have read here: https://conda-forge.org/blog/posts/2020-10-29-macos-arm64/
I'm wondering if this feedstock can be build for macos-arm64?
We may need the help of @conda-forge/help-osx-arm64

Thank you @erykoff!


Link to Group Naming Policy feature, link please

Please insert link to the preview feature on Group naming  https://portal.azure.com/#blade/Microsoft_AAD_IAM/GroupsManagementMenuBlade/NamingPolicy

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

ID: 0753620c-8f40-dc10-8884-b7b23f416bea
Version Independent ID: 661ddf49-aefc-7f17-4c65-f3b09a10b9ce
Content: Plan for Office 365 Groups governance
Content Source: Office365-Admin/create-groups/Plan-for-groups-governance.md
Service: o365-administration
GitHub Login: @MikePlumleyMSFT
Microsoft Alias: mikeplum

@officedocsbot assign @mypil

@blouwagie - Thank you for submitting feedback.
I will get this issue over to the O365ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@blouwagie - From our understanding, the issue has been resolved but it may take a few days for the merged content to appear in the article. If you feel it hasn't been resolved, please re-open this issue.
Thank you for your contribution to make the docs better! Much appreciated!

Thank you Joyce
Bart Louwagie
Holmes, NY
<EMAIL_ADDRESS>845 202 0239 (google voice)
http://louwagie.com
https://www.linkedin.com/in/bart-louwagie/
(when conference call https://www.uberconference.com/bart40 is needed)
On Thu, May 23, 2019 at 11:53 AM Joyce Y<EMAIL_ADDRESS>wrote:

@blouwagie https://github.com/blouwagie - From our understanding, the
issue has been resolved but it may take a few days for the merged content
to appear in the article. If you feel it hasn't been resolved, please
re-open this issue.
Thank you for your contribution to make the docs better! Much appreciated!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/OfficeDocs-O365ITPro/issues/500?email_source=notifications&email_token=AESZT5N4WWJ7ATHGWIY5S7DPW24YDA5CNFSM4HOENWKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWCVNZQ#issuecomment-495277798,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AESZT5JD4RKRUMX6T3XSJCLPW24YDANCNFSM4HOENWKA
.

@officedocsbot close


Request: Make JustPy more reactive

Please forgive my ramblings below. I know what I'd like to see but don't know whether they are feasible.
First some shortcomings in the current implementation of models/bindings in JustPy:

Setting the model as model=[wp, 'text'] is not very descriptive. It suggests that more items can be provided (could it?). At least using a tuple conveys more clearly that it is unchangeable. I'd prefer something more verbose model=dict(owner=wp, prop='text') or maybe even model='wp.text'.
In Vue one can use more data bindings than just the model (but the model is two-way). Multiple arguments can be bound to data with the ":", as in :icon="some_object.icon". Maybe something like this could be extended to components arguments in JustPy. Something along the lines of model={'owner': wp, 'text':'text', 'icon':'preferred_icon'). Or maybe even bindings={'text': 'wp.text', 'icon':'wp.preferred_icon'}

Then, a wish:
One thing I liked about using Vue (+Quasar) was the way to have the components adjust themselves to changes in data. For example, say I want a list of items and I want to be able to filter that list of items. The user enters some filter criteria (through a search box or check boxes.
Then I'd construct the list like so:
 <q-list>
          <q-item v-for="service in filteredServices" :key="service.uuid"
                  :to="{name: 'service_details', params: { uuid: service.uuid }}"
                  separator
          >
            <q-item-main>
              {{ service.path }}
            </q-item-main>
          </q-item>
        </q-list>

where the filtered list would be a computed data property:
  export default {
    data () {
      return {
        services: [],
        filterText: ''
      }
    },

    computed: {
      filteredServices () {
        return this.services.filter(el => {
          const path = el.path.toLowerCase()
          return path.indexOf(this.filterText.toLowerCase()) !== -1
        })
      }
    },

(the services data property would be fetched from the server).
The big advantage of all this is that the list would automatically adjust if any of the underlying data changes (ie the filtered list changed due to the user entering filter criteria).
With JustPy I can't see another way of detecting the change in filter criteria, remove the old list components, construct a new component list based on the newly filtered data, insert that component list into the page. It works but feels clumsy because you have to manually manipulate the components (old and new).
Anyway I hope the above makes any sense.

Please see below an example of a program that does what you would like:
import justpy as jp

def check_box_clicked(self, msg):
    wp = msg.page

    def my_filter(var):
        for letter in self.value:
            if var.startswith(letter):
                return True
        return False

    filtered_list = list(filter(my_filter, wp.list_item_text))

    for c in wp.q_list.components:
        if c.components[0].text not in filtered_list:
            c.show = False
        else:
            c.show = True

def reactive_list_test():
    wp = jp.QuasarPage()
    d = jp.Div(classes="q-pa-md", style="max-width: 400px", a=wp)
    wp.list_item_text = ['apple', 'ad', 'aardvark', 'again', 'bean', 'bath', 'beauty', 'can', 'corner', 'capital']
    wp.q_list = jp.QList(dense=True, bordered=True, padding=True, classes="rounded-borders", a=d)
    for word in wp.list_item_text:
        q_item = jp.QItem(clickable=True, v_ripple=True, a=wp.q_list)
        jp.QItemSection(text=word, a=q_item)

    option_group = jp.QOptionGroup(type='checkbox', color='green', a=d, input=check_box_clicked, value=['a', 'b', 'c'],
                                   inline=True, classes='q-ma-lg',
                    options=[{'label': 'A words', 'value': 'a'}, {'label': 'B words', 'value': 'b'}, {'label': 'C words', 'value': 'c'}])

    return wp

jp.justpy(reactive_list_test)

You don't need to remove the old components or insert new ones,  just change their show attribute and the framework does the rest. So I think JustPy is reactive. Because the show attribute changes, what is displayed changes (you can also accomplish this by changing classes).
I am interested in this discussion because it shows me that I have not been explaining the framework well. Please let me know your thoughts on the issue and I hope we can continue this conversation. Also, if any aspect of the program above is not clear, please let me know.

I think that would work but it feels less clean as the Vue way of doing things. I think it leads to spaghetti code in real programs.
Since I posted this issue I have experimented with custom components, and that cleans up the code immensely. One of the advantages of the Vue style is that one does not have to keep references to the components around in order to manipulate them later. Especially when one use deeply nested structures (eg a List with Items Which contain Sections which contain Text and Avatars etc etc etc).
When one uses custom components the state is "local" (available through self) and its representation (the HTML components) is also "local". By using the react method makes the representation "follow" the state. Much more elegant. (Don't know if this paragraph makes any sense to you).
So, in conclusion, IMHO JustPy is not reactive in the Vue sense, but the need is less due to the ease of use of custom components. But this needs a very different way of thinking. More articles on how to structure programs in a JustPythonic way would be very welcome.

I found that measuring the network performance between the browser and my justpy app server , after few interactions the used bandwidth rises up to 4-5 Mbps and stays constant, reducing the response time of the GUI, worsening the user experience. This arises more evident when the user is not is the same LAN of the server.
I have read the VueJs is a bottle neck in other issues, and indeed I found it the most CPU hungry module with the browser performance analyzer.
Is there any smart way to reduce the impact of VueJs to the browser (Firefox) performance? I
Would it be possible to disable the usage of VueJs? Maybe avoiding to use some kind of page class and/or widgets?

I found that measuring the network performance between the browser and my justpy app server , after few interactions the used bandwidth rises up to 4-5 Mbps and stays constant, reducing the response time of the GUI, worsening the user experience. This arises more evident when the user is not is the same LAN of the server.
I have read the VueJs is a bottle neck in other issues, and indeed I found it the most CPU hungry module with the browser performance analyzer.
Is there any smart way to reduce the impact of VueJs to the browser (Firefox) performance? I
Would it be possible to disable the usage of VueJs? Maybe avoiding to use some kind of page class and/or widgets?

Sorry, I don't know. Maybe someone else reading this has expertise on this subject

Sorry, I don't know. Maybe someone else reading this has expertise on this subject

I improved the efficiency of my app now, reducing the amount of data exchanged, The first prototype was quite abusive.
But I am afraid that scaling the application, the problem may come back.
Thank you, anyway.


please update the verbosity of class inheritance.

example I want to inherit the Map class and please dont require the developer to implement each of the method of the parent class.

https://api.dartlang.org/stable/2.1.0/dart-collection/MapMixin-class.html might help

The Map class is an abstract interface, so inheriting gives you no implementations of the members.
You can't declare a non-abstract class which implements Map and does not have an implementation of the Map interface. The language considers such a class a bug. If we allowed it, it would be far too easy to forget implementing some method of the interface, or, if the interface gets a new method, it is too easy to not realize that an implementation is no longer complete. In Dart 1 it was only a warning to not implement an interface completely, but in Dart 2 it is an error.
So, if you want to implement Map, then you need to get an implementation from somewhere.
There is only one concrete, extensible class implementing Map in the platform libraries: SplayTreeMap. You could extend that, but it's likely not the type of map that you want.
Alternatively, you can extend MapBase from dart:collection, which provides a default implement of most of the methods of Map.  The remaining functions are defined in terms of those
For your case, I think the best solution is to extend DelegatingMap from package:collection.
It implements the entire Map interface, and by default it forwards all calls to a map that is provided in the constructor. You can then override some of the methods, or add new methods. The delegating collection classes are provided precisely for uses like that
Example:
import "package:collection";

class MyFancyMap<K, V> extends DelegatingMap<K, V> {
  MyFancyMap() : super(<K, V>{});
  /// Fancy new method.
  void addWhere(Map<K, V> map, {bool whereKey(K key), bool whereValue(K value)}) {
    map.forEach((key, value) {
      if ((whereKey == null || whereKey(key)) && (whereValue == null || whereValue(value)) {
        this[key] = value;
      }
    });
  }

  /// New implementation of existing method.
  void addAll(Map<K, V> map) {
    // Use my method instead of the default:
   addWhere(map);
  }

  /// Specialied behavior of existing method, using old method.
  /// Here: don't store keys with `null` values, remove the keys instead.
  void opearator[]=(K key, V value) {
    if (value == null) {
      super.remove(key);
    } else {
      super[key] = value;
    }
  }
}

So, the DelegatingMap class is the easiest way to implement the entire Map interface, delegating to a map implementation of your choice. You can override the individual methods, add methods, and use super.something to use the original method. The DelegatingMap class exists precisely for this reason.


Fix systemd version detection

Change "command" to "shell" in order for the pipe to work correctly

ci check this


Laravel/Lighthouse php/Vue backend and frontend in one project errors.

Hi,
I am using lighthouse-php  for my Laravel + Vue project, and I have a small but very annoying issue. The problem is that my project requires 2 schema definitions, one for frontend the other is for the backend. lighthouse-php  uses graphql/scheme.graphql schema located in the root folder of Laravel and contains something like that:
"A date string with format `Y-m-d`, e.g. `2011-05-23`."
scalar Date @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\Date")

"A datetime string with format `Y-m-d H:i:s`, e.g. `2018-05-23 13:43:32`."
scalar DateTime @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\DateTime")

"File upload"
scalar Upload @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\Upload")

type Query {
    user: [User] @all
}
#import models/*.gql

The Vue client resides in the resources/js folder with all queries and mutations for the client. If I define my .graphqlconfig like so:
{
    "name": "DEV Schema",
    "schemaPath": "schema-frontend.graphql",
    "extensions": {
        "endpoints": {
            "dev": {
                "url": "https://dev.test/graphql",
                "headers": {
                    "Authorization": "Bearer ${env:PERSONAL_ACCESS_TOKEN}",
                    "user-agent": "JS GraphQL"
                },
                "introspect": false
            }
        }
    }
}

and execute the url it generates schema-frontend.gqaphql in root folder of Laravel.
At this point, my mutations and queries inside the client folder correctly linked with definitions in graphql/schema.graphql that are generated for backend, but with an error tried to redefine existing type error. Because schema-fronted.graphql generated via .graphqlconfig contains same definitions as graphql/schema.graphql.
If I remove schema-frontend.graphql from the project, all client mutations and queries begin to display errors such as Unknown field "name": The parent selection or operation does not resolve to a valid schema type

Basically, either way with or without generating a schema for the frontend, I end up with errors either in the backend schema or the frontend client queries and mutations, is there a way around it?
Version and Environment Details
Operation system: Linux 5.12.5-arch1-1 #1 SMP PREEMPT Wed, 19 May 2021 10:32:40 +0000 x86_64 GNU/Linux
IDE name and version:
PhpStorm 2021.1.2
Build #PS-211.7142.44, built on April 30, 2021
Plugin version: 2.9.1

Hi @asolopovas! Have you tried specifying "includes" / "excludes" globs for the configs (docs)? You can have multiple configs or the root one with multiple projects.

Hi @asolopovas,
did you fix this issue? How?

Hi @asolopovas, did you fix this issue? How?

Sorry but I did not solve the problem, excludes includes doesnt really help, best thing would be an example, but the ones we have don't cover this use case.

Hi again!
Found a solution :)
Then on the root of Laravel, create the .grahqlconfig files and put in this content:
{
    "projects": {
        "BE": {
            "excludes": [
                "./storage/app/lighthouse-schema.json"
            ],
            "includes": [
                "graphql/**",
                "schema-directives.graphql"
            ]
        },
        "FE": {
            "excludes": [
                "graphql/**",
                "schema-directives.graphql"
            ],
            "schemaPath": "./storage/app/lighthouse-schema.json"
        }
    }
}

On the GraphQL view on ide, wait until the plugin recognizes the changes.
The only downside of this approach is that every time the schemas on BE (the lighthouse graphql/ files) changes will be needed to run php artisan lighthouse:print-schema --write --json again. This command will create a lighthouse-schema.json with the compiled schema on the default path of storage and will be used by the plugin.
With only these changes, all started to work as aspected.
Let me know if work also for you or I have missed something :D

Thanks to @jBernavaPrah
For the latest version the config looks a little like:
schema: ./storage/app/lighthouse-schema.graphql
include:
    - graphql/**
    - schema-directives.graphql

You also get better performance if you use a native SDL file vs the json. so the artisan command becomes:
php artisan lighthouse:print-schema --write
But you also need to update the schema-directives.graphql every time a change occurs, so you also have to do:
 php artisan lighthouse:ide-helper
I've setup a watcher in my IDE to automatically run these 2 commands whenever a file change occurs within my projects graphql folder.


Create custom 404 page

Create a 404.md file in the root folder of the docset, with links to home page, overview pages, etc.

...and make sure it looks cool. Maybe include the DotNet bot on it: https://github.com/dotnet/swag/blob/master/dotnet-bot/dotnet-bot-pot.png

At this time, let's not create any custom 404 pages - we are working on a consistent docs experience, and would prefer at this time to not introduce any custom error pages.
We have it on our radar to improve the 404 experience.


WIP: Feature/dockerize 13

Add some docker flavour, see #13
@Simperfit , any thoughts ?

This PR point to master instead of dedicated branch. Please, close this one and rebuilt it


Error objects cannot be expanded + Fix for #20

Error objects in the state tree cannot be expanded. Thats because iterating with for...in and hasOwnProperty doesn't work here. However this should easily be fixed by adding this before line 30 in JSONObjectNode.js:
if (data instanceof Error) {
    data = Object.getOwnPropertyNames(data).reduce(function (errorObj, prop) {
        errorObj[prop] = data[prop];
        return errorObj;
    }, {});
}

In addition, to solve Objects without prototype chain are broken #20 , line 32 in JSONObjectNode.js could be changed to:
if (Object.getPrototypeOf(data) === null || data.hasOwnProperty(key)) {

(IMHO thats better than PR Fixes #20, expanding of objects without prototype #21.)
I would create a pull request, but I cannot test this, because I cannot build the package. (I cloned it from github, but get lot's of errors on npm install, npm build and npm run lint. Even after fixing npm install and npm build (by removing all the carets from the dependency versions in package.json and installing babel@5.6), with npm build the output in lib looks different from what I get from npm install react-json-tree.)
But I'm sure someone can do it. :)

Thanks! Closed by #23

PR #23 only fixes issue #20 by adding if (Object.getPrototypeOf(data) === null || data.hasOwnProperty(key)) {. The main thing this issue is about is that errors cannot be extended, which is because the for...in loop doesn't iterate over Error instance properties.

@skleeschulte sorry I read it wrong, reopened this issue

Should be fixed by https://github.com/alexkuz/react-json-tree/commit/dadf3d3a07db749abb3d1ece3ec51627eb650165


Pygments' PythonLexer eats leading blank lines

(Original issue 420 created by None on 2009-06-30T14:45:36+00:00)
Steps to reproduce:

go to dumpz.org
click "Python"
enter a blank line, then a line of Python code
click "Submit"
Observe leading blank line has disappeared

(I observed this in PuDB, but dumpz makes for a convenient way of demonstrating the bug.)
Reported by guest

(Original issue was assigned to gbrandl)
(Original issue 420 last updated on 2009-09-11T13:35:43+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by gbrandl on 2009-09-11T13:35:43+00:00)
Lexers always strip newlines from the input, unless you give the "stripnl=False" option.

(Original comment by thatch on 2009-06-30T19:25:38+00:00)
Confirmed, it also happens in pygmentize.  Doesn't appear to be confined to the Python lexer though.


fix: use name from package json within the patch

To make myself more familiar with wiby I started testing with two repos created for testing purposes.
The dependency repo my-dependency-id-a and the parent consuming it
the target modules would be @gvhinks/my-dependency-id-a and the parent @gvhinks/my-parent.
What I found was that the name from the package.json should be used and not the repo name in the patch as some names will be scoped and we should not assume the repo and package name are the same.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.

Thanks! Mind adding a test?
BTW, my understanding is that the DCO can stay in the comment.

updates to unit test as suggested from the previous review.

:tada: This PR is included in version 0.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 0.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Unknown object type: Credential

Using this custom extension to publish my ADF to UAT environment but getting this error
2022-12-01T17:15:03.0101131Z ##[error]ADFT0029: Unknown object type: Credential.
I have installed all the latest modules on my ADO agent box, also to avoid this error I am excluding credential and linkedservices.json files too.

2022-12-01T17:14:21.6135496Z ##[section]Starting: Publish ADF m---01 from JSON files
2022-12-01T17:14:21.7357504Z ==============================================================================
2022-12-01T17:14:21.7358570Z Task         : Publish Azure Data Factory
2022-12-01T17:14:21.7359179Z Description  : Deploys entire ADF (v2) from JSON files to ADF instance (adftools)
2022-12-01T17:14:21.7359567Z Version      : 1.14.1173
2022-12-01T17:14:21.7359990Z Author       : Kamil Nowinski (SQLPlayer)
2022-12-01T17:14:21.7360722Z Help         : More Information
2022-12-01T17:14:21.7361265Z ==============================================================================
2022-12-01T17:14:25.6144883Z PowerShell: 5.1.19041.1682 Desktop
2022-12-01T17:14:50.5560251Z Added TLS 1.2 in session.
2022-12-01T17:14:51.9959278Z ##[command]Import-Module -Name C:\Users\tdevsvd\Documents\PowerShell\Modules\Az.Accounts\2.10.3\Az.Accounts.psd1 -Global
2022-12-01T17:14:53.7272328Z ##[command]Clear-AzContext -Scope Process
2022-12-01T17:14:56.7041751Z ##[command]Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue
2022-12-01T17:14:56.9207902Z ##[command]Connect-AzAccount -ServicePrincipal -Tenant 66f05666-5faf-4497-99ba-2265c92ebdd5 -Credential System.Management.Automation.PSCredential -Environment AzureCloud @processScope
2022-12-01T17:15:00.0521071Z ##[command] Set-AzContext -SubscriptionId 1a29696e-3528-4688-b1d2-d2c57c515e6d -TenantId 66f05666-5faf-4497-99ba-2265c92ebdd5
2022-12-01T17:15:01.1672080Z 0 rule(s)/object(s) added to be included in deployment.
2022-12-01T17:15:01.1853304Z 2 rule(s)/object(s) added to be excluded from deployment.
2022-12-01T17:15:01.2099644Z ======================================================================================
2022-12-01T17:15:01.2117834Z ### azure.datafactory.tools                                       Version 0.97.000 ###
2022-12-01T17:15:01.2129848Z ======================================================================================
2022-12-01T17:15:01.2142150Z Invoking Publish-AdfV2FromJson (https://github.com/SQLPlayer/azure.datafactory.tools)
2022-12-01T17:15:01.2154136Z with the following parameters:
2022-12-01T17:15:01.2165406Z ======================================================================================
2022-12-01T17:15:01.2179437Z RootFolder:         C:\Users\tdevsvd\Downloads\vsts-agent-win-x64-2.213.2_work\r3\a_TML-ADF
2022-12-01T17:15:01.2192892Z ResourceGroupName:  m-**********
2022-12-01T17:15:01.2204844Z DataFactoryName:    m-********
2022-12-01T17:15:01.2222652Z Location:           EastUS2
2022-12-01T17:15:01.2234972Z Stage:              C:\Users\tdevsvd\Downloads\vsts-agent-win-x64-2.213.2_work\r3\a_TML-ADF\deploymentConfig\config-uat.csv
2022-12-01T17:15:01.2259409Z Options provided:   True
2022-12-01T17:15:01.2271224Z Publishing method:  AzResource
2022-12-01T17:15:01.2325231Z Is Dry Run?:        False
2022-12-01T17:15:01.2338490Z ======================================================================================
2022-12-01T17:15:01.2383563Z Publish options are provided.
2022-12-01T17:15:01.2397049Z STEP: Verifying whether ADF exists...
2022-12-01T17:15:02.3513857Z Azure Data Factory exists.
2022-12-01T17:15:02.3546316Z ===================================================================================
2022-12-01T17:15:02.3562004Z STEP: Reading Azure Data Factory from JSON files...
2022-12-01T17:15:02.5311017Z IntegrationRuntimes: 1 object(s) loaded.
2022-12-01T17:15:03.0101131Z ##[error]ADFT0029: Unknown object type: Credential.
2022-12-01T17:15:03.0990321Z ##[section]Finishing: Publish ADF ************ from JSON files

Yes, that's correct. The extension has not been updated to the latest version and you can't enforce it.
The update will take place in the next couple of days.

Fixed in ver.1.15.1239, just released.

Fixed in ver.1.15.1239, just released.

Thanks so much Kamil for the prompt response.

It's working .....


UI Feature: Reorder / move tabs

Give user ability to reorder tabs within Stroom.
Relates to #2584 with which this provides a useful workflow.

Duplicate of #2279


Requiring @celo/abis in Node env doesn't work

Expected Behavior
Should be able to do the following
const { BlockchainParameters } = require("@celo/abis/types/ethers");

then use BlockchainParameters's abi
const blockchainParameters = new ethers.Contract(
  "0x6E10a8864C65434A721d82e424d727326F9d5Bfa",
  BlockchainParameters.abi,
  provider
);

Current Behavior
Module not found

handled with #10290