Fix local test groups listing for listGroups query

Feature or Bugfix

Bugfix

Detail

Locally when trying to invite a team to Env or Org we call listGroups and the returned LOCAL_TEST_GROUPS is not returning the proper data type expected

Relates
N/A
Security
Please answer the questions below briefly where applicable, or write N/A. Based on
OWASP 10.

Does this PR introduce or modify any input fields or queries - this includes
fetching data from storage outside the application (e.g. a database, an S3 bucket)?

Is the input sanitized?
What precautions are you taking before deserializing the data you consume?
Is injection prevented by parametrizing queries?
Have you ensured no eval or similar functions are used?

Does this PR introduce any functionality or component that requires authorization?

How have you ensured it respects the existing AuthN/AuthZ mechanisms?
Are you logging failed auth attempts?

Are you using or adding any cryptographic features?

Do you use a standard proven implementations?
Are the used keys controlled by the customer? Where are they stored?

Are you introducing any new policies/roles/users?

Have you used the least-privilege principle? How?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

To Confirm if others can replicate the same error: @SofiaSazonova @dlpzx  @petrkalos


Feature Request: Allow non-static reference due to lifetime invariance

Hello. My primary use case for static-cell is not to get &'static mut T, but to have T living in static allocation. But the problem is that T: 'static. So code like this would not compile:
    struct Foo<'a>(&'a i32);
    static FOO: StaticCell<Foo> = StaticCell::new();

    let num: i32 = 3;
    let value = Foo(&num);
    let foo = FOO.init(value);

383 |     let num: i32 = 3;
    |         --- binding `num` declared here
384 |     let value = Foo(&num);
    |                     ^^^^ borrowed value does not live long enough
385 |     let foo = FOO.init(value);
    |               --------------- argument requires that `num` is borrowed for `'static`
386 | }
    | - `num` dropped here while still borrowed

But that code with Box would:
    struct Foo<'a>(&'a i32);

    let num: i32 = 3;
    let value = Foo(&num);
    let foo = Box::leak(Box::new(value));

This is because of the bound Box::leak has:
    pub fn leak<'a>(b: Self) -> &'a mut T
    where
        A: 'a,

It returns any lifetime, including 'static, but also smaller ones
Can that same lifetime be on StaticCell::init? I don't know any use case where it is useful for ConsStaticCell though

I'm not sure how this would work. you'd have to do static FOO: StaticCell<Foo<'a>>, but there's no way to name the 'a lifetime from a static.

Would type inference make it work? type_alias_impl_trait

even with TAIT, the static is a separate item, so the inferred type isn't allowed to mention generic parameters / lifetimes from the parent scope.


Adding Email as an option to contact

Adding an email icon that directs the user to the default mailing with your email address in the Receiver's Address.

i would like to contribute ,please assign with hacktoberfest tag


Error while running: az appconfig show-deleted

Hello!
I found out that one of azure cli comand for appconfig is not working and throwing error that this key is misspelled.
az appconfig show-deleted
https://docs.microsoft.com/en-us/cli/azure/appconfig?view=azure-cli-latest#az-appconfig-show-deleted
az appconfig show-deleted -n <AppConfig name>
'show-deleted' is misspelled or not recognized by the system.
[Enter feedback here]

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

ID: 141619ee-fd83-7493-88a3-afd818d6c56e
Version Independent ID: 25e4c840-d438-02ef-2363-77b9616f006b
Content: az appconfig
Content Source: latest/docs-ref-autogen/appconfig.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

route to CXP team

@VSE-ops Thank you for reaching out, we are looking into it.

@VSE-ops We unable to reproduce the issue, can you please upgrade to the latest version of az cli 2.39.0


Help links in IDE are broken

Example: "Getting started with an external client" in Help links to http://emr.ge/manual/getting_started_osx, which 404's.

Similarly, the link on the npm page is broken, maybe should just go to a "coming soon" page.


alias composer conflicts with composer where no composer.json files is already there

Fixed with clitools 2.1.1


AWS Lex Web UI mounting delay

During the development of our QnABot, we observed that the Lex Web UI requires a variable amount of time to initialize, ranging from a minimum of approximately 4 seconds to a maximum of 10 seconds, before it begins posting the initial message. This latency results in a noticeable delay before users are presented with functional content on the screen, which has led to concerns regarding the user experience.
Upon thorough examination of the QnA Bot's codebase, we have identified that the mounting process is preceded by a Promise.all call, as detailed below.

To get Bot metadata from "api-stage".
To Authenticate using "cognito-idp".

Are there opportunities for streamlining these steps, or could we implement any configuration modifications to enhance the speed of the same?

Hi @DiljithNair
Is this issue related to Lex_Web_Ui? If so, please submit the issue to the github of that component at https://github.com/aws-samples/aws-lex-web-ui


Design Detailed Search Record Page

One page for all the data (no drill down to further information).
Need to write the features list.

another duplicate of #107, so closing.


docs(auth): add Microsoft Azure as an SSO provider (#3779)

This PR adds an how-to page about configuring Microsoft Azure as an OIDC provider.
This page does not configure a groups claim since I was not able to make it work in my deployment.  I see groups in the Users & Groups tab, so I'm not sure what is the problem.  I can investigate maybe later, but the how-to page still has value.
Related issue: #3779
Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[x] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable)

@jjoyce0510 Let me know if you prefer to wait until I (or someone else) spend some time figuring out the problem with the groups claim.  My DataHub seems fine without it, but I am not using all its features.  Let me know if you want things to be changed.


Implement helper for Linode instance creation

This changes introduces Linode Go SDK helper functions.
Fixes: https://github.com/linode/cluster-api-provider-linode/issues/25

@zliang-akamai FYI

I think we intentionally removed internal directory before. Would you integrate your implementation into the code outside of internal?

I think we intentionally removed internal directory before. Would you integrate your implementation into the code outside of internal?

Done @zliang-akamai

I think we can cleanup this older client creation function and replace it with the newer one.
https://github.com/linode/cluster-api-provider-linode/blob/main/cloud/scope/cluster.go#L51-L65

By the way, I think we might be able to leave all logic that makes calls to linodego package within cloud/scope? And we had a previous discussion in another PR that a simpler linodego client in the cluster scope might be enough for we have now.. What do you think?

Change requests would be targeted in a separate PR.


Menu not resizing properly on Chrome or Firefox

It looked like this menu had great potential.  However, I've uncovered a huge issue that prevents its use until I can solve it.  In my test page, or the menu's demo page, if you restore down on a Windows PC in either Firefox or Chrome the menus stay "dropped" / expanded down and the slide down feature performs erratically.  Any idea why?

Yes, the download version 1.3.3 will not work.
Error comes from this line
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

Place a jquery.min.js inside folder /js/ and change line to
<script src="js/jquery.min.js"></script>

Thank you for the reply.  I switched to a local copy of jQuery and get the same results on window resize:
http://dev.hcca.org/flexnav/index0.html
Am I doing something wrong? Thanks for the help. (i didn't get an email that my comment had a reply so hadn't revisited until now)  I hope to use your great looking menu

Follow up ... I'm guessing you directed me to use a local copy of jquery because all the menus were dropped down/expanded.  The menus work and drop/slide up and down until you resize the window at which point everything gets confused.  I'm not seeing any errors or warnings in Firefox's Console that would explain this.

I hope to use your great looking menu

It's not by me.
Don't know how to fix this.
Maybe you will give this one a chance https://github.com/samikeijonen/responsive-nav.js It's a fork of https://github.com/viljamis/responsive-nav.js/issues/178

hi had the same problem, solution that works for me below, note that I put another class to li element which have ul inside, This is only for convenience in creating my template
	$(window).resize(function() {
	    $('.sub-menu').hide();
	});

I was having the same problem as well.  Didn't matter what browser I was using.  After resizing a few times and then hovering over a menu item the submenu would not close after moving the curser to another menu item.  This results in many submenus being open at the same time.  I found that the problem was in the resizer function itself.  Specifically the following line:
$('.item-with-ul').find('ul').removeClass('flexnav-show');
needs to be changed to:
$('.item-with-ul').find('ul').removeClass('flexnav-show').hide();
Here is the whole resizer function with the correction:
`resizer = function() {
  var selector;
  if ($(window).width() <= 780) {
    $nav.removeClass("lg-screen").addClass("sm-screen");
    if (settings.calcItemWidths === true) {
      $top_nav_items.css('width', '100%');
    }
    selector = settings['buttonSelector'] + ', ' + settings['buttonSelector'] + ' .touch-button';
    $(selector).removeClass('active');
    return $('.one-page li a').on('click', function() {
      return $nav.removeClass('flexnav-show');
    });
  } else if ($(window).width() > 780) {
    $nav.removeClass("sm-screen").addClass("lg-screen");
    if (settings.calcItemWidths === true) {
      $top_nav_items.css('width', nav_percent);
    }
    $nav.removeClass('flexnav-show').find('.item-with-ul').on();
    $('.item-with-ul').find('ul').removeClass('flexnav-show').hide();
    resetMenu();
    if (settings.hoverIntent === true) {
      return $('.item-with-ul').hoverIntent({
        over: showMenu,
        out: resetMenu,
        timeout: settings.hoverIntentTimeout
      });
    } else if (settings.hoverIntent === false) {
      return $('.item-with-ul').on('mouseenter', showMenu).on('mouseleave', resetMenu);
    }
  }
};`


Error : https://notpx.app/api/v1/offer/check

ERROR    | 1234 - 4 | Unknown error: 403, message='Forbidden', url=URL('https://notpx.app/api/v1/offer/check')
Then sleep

ERROR    | 1234 - 4 | Unknown error: 403, message='Forbidden', url=URL('https://notpx.app/api/v1/offer/check')
Then sleep

Try updating the script. I’ve made some adjustments to address your situation.

Thanks for quick action
bu still continue
ERROR    | 1236 - 1 | Unknown error: 403, message='Forbidden', url=URL('https://notpx.app/api/v1/offer/check')
As a workaround, I disable the relevant lines and run normally
 # await self.check_response(http_client=http_client)

and
# async def check_response(self, http_client):
#    headers_ = copy.deepcopy(headers_check)
#    headers_['User-Agent'] = self.user_agent
#    response = await http_client.post("https://notpx.app/api/v1/offer/check", headers=headers_)
#    response.raise_for_status()

same

same

Today, I was researching the game and noticed that during the launch, it makes a request to the check controller. I decided to add this request to the bot to make it mimic the game's behavior as closely as possible in terms of requests. However, it seems that not everyone’s game makes a check request. In your case, during the request, you are getting a "403 Forbidden" response, meaning access is denied.

same error, how to fix it?

same error, how to fix it?

fixed


Variable substitution doesn't work in settings.json file

Hello everyone,
Here is logs for language server:
[Info  - 3:42:34 PM] User search paths:
[Info  - 3:42:34 PM]     /Users/artemav/code/GPflow/${env:HOME}/.local/virtual-site-packages
[Info  - 3:42:36 PM] done.
[Info  - 3:42:36 PM] Analysis restarted

Here are settings:
    "python.autoComplete.extraPaths": [
        "/Users/artemav/.local/virtual-site-packages",
        "${env:HOME}/.local/virtual-site-packages"
    ]

And not only env variables don't work, workspaceFolder variable doesn't work either. Check this thread https://github.com/microsoft/vscode-python/issues/7684#issuecomment-557730292.
OS: macOS Mojave 10.14.6
Version: 1.40.1
Commit: 8795a9889db74563ddd43eb0a897a2384129a619
Date: 2019-11-13T16:47:44.719Z
Electron: 6.1.2
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 18.7.0

Duplicate of #1783.


Add e2e tests

Is your feature request related to a problem? Please describe.
We need to explore and add e2e tests as part of CI.
Describe the solution you'd like in detail
A way to run e2e via make command which can be used to run e2e from anywhere.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
### Tasks

/remove-lifecycle stale

/remove-lifecycle stale

/remove-lifecycle stale
/assign @kishen-v

/assign

/remove-lifecycle rotten


Copies zips from local staging to m2

Description
Coming from https://github.com/opensearch-project/job-scheduler/pull/581#issuecomment-1935250785
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

I see this works, skills does not complain job-scheduler (as seen in past) as it copied to local maven.
* What went wrong:
A problem occurred evaluating root project 'opensearch-skills'.
> Could not resolve all files for configuration ':zipArchive'.
   > Could not find org.opensearch.plugin:opensearch-ml-plugin:<IP_ADDRESS>.
     Searched in the following locations:
       - file:/home/ci-runner/.m2/repository/org/opensearch/plugin/opensearch-ml-plugin/<IP_ADDRESS>/opensearch-ml-plugin-<IP_ADDRESS>.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/plugin/opensearch-ml-plugin/<IP_ADDRESS>/opensearch-ml-plugin-<IP_ADDRESS>.pom
       - https://plugins.gradle.org/m2/org/opensearch/plugin/opensearch-ml-plugin/<IP_ADDRESS>/opensearch-ml-plugin-<IP_ADDRESS>.pom
       - https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-ml-plugin/<IP_ADDRESS>/opensearch-ml-plugin-<IP_ADDRESS>.pom
     Required by:
         project :
   > Could not find org.opensearch.plugin:opensearch-anomaly-detection:<IP_ADDRESS>.
     Searched in the following locations:
       - file:/home/ci-runner/.m2/repository/org/opensearch/plugin/opensearch-anomaly-detection/<IP_ADDRESS>/opensearch-anomaly-detection-<IP_ADDRESS>.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/plugin/opensearch-anomaly-detection/<IP_ADDRESS>/opensearch-anomaly-detection-<IP_ADDRESS>.pom
       - https://plugins.gradle.org/m2/org/opensearch/plugin/opensearch-anomaly-detection/<IP_ADDRESS>/opensearch-anomaly-detection-<IP_ADDRESS>.pom
       - https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-anomaly-detection/<IP_ADDRESS>/opensearch-anomaly-detection-<IP_ADDRESS>.pom
     Required by:
         project :
   > Could not find org.opensearch.plugin:opensearch-sql-plugin:<IP_ADDRESS>.
     Searched in the following locations:
       - file:/home/ci-runner/.m2/repository/org/opensearch/plugin/opensearch-sql-plugin/<IP_ADDRESS>/opensearch-sql-plugin-<IP_ADDRESS>.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/plugin/opensearch-sql-plugin/<IP_ADDRESS>/opensearch-sql-plugin-<IP_ADDRESS>.pom
       - https://plugins.gradle.org/m2/org/opensearch/plugin/opensearch-sql-plugin/<IP_ADDRESS>/opensearch-sql-plugin-<IP_ADDRESS>.pom
       - https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-sql-plugin/<IP_ADDRESS>/opensearch-sql-plugin-<IP_ADDRESS>.pom
     Required by:
         project :
   > Could not find org.opensearch.plugin:opensearch-knn:<IP_ADDRESS>.
     Searched in the following locations:
       - file:/home/ci-runner/.m2/repository/org/opensearch/plugin/opensearch-knn/<IP_ADDRESS>/opensearch-knn-<IP_ADDRESS>.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/plugin/opensearch-knn/<IP_ADDRESS>/opensearch-knn-<IP_ADDRESS>.pom
       - https://plugins.gradle.org/m2/org/opensearch/plugin/opensearch-knn/<IP_ADDRESS>/opensearch-knn-<IP_ADDRESS>.pom
       - https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-knn/<IP_ADDRESS>/opensearch-knn-<IP_ADDRESS>.pom
     Required by:
         project :
   > Could not find org.opensearch.plugin:neural-search:<IP_ADDRESS>.
     Searched in the following locations:
       - file:/home/ci-runner/.m2/repository/org/opensearch/plugin/neural-search/<IP_ADDRESS>/neural-search-<IP_ADDRESS>.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/plugin/neural-search/<IP_ADDRESS>/neural-search-<IP_ADDRESS>.pom
       - https://plugins.gradle.org/m2/org/opensearch/plugin/neural-search/<IP_ADDRESS>/neural-search-<IP_ADDRESS>.pom
       - https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/neural-search/<IP_ADDRESS>/neural-search-<IP_ADDRESS>.pom
     Required by:
         project :
   > Could not find org.opensearch.plugin:alerting:<IP_ADDRESS>.
     Searched in the following locations:
       - file:/home/ci-runner/.m2/repository/org/opensearch/plugin/alerting/<IP_ADDRESS>/alerting-<IP_ADDRESS>.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/plugin/alerting/<IP_ADDRESS>/alerting-<IP_ADDRESS>.pom
       - https://plugins.gradle.org/m2/org/opensearch/plugin/alerting/<IP_ADDRESS>/alerting-<IP_ADDRESS>.pom
       - https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/alerting/<IP_ADDRESS>/alerting-<IP_ADDRESS>.pom
     Required by:
         project :

@peterzhuamazon do you see any issues with windows?

Instead of copying, I have a PR open which publishes the zips to maven local in gradle way https://github.com/opensearch-project/job-scheduler/pull/584.
@peterzhuamazon @bbarani

@prudhvigodithi can we close this then?

Yes @owaiskazi19 closing this in favor of https://github.com/opensearch-project/job-scheduler/pull/584. Thanks


Issue with my middle name

Hi, i have problems with the app
My name is Iral, and it show, yes, but it still you my middle deadname

Hi @IralRiver !
With a little more information, I'm sure I can help you troubleshoot. First, confirm that your dead middle name is saved in the extension's options.
Does this happen on all sites?
~ Ari


Use optional asset tasks.

This PR will able the launcher to look for the tasks data entry on shots/assets.
This to implement https://github.com/getavalon/core/issues/320

Closing this in favour of getting Colorbleeds fork merged.


Analyse Test Scenarios for Payment Lib

Acceptance Criteria:

Sort Test Scenarios from most to least important
Evaluate what is already tested

LINK: https://github.com/golemfactory/erc20_payment_lib/wiki/Payment-Driver-‐-Test-Scenarios

Kamil/Sieciech sync for today

Marked done
Marked Allowance as not to be done in this moment (feature does note exist)


Text which starts or ends with whitespace is clipped incorrectly

If the string given to a Text starts or ends in whitespace, it is clipped on the opposite side by the whitespace width. This is a funny consequence of the way neoscore renders text - internally it converts it to a Qt path, and that path's bounding rect is used in working out clip geometry. When a string has leading or trailing whitespace, its logical object bounding rect does not actually match the underlying patch bounding rect, so the rendered path is clipped incorrectly. This occurs even when the Text object is not breakable.
Demonstration (running with NEOSCORE_DEBUG=1 so Qt bounding rects are shown):
Text(ORIGIN, None, "  test")

This is somewhat related to #21 in how it is caused by bad assumptions in the path rendering pipeline.

Looks like this issue may have been resolved in issue #93. Text(ORIGIN, None, "  test") now produces the following image on my Ubuntu machine:


Proposal: First Class Shortcode Support

Hey Elder.js users.
I want to float my current thinking on shortcodes and the plan to add them to the Elder.js core to get buy-in from early users.
Benefit: Shortcodes make static content dynamic and future proof. Elder.js should support them natively.
The Context
Whether your content lives in .md files, on Prismic, Contentful, WordPress, Strapi, your own CMS, or elsehwere, content is generally pretty static.
That said, anytime content lives in a CMS there is always a demand to add 'functionality' to this content.
In my experience thisfunctionalities come in a few flavors.

Adding custom HTML to style/wrap content or achieve design goals. (most common)
Other times on data driven sites you want to make just a part of the static content dynamic replacing a datapoint with a real statistic. (see below)
Embedding an arbitrary Svelte component.

Shortcodes to solve all of these problems.
Shortcodes
If you aren't familiar with shortcodes are strings that can wrap content or have their own attributes:

Self Closing: {{shortcode attribute="" /}}
Wrapping: {{shortcode}}wraps{{/shortcode}}

NOTE: The {{ and }} brackets vary from system to system.
1. Custom HTML Output
I'm in the process of porting my own website to Elder.js. During this process there are many times where I want a
content here
 to add design flair.
To achieve these I've built a simple shortcode: {{box}}content here{{/box}} allowing me to change the markup as needed should my needs change in the future.
2. Data With Shortcodes
A common use case for shortcodes that we've seen on ElderGuide.com and other properties that we are developing with Elder.js is the need to have an "article" with otherwise static content but that needs a datapoint from a database. (outlined above)
For example we often need to have content that would have this functionality: The US has [numberOfNursingHomes] nursing homes nationwide.
As it currently stands we do this type of replacement within our data functions and have a shortcode like so: {{stat key="numberOfNursingHomes" /}}.
The Problem:
As I've extracting out functionality from our sites, I'm finding more and more cases where plugins could offer shortcodes as well.
I've also found a major need for a shortcode to embed Svelte components, but the ideal implementation doesn't exist within the current Elder.js framework.
A. Minimizing Plugin Interdependence
My initial plan was to release a shortcode plugin using hooks. The shortcode plugin would register and manage the shortcodes from other plugins.
Then if a sister plugin (say the "image plugin") wanted to offer a shortcode it would require the shortcode plugin to also be installed.
The problem with this approach is plugin interdependence.
It just doesn't feel right for a plugin to only offer 1/3 of it's functionality without another plugin installed. There is also an issue of making sure each plugin doesn't overwrite the other's functionality.
B. data.key replacement
Another hurdle is that in a perfect world we'd be able to do {{svelteComponent component="Clock" props="data.key" options="{loading: "eager"}"/}} and the clock component would be hydrated with the values found on data.key.
In order to achieve this, the shortcode plugin would need the context of the data object returned from the route and would need to run between the generation of the route html and the template html.
Currently there is no hook that can support this... and hooks aren't  really the right solution because we only want 1 instance of the shortcode parser to run.
The Plan
Our current implementations use a fork of the https://github.com/metaplatform/meta-shortcodes library. I've used this shortcode library in one form or another since 2016. It is battle tested across my sites, allows for open and close bracket customization, but could use a modernization effort. (not the focus of this proposal)
To implement shortcodes the plan is as follows:
Page.ts:

In Page.ts after the page.route.templateComponent function has built the route's HTML, shortcodes would be executed on the returned HTML.
After the shortcodes have executed, the returned html would then be passed into page.route.layout and page HTML generation would continue as it currently does.

The benefits of this location are 3 fold:

Whether content comes from a CMS, Svelte component, or a data store, we can assume that the shortcodes would be in the HTML returned by the route.
Because we still have to process the page.route.layout we can use Elder.js' internal system for inlineSvelteComponent to embed arbitrary svelte components offering a solution to embed Svelte components {{svelteComponent component="Clock" /}}.
Because all data related hooks and functions will have executed, we know that the data object is stable and could offer the ability to pass the data context into shortcodes as well allowing for {{svelteComponent component="Clock" props="data.key"/}} where data.key would be the key taken from the data object.

Defining Shortcodes:
Shortcodes could be defined in two places:

elder.config.js for user defined shortcodes.
plugins could define shortcodes by returning them during plugin initialization.

Proposed Definition (simple)

props are the attributes defined on the shortcode.
content is the content wrapped in the shortcode.
data is the data object.

// elder.config.js

shortcodes: [
        {
          shortcode: 'box',
          run: (props, content, data) => {
            return `<div class="box">${content}</div>`;
          },
        },
]

Proposed Definition (robust)
The biggest limitation to the 'simple' design is there is no access to add css, js, or elements to the .
I've hit this limitation in the past with WordPress and it was limiting, so a more complex design that would be more robust would be to support an API signature as below where css, js, and head are all added to the stacks needed to support them.
NOTE: this requires moving where stacks are processed.
// elder.config.js

shortcodes: [
        {
          shortcode: 'box',
          run: (props, content, data) => {
            return { html: `<div class="box">${content}</div>`, css:'', js: '', head:'' }
          },
        },
]

Shortcodes by Default
By default the only shortcode I'd imagine shipping is the {{svelteComponent component="Clock" props="" options="" /}}.
This does add a small regex call that appears to add about 1.2ms per page generation time in local testing.

This is the first major feature that I'm looking at adding to the core and I'd like community feedback. I'm not sure how OSS projects usually handle this but my goal is to get buy-in from early users. If you have feedback I'd love to hear it.
Having used several static site generators, I do believe this functionality belongs in the core. One of my biggest gripes with Gatsby is that it pushes all of the customization to plugins and solves the plugin interdependence problem with "Themes." While this works for one-off projects, it doesn't allow easy copy and pasting between projects because each Gatsby project is it's own special snowflake due to plugin interdependence. I think Elder.js offering shortcodes from the core is a wise move but would love feedback and some devil's advocates on why it shouldn't be in the core.

@jbmoelker and @halafi would love your thoughts here.

👏 nice writeup! I'm really not sure what the best approach would be, I'm not a big shortcode user myself, but I have some thoughts:

Yes, I do think shortcodes may lower the barrier to entry.
I would always go for an API signature that's easy to extend, so returning an object like in the robust proposal sounds like a smart thing to do.
I would also change the parameter signature from run: (props, content, data) => { to run: ({ props, content, data }) => {. Makes it easier to use when you only need content or data.
I'm not sure what would be the best way to register a shortcode. An array notation like you have now could silently overwrite one shortcode with another. Maybe an object notation makes more sense { myShortcode: { run: .... Or do what Elventy does: config.addShortcode('myShortCode', ....
I'm not sure what would be best for the syntax for shortcodes. Since Svelte already uses a curly brace notation { ... }, maybe it's best to use a square bracket notation [ ... /]?
Could/should there be more pre/post hooks for more fine-grained control, and would take allow for shortcodes?
If you'd make the shortcode plugin part of the Elder core would that reduce the issue raised under "A. Minimizing Plugin Interdependence"?
Another idea: should a shortcode template just be a Svelte component? So


Remove default PHOTFLAG_MSKREJ for DATAPREP stage

When trying to process DC2 data for LSST-DESC, I noticed that clump.nml has
PHOTFLAG_MSKREJ   = 1016 !PHOTFLAG eliminate epoch that has errors, not LC
but DC2 has a different set of reject bits. Please allow user-NML option under DATAPREP, and remove hard-wired assumptions.

and another problem is that 0_DATAPREP stage uses hard-wired Midway2 batch template, so it cannot run on other clusters.


fix docker-entrypoint.sh in consul cluster mode.

Please answer these questions before submitting pull request

Why submit this pull request?

[x] Bug fix

[ ] New feature provided

[ ] Improve performance

Related issues

Bug fix

Bug description.

How to fix?

New feature or improvement

Describe the details and related test reports.
This invalid configuration may cause program startup failed.

Coverage decreased (-0.005%) to 16.86% when pulling 6c41b3ffbebb890b59048685dc15a04dadaf2780 on JaredTan95-patch-1 into 8c0d44a110fc1a09f61bc77eb13f3dfb2c62e85a on master.


CircleChart Update Issue

Nice library, thanks!
The default countingLabel format for CircleChart is percentage.  When you create a CircleChart and provide the current and total, the percentage is calculated and properly displayed.  If you then change the "current" number (via update or grow methods), the countingLabel adjusts to that absolute value, not to the new percentage that number represents.
In the image below, both charts were created with current/total values of 5/15 (33%).  The chart on the right was then updated (growChartByAmount: 5) to 10/15.  Note that on the right, the line length is correct (66%) but the countingLabel percentage is set to 10% (incorrect).

use updateChartByCurrent() method

In the current version, using updateChartByCurrent() has this same problem (the grow method is just a wrapper around it).  The issue is in how the _displayCountingLabel is updated.

Basically, this issue is the same as #169, but the patch for that issue only corrected the label when it is created (not on update).  The same logic (dividing current / total) needs to be added to the updateChartByCurrent() method.


Can't use ccls with lsp

Description
Its works fine with other languages servers ( I tried clangd, cmake, pyright ) but when I try to use ccls
it gives me this error
Neovim version
NVIM v0.5.1
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim/src/neovim-0.5.1/build/config -I/build/neovim/src/neovim-0.5.1/src -I/usr/include -I/build/neovim/src/neovim-0.5.1/build/src/nvim/auto -I/build/neovim/src/neovim-0.5.1/build/include
Compiled by builduser
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
Nvim-lspconfig version
No response
Operating system and version
Arch Linux
Affected language servers
ccls
Steps to reproduce
downloaded it to my lua file
and required it
commented all my other required files and tested it then copied lsp.log
and pasted it
Actual behavior
Auto start for ccls failed: matching root directory not detected
Expected behavior
No response
Minimal config
[ERROR][2021-11-17 13:34:54] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:34:54.118] <-- textDocument/didOpen\n"
[ERROR][2021-11-17 13:34:54] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:34:54.118] Failed to find compilation database for /home/pc/dev/cmake-learn/src/main.hpp\nI[13:34:54.118] ASTWorker building file /home/pc/dev/cmake-learn/src/main.hpp version 0 with command clangd fallback\n[/home/pc/dev/cmake-learn/src]\n/usr/bin/clang -resource-dir=/usr/lib/clang/13.0.0 -- /home/pc/dev/cmake-learn/src/main.hpp\n"
[ERROR][2021-11-17 13:34:54] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:34:54.156] --> textDocument/publishDiagnostics\n"
[ERROR][2021-11-17 13:34:59] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:34:59.572] <-- textDocument/formatting(34)\n"
[ERROR][2021-11-17 13:34:59] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:34:59.618] --> reply:textDocument/formatting(34) 46 ms\n"
[ERROR][2021-11-17 13:35:00] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:00.557] <-- textDocument/formatting(35)\n"
[ERROR][2021-11-17 13:35:00] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:00.557] --> reply:textDocument/formatting(35) 0 ms\n"
[ERROR][2021-11-17 13:35:08] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:08.896] <-- textDocument/definition(36)\n"
[ERROR][2021-11-17 13:35:08] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:08.897] --> reply:textDocument/definition(36) 0 ms\n"
[ERROR][2021-11-17 13:35:10] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:10.568] <-- textDocument/definition(37)\n"
[ERROR][2021-11-17 13:35:10] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:10.583] --> reply:textDocument/definition(37) 14 ms\n"
[ERROR][2021-11-17 13:35:17] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:17.616] <-- textDocument/definition(38)\n"
[ERROR][2021-11-17 13:35:17] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:17.617] --> reply:textDocument/definition(38) 0 ms\n"
[ERROR][2021-11-17 13:35:18] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:18.816] <-- textDocument/definition(39)\n"
[ERROR][2021-11-17 13:35:18] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:18.817] --> reply:textDocument/definition(39) 0 ms\n"
[ERROR][2021-11-17 13:35:45] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:45.016] <-- textDocument/definition(40)\n"
[ERROR][2021-11-17 13:35:45] .../vim/lsp/rpc.lua:462    "rpc"   "clangd"        "stderr"        "I[13:35:45.030] --> reply:textDocument/definition(40) 13 ms\n"
[START][2021-11-17 13:54:55] LSP logging initiated
[START][2021-11-17 13:55:30] LSP logging initiated
[START][2021-11-17 13:56:21] LSP logging initiated
[START][2021-11-17 13:58:42] LSP logging initiated
[START][2021-11-17 13:56:50] LSP logging initiated
[START][2021-11-17 14:11:17] LSP logging initiated
[START][2021-11-17 14:13:01] LSP logging initiated
[START][2021-11-17 14:15:27] LSP logging initiated
[START][2021-11-17 14:16:35] LSP logging initiated
[START][2021-11-17 14:16:48] LSP logging initiated
[INFO][2021-11-17 14:16:59] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:17:05] LSP logging initiated
[INFO][2021-11-17 14:17:41] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:17:42] LSP logging initiated
[INFO][2021-11-17 14:17:49] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:17:53] LSP logging initiated
[INFO][2021-11-17 14:17:57] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:18:02] LSP logging initiated
[INFO][2021-11-17 14:18:16] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:18:17] LSP logging initiated
[INFO][2021-11-17 14:18:49] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:18:57] LSP logging initiated
[INFO][2021-11-17 14:21:52] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:21:55] LSP logging initiated
[INFO][2021-11-17 14:22:01] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:22:02] LSP logging initiated
[INFO][2021-11-17 14:22:04] .../lua/vim/lsp.lua:1226    "exit_handler"  {}
[START][2021-11-17 14:22:09] LSP logging initiated
[INFO][2021-11-17 14:23:01] .../lua/vim/lsp.lua:1226    "exit_handler"  {}

Health check
health#telescope#check
Checking for required plugins

OK: plenary installed.
WARNING: nvim-treesitter not found.

Checking external dependencies

ERROR: rg: not found. live-grep finder will not function without BurntSushi/ripgrep installed.
WARNING: fd: not found. Install sharkdp/fd for extended capabilities

===== Installed extensions =====
health#lspconfig#check
Checking language server protocol configuration

INFO: ccls: configuration checked.
INFO: cmake: configuration checked.

health#nvim#check
Configuration

ERROR: Locale does not support UTF-8. Unicode characters may not display correctly.
$LANG=C $LC_ALL= $LC_CTYPE=

ADVICE:

If using tmux, try the -u option.
Ensure that your terminal/shell/tmux/etc inherits the environment, or set $LANG explicitly.
Configure your system locale.

Performance

OK: Build type: Release

Remote Plugins

OK: Up to date

terminal

INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
INFO: $COLORTERM='truecolor'

health#provider#check
Clipboard (optional)

OK: Clipboard tool found: xclip

Python 2 provider (optional)

WARNING: No Python executable found that can import neovim. Using the first available executable for diagnostics.
ERROR: Python provider error:

ADVICE:

provider/pythonx: Could not load Python 2:
python2 not found in search path or not executable.
python2.7 not found in search path or not executable.
python2.6 not found in search path or not executable.
/usr/bin/python is Python 3.9 and cannot provide Python 2.

INFO: Executable: Not found

Python 3 provider (optional)

INFO: g:python3_host_prog is not set.  Searching for python3 in the environment.
INFO: Multiple python3 executables found.  Set g:python3_host_prog to avoid surprises.
INFO: Executable: /usr/bin/python3
INFO: Other python executable: /bin/python3
INFO: Python version: 3.9.7
INFO: pynvim version: 0.4.3
OK: Latest pynvim is installed.

Python virtualenv

OK: no $VIRTUAL_ENV

Ruby provider (optional)

WARNING: ruby and gem must be in $PATH.

ADVICE:

Install Ruby and verify that ruby and gem commands work.

Node.js provider (optional)

INFO: Node.js: v16.11.1
INFO: Nvim node.js host: /usr/lib/node_modules/neovim/bin/cli.js
OK: Latest "neovim" npm/yarn package is installed: 4.10.0

Perl provider (optional)

ERROR: perl provider error:

ADVICE:

"Neovim::Ext" cpan module is not installed

health#treesitter#check
Checking treesitter configuration

INFO: Runtime ABI version : 13

LSP log
https://gist.github.com/rzksobhy78/455441841e910fe81493f528a58e618d

The error message is explicit. I suggest you read the debugging section of readme.md, and :help lspconfig-root-dir
https://github.com/neovim/nvim-lspconfig/blob/84823995b7c62468a339df423ce6d85a2173f605/lua/lspconfig/ccls.lua#L8

Your project is missing a compilation database as hinted by the error log:

Failed to find compilation database for /home/pc/dev/cmake-learn/src/main.hpp