Contract consistency between BraveTracer and opentracing-jaxrs

Hi,
Here's Brave's logic:
@Override public  SpanContext extract(Format format, C carrier) {
Extractor extractor = formatToExtractor.get(format);
if (extractor == null) {
throw new UnsupportedOperationException(format + " not in " + formatToExtractor.keySet());
}
TraceContextOrSamplingFlags result = extractor.extract((TextMap) carrier);
TraceContext context = result.context() != null
? result.context()
: brave4.newTrace(result.samplingFlags()).context();
return BraveSpanContext.wrap(context);
}
You'll find a SpanContext will return anyway. (No null value return)
While in:
https://github.com/opentracing-contrib/java-jaxrs/blob/release-0.0.9/opentracing-jaxrs2/src/main/java/io/opentracing/contrib/jaxrs2/server/ServerTracingFilter.java#L59
they have:
SpanContext extractedSpanContext = tracer.extract(Format.Builtin.HTTP_HEADERS,
new ServerHeadersExtractTextMap(requestContext.getHeaders()));
        Tracer.SpanBuilder spanBuilder = tracer.buildSpan(requestContext.getMethod())
                .withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_SERVER);

        if (extractedSpanContext != null) {
            spanBuilder.asChildOf(extractedSpanContext);
        }

It seems they use null value as the semantic of "no parent span".
Should I consider it's somewhat contract conflict?
Thanks
Leon

returning null is easier for us and makes sense. However, the actual interface isn't marked nullable in docs or annotations. Can you raise a PR upstream to correct this? Once this is formalized, I'd love to remove that code.
https://github.com/opentracing/opentracing-java/blob/master/opentracing-api/src/main/java/io/opentracing/Tracer.java#L95

Sure, let me do it.
Thanks a lot!


fix: fix dict to schema type upgrade for schema calling expressions

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y  fix #1574

2. What is the scope of this PR (e.g. component or file name):
kclvm/sema/src/advanced_resolver/node.rs

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

38 of 39 (97.44%)  changed or added relevant lines in 1 file are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.001%) to 70.581%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

kclvm/sema/src/advanced_resolver/node.rs
38
39
97.44%

Files with Coverage Reduction
New Missed Lines
%

kclvm/tools/src/LSP/src/inlay_hints.rs
3
92.31%

Totals

Change from base Build<PHONE_NUMBER>2:
-0.001%

Covered Lines:
50604

Relevant Lines:
71696

💛  - Coveralls


ISPN-11503 Export Rolling Upgrade operations via REST

https://issues.redhat.com/browse/ISPN-11503

Looks good but I need to see how can we add this feature to the console


Using Github Discussions in place of Google Groups

As part of our long term strategic intent to consolidate as much of our collaboration infrastructure on Github, this epic is about doing a pilot using github discussions in place of google groups, probably in 1-2 projects to start.
One consideration that has been brought up is whether Github Discussions provides sufficient (or any) of the monitoring, data collection, and surveillance, required by the banks which remains a reason we still are on Google Groups (despite the fact that some banks can't use Google applications like Google Groups).
Key requirements:

Discussions can be followed via email (email notifications)
Discussions can be joined via email (ie via reply-to email from notifications)
Users can be invited to or banned by discussions, from discussion maintainers
FINOS Org admins can manage discussion maintainers for each discussion
Discussions can link to other GitHub items: issues, PRs, projects, code, repositories, user (mentions),

Stories:

[ ] Arrange a date when the GitHub team can join an ODP working group call
[ ] Place the GitHub discussion and initial grooming session on the ODP agenda
[ ] Discuss the initial items ODP needs to investigate, solve and deliver to move forward
[ ] Add the initial items to the ODP GitHub issues and delegate to ODP team members to solve
[ ] Add updates to future ODP agenda to help unblock and move forward

We're looking for a volunteer who would like to setup a simple dry run; it can be hosted on anyone's GitHub account/org.

I wrote some docs about it, see https://finosfoundation.atlassian.net/wiki/spaces/FDX/pages/75530554/Project+Collaboration+on+Github#ProjectCollaborationonGithub-Conversations . There's not much to say TBH, GitHub docs are quite complete.
I think it would be good to try it out a bit, I've started some private/public discussions in https://github.com/orgs/finos/teams/fdx-odp/discussions
@ColinEberhardt - feel free to review the docs and share your thoughts, TY!

Another suggestion: https://news.ycombinator.com/item?id=22388639

@jbjonesjr and @maoo
I'd like to suggest the following two FINOS repos (projects) for the GitHub Discussions beta ...

Open Developer Platform - https://github.com/finos/open-developer-platform
Cloud Service Certification - https://github.com/finos/cloud-service-certification

The justification for the suggestions are ...

@mcleo-d is helping run both projects and can bring a level of consistency to the GitHub beta.
ODP includes members of the GitHub teams who can help oversee the beta.
Both projects are accelerating due to working group activities, GitHub issues and project kanbans.
Both projects have a wide cross section of different participants, so we can measure how the discussions beta hits different parts of the FINOS community.

Please let me know your thoughts below.
James.

I've assigned to @jbjonesjr to add FINOS projects to the GitHub alpha and have updated the status to In Progress.

@mcleo-d has been introduced to a GitHub project manager to discuss FINOS taking part in the GitHub Discussions Beta trial against selected repos.
The initial conversation will happen on 30th March 2020. Thank you @jbjonesjr for organising the introductions! 💪

Welcome to the conversation @becca 😀
Thank you for enabling GitHub Discussions on https://github.com/finos/open-developer-platform/ and https://github.com/finos/cloud-service-certification
It'll be great to invite you to a future ODP meeting to talk through the functionality.
James.

Here's a good example of public discussion on GitHub - https://github.com/finos/open-developer-platform/discussions/163

Moved to https://github.com/finos/open-developer-platform/discussions/194 , closing issue


Better DI injection services for Commands and Conversations

Is your feature request related to a problem? Please describe.
I'm trying to use this library in my project and all of my commands/conversations need always certain services like database connection (to flush the changes), translation service (to be able translate keyboard/inline buttons/texts), some repositories (like for users), etc.
Tried autowire from docs ( https://nutgram.dev/docs/configuration/symfony#servicesyaml-configuration ) but no luck:
SergiX44\Container\Exception\ContainerException: Cannot resolve parameter '$translator::App\Service\Nutgram\Command\StartCommand'

Command:
<?php

namespace App\Service\Nutgram\Command;

use App\Entity\User;
use SergiX44\Nutgram\Handlers\Type\Command;
use SergiX44\Nutgram\Nutgram;
use SergiX44\Nutgram\Telegram\Properties\ChatAction;
use Symfony\Component\Translation\TranslatorInterface;

class StartCommand extends Command
{
    protected string $command = 'start';

    public function handle(Nutgram $bot, TranslatorInterface $translator): void
    {
        /** @var User $user */
        $user = $bot->get('user');

        $bot->sendChatAction(ChatAction::TYPING);
        $bot->sendMessage($translator->trans(
            id     : 'start',
            domain : 'bot.command.start',
            locale : $user->getTelegramLocale(),
        ));
    }
}

Describe the solution you'd like
This solution from example above would be good enough.
A better solution would look like this:
<?php

namespace App\Service\Nutgram\Command;

use App\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
use SergiX44\Nutgram\Handlers\Type\Command;
use Symfony\Contracts\Translation\TranslatorInterface;

class AbstractCommand extends Command
{
    public function __construct(
        protected readonly EntityManagerInterface $entitymanager,
        protected readonly TranslatorInterface    $translator,
        protected          User                   $user, // Might be set somewhere in middleware?
    ) {}
}

class StartCommand extends AbstractCommand
{
    protected string $command = 'start';

    public function handle(Nutgram $bot): void
    {
        $bot->sendMessage($this->translator->trans(
            id     : 'start',
            domain : 'bot.command.start',
            locale : $this->user->getTelegramLocale(),
        ));
    }
}

But if constructor is not available, then i'm happy with handle method as well.
Describe alternatives you've considered
Right now i'm using kinda weird workaround: middleware that injects what i need and trait that describes all the needed services. But that looks pretty ugly, imho.
<?php

use App\Entity\User\User;
use App\Repository\UserRepository;
use Doctrine\ORM\EntityManagerInterface;
use SergiX44\Nutgram\Nutgram;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

readonly class InjectMiddleware
{
    public function __construct(
        private EntityManagerInterface $em,
        private TranslatorInterface $translator,
        private UserRepository $users,
        private UserPasswordHasherInterface $hasher,
    ) {
    }

    public function __invoke(Nutgram $bot, $next): void
    {
        $bot->set('_em', $this->em);
        $bot->set('_translator', $this->translator);

        $user = $this->users->findOneBy([ 'telegramId' => $bot->user()->id ]);
        if (!$user) {
            $user = new User(
                telegram_id      : $bot->user()->id,
                telegram_username: $bot->user()->username,
            );
            $user->setPassword($this->hasher->hashPassword($user, User::PASSWORD_DEFAULT));
            $this->em->persist($user);
            $this->em->flush();
        }
        $bot->set('_user', $user);

        $next($bot);
    }
}

trait InjectServicesTrait
{
    private EntityManagerInterface $em;
    private TranslatorInterface    $translator;
    private User                   $user;

    public function beforeStep(Nutgram $bot): void
    {
        $this->em         = $bot->get('_em');
        $this->translator = $bot->get('_translator');
        $this->user       = $bot->get('_user');
    }
}

class StartCommand extends AbstractCommand
{
    use InjectServicesTrait;

    protected string $command = 'start';

    public function handle(Nutgram $bot): void
    {
        $this->beforeStep($bot); // This is required not to forget otherwise critical error

        $bot->sendMessage($this->translator->trans(
            id        : 'start',
            parameters: [
                'username' => $this->user->getTelegramUsername(),
                'botname'  => $bot->getMe()->username,
            ],
            domain    : 'bot.command.start',
            locale    : $this->user->getTelegramLocale(),
        ));
    }
}

Additional context
No response

@sergix44

About DI: Everything you want to be injected must be in the constructor.

How is that supposed to work if registerCommand() calls command constructor right away?
 registerCommand()
 //..............
        if (is_string($command)) {
            if (!is_subclass_of($command, Command::class)) {
                throw new InvalidArgumentException(sprintf('You must provide subclass of the %s class or an instance.', Command::class));
            }
            $command = new $command();

My sample command...
class TestCommand extends Command
{

    protected string $command = 'test';
    protected ?string $description = 'A lovely test command';

    public function __construct(private UserRepositoryInterface $userRepository)
    {
        parent::__construct();
    }
    // handler
}

$bot->registerCommand(\App\TelegramBot\Commands\TestCommand::class);

That's super not "not driving my nuts" 😂...
So in case anybody endup their search here:

I've dropped symfony nutgram bundle... as basically useless..
Used $bot->onCommand() instead of $bot->registerCommand() since the latter method calls Command constructor without arguments right away and you can not inject anything there
Used symfony's service subscribers with a the class where you register commands (it's ConsoleCommand for a quick test) in example

#[AsCommand(
    name: 'bot:run',
    description: 'Start the bot in long polling mode',
)]
class BotRun extends Command implements ServiceSubscriberInterface
{
    public function __construct(
        private string $token,
        private ContainerInterface $locator,
        ?string $name = null,
    ) {
        Assert::stringNotEmpty($token);
        parent::__construct($name);
    }

    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        $config = new Configuration();

        $bot = new Nutgram($this->token, $config);

        $bot->registerCommand(\App\TelegramBot\Commands\StartCommand::class);
        $bot->onCommand('test', fn(Nutgram $bot) => $this->locator->get(TestCommand::class)->handle($bot));
        $bot->run();

        return Command::SUCCESS;
    }

    public static function getSubscribedServices(): array
    {
        return [
            TestCommand::class
        ];
    }
}


Dictionary Datatype

Add a new datatype to support dictionary variables.

Advanced mode (formerly Version2) now uses JSON data format. So this is now possible.


Front-End Alter

Current coverage is 42.41%

Merging #51 into master will not affect coverage as of 76398d9

@@            master     #51   diff @@
======================================
  Files          113     113
  Stmts         1273    1273
  Branches        94      94
  Methods
======================================
  Hit            540     540
  Partial         15      15
  Missed         718     718

Review entire Coverage Diff as of 76398d9

Powered by Codecov. Updated on successful CI builds.


Link checker github action step is broken

Workflow file: https://github.com/konstin/virtualenv-rs/blob/b68641227aef9e3dbccad15f3d8407c1aceaa109/.github/workflows/web.yml
Run: https://github.com/konstin/gourgeist/actions/runs/6355674453/job/17264084654
Error message:
Run /home/runner/work/_actions/untitaker/hyperlink/0.1.29/scripts/hyperlink-bin /tmp/public/ --sources docs/ --github-actions
[...]
Reading files
Checking 34 links from 11 files (4 documents)
Found some broken links, reading source files
Error: IO error for operation on docs/: No such file or directory (os error 2)

I can reproduce this locally:
$ oranda build
↪ >o_o< INFO: Building components: artifacts, changelog
✓ >o_o< SUCCESS: Your site build is located in `public`.
$ mkdir /tmp/public/ && cp -R public /tmp/public/oranda
$ npx @untitaker/hyperlink /tmp/public/ --sources docs/
Reading files
Checking 34 links from 11 files (4 documents)
Found some broken links, reading source files
Error: IO error for operation on docs/: No such file or directory (os error 2)

Caused by:
    No such file or directory (os error 2)

The error appears to be still happening.
Repro steps (emulate the CI):
$ oranda --version
oranda 0.5.0
$ oranda build
↪ >o_o< INFO: Building components: artifacts, changelog
✓ >o_o< SUCCESS: Your site build is located in `public`.
$ mkdir /tmp/public/ && cp -R public /tmp/public/oranda
$ hyperlink /tmp/public/
Reading files
Checking 34 links from 11 files (4 documents)
/tmp/public/oranda/artifacts/index.html
  error: bad link /
  error: bad link /artifacts
  error: bad link /artifacts.js
  error: bad link /changelog
  error: bad link /favicon.ico
  error: bad link /<project>-installer.ps1.txt
  error: bad link /<project>-installer.sh.txt
  error: bad link /oranda-v0.5.0.css

/tmp/public/oranda/changelog/index.html
  error: bad link /
  error: bad link /artifacts
  error: bad link /artifacts.js
  error: bad link /changelog
  error: bad link /changelog.rss
  error: bad link /favicon.ico
  error: bad link /oranda-v0.5.0.css

/tmp/public/oranda/changelog/v0.1.0/index.html
  error: bad link /
  error: bad link /artifacts
  error: bad link /changelog
  error: bad link /favicon.ico
  error: bad link /oranda-v0.5.0.css

/tmp/public/oranda/index.html
  error: bad link /
  error: bad link /artifacts
  error: bad link /artifacts.js
  error: bad link /changelog
  error: bad link /favicon.ico
  error: bad link /<project>-installer.ps1.txt
  error: bad link /<project>-installer.sh.txt
  error: bad link /oranda-v0.5.0.css

Found 32 bad links

The correct command seems to be:
$ hyperlink /tmp/public/oranda
Reading files
Checking 34 links from 11 files (4 documents)
Found 0 bad links

On further experimentation I found that this does not work if build.prefix_path or build.dist_dir are set.
The correct command is probably:
$ mkdir /tmp/{build.dist_dir}/{build.path_prefix}
$ cp -R {build.dist_dir} /tmp/{build.dist_dir}/{build.path_prefix}

# This is optional if build.path_prefix is empty/default but is necessary otherwise
# since the hrefs will be like /{build.path_prefix}/artifacts.js
$ cp {build.dist_dir}/index.html /tmp/{build.dist_dir}/index.html

$ hyperlink /tmp/{build.dist_dir}/{build.path_prefix}

Unfortunately, I have zero ideas on how to actually implement this, sorry.


[AWS] RLP-113615 AWS EventBridge updates

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #
Test URLs:

Before: https://main--prisma-cloud-docs--hlxsites.hlx.page/
After: https://main--prisma-cloud-docs--hlxsites.hlx.page/
Worker: https://prisma-cloud-docs-production.adobeaem.workers.dev/?branch=23-11-1-aws-eventbridge-update

Updates to AWS - Configure Audit Logs topic RLP-113615


Not working with RN 51.0

Hiya,
i tried to upgrade my app to RN51.0 unfortunately i am struggeling with this module.
Can anybody tell me if this version isn't compatible or did i just do something wrong.
:rncamerakit:generateReleaseSources
:rncamerakit:incrementalReleaseJavaCompilationSafeguard
:rncamerakit:compileReleaseJavaWithJavac
:rncamerakit:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/_____/_Entwicklung/react-native/snazz/node_modules/react-native-camera-kit/android/src/main/java/com/wix/RNCameraKit/camera/CameraViewManager.java:180: error: cannot find symbol
        camera.setDisplayOrientation(Orientation.getDeviceOrientation(reactContext.getCurrentActivity()));
                                                                                ^
  symbol:   method getCurrentActivity()
  location: variable reactContext of type ThemedReactContext
/Users/_____/_Entwicklung/react-native/snazz/node_modules/react-native-camera-kit/android/src/main/java/com/wix/RNCameraKit/gallery/TapCustomButtonEvent.java:17: error: method init in class Event<T> cannot be applied to given types;
        init(0);
        ^
  required: int,long
  found: int
  reason: actual and formal argument lists differ in length
  where T is a type-variable:
    T extends Event declared in class Event
/Users/_____/_Entwicklung/react-native/snazz/node_modules/react-native-camera-kit/android/src/main/java/com/wix/RNCameraKit/gallery/TapImageEvent.java:20: error: method init in class Event<T> cannot be applied to given types;
        init(0);
        ^
  required: int,long
  found: int
  reason: actual and formal argument lists differ in length
  where T is a type-variable:
    T extends Event declared in class Event
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/_____/_Entwicklung/react-native/snazz/node_modules/react-native-camera-kit/android/src/main/java/com/wix/RNCameraKit/gallery/GalleryViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
:rncamerakit:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rncamerakit:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

after doing  gradlew clear it does compile but i run into a problem which forced me to enable multiDexEnabled.

also had to add this to the app/build.gradle
   configurations {
        all*.exclude group: 'com.android.support', module: 'support-v4'
        all*.exclude group: 'com.android.support', module: 'support-annotations'
    }

FYI finally i am back to the first error after clearing all again ...

@MM-Psiiirus I faced this problem before, I solved by:

Change minSdkVersion to version greater than 20 eg. 21
Enable the multiDexEnabled option

Read This guideline on section
'Configure your app for multidex'  for better understanding.
Let me know if this works for you.


Post-mortem for Conditional Response Variations

Description of Problem:
This is a placeholder for the Conditional Response Variation Post-Mortem to go over:

what we set out to do and what we achieved?
how can we improve the process in the next iteration?
how do we move forward on feature enhancements?
what needs to happen to remove the experimental tag?

More detailed agenda is here.

In the outcome of the meeting, we decided on next steps to remove the experimental feature label. More detail is in this spinoff issue.


Environment Variables Vault : error parsing declarative config file

Is there an existing issue for this?

[X] I have searched the existing issues

Kong version ($ kong version)
2.8.1
Current Behavior
When using vault env reference in kong declarative config file like this :
_format_version: "1.1"

services:

- url: http://microservice-a
  plugins:
  - name: loggly
    config:
      key: {vault://env/loggly-config/key}
  routes:
  - strip_path: false
    paths:
    - /

I get
2022/04/26 09:22:16 [error] 1#0: init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:553: error parsing declarative config file kong.yml:
in 'services':
  - in entry 1 of 'services':
    in 'plugins':
      - in entry 1 of 'plugins':
        in 'config':
          in 'key': expected a string

Expected Behavior
The key value should be retrieved in vault.
However, when using CLI, the value can be retrieved with no problem :
$ kong vault get env/loggly-config/key
keyvalue

Steps To Reproduce
With Kong 2.8
> KONG_DATABASE off
> KONG_DECLARATIVE_CONFIG kong.yml
> KONG_VAULTS bundled
> LOGGLY_CONFIG={"key":"keyvalue"}

Anything else?
No response

I got it : The reference must be set between double quotes. So, the error message "expected a string" make sense.
_format_version: "1.1"

services:

- url: http://microservice-a
  plugins:
  - name: loggly
    config:
      key: "{vault://env/loggly-config/key}"
  routes:
  - strip_path: false
    paths:
    - /


is Attachment images' order not same one every time?

umm...
I inspect

I suppose should sort by media id

media id is correct.


Add new argument for getting all data

Add new argument "--all" for getting
all data without pagination.
The output is results part.
JIRA: PDC-1234

@hluk Thank you for telling me the page_size=-1 can show all the data, I was not aware of that before;
I think we don't need to change PDCClient codes for these issue

The logic would be:

perform the request
if response data is not a dict or keys are not previous, next, count and result, return response data directly
otherwise act as a generator and yield all items from all pages

@xiangge To be clear, the issue is about using the pdc-client as library (which is more useful than calling pdc_client when writing Python code).
Example:
client = PDCClient(server)
# yield items (this internally requests next page if needed)
generator = client['arches']._()
for result in generator:
    # result is {"name": "x86_64"} ...

Also see the example on JIRA.

@hluk I don't quite understand your mean, in pdc_client, it is using PDCClient class, if people want to use pdc_client as library, they can use within this patch, and if they just want use PDCClient to get all the page, use the logic in the patch are also okay, I think we provide the pdc_client as a tool, not just a library.
And also, like the comment said in jira:

Examples
client['releases']'rhel-7.0'
^^^ not paginated, returns just a dict
client'releases'
^^^ paginated response, automatically returns an iterable of all results
The logic would be:

perform the request
if response data is not a dict or keys are not previous, next, count and result, return response data directly
otherwise act as a generator and yield all items from all pages

I think what I am implementing is the same like this description. Just put the logic in pdc_client command. As the jira title said "PDC Client should handle pagination automatically", using a “--all”
can make pagination automatically, I think my patch make sense. This is the similar like your example
and also similar like the codes in "pdc" which is called the get_paged function in PDCClient, this is about get all pagination data.

@hluk
Also discuss with Chuang about this issue, I think I misunderstood the requirement of this issue.
Will close this pr, and try to make another patch to improve the PDCClient class.
Thanks for your help to point out the questions.

As there is no need to add this patch, close this pr


The following assertion was thrown building IconTheme(color: Color(0xdd000000)):

The following assertion was thrown building IconTheme(color: Color(0xdd000000)):
'package:flutter/src/widgets/framework.dart': Failed assertion: line 1786 pos 12: '_elements.contains(element)': is not true.

Hi @Estejin
the error you are reporting might be caused by your implementationc
could you please provide your flutter doctor -v,
your flutter run --verbose
and a minimal reproducible code sample
Thank you

I am sorry! when I quit 'Hot load', and rebuild the project, the error disappeared and the app is launched on my iOS simulator.
The flutter doctor -v is:
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.2 19C57, locale ja-JP)
• Flutter version 1.12.13+hotfix.9 at /Users/shutoukin/flutter
• Framework revision f139b11009 (2 months ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Applications/android-sdk-mac_x86
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.4
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.45.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.2
[✓] Connected device (1 available)
• iPhoneXsMax • DCE73EB0-D97E-44EB-8427-29047852F4C7 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
• No issues found!

Hi @Estejin
Could you please run flutter upgrade --force.
If the issue persists,
please provide your updated flutter doctor -v, your flutter run --verbose and a minimal reproducible code sample.
Thank you

Closing as additional information isn't provided.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, minimal reproducible sample code (if related), logs and the output of 'flutter doctor -v'  please.

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building IconTheme(color: Color(0xdd000000)):
'package:flutter/src/widgets/navigator.dart': Failed assertion: line 2758 pos 14: 'observer.navigator == null': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
The relevant error-causing widget was
LoginApp
lib/main.dart:11
When the exception was thrown, this was the stack
#2      NavigatorState.initState
package:flutter/…/widgets/navigator.dart:2758
#3      StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:4778
#4      ComponentElement.mount
package:flutter/…/widgets/framework.dart:4615
...     Normal element mounting (232 frames)
#236    Element.inflateWidget
package:flutter/…/widgets/framework.dart:3581
...

[✓] Flutter (Channel master, 1.23.0-8.0.pre.21, on Mac OS X 10.15.7 19H2 x86_64, locale zh-Hans-CN)
• Flutter version 1.23.0-8.0.pre.21 at /Users/len/flutter
• Framework revision ec40df9576 (2 周前), 2020-09-25 21:27:22 -0700
• Engine revision 3a73d073c8
• Dart version 2.11.0 (build 2.11.0-161.0.dev)
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.0.1, Build version 12A7300
• CocoaPods version 1.9.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] Connected device (4 available)
• iPad Pro (9.7-inch) (mobile) • 6A28E6F0-5070-4B38-9CAD-12F94D3876A4 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
• macOS (desktop)              • macos                                • darwin-x64     • Mac OS X 10.15.7 19H2 x86_64
• Web Server (web)             • web-server                           • web-javascript • Flutter Tools
• Chrome (web)                 • chrome                               • web-javascript • Google Chrome 85.0.4183.121
! Error: iPad has recently restarted. Xcode will continue when iPad is unlocked. (code -14)
! Doctor found issues in 2 categories.

flutter upgrade --force fixed it for me.

I have a similar error , the flutter version is v1.22.4
The following assertion was thrown building IconTheme(color: Color(0xdd000000)):
Failed assertion: boolean expression must not be null

The relevant error-causing widget was
MaterialApp
lib/main.dart:12
When the exception was thrown, this was the stack
#0      onGenerateRoute.<anonymous closure>
package:yueqiuquan/route/index.dart:20
#1      _WidgetsAppState._onGenerateRoute
package:flutter/…/widgets/app.dart:1168
#2      NavigatorState._routeNamed
package:flutter/…/widgets/navigator.dart:3373
#3      Navigator.defaultGenerateInitialRoutes
package:flutter/…/widgets/navigator.dart:2260
#4      NavigatorState.initState

I have a similar error , the flutter version is v1.22.4
The following assertion was thrown building IconTheme(color: Color(0xdd000000)):
Failed assertion: boolean expression must not be null

The relevant error-causing widget was
MaterialApp
lib/main.dart:12
When the exception was thrown, this was the stack
#0      onGenerateRoute.<anonymous closure>
package:yueqiuquan/route/index.dart:20
#1      _WidgetsAppState._onGenerateRoute
package:flutter/…/widgets/app.dart:1168
#2      NavigatorState._routeNamed
package:flutter/…/widgets/navigator.dart:3373
#3      Navigator.defaultGenerateInitialRoutes
package:flutter/…/widgets/navigator.dart:2260
#4      NavigatorState.initState


Can't display images inline in orgmode (Windows 10)

Did SPC :  and "orgmode-display-inline-images" on an jpg link I precedently inserted but nothing happened, emacs only told me that "there is no image to display inline".
Tried running the command after selecting the link in visual mode but nothing either.
When I click on the link it opens a new buffer and display the image inside it though.
Additional details:

Windows 10
See my config.el below

;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-

;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!

;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Jules Bader"
      user-mail-address<EMAIL_ADDRESS>
;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
;; are the three important ones:
;;
;; + `doom-font'
;; + `doom-variable-pitch-font'
;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for
;;   presentations or streaming.
 You generally only need these two:
(setq doom-font (font-spec :family "Lucida Sans Typewriter Regular" :size 18)
      doom-big-font (font-spec :family "monospace" :size 32)
      doom-variable-pitch-font (font-spec :family "monospace" :size 16))
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(setq doom-theme 'doom-one)

;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/")

;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type 'relative)

;; Suppresses de dialog line when exite emacs
(setq confirm-kill-emacs nil)

;; Enables line wrapping according window size
(global-visual-line-mode t)

;; Change the character size of a line before auto-return
(setq-default fill-column 73)

;; Add auto-save
(setq auto-save-default t)

(setq auto-save-timeout 15)

(when window-system
  (set-frame-position (selected-frame) -1074 0) ;; 0 - left edge at
;;  left of monitor; 550 - top about halfway down the monitor
  (set-frame-size (selected-frame) 923 966 t)) ;; 115 - width full width of
;;  monitor; 13 - puts bottom at top of taskbar

(setq projectile-indexing-method 'hybrid)
(setq projectile-completion-system 'ivy)

(setq default-directory "C:/Users/Jules/Desktop/" )

;;(find-file "C:/Users/Jules/Desktop/todo-avril-2020.org")

(setq org-adapt-indentation 'nil)

;; projectile fix
(after! projectile
  (setq projectile-generic-command
        (mapconcat #'shell-quote-argument
                   (append (list "rg" "-0" "--files" "--follow" "--color=never" "--hidden")
                           (cl-loop for dir in projectile-globally-ignored-directories
                                    collect "--glob"
                                    collect (concat "!" dir))
                           )
                   " ")
        projectile-git-command projectile-generic-command))

;; Display images in orgmode
(defun do-org-show-all-inline-images ()
  (interactive)
  (org-display-inline-images t t))
(global-set-key (kbd "C-c C-x C v")
                'do-org-show-all-inline-images)

;; Keyboard Shortcuts remaping
 (map!
  (:leader
    :n ";" #'counsel-find-file
    :n "." #'pp-eval-expression
   )
;;  :n "j" #'evil-backward-char
;;  :n "k" #'evil-next-line
;;  :n "l" #'evil-previous-line
;;  :n "m" #'evil-forward-char
  )
;; Here are some additional functions/macros that could help you configure Doom:
;;
;; - `load!' for loading external *.el files relative to this one
;; - `use-package' for configuring packages
;; - `after!' for running code after a package has loaded
;; - `add-load-path!' for adding directories to the `load-path', relative to
;;   this file. Emacs searches the `load-path' when you load packages with
;;   `require' or `use-package'.
;; - `map!' for binding new keys
;;
;; To get information about any of these functions/macros, move the cursor over
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c g k').
;; This will open documentation for it, including demos of how they are used.
;;
;; You can also try 'gd' (or 'C-c g d') to jump to their definition and see how
;; they are implemented.

What is the exact link you pasted? Org will inline images only if the link is a file link with no description, e.g [[file:this-image.jpg]].

I just manage to inline a link with a description  [[/root/Desktop/f.jpg][f]] on my linux box, I don't think you right or I might have missunderstanded you.

Huh. Turns out descriptions do work, sorry. But I still need the file: prefix for the images to inline...

Emacs on Windows displays inline images with [[file:/path/to/the/image]]

Oooh I understand I had to select the file option, I was just pasting the path raw, with the file option it works perfect, thank you both very much !


Possible race condition in WSL enumeration?

Environment
Microsoft Windows [Version 10.0.19042.746]
Windows Terminal version (if applicable): 1.5.3242.0

I have only seen this once and I believe it happened because, after a reboot, I heavily loaded the system starting applications and delayed the start of the WSL service.
My default terminal comes from a setting with the source set like this:
"source": "Windows.Terminal.Wsl"

When I started the terminal, it informed me that the GUID for my default terminal did not exist and did not show it in the menu. The error message was slightly unhelpful - I hadn't realised that the GUIDs were purely internal to the WSL configuration file and had assumed that they were used to communicate with the WSL service.
When I quit and restarted the terminal, everything worked.
I suspect that it initially failed to connect to the WSL service.  It would be nice to have a short retry interval (maybe a few seconds?) for this, and an error message if it fails indicating that the terminal could not talk to the WSL service, rather than the mysterious 'GUID is invalid' message.
You might be able to reproduce the failure by configuring the terminal to use a WSL terminal by default and then stopping the WSL subsystem.

@davidchisnall - this seems very similar to https://github.com/microsoft/terminal/issues/6160. Please review.

@davidchisnall - this seems very similar to https://github.com/microsoft/terminal/issues/6160. Please review.

Yup, I think this is a duplicate of #6160.  Sorry, I didn't find it in my search.

Yup, I think this is a duplicate of #6160.  Sorry, I didn't find it in my search.


Mailpile now available as 1.0rc1

Issue description
The existing Mailpile package has been untouched for a while, since the Mailpile devs suggested not to use it yet. Now, it's available for Debian and was announced at SHA2017 that it's ready for 1.0rc1.
It'd be great to have both the package and service updated to follow the release candidates.
The maintainer for this package is: @domenkozar

SHA2017 link says: "This video has been removed by the user"

Updated the link.

Blog post about it is here: https://www.mailpile.is/blog/2017-08-13_SHA2017.html

Note that we're still not looking to get included in distributions - we're running our own repositories and our own packaging robot, to be sure bugfixes get to people in a timely fashion. If there is interest here, would it make sense to teach our bot to build NixOS packages?

@BjarniRunar that sounds good, how do we go and do that? Note that it requires root Nix install to work.

@domenkozar The way I build the Debian packages is largely based on Docker; if I had a Dockerfile that would build Mailpile packages for NixOS then that would be relatively easy to add to my build-bot.

FROM nixos/nix will get you started. Here's a Dockerfile based on lnl7/nix, which is very similar: https://gist.github.com/MostAwesomeDude/be0bc41792d49a2887dd4100b54ca08a
Because of the way that Nix works, you're unlikely to be able to actually generate bleeding-edge images without annoying amounts of work inside Docker; the images that you generate will probably end up lagging somewhat behind the rest of nixpkgs-unstable. This isn't the end of the world, but it suggests that we should carry a Nix expression for Mailpile inside nixpkgs if folks would like to build it with e.g. a freshly-patched OpenSSL, and that we should build that expression from Hydra.

Nearly all of the packaging work is having a nix file for it, preferably in nixpkgs. Build-bots are optional, since nix can compile from source. Having a binary package is nice but unnecessary (especially since this is a python package), so most of what your build-bot would do is verify that it builds (which is likely, since it's a python package without any tests).
I guess you could provide a channel, but it will lag behind and be a pain for everyone to install and use.
You should probably just accept downstreams exist and people want to use your software, and not stop them from doing that. You could add a version check that yells at them, if you have to. Or even take down old releases so people can't install them (which I hate). You are also welcome to pull-request version bumps yourself, they usually end up in the hands of the people within a few days after getting into the repo. We have some security people ( @grahamc) as well, for anything time-sensitive.

@yorickvP I've already explained why I don't want to encourage downstream packaging at this point in time.
Yes, downstream exists. And it's problematic, and I've asked you politely to please not be part of the problem. Basically, if there's no automated way to provide fully up-to-date packages to NixOS users, then please wait until one of our release candidates gets blessed as 1.0.

Perhaps try building distro-agnostic packages? For example, https://github.com/matthewbauer/nix-bundle?

@BjarniRunar Or you may maintain a .nix-file (it is a small text file, not binary blob) in your repo, like many products maintain a Dockerfile in their repo (and some also .nix: https://github.com/scala-native/scala-native/tree/0df05ab9ce20336fb65d8814a403cf2d6c7ef393/bin)

I updated the mailpile package for local use, so I could at least check out what mailpile is about. It'll stop working once another 1.0 release comes out.

@bjornfor , @volth - those both sound like interesting options. I won't have time to work on them myself in the near future, but I would accept contributions. That's especially applicable to a .nix file I guess. How does that work? Do people just "nix install https://github.com/..../foo/.nix" ?  How are updates detected/handled?

those both sound like interesting options

I think if you don't like the idea of downstreams, and especially multiple downstreams, I think you should strongly consider nix-bundle. That should allow you to build one bundle and distribute to all modern Linux' systems. You'd still have to write a .nix file to describe how to build mailpile, but that effort benefits all your users. (Even yourself!)

Do people just "nix install https://github.com/..../foo/.nix" ? How are updates detected/handled?

No, it's not that simple, unfortunately. End users would then have to write a small Nix expression that imports the expression from you (https://github.com/foo/default.nix"). It is up to the user whether to fetch the latest file every time they update their system, or to lock down the initial version they built by specifying a sha256 sum for the upstream .nix file.

@bjornfor well, you could make a tarball and include it. For example: nix-env -f https://pub.yori.cc/mailpile.tar -i will install mailpile.

Good point!
One problem:
$ nix-env -f https://pub.yori.cc/mailpile.tar -i
downloading ‘https://pub.yori.cc/mailpile.tar’... [0/0 KiB, 0.0 KiB/s]
unpacking ‘https://pub.yori.cc/mailpile.tar’...
installing ‘mailpile-1.0rc1’
error: invalid character ‘/’ in name ‘Mailpile-release/1.0-src’
(use ‘--show-trace’ to show detailed location information)

Works for me. Maybe it's a platform issue?

IDK. I'm running Nix 1.11.13 on NixOS 17.03.

Hm. maybe it doesn't like the / in the rev. (that'd be a bug, should investigate). I updated it to use the commit hash. It should work now.

Yes, it works! (I had to manually download the tarball and say "nix-env -f file://$PWD/mailpile.tar -i" because it seems nix cached the previous tarball somewhere.)

@makefu uses @buildbot to update a nix channel. This could be a way of keeping the package up-to-date.


[react-rewrite] Move all css constants to theme

Two subtasks here:

[x] - implement or find any ready-to-use implementation of advanced theme (see below)
[ ] - move all constants to theme

Advanced theme
Currently, theme is pretty limiting, e.g. you can't reuse some values in other places. What I would like to have is something like bellow:
{
   colors: {
     main: '#2932b5',
     border: '#cccccc',
   }
   ...
   sideBar: {
     shadow: `1px 1px ${colors.border}`
     // or alternativelly
     shadow: `1px 1px ${theme => theme.colors.border}`
     ...
   }
}

So the idea is to be able to reuse some common colors but at the same time have precise control over each component.

What's the benefit of encoding the theme in JS rather than CSS? I'm finding this difficult to work with, as it leads to cryptic, generated class names (.kgFZmy) which can't be edited in the Chrome devtools.

+1 for buchanae
Right now it's very ugly class name there to work with.. we cant' simple override some css styles

Ideally SCSS should be used. It is indeed very strange to have CSS in inside TS files. Using SCSS would make it a lot easier and less confusing to create themes for ReDoc.


Error when installing virtual-wan extension on Ubuntu 22.04

Describe the bug
When trying to install the virtual-wan extension on a freshly deployed Ubuntu 22.04 VM running within Azure, an error is thrown.
Related command
az extension add --name virtual-wan
Errors
The command failed with an unexpected error. Here is the traceback:
[Errno 2] No such file or directory: '/home/strobodov/.azure/cliextensions/virtual-wan/virtual_wan-0.2.17-py2.py3-none-any.whl'
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/extension/custom.py", line 16, in add_extension_cmd
return add_extension(cli_ctx=cmd.cli_ctx, source=source, extension_name=extension_name, index_url=index_url,
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/extension/operations.py", line 344, in add_extension
extension_name = _add_whl_ext(cli_ctx=cmd_cli_ctx, source=source, ext_sha256=ext_sha256,
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/extension/operations.py", line 177, in _add_whl_ext
shutil.copyfile(ext_file, dst)
File "/opt/az/lib/python3.10/shutil.py", line 256, in copyfile
with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/strobodov/.azure/cliextensions/virtual-wan/virtual_wan-0.2.17-py2.py3-none-any.whl'
Issue script & Debug output
seems to be a file missing
Expected behavior
I would expect the extension to be installed. It works fine on my Fedora 37 machine.
Environment Summary
Static hostname: hopper
Icon name: computer-vm
Chassis: vm
Machine ID: 278db56daca94b71a30af6ce8346536b
Boot ID: ccc238b973674b988d0c5cc0e7d74f8c
Virtualization: microsoft
Operating System: Ubuntu 22.04.2 LTS
Kernel: Linux 5.15.0-1040-azure
Architecture: x86-64
Hardware Vendor: Microsoft Corporation
Hardware Model: Virtual Machine
azure-cli                         2.49.0
core                              2.49.0
telemetry                          1.0.8
Dependencies:
msal                              1.20.0
azure-mgmt-resource               22.0.0
Python location '/opt/az/bin/python3'
Extensions directory '/home/strobodov/.azure/cliextensions'
Python (Linux) 3.10.10 (main, May 19 2023, 08:20:31) [GCC 11.3.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response

Thank you for opening this issue, we will look into it.

Cannot reproduce on Ubuntu:

Be careful: you're using azure-cli 2.48.1. I've used latest which is 2.49.0

Please delete /home/strobodov/.azure/cliextensions/virtual-wan/ and try again.
If still not working, please attack the output with --debug param.


Ability to protect indices even further.

Information
As part of certain plugins alerting and index management for example, we create jobs that run in the background and are using the transport client which bypasses security. In order to avoid users from using these features and gaining access to data in the cluster that they should not be able to have access too we should block the config indices.
Rather than simply block these indices, this feature allows users to add another level of security to chosen indices or index patterns, by requiring that regardless of what index a user has permissions to they must also be part of one of the protected indices roles.
This change does the following:

Allows to enable / disable the ability to restrict indices to a set of roles.
Allows for 1 or more indices or index patterns to require a particular role.
Allows for 1 or more roles to grant access to the blocked indices.

These settings must be set in elasticsearch.yml and are not mutable.
Additional integration tests are part of this PR that test this feature.
Test outputs:
Security
security lucaswin$ mvn clean package
[INFO] Results:
[INFO]
[WARNING] Tests run: 197, Failures: 0, Errors: 0, Skipped: 6
[INFO]
[INFO]
[INFO] --- maven-jar-plugin:3.1.1:jar (default-jar) @ opendistro_security ---
[INFO] Building jar: /Users/lucaswin/Desktop/github/backend-security/security/target/opendistro_security-<IP_ADDRESS>.jar
[INFO]
[INFO] --- git-commit-id-plugin:2.2.6:validateRevision (validate-the-git-infos) @ opendistro_security ---
[INFO]
[INFO] --- maven-jar-plugin:3.1.1:test-jar (default) @ opendistro_security ---
[INFO] Building jar: /Users/lucaswin/Desktop/github/backend-security/security/target/opendistro_security-<IP_ADDRESS>-tests.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14:12 min
[INFO] Finished at: 2019-08-30T15:30:38-07:00
[INFO] ------------------------------------------------------------------------
security lucaswin$

Security Advanced Modules
To come...
Integration test package
Will run these upon approval of PR to avoid rerunning every change.
Dependency
This change depends on the advanced module code change found here.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Can you please update Security Advanced Modules UT run result?

Results:
[INFO] Results:
[INFO]
[WARNING] Tests run: 556, Failures: 0, Errors: 0, Skipped: 5
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11:53 min
[INFO] Finished at: 2019-09-04T18:26:18Z
[INFO] ------------------------------------------------------------------------


functions can't be used in NamedExecContext with slice of structs

this regex https://github.com/jmoiron/sqlx/blob/master/named.go#L213 doesn't support queries like
q := "INSERT INTO table (field1, created_at) VALUES (:field1, NOW())"

db.NamedExecContext(ctx, q, args)

when args is a slice of structs. fixBound fails when there is () inside brackets we're looking for

Why not declare the current_timestamp as default when you create the table? So you don't need to insert NOW().

@lumenphp I've declared this as you mentioned, but my intention is to notify that valid MySQL syntax is not going to work in sqlx.NamedExecContext with slices of structs.

Any status on this issue? It would greatly simplify some of my use cases to be able to pass in functions on inserts with slice of structs.

Bumping this as I have encountered it many times using this lib and forget about it each time, thus resulting in about an hour of trouble shooting errors like
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2023

A workaround that we use is to loop over the slice first and set the appropriate property to time.Now(), however this only works if the input struct as a property for this field.
@lumenphp regarding this statement

Why not declare the current_timestamp as default when you create the table? So you don't need to insert NOW().

It is not always possible to do this. Especially in legacy enterprise environments where modifications to the table are either out of the question or have to go through weeks of change control.


Improve existing content

What article on docs.github.com is affected?

What part(s) of the article would you like to see updated?

Additional information

What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
Additional information https://github.com/github/docs/issues/8543#issue-952369898


fix: Athena timestamp literal format

related: [#19969]
from AWS official docs

[ x] Has associated issue:  [#19969]
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Pinged for some reviews. Thanks for the contribution!

@thinhnd2104 do you mind addressing the failed CI checks?

@thinhnd2104 do you mind addressing the failed CI checks?

Thank you. This commit was updated.

@thinhnd2104 I pushed a commit to fix the linting error and will merge once CI passes.

Thank you!

@thinhnd2104 thanks again for the fix; I'm tagging this for 1.5.1 which I'm hoping we'll get up for vote later this week


Error Setting up entry

Also getting this
Logger: homeassistant.config_entries
Source: custom_components/ge_home/update_coordinator.py:174
Integration: GE Home (documentation)
First occurred: 7:22:18 AM (1 occurrences)
Last logged: 7:22:18 AM
Error setting up entry GE Home<EMAIL_ADDRESS>for ge_home
Traceback (most recent call last):
File "/config/custom_components/ge_home/update_coordinator.py", line 172, in async_setup
await self.initialization_future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/ge_home/update_coordinator.py", line 172, in async_setup
await self.initialization_future
File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 45, in exit
self._do_exit(exc_type)
File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 92, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self)  # type: ignore
File "/config/custom_components/ge_home/init.py", line 26, in async_setup_entry
if not await coordinator.async_setup():
File "/config/custom_components/ge_home/update_coordinator.py", line 174, in async_setup
raise HaCannotConnect("Initialization timed out")
custom_components.ge_home.exceptions.HaCannotConnect: Initialization timed out
Originally posted by @joshewing02 in https://github.com/simbaja/ha_gehome/issues/29#issuecomment-894663365

Started getting this when I updated to the current release this morning.
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/ge_home/update_coordinator.py:174
Integration: GE Home (documentation)
First occurred: 3:22:22 PM (1 occurrences)
Last logged: 3:22:22 PM
Error setting up entry GE Home for ge_home
Traceback (most recent call last):
File "/config/custom_components/ge_home/update_coordinator.py", line 172, in async_setup
await self.initialization_future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/ge_home/update_coordinator.py", line 172, in async_setup
await self.initialization_future
File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 45, in exit
self._do_exit(exc_type)
File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 92, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self)  # type: ignore
File "/config/custom_components/ge_home/init.py", line 26, in async_setup_entry
if not await coordinator.async_setup():
File "/config/custom_components/ge_home/update_coordinator.py", line 174, in async_setup
raise HaCannotConnect("Initialization timed out")
custom_components.ge_home.exceptions.HaCannotConnect: Initialization timed out

Is there any error that occurs before this one?  You might need to search the logs a little bit.  All this is saying is that it timed out when trying to initialize.  That can be caused by many things such as network issues, credential issues, or an issue setting up a device (i.e. a bug).  The code is due for some refactoring, to be a bit more informative, but I haven't gotten there yet.

I got the same exact error sequence - this is a new setup and I am running v0.4.1
there is no other error that happens before these for me, they are at the top of the log file...
after that error, this one happens every minute:
2021-08-10 08:30:32 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry GE Home (EMAIL) for ge_home Traceback (most recent call last): File "/config/custom_components/ge_home/update_coordinator.py", line 172, in async_setup await self.initialization_future asyncio.exceptions.CancelledError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/custom_components/ge_home/update_coordinator.py", line 172, in async_setup await self.initialization_future File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 45, in __exit__ self._do_exit(exc_type) File "/usr/local/lib/python3.9/site-packages/async_timeout/__init__.py", line 92, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_components/ge_home/__init__.py", line 26, in async_setup_entry if not await coordinator.async_setup(): File "/config/custom_components/ge_home/update_coordinator.py", line 174, in async_setup raise HaCannotConnect("Initialization timed out") custom_components.ge_home.exceptions.HaCannotConnect: Initialization timed out

Any chance that one of you can change the debug level in HA?  I'm not sure why it's not triggering the initialization complete, perhaps setting to debug might illuminate things a bit?
This is where the debug level can be set: https://www.home-assistant.io/integrations/logger/

log is attached - it looks like the problems start when it finds an unrecognized appliance - ErdUnitType is 6, which is my gas dryer
ge_home_log_level_debug_startup.txt

thanks! and the latest dev version fixed it. unrelated to this bug, but how does someone go about debugging a custom component like this?

It's a bit of a pain to debug custom components honestly.  Basically, I just write a lot of details to the logger to hopefully figure out where something is failing.  Not sure if there's an easier way to do it.  Most of the logic is really in the SDK, and that is much easier to debug because you can run it separately and attach a debugger.

@joshewing02 and @chansearrington, does the latest dev version solve your issues too?

Have nto had a chance to dig into this yet.  Traveling for work but plan on this weekend addressing.  Thanks for the follow up.

From: simbaja @.>
Sent: Tuesday, August 10, 2021 1:35 PM
To: simbaja/ha_gehome @.>
Cc: joshewing02 @.>; Mention @.>
Subject: Re: [simbaja/ha_gehome] Error Setting up entry (#30)
@joshewing02https://github.com/joshewing02 and @chansearringtonhttps://github.com/chansearrington, does the latest dev version solve your issues too?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/simbaja/ha_gehome/issues/30#issuecomment-896299554, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHHNXI4WSN4EJNXTLKK56A3T4GERVANCNFSM5BXXXHYQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

To comment on this, my issue from #33 is resolved here.  Setup the repo without issue.

How do I switch to the dev branch?
I installed using hacs

@joshewing02 and @chansearrington, does the latest dev version solve your issues too?

@simbaja how do I switch to the dev branch?
I installed this via Hacs

In hacs, if you show prereleases, those are based on the dev branch.  You
want 0.4.3-dev3.
On Sat, Aug 14, 2021, 7:43 AM Chanse Arrington @.***>
wrote:

@joshewing02 https://github.com/joshewing02 and @chansearrington
https://github.com/chansearrington, does the latest dev version solve
your issues too?
@simbaja https://github.com/simbaja how do I switch to the dev branch?
I installed this via Hacs
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/simbaja/ha_gehome/issues/30#issuecomment-898883613,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOEHFXBGDRZN6A64S46JCADT4ZJHPANCNFSM5BXXXHYQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

I hate to bring this back up, but I have the latest Dev version and it errors out no matter how many different ways I install. Any ideas? I can pull a log tomorrow

I hate to bring this back up, but I have the latest Dev version and it errors out no matter how many different ways I install. Any ideas? I can pull a log tomorrow

If you can post that log, we can hopefully figure it out.  Thanks for your help.

Wow, false alarm...I went back to delete and reinstall to get the logs which I did about a dozen times earlier and now it's completely fine. You're that good! Thanks for this amazing integration!

I'm assuming that it's working for everyone now, feel free to reopen if I am mistaken.  Thanks for all your help testing!


Data Reset after Switching to another Character

Hello
based on: 0.92 (2022-07-31)
Since the last version, the dataset once determined on a character is no longer retained when relogging to the next character, for example to find unknown transmogs for a different armor class.
This is especially annoying since you always have to wait 15 minutes between complete scans.
Is this a BUG or is it intentional for reasons I don't understand?
regards
Mcdrowd

You don't need to change character to scan different armor classes though?

If you install this addon https://github.com/Auctionator/PreserveAuctionatorAHScan/releases/download/1.0/PreserveAuctionatorAHScan-1.0.zip it will keep the scans between characters on the same realm.

If you install this addon https://github.com/Auctionator/PreserveAuctionatorAHScan/releases/download/1.0/PreserveAuctionatorAHScan-1.0.zip it will keep the scans between characters on the same realm.

This seems to be exactly what I want- Thank you.
Explanation: I want to buy unknown Transmogs and immedentely equip it on this armor class.

The feature to preserve scans for reuse on a later login is now has an official release at https://www.curseforge.com/wow/addons/preserve-auctionator-ah-scan. Closing this issue as resolved.


Make CFI evaluation signal safe

See individual commits for details.
r? @philipc

Coverage decreased (-0.05%) to 93.791% when pulling 40f5d27c85acd7a4152221ce4c06575a9b105935 on fitzgen:no-alloc-in-cfi into b371897c795036d1368eba67819fb44551b890f3 on gimli-rs:master.

Thanks for the review :)

Did you measure how much difference the u8 register made? I think it's fine to do anyway, but I suspect it hasn't gained much due to alignment.

I didn't measure in isolation, unfortunately. I was just trying to get everything down to a somewhat reasonable size. I think we may want to make the whole storage generic in the future in case people want more stack size or something like that.
I was dismayed that from a glance that most places wouldn't benefit, but I think a few did.
/me shrugs

We may be able to reduce RegisterRule size by changing Expression and ValExpression to store only offsets, and keep the common buffer pointer elsewhere.

Nice idea -- I'll file an issue to investigate further.

FYI, libunwind has its own mempool routines that it uses to allocate the equivalent of UnwindTableRow. It also sets the number of registers based on architecture.

Interesting that they both pre-allocate memory and use mmap. I didn't think that mmap was signal safe, but perhaps I am wrong, or they don't do it during unwinding proper.
But yeah, I think down the line we want to be generic across storage for the register rules, cfa and stack (maybe make UnwindContext into a trait?).

I didn't think that mmap was signal safe, but perhaps I am wrong.

I think that system calls are ok in general because they are atomic from the application's point of view (they return EINTR if interrupted). You have to be sure that the libc function is only a system call and not something more though.


Refactored the methods, improved naming, removed unnecesary variables, added typing.

resolves #

Description

Checklist

[ ] I have read the contributing guide and understand what's expected of me
[ ] I have signed the CLA
[ ] I have run this code in development and it appears to resolve the stated issue
[ ] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[ ] I have run changie new to create a changelog entry

@china-cse Could you take a look at it? Mostly changes of a refactoring-ish type.


how to exclude codeblock in the mindmap ?

In my markdown file, the codeblock is also recognized as a branch in the mindmap, is there a toggle to select which type of items can be included in the final mindmap? e.g. I only want to include title, ordered list or bullet list as branch.
Thank you!

Not supported now


Significant CPU consumption when agent is on

Python agent makes python process to consume a lot of CPU in idle state.
Description
When I turn python agent on, upon server start, when first request came and some queries ran, python process starts to eat 40-100% of CPU. If I disable python agent and restart server, the CPU is 0-3%. The high CPU level with python agent keeps the same while being idle (100% sure no requests coming).
Stack: Python, Flask, Gevent (tried both – just PyWSGI server and gunicorn – the situation is exactly same), SocketIO (with simple-websocket), Nginx.
Debugging the app showed that most of CPU time is spent looping green threads. strace showed that a lot of epoll_wait's going on when newrelic is up.
Expected Behavior
No impact or low impact.
Troubleshooting or NR Diag results
NR Diag (nrdiag/linux/nrdiag_arm64 --suites python):
Executing following diagnostic task suites: Python Agent

Check Results
-------------------------------------------------
Info     Base/Env/CollectEnvVars [Gathered Environment variables of current shell.]
Success  Base/Config/Collect
Success  Base/Config/Validate
Success  Base/Log/Copy
Success  Base/Config/LicenseKey
Success  Base/Config/ValidateLicenseKey
Info     Base/Config/RegionDetect [1 unique New Relic region(s) detected from config.]
Info     Base/Env/HostInfo [Collected host information]
Success  Base/Env/DetectAWS
Success  Base/Env/RootUser
Success  Base/Log/ReportingTo
Success  Python/Config/Agent
Info     Python/Agent/Version [9.12.0]
Success  Base/Agent/EOL
Success  Base/Config/AppName
Success  Base/Collector/ConnectEU
Info     Base/Config/ValidateHSM [Local High Security Mode setting (false) for confi...]
Success  Python/Env/Dependencies
Success  Python/Env/Version
Success  Python/Requirements/PythonVersion
8 results not shown: 8 None
Local High Security Mode setting (false) for configuration:

	/app/newrelic.ini

To upload results and validate High Security Mode settings, run the Diagnostics CLI with the -a or -api-key flag.

See nrdiag-output.json for full results.

No Issues Found

Creating nrdiag-output.zip

Let me know how can I share the nrdiag-output.zip as I assume there is some sensitive info in it.
py-spy
(hub.py just keeps growing after time)
  %Own   %Total  OwnTime  TotalTime  Function (filename:line)
100.00% 100.00%   77.81s    77.85s   run (gevent/hub.py:647)
  0.00%   0.00%   0.780s    0.780s   acquire_with_timeout (gevent/_threading.py:36)
  0.00%   0.00%   0.160s    0.160s   load_default_certs (ssl.py:597)
  0.00%   0.00%   0.040s    0.040s   _on_expiration (gevent/timeout.py:242)
  0.00%   0.00%   0.010s    0.010s   send (gevent/_socketcommon.py:725)
  0.00%   0.00%   0.010s    0.010s   __run_task (gevent/threadpool.py:173)
  0.00%   0.00%   0.000s    0.160s   request_encode_url (newrelic/packages/urllib3/request.py:99)
  0.00%   0.00%   0.000s    0.160s   harvest (newrelic/core/application.py:1514)
  0.00%   0.00%   0.000s    0.010s   send (engineio/async_drivers/_websocket_wsgi.py:26)
  0.00%   0.00%   0.000s    0.160s   run (sched.py:151)
  0.00%   0.00%   0.000s    0.160s   _harvest_default (newrelic/core/agent.py:648)
  0.00%   0.00%   0.000s    0.780s   get (gevent/_threading.py:207)
  0.00%   0.00%   0.000s    0.160s   _bootstrap_inner (threading.py:1038)
  0.00%   0.00%   0.000s    0.160s   send_request (newrelic/common/agent_http.py:446)
  0.00%   0.00%   0.000s    0.160s   urlopen (newrelic/packages/urllib3/connectionpool.py:715)
  0.00%   0.00%   0.000s    0.010s   run (gevent/threadpool.py:206)
  0.00%   0.00%   0.000s    0.160s   _validate_conn (newrelic/packages/urllib3/connectionpool.py:1058)

austin-tui
main process:
  OWN    TOTAL    %OWN   %TOTAL  FUNCTION
  35"     35"    100.0%  100.0%  Hub.run (/root/.cache/pypoetry/virtualenvs/fin-back-dr-9TtSrW0h-py3.11/lib/python3.11/site-packages/gevent/hub.py:647)

any other thread:
  OWN    TOTAL    %OWN   %TOTAL  FUNCTION
  00"     05"      0.0%    6.2%  _WorkerGreenlet.run (/root/.cache/pypoetry/virtualenvs/fin-back-dr-9TtSrW0h-py3.11/lib/python3.11/site-packages/gevent/threadpool.py:195)                                                                        │
  00"     05"      0.0%    6.2%  Queue.get (/root/.cache/pypoetry/virtualenvs/fin-back-dr-9TtSrW0h-py3.11/lib/python3.11/site-packages/gevent/_threading.py:207)                                                                                │
  00"     05"      0.0%    6.2%  _Condition.wait (/root/.cache/pypoetry/virtualenvs/fin-back-dr-9TtSrW0h-py3.11/lib/python3.11/site-packages/gevent/_threading.py:86)                                                                             │
  05"     05"      6.2%    6.2%  acquire_with_timeout (/root/.cache/pypoetry/virtualenvs/fin-back-dr-9TtSrW0h-py3.11/lib/python3.11/site-packages/gevent/_threading.py:36)

cProfile snakeviz

The most interesting part: strace
After a lot of time of investigation I found a stackoverflow question (https://stackoverflow.com/questions/58973698/uwsgi-with-gevent-takes-up-100-cpu) which led me to idea of monitoring sys calls and turned out something in my python app just annihilating my server with epoll_wait and getting pid:
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 93.62  117.284295      132975       882       582 futex
  2.98    3.730401           3   1183701           epoll_pwait
  2.87    3.601322           3   1183853           getpid
  0.51    0.644368      107394         6         4 restart_syscall
  0.00    0.002443          29        84           sendto
  0.00    0.002401           9       260        15 recvfrom
  0.00    0.001816           7       255        11 newfstatat
  0.00    0.001388          10       133           write
  0.00    0.000871           2       318        16 read
  0.00    0.000658           5       130       108 epoll_ctl
  0.00    0.000632           2       211           lseek
  0.00    0.000591          19        30           mmap
  0.00    0.000463          17        26           munmap
  0.00    0.000427          10        42           close
  0.00    0.000408          18        22         2 openat
  0.00    0.000346          31        11           ppoll
  0.00    0.000307          18        17         5 connect
  0.00    0.000293          29        10           getdents64
  0.00    0.000240          20        12           socket
  0.00    0.000211           5        37           getsockopt
  0.00    0.000205          17        12         6 accept4
  0.00    0.000175          43         4           clone
  0.00    0.000139           5        26         4 ioctl
  0.00    0.000127           5        22           times
  0.00    0.000119           7        15           setsockopt
  0.00    0.000069           4        16           getsockname
  0.00    0.000063           4        15           rt_sigprocmask
  0.00    0.000058           5        10           getrandom
  0.00    0.000046           5         8           gettid
  0.00    0.000020           6         3           madvise
  0.00    0.000012           6         2           fcntl
  0.00    0.000012           3         4           rseq
  0.00    0.000007           3         2           epoll_create1
  0.00    0.000004           1         4           set_robust_list
  0.00    0.000003           0         4           getpeername
  0.00    0.000000           0         2           getuid
  0.00    0.000000           0         2           geteuid
  0.00    0.000000           0         1           bind
  0.00    0.000000           0         2           recvmsg
  0.00    0.000000           0         1           sendmmsg
------ ----------- ----------- --------- --------- ----------------
100.00  125.274940          52   2370195       753 total

Green threads dump:
https://pastebin.com/mVrqs4VY
Done with:
def report_greens(*args, **kwargs):
    gevent.util.print_run_info()

signal.signal(signal.SIGUSR1, report_greens)

Steps to Reproduce
will try to create
Your Environment

gevent version: 24.2.1 (pypi via poetry)
Python version: Python 3.11.2 installed as base docker image (https://hub.docker.com/_/python)
Operating System: aws ec2 (Ubuntu 22.04.3 LTS aarch64) (uname -r: 6.5.0-1020-aws)
Docker container OS: Debian GNU/Linux 12 (bookworm)

Additional context
nothing

I tried to create a repro repository mimicing what is happaning on my actual code and... maybe I miss something, but repro code doesn't create the same issue. I'm kinda tired and bleary-eyed already as I investigate it for 3 days...
Could someone from newrelic point me to other places for debugging newrelic somehow? Some extra debug logs that could show, for example very frequent execution of some newrelic functionality? My guess is that newrelic's green thread is ticking very frequently... Disabling newrelic on my prod for now... No idea how to solve

Let me know if you'd find a repro useful and I can try to produce one, but I'm also seeing this. It is most pronounced in CPU-constrained environments, I didn't notice it locally, but once I deployed to Google Cloud Run it quickly maxed the CPU.

Python New Relic Agent 9.11.0
Python 3.12.4
Django 4.2
Gunicorn 22.0.0
Gevent 24.2.1

Invoking Gunicorn like:
gunicorn --pythonpath /my_django_app --chdir /app --worker-tmp-dir /dev/shm --worker-class gevent --workers=5 --max-requests=1000 --access-logfile '-' --error-logfile '-' --bind <IP_ADDRESS>:8000 wsgi:application

Hope that helps. A single request will trigger it in the case of Cloud Run.

Thanks for the information to help with the reproduction!  Looking into this

Hi there -- Any luck looking into this? Would love to get back to instrumenting our async gunicorn processes again.

Hey I'm picking this ticket up from Lalleh. That get_pid and epoll info is intriguing. I see there is this patch https://github.com/newrelic/newrelic-python-agent/blob/main/newrelic/hooks/coroutines_gevent.py#L17-L29 and I wonder if this could be causing an issue. Could you try running with this branch and see if this fixes the issue?

Besides that patch I mentioned which does seem suspicious (I do see calls to sleep in the green threads dump too), I've been trying to setup a repro of this issue and I haven't been able to do so. Along the same lines as maybephilipp was thinking, it looks like it's spending a lot of time waiting for the cpu to become available again (aka other threads). We do have a harvest thread that we create and it does run every 5s to push up certain data to newrelic. If this harvesting is causing issues, you could limit the data that is being harvested and see if that helps (the following configuration settings will turn off harvesting of various data in case the data harvest is so much that it's causing a bottleneck on the threads):

distributed_tracing.enabled = false
application_logging.enabled = false
event_harvest_config.harvest_limits.analytic_event_data = 0
event_harvest_config.harvest_limits.custom_event_data = 0
event_harvest_config.harvest_limits.ml_event_data = 0
event_harvest_config.harvest_limits.span_event_data = 0
browser_monitoring.enabled = false

What are the CPU constraints of the system you are running on where you are seeing this issue? Also along those same lines; how long does each request take to complete (aka do you have long running requests >.5s)? What kinds of things does the application do that you are monitoring? Does it talk to sql, do lots of logging, custom event creation, talk to other servers, do anything CPU intensive, memory intensive, network intensive, etc? I wonder if this is just a case where the additional overhead of running our monitoring is pushing your system over the edge especially since you say you are only able to reproduce it on CPU constrained systems. I am able to get the CPU usage up fairly high on a CPU constrained system as well but it doesn't stay there like what you are describing here which is why I'm wondering if there's maybe something specific inside of your application that you are doing that is contributing to this. It would really be helpful to have a reproduction of this if you could post a reproduction repo with a docker container and the CPU constraints you are running with I think it would go a long way to getting to the bottom of this.

to keep yall posted, I'm a little further in investigation as I got the same issue without newrelic. I'm currently gathering data about overloads and will post an update later. For me, it happens very randomly. Like the app starts to use the whole cpu just from nothing while it was working perfectly before or just right after launching. Very weird, investigating:) The symptoms are the same.


[Regression] Ensure that "Highlight All" is propagated to all pages for 'findagain' events where the findbar was previously closed (PR 10100 follow-up)

STR:

Open the default viewer, with the tracemonkey file.
Open the findbar, and search for "trace".
Enable the "Highlight All" option.
Close the findbar.
Re-open the findbar, and click on the "findNext" button.
Scroll down to the second page of the document.

ER:
Since "Highlight All" is active, all matches on the second page should be highlighted.
AR:
No matches are highlighted on the second page.

/cc @timvandermeij I should have caught this when working on PR #10100, but I obviously didn't; sorry about that!

/botio-linux preview

Thank you for the follow-up!


How to migrate Runner Type to Apple

How to migrate Runner Type to Apple
I'm using M1 Mac for development, I found that the type of the new project in the simulator is Apple, however, the type of projects I maintain is always Intel.

Hi @CyJaySong
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Fix broken admin pages

Following this ticket https://github.com/jhipster/generator-jhipster-quarkus/issues/145
I've figured out the following admin pages are not working properly:

[x] logs https://github.com/jhipster/generator-jhipster-quarkus/pull/161
[x] config https://github.com/jhipster/generator-jhipster-quarkus/pull/158
[x] audit
[x] database https://github.com/jhipster/generator-jhipster-quarkus/pull/162
[X] metrics https://github.com/jhipster/generator-jhipster-quarkus/pull/147 & https://github.com/jhipster/generator-jhipster-quarkus/pull/159

logs
~This feature is related to Spring boot actuator https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html.
We should not implement that since we don't have any solution out of the box for Quarkus.
Action: Open a ticket to remove logs feature in frontend (code and tests).~
config
~This feature is related to Spring boot actuator https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html.
We should not implement that since we don't have any solution out of the box for Quarkus.
Action: Open a ticket to remove config feature in frontend (code and tests).~
Action:  expose configurations through a specific endpoint, sample app https://github.com/avdev4j/sample-quarkus-configuration
Audit
~Audit is removed in the JHipster v7. I suggest not change anything on our side since we'll probably release the v1 with the v7 of JHipster. This means audits will be totally removed from the frontend.
Action:  Open a pr to clean the backend code from Audit commented artifacts~
Finally nothing to od here because the audit element in the entities (user) are not related the Audit page.
Database
The h2 console is not available on the Quarkus admin pages. Let's try to enable it with this solution:
https://stackoverflow.com/questions/61853691/how-to-set-h2-database-console-url-in-the-quarkus-application
Action:  Open a pr to add to h2 console
Misc
Override protractor tests to remove not relevant tests for Quarkus (logs, audit, config...)
I think we should focus on Quarkus features than try to reproduce Spring boot one even if it means less features on the frontend part.
This should be done for the v1, if we want to have a production-ready app.
WDYT?
cc @danielpetisme @joewhite101 @mraible

Sounds good to me!

The original issue had a bounty so I transfer it to  the current one.

I'm not sure about the props page. Maybe we can implement it easily by exposing the loaded conf through the dedicated endpoint

I have added metrics too

I have added the possibilty to expose configurations

cc @pascalgrimaud
Bounty claimed here
https://opencollective.com/generator-jhipster/expenses/32055

cc @pascalgrimaud
Bounty claimed here
https://opencollective.com/generator-jhipster/expenses/32055

@avdev4j : approved

@avdev4j : approved


Replace constant macros to constexpr variables and enums in headers

Since macros have some defect because only the text replacement is performed, I think we can encourage developers to use more constexpr variables, function templates and enums while it is possible.

Hi. Is it better to use constexpr here too?
https://github.com/apache/incubator-kvrocks/blob/unstable/src/redis_cmd.cc#L63

Hi. Is it better to use constexpr here too? https://github.com/apache/incubator-kvrocks/blob/unstable/src/redis_cmd.cc#L63

Sure. I think at least it should be typed const char * const, since the top-level const qualifier matters for constants (in linkage and storage durations).

Thanks all. Merging...


Feature/embed module

!send embed url channel
Send the embed message to the channel provided after waiting for confirmation.
!send embed url channel msgId
Sends embed message to the channel provided, it will check if messageId exists and edit it if possible. If it can't (Not owner of message) it will abort the embed. Will wait for confirmation from user before posting to channel.

IsValidHost
GetDownUrlFromUri
2 small helper methods just to reduce duplicated code, few other things that could be improved to reduce code duplication, but eh.

Need some refacto to avoid code duplication in the 2 !sendEmbed command.
Also the embed commands should [RequireAdmin]

Need some refacto to avoid code duplication in the 2 !sendEmbed command.
Your entire Embed command was inlined, what are these standards smh 😏, I'll change it soon

Also the embed commands should [RequireAdmin]
[RequireAdmin] works on class declaration, you can have it on the class and it will cover all methods in that class.


[bug] Significant lag when shift-selecting large data set range with MultiDrag

Describe the bug
When attempting to shift+select a large number of items (500+) to move to another list there is a significant lag (~1 second per 100 items).
To Reproduce
I've created a rough test jsbin with 1000 items for testing: https://jsbin.com/weraxoroho/edit?html,js,output
Steps to reproduce the behavior:

Select the first item
Scroll to the bottom of the first list and select the last item while holding SHIFT
Wait about 10 seconds before they're all selected (will turn green)

Expected behavior
The expected behavior is an instant selection of all items with no lag.
Information
sortablejs = 1.15.0
Additional context
The same lag is found in Chrome, Firefox, and Safari. Doing some digging into the codebase, I was able to track down the suspected culprit of the lag.
On Line 3514 is the for loop that handles each element within the Shift+select range
Within that loop it calls dispatchEvent() and within that function is a call to _objectSpread2() on Line 948
https://github.com/SortableJS/Sortable/blob/babf6ab85fdfc5e13be1027827cecfbba2fb0d1e/Sortable.js#L948
Commenting out this line along with lines 950-952, it works blazing fast and selects everything as expected.
Can _objectSpread2() be better optimized? Or is there a work around for MultiDrag with large data sets?

+1, interested in developments for large scale data

+1


Can't re-authenticate.

I'm getting spammed with messages that my preview expired. I need to sign out and in to get paid plan working.
But it seems I can't remove old token. How can I sign out, or where is token stored on machine?
Copilot.vim offers signout function
Issue from copilot here --> https://github.com/community/community/discussions/39533

Just rm ~/.config/github-copilot/hosts.json and the next time you will fully reauth.
There's a signout function in copilot.auth, does it not do what you are looking for?

Thanks! I found it. I was digging through the code all good. Was trying Copilot signout same as compilot.vim
But it gives me Unknown params: signout I realised I needed Copilot auth signout - my bad.
Seems that copilot auth is broken. Upstream issue. So closing for now.


feat: setup entire login and course purchase setup

Resolves #169
This pr currently adds:

[x] Ability to signup in house
[ ] Hash Password
[ ] ~Verify the user with some method~ Not required for v0

Future plans:

[ ] Ability to purchase a course in house
[ ] Change the schema for storing purchases
[ ] Integrate Razorpay

hey @hkirat, how should I proceed with mail verification? I can implement it my way but what would suit you the most???

No need to verify emails for v0

hey @hkirat, Do we need to support login with appx as a fallback method?

Also, just to be sure, content is still comming from appx right?

No all content is in house currently as well
appx gives us

authentication (they store user information)
Let us know which user has purchased which course - ref - https://github.com/code100x/cms/blob/main/src/utiles/appx.ts#L15

oh, makes a lot sense. Thanks

https://github.com/code100x/cms/assets/76874341/a27839ce-12b4-415c-a390-6154c35f09d1

@hkirat ready for review. Could you check this out?

As this is v0 a lot of things to be improved. LMK your thoughts on this and I shall continue.
PR already getting a lot large and messy.

@hkirat hoping it comes to your notifs

Will review it asap

Just clarifying a few things
I have left a bunch of TODOs which can be their own issue.
Simple enough to fix not totally necessary but can make the app a lot better and performant
not totally sure thooo

Also, bit of clarification required. Can we quickly hop on a meet just to clarify things a bit ofc if u are free thooo

hey @hkirat, what are u thoughts about this pr? Is this even somewhat doable?

too many merge confs, gonna close for now

checking


RDM colormap

can import from Charestlab/pyrsa

I think this is a great idea.

fixed with 6ebc632


Include non-atlas data in Fig. 3a (Sankey)

Below is a Sankey diagram for the atlas datasets. It was suggested suggested that we add non-atlas datasets. Currently, I am using https://github.com/x-atlas-consortia/hra-pop/blob/main/output-data/v0.5/reports/atlas/table-s1.csv for the vis. The query is at https://github.com/x-atlas-consortia/hra-pop/blob/main/queries/table-s1.rq

Update 1/26/24:
Not planned, only show atlas-level data.


[New Design] Design improvements (AwSearch)

add sizeprop to AwInput (new design) - sm/md
save small size prop (sm) into AwSearch
change icon to clear button

➤ Ilya Kitayev commented:

add sizeprop to AwInput

proxy all props from AwInput to AwSearch

➤ Артем Ломако commented:
https://git.awescode.com/awes-io/ui/merge_requests/16 ( https://git.awescode.com/awes-io/ui/merge_requests/16 )


Pass region to new Aws resources. Closes #27

This has been reset, should have been PR'd against develop.

Issue was closed by PR #32


DIG-1371 Tax does not match Spree

The logic to calculate the order discounts is not taking under consideration all the adjustments of the order (e.g. Shipment discount), also if the order includes a not eligible discount it gets through Avalara.

Include all eligible adjustments of the order in the data sent to avalara.

@tomfbiz could you code review this PR?

I did not test this but I have a couple of comments --

I see that we went from  calculating tax on docs of type SalesOrder to type of SalesOrder or SailsInvoice. Is this by design and intentional? I don't want us to tell Avalara that we paid taxes for something we only invoiced. On the other hand, we do want to show the taxes in gthe invoice. I'm not sure exactly how this works currently or what was not working.

There were two tickets related to taxes and promos that I worked on in January 2016:
https://github.com/littlebitselectronics/spree_avatax/pull/1/files
https://github.com/littlebitselectronics/little_bits/pull/2969
We need to make sure that we are not double counting the promos now.

We should make sure to test the scenario that these were addressing (adding "lights" promo to the cart did not discount the tax on the free items). You or @tsouthworth-lb should change the end-date on that promo in staging and make sure your change did not impact it.

@tomfbiz thanks for review this PR, about your comments:
1.- We have been calculating taxes for both docs, this update is to make sure that if something has been changed with the order (e.g. a promotion is not longer eligible for the order) when the order is in payment state and the customer clicks on "Place Order" button, the Spree::Tax adjustment of the order got updated.
2.- Not all adjustments are sent to Avatax, e.g. adjustments created on Admin's page or the total of free items. What this update does is to include all the eligible adjustments of the order as part of the "Discount" field sent to Avalara.

Regards.

This looks good. OK to merge, if @tsouthworth-lb has QA'ed (I did not QA, just reviewed the code).


file upload > 100mb

limitation in UWS

has to do with cf max chunk size

see https://github.com/atelier-saulx/based/issues/144


fix linting errors

this is currently blocking all ci, so will allow us to clear down the backlog of dependabot prs


cannot delete farm in TFconnect app

As we can add farms from the tfconnect app, we should be able to delete farms as well
Test Environment:
TFconnect version: 3.9.0-176
Android version: 12
kernel version: 4.14.113-25741823

Cannot delete farms on the chain itself.


read_h5ad takes forever and do not give an error

from anndata import read_h5ad
ss2 = read_h5ad('endopancreas.Endothelial.h5ad')

import scanpy as sc
sc.api.read('endopancreas.Endothelial.h5ad')

import anndata
anndata.read('endopancreas.Endothelial.h5ad')

All of these will run on for a long time without giving any error, but if I remove the "." then it works normally.

what version of anndata do you use?

I can't reproduce this behavior. @chenlingantelope, are you still experiencing this?


When receiving a message while on the message page will reload the conversation, showing the new message

When typing a message, for instance, you should not reload the page, but rather stay on your own message, while seeing a new message come in on the side.

Possibly not a problem in the current state, may need a little more testing


No such namespace: thi.ng.common.data.core

It looks like [morphogen "0.1.1"] depends upon but does not include thi.ng/common, resulting in the above error when one attempts to require it. Adding [thi.ng/common "0.3.1"] to one's deps resolves the problem.

Hi @jackrusher - oops.. that's a regression from thi.ng/geom, which is not including the common lib anymore (in fact common has been split up into different libs to avoid turning into a kitchen sink). will build a new 0.2.0-SNAPSHOT of morphogen and let you know when ready...

Grand. I'm guessing the new SNAPSHOT will also fix what look to be protocol incompatibilities with mg/save-mesh as well. :)

yes, it should - but alas it won't happen today (will try tomorrow eve) - got another workshop to prepare (this weekend) :)


Home page

Issue Description
A normal landing page for non-users, It should have the following :

[ ]  #21
[ ]  description body for the website
[ ]  Footer that consist of the following Links:

[ ] About us page
[ ] github repo of the project

May you assign this issue?


problem running the template

i faced these problems any help

after an "npm install" command, the application finally run on my system