Generate cloudformation files to further customise the deployed cloudformation stack

Is your feature request related to a problem? Please describe.
Unable to further customize the stack like changing the deployed application load balancer to dualstack from ipv4 for example
Describe the solution you'd like
I would like to see the ability to generate an cdk project or a cloudformation project so that i can further customise the deployed resources for my dotnet app that gets deployed using this tool. as far as i can see, i am unable to customise the stack further, for example, i want to update the deployed load balancer to dualstack but am unable to do it in code currently or can't use the tool to achieve this.
Describe alternatives you've considered
Manually edit the load balancer in the AWS console, which works fine but the edit does not tie back to the cloudformation stack that gets generated using this deploy tool
Additional context
I am loving this tool so far but would love an option to generate a cdk project or cloudformation project so that i can continue using this tool instead of once off deploying my dotnet app and being unable to customise certain resources within the deployed resources.

This is a :rocket: feature request

We do have the ability to generate the CDK deployment project and use that project for deployment. This would support the use case you mentioned. This is the documentation for that https://aws.github.io/aws-dotnet-deploy/docs/project/.


Add docker compose install link and fix the command

docker-compose will get deprecated and is not  supported in latest versions so we should instead use docker compose

From the end of June 2023 Compose V1 won’t be supported anymore and will be removed from all Docker Desktop versions.
Make sure you switch to Compose V2 with the docker compose CLI plugin or by activating the Use Docker Compose V2 setting in Docker Desktop. For more information, see the Evolution of Compose


the update operation update data only by ID, have other ways?

The version is 1.04

FindAndModify is still in progress, if I recall, so you may have better luck doing a Find operation to filter which IDs need edited, copying their data, and performing the edit manually.

Not yet. As @Dessix sayed, FindAndModify are on roadmap to v2.1


Time progression syntax issue, run mode issue, etc

I was playing around trying to get the time progression syntax working but began to run into quite a few hurdles.
First, the time progression syntax only works in the context of:
getTestScheduler().run(() => {...})

If you look at the source code of TestScheduler.parseMarbles it needs to be in runMode for time progression syntax to be parsed.
My next thought is OK, I'll just wrap my code in .run. Turns out you can't use the toBeObservable matcher in inside of .run because https://github.com/synapse-wireless-labs/jasmine-marbles/blob/master/index.ts#L145 reparses the marbles and loses the context of runMode (note the last argument to TestScheduler.parseMarbles is runMode).
I think some careful consideration should be taken as some things should likely be redesigned to better work with .run for its advantages.

@MikeRyanDev @brandonroberts this is pretty frustrating. I spent a fair chunk of time wondering what I was doing wrong.
I followed the rxjs docs to the letter only to find out that this never really worked as anticipated.
As a trivial example, consider the following code:
import { TestBed } from '@angular/core/testing';

import { Observable } from 'rxjs';

import { Action } from '@ngrx/store';
import { ROUTER_NAVIGATION } from '@ngrx/router-store';
import { provideMockActions } from '@ngrx/effects/testing';
import { Actions } from '@ngrx/effects';

import { hot, cold, getTestScheduler } from 'jasmine-marbles';

import { SidebarEffects } from './sidebar.effects';
import * as SidebarActions from '../actions/sidebar.actions';

describe('Daffio | SidebarEffects', () => {
  let effects: SidebarEffects;
  let actions$: Observable<any>;

  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [
        SidebarEffects,
        provideMockActions(() => actions$)
      ]
    });

    effects = TestBed.get(SidebarEffects);
  });

  it('should be created', () => {
    expect(effects).toBeTruthy();
  });

  fdescribe('when a ROUTER_NAVIGATION occurs', () => {
    const action: Action = { type: ROUTER_NAVIGATION};
    const completion = new SidebarActions.CloseSidebar();

    it('should dispatch CloseSidebar with a 18ms delay', () => {
        let expected;

        actions$ = hot( '--a', { a: action });
        expected = cold('--- 8ms b', { b: completion });

        expect(effects.closeOnPageChange$(18, getTestScheduler())).toBeObservable(expected);
    });
  });
});

It seems impossible for me to test anything with non-multiple of 10 passage of time. Additionally, it appears that you're parsing   characters as passage of time as well. Is there a plan to address this issue?

I would expect this test to pass, but unfortunately the jasmine-marbles syntax fails. Regular Rxjs syntax passed (using expectObservable).
  it('should work', () => {
    const scheduler = getTestScheduler();
    scheduler.run((helpers) => {
      const { expectObservable } = helpers;

      const o = interval(1000).pipe(take(3), map((i) => `foo_${i}`));

      expectObservable(o).toBe('1s 0 999ms 1 999ms (2|)', ['foo_0', 'foo_1', 'foo_2']);
      expect(o).toBeObservable(hot('1s 0 999ms 1 999ms (2|)', ['foo_0', 'foo_1', 'foo_2']));
    });
  });

The weird passage of time (only-multiples-of-10) is also an annoyance, but my most pressing issue is that testing interval etc is not possible using the jasmine-marbles syntax. It doesn't even seem to parse it because each string ('100ms') gets interpreted literally.

Support for time progression has been published in 0.5.0


Update chain info from Viem

Related with #1268
Updating chain information obtained from Viem's GitHub repository using #1328

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

9 of 9 (100.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.005%) to 93.54%

Files with Coverage Reduction
New Missed Lines
%

safe_eth/eth/tests/clients/test_etherscan_client.py
1
90.91%

Totals

Change from base Build<PHONE_NUMBER>5:
-0.005%

Covered Lines:
8790

Relevant Lines:
9397

💛  - Coveralls


Change resolutions behavior

Resolutions, however, do not consist of a single downloadable document, but a main document (mostly pdf/docx) and attachments in any form, e.g. several zip or docx, the best form of implementation would be an accordion that would contain a list of available files from a given resolution (the files and the main document could be indistinguishable and contained in one set of files)
then meeting subpage should have links to certain resolutions or accordions with their info
may need simple change in Resolutions collection

Moreover, resolutions do not display when meeting is empty, so resolutions should be displayed anyway (circulation vote to be precised)

:tada: This issue has been resolved in version 1.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Sample Update] Tab device permission sample readme changes

Readme changes to reflect latest code updates

Build status - All builds passed
https://github.com/OfficeDev/Microsoft-Teams-Samples/actions/runs/5314966459


Fixes #7 and fixing warnings about {{ / (( / {% in when conditio…

CHECK LIST
Thank you for taking the time to work on a PR.
To ensure your PR is dealt with swiftly please check the following:

[/] You have searched the repository for any relevant issues or PRs.
[/] Your submissions are formatted according to the ansible-lint guidelines.
[/] You have provided a summary describing the change, including rationale and design decisions
[/] You have added additional spec tests to cover new feature or modification as needed

SUMMARY

Ansible 2.3 warns very, very loudly when a when conditional has (), {}, or {% %} in it.
This PR removes that.

TESTS/SPECS

Tests were ran locally successfully.
PLAY RECAP *********************************************************************
centos6                    : ok=33   changed=14   unreachable=0    failed=0
centos7                    : ok=33   changed=14   unreachable=0    failed=0

--> Idempotence test in progress (can take a few minutes)...
--> Starting Ansible Run...
Idempotence test passed.
--> Executing ansible-lint...
--> Executing flake8 on *.py files found in tests/...
--> Executing testinfra tests found in tests/...
============================= test session starts ==============================
platform linux2 -- Python 2.7.12+, pytest-3.2.2, py-1.4.34, pluggy-0.4.0
rootdir: /tmp/ansible-role-scl, inifile:
plugins: testinfra-1.6.4
collected 22 items

tests/test_packages.py ....
tests/test_repos.py ......
tests/test_pips.py ..
tests/test_gems.py ..
tests/test_wrappers.py ........

=============================== warnings summary ===============================
None
  Module already imported so can not be re-written: testinfra

-- Docs: http://doc.pytest.org/en/latest/warnings.html
==================== 22 passed, 1 warnings in 9.35 seconds =====================

This was fixed in another commit


Error : 'AuthorizationManager check failed' while loading dbatools.psm1 module through sql agent job

A job step received an error at line 4 in a PowerShell script. The corresponding line is 'Import-Module C:\Windows\System32\WindowsPowerShell\v1.0\Modules\dbatools\dbatools.psm1 -force'. Correct the script and reschedule the job. The error information returned by PowerShell is: 'AuthorizationManager check failed.  '.  Process Exit Code -1.  The step failed.
need help in importing the module through the sql agent job

The module is the psd1 file, not the psm1. What syntax are you using to
import the module?
Il 30 nov 2017 10:54 AM, "sagarkvs"<EMAIL_ADDRESS>ha scritto:

A job step received an error at line 4 in a PowerShell script. The
corresponding line is 'Import-Module C:\Windows\System32
WindowsPowerShell\v1.0\Modules\dbatools\dbatools.psm1 -force'. Correct
the script and reschedule the job. The error information returned by
PowerShell is: 'AuthorizationManager check failed. '. Process Exit Code -1.
The step failed.
need help in importing the module through the sql agent job
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sqlcollaborative/dbatools/issues/2751, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAHdBzJ18wT2khyVscAsd67KNd_Ujvgoks5s7ntigaJpZM4QwSVZ
.

Import-Module C:\Windows\System32\WindowsPowerShell\v1.0\Modules\dbatools\dbatools.psm1 -force

that's the error.
a) you installed it system-wise so you can just do "import-module dbatools"
b) if you ever want to skip the install part, you need to put it in a folder and "import-module path_to\dbatools.psd1"
Go here for all the options : dbatools.io/install

module is loading fine when loading through powershellISE, facing error while running through sql agent job
A job step received an error at line 1 in a PowerShell script. The corresponding line is 'Import-Module dbatools -force'. Correct the script and reschedule the job. The error information returned by PowerShell is: 'Errors occurred while loading the format data file:  Microsoft.PowerShell, , C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\dbatools\xml\dbatools.Format.ps1xml: The file was skipped because of the following validation exception: AuthorizationManager check failed..   '.  Process Exit Code -1.  The step failed.


Fix prev when reading first token_type=prev

This PR fixes https://github.com/stac-utils/pgstac/issues/140

That following SQL queries should return same result. prev should be null for both. Without this fix the second one defines prev as "prev:pgstac-test-item-0011".
SELECT search(
    '{
       "collections": ["pgstac-test-collection"],
       "limit": 10,
       "sortby":[{"field": "id", "direction": "asc"}]
     }'
)

SELECT search(
    '{
      "collections": ["pgstac-test-collection"],
      "limit": 10,
      "sortby":[{"field": "id", "direction": "asc"}],
      "token": "prev:pgstac-test-item-0011"
     }'
)

Great job @ahuarte47! But in order to make tests passed we need to do some extra work:

Update version here
Update version here
Create file pypgstac/pypgstac/migrations/pgstac.0.6.6-0.6.7.sql and put there new version of the function you modified
Create file pypgstac/pypgstac/migrations/pgstac.0.6.7.sql (I believe we can simply copy it from pgstac.0.6.6.sql and update the relevant part)

I've made all those steps locally and can confirm that all tests are passed:
$ ./scripts/cibuild
...
Running PGTap Tests on Temp DB 1
Checking if any tests are not ok on db postgresql://username:password@localhost:5432/migra_from
All PGTap Tests Passed!
Using Migra to test for any differences between incrementally migrated DB and DB created with latest base migration.
No differences found.
Running pypgstac tests...
Creating pgstac_dev_run ... done
Running mypy...
Success: no issues found in 16 source files
Running black...
All done! ✨ 🍰 ✨
16 files would be left unchanged.
Running flake8...
Running unit tests...
==================================================================== test session starts =====================================================================
platform linux -- Python 3.8.12, pytest-5.4.3, py-1.11.0, pluggy-0.13.1
rootdir: /opt/src/pypgstac
collected 72 items

pypgstac/tests/test_load.py ...................                                                                                [ 26%]
pypgstac/tests/hydration/test_base_item.py .                                                                                [ 27%]
pypgstac/tests/hydration/test_dehydrate.py .............                                                                                [ 45%]
pypgstac/tests/hydration/test_dehydrate_pg.py .............                                                                                [ 63%]
pypgstac/tests/hydration/test_hydrate.py .............                                                                                [ 81%]
pypgstac/tests/hydration/test_hydrate_pg.py .............                                                                                [100%]

=============================================================== 72 passed in 98.37s (0:01:38) ================================================================
Checking if there are any staged migrations.
Checking whether base sql migration exists...
Congratulations! All pypgstac tests pass.

Thank you very much @drnextgis for your advices !!!!

@bitner could you please trigger the pipeline?

@drnextgis @ahuarte47 There is actually a utility that can be used to help create the migrations file that is necessary. You can take a look at the release process docs. scripts/stageversion <versionnumber> will actually compare the new version and the old version and create a migration with the differences. This auto-generated file has the suffix ".staged" and should be reviewed before removing the suffix to make sure that everything looks correct.

Great job @ahuarte47! But in order to make tests passed we need to do some extra work:

Update version here
Update version here
Create file pypgstac/pypgstac/migrations/pgstac.0.6.6-0.6.7.sql and put there new version of the function you modified
Create file pypgstac/pypgstac/migrations/pgstac.0.6.7.sql (I believe we can simply copy it from pgstac.0.6.6.sql and update the relevant parts)

I've made all those steps locally and can confirm that all tests are passed:
$ ./scripts/cibuild
...
Running PGTap Tests on Temp DB 1
Checking if any tests are not ok on db postgresql://username:password@localhost:5432/migra_from
All PGTap Tests Passed!
Using Migra to test for any differences between incrementally migrated DB and DB created with latest base migration.
No differences found.
Running pypgstac tests...
Creating pgstac_dev_run ... done
Running mypy...
Success: no issues found in 16 source files
Running black...
All done! ✨ 🍰 ✨
16 files would be left unchanged.
Running flake8...
Running unit tests...
==================================================================== test session starts =====================================================================
platform linux -- Python 3.8.12, pytest-5.4.3, py-1.11.0, pluggy-0.13.1
rootdir: /opt/src/pypgstac
collected 72 items

pypgstac/tests/test_load.py ...................                                                                                [ 26%]
pypgstac/tests/hydration/test_base_item.py .                                                                                [ 27%]
pypgstac/tests/hydration/test_dehydrate.py .............                                                                                [ 45%]
pypgstac/tests/hydration/test_dehydrate_pg.py .............                                                                                [ 63%]
pypgstac/tests/hydration/test_hydrate.py .............                                                                                [ 81%]
pypgstac/tests/hydration/test_hydrate_pg.py .............                                                                                [100%]

=============================================================== 72 passed in 98.37s (0:01:38) ================================================================
Checking if there are any staged migrations.
Checking whether base sql migration exists...
Congratulations! All pypgstac tests pass.

Thanks @bitner !!!


evp_md_init_internal: type checks are superfluous + optimizations lost compared to 1.1.1

In 3.0 in evp_md_init_internal, even if you specify type == NULL in the function call, you always inevitably get one in this block
    if (type != NULL) {
        ctx->reqdigest = type;
    } else {
        if (ctx->digest == NULL) {
            ERR_raise(ERR_LIB_EVP, EVP_R_NO_DIGEST_SET);
            return 0;
        }
        type = ctx->digest;
    }

There are many checks for type == NULL or type != NULL after that point which are unnecessary.
At the beginning of the function, it also forces the algctx of the provider to be free'd even if the algorithm is re-used wasting an opportunity for optimization if the algorithm is the same and comes from the same provider.
For example, this block was optional before and only done if you changed the digest type:
    if (ctx->digest != NULL && ctx->digest->ctx_size > 0) {
        OPENSSL_clear_free(ctx->md_data, ctx->digest->ctx_size);
        ctx->md_data = NULL;
    }

Now it's unconditionally executed leading to more wasted time and resources (see legacy path for much of the old 1.1.1 implementation).
There's also some ctx->engine checks which are not inside #if !defined(OPENSSL_NO_ENGINE).

Partially addressed in #16952, where the unnecessary NULL checks are removed and the check of ->engine is moved inside the #if guard.

This part remains outstanding:

At the beginning of the function, it also forces the algctx of the provider to be free'd even if the algorithm is re-used wasting an opportunity for optimization if the algorithm is the same and comes from the same provider.


[Mobile/Wearable] Can't add the Text, Image widgets in the Header

Technical
WATT, VSCode
(by design editor PR https://github.com/Samsung/TAU-Design-Editor/issues/230)
I use WATT Sample for TAU_1.1_Base_Mobile (TAU library is 1.1.0)
Description
I can't add the Text, Image widgets in the Header.
I just can add the button, Toggle switch widgets in the Header
Steps to reproduce

Create a new project in Design Editor
Drag&Drop the Text, Image widgets in the Header.

Expected behaviour
Can add the Text, Image widgets in the Header
Actual behaviour
Can't add the Text, Image widgets in the Header

PR was merged, please review it

I can add the text.
But can you add the image to Header?
I can't do it by your PR.
So I update the https://github.com/Samsung/TAU-Design-Editor/pull/295

I think this issue is done by PR #295 and #285.


Accessing websocket server port on "listening" event

Operating System: Ubuntu 17.04
Node Version: 8.9.0
NPM Version: 6.4.1
webpack Version: 4.17.1
webpack-serve Version: 2.0.2

Feature Proposal
In the watch content example the hot client port number gets hardcoded. It would be nice to take advantage of dynamic port assignment while still being able to watch content.
So when I add my listening event handler to my webpack config I want to be able to look up the port of the hot client websocket server.
I dove through some code and it looks like webpack-hot-client never sends the websocket port number back to webpack-serve - I guess that would be necessary for this to work.
Feature Use Case
I want to watch files (html) that are used at development time but aren't included in the webpack build.
I also want to be able to run several development servers for several projects at once without having to go through and change port numbers to avoid overlaps. By taking a advantage of dynamic port allocation I don't have to worry about this.

DEPRECATED. Please use webpack-dev-server (he is in support and update mode again). Feel free to create a issue if some features are not implemented in webpack-dev-server.
Why deprecated webpack-serve ?

The author stopped developing the package.
Two development servers are misleading for developers.
Hard to maintain two packages with same purpose.
Some dependencies are not available to fixes/implement new features/etc (https://www.npmjs.com/package/webpack-hot-client and https://github.com/shellscape/koa-static) and there's nothing we can do here.
webpack-dev-server is stable.

Thanks for using webpack! We apologize for the inconvenience. In the future, we will avoid such situations.


Running simp? output produces different goal than simp

Prerequisites
Please put an X between the brackets as you perform the following steps:

[x] Check that your issue is not already filed:
https://github.com/leanprover/lean4/issues
[x] Reduce the issue to a minimal, self-contained, reproducible test case.
Avoid dependencies to Mathlib or Batteries.
[x] Test your test case against the latest nightly release, for example on
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)

Description
 /-- info: "4.10.0-rc1" -/
#guard_msgs in
#eval Lean.versionString

/--
info: Try this: simp only [exists_prop, exists_and_left, exists_eq_right_right]
---
warning: declaration uses 'sorry'
---
info: [Meta.Tactic.simp.rewrite] exists_prop:1000, ∃ x_1, a = x ==> 1 < a ∧ a = x
[Meta.Tactic.simp.rewrite] exists_and_left:1000, ∃ x_1, 1 < a ∧ a = x ==> 1 < a ∧ ∃ x_1, a = x
[Meta.Tactic.simp.rewrite] exists_prop:1000, ∃ x_1, a = x ==> 0 < a ∧ a = x
[Meta.Tactic.simp.rewrite] exists_eq_right_right:1000, ∃ a, 1 < a ∧ 0 < a ∧ a = x ==> 1 < x ∧ 0 < x
-/
#guard_msgs in
set_option trace.Meta.Tactic.simp.rewrite true in
example (x : Nat) : ∃ (a : Nat) (_ : 0 < a) (_ : 1 < a), a = x := by
  simp?
  show 1 < x ∧ 0 < x
  sorry

example (x : Nat) : ∃ (a : Nat) (_ : 0 < a) (_ : 1 < a), a = x := by
  simp only [exists_prop, exists_and_left, exists_eq_right_right]
  show 0 < x ∧ 1 < x
  sorry

Context
Originally reported on Zulip.
Steps to Reproduce
Paste the above code into a Lean editor.
Expected behavior: The goal is the same.
Actual behavior: The goal is different.
Versions
This particular repro works on 4.7.0+ (where the simp lemmas were introduced), but there may be a simpler reproduction that uses pre-4.7.0 simp lemmas.
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

The issue here is that simp? produces a simp only [...] using the order the theorems have been applied.
The correct order should be based on
1- [simp] attribute priorities
2- The order the theorems have been inserted into the global simp-set.
Here is mwe for (1).
inductive Ex (p : α → Prop) : Prop where
| intro (w : α) (h : p w) : Ex p

@[simp] theorem ex_prop (p q : Prop) : Ex (fun h : p => q) = (p ∧ q) := sorry
@[simp high] theorem ex_and_left (p : α → Prop) (b : Prop) : (Ex fun x => b ∧ p x) = (b ∧ Ex fun x => p x) := sorry
@[simp] theorem ex_eq_right_right (p q : α → Prop) : (Ex fun x => p x ∧ q x ∧ x = a) = (p a ∧ q a) := sorry

/--
info: Try this: simp only [ex_prop, ex_and_left, ex_eq_right_right]
---
warning: declaration uses 'sorry'
-/
#guard_msgs in
example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  simp? -- Produces incorrect `simp only`
  guard_target =ₛ 1 < x ∧ 0 < x
  sorry

example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  simp only [ex_prop, ex_and_left, ex_eq_right_right]
  guard_target =ₛ 0 < x ∧ 1 < x
  sorry

example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  simp only [ex_and_left, ex_prop, ex_eq_right_right] -- This is the correct order
  guard_target =ₛ 1 < x ∧ 0 < x
  sorry

The original issue is a mwe for (2). Here is another mwe for (2) that does not depend on the order theorems are defined in Init
inductive Ex (p : α → Prop) : Prop where
| intro (w : α) (h : p w) : Ex p

@[simp] theorem ex_and_left (p : α → Prop) (b : Prop) : (Ex fun x => b ∧ p x) = (b ∧ Ex fun x => p x) := sorry
@[simp] theorem ex_prop (p q : Prop) : Ex (fun h : p => q) = (p ∧ q) := sorry
@[simp] theorem ex_eq_right_right (p q : α → Prop) : (Ex fun x => p x ∧ q x ∧ x = a) = (p a ∧ q a) := sorry

/--
info: Try this: simp only [ex_prop, ex_and_left, ex_eq_right_right]
---
warning: declaration uses 'sorry'
-/
#guard_msgs in
example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  simp?
  guard_target =ₛ 1 < x ∧ 0 < x
  sorry

example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  simp only [ex_prop, ex_and_left, ex_eq_right_right]
  guard_target =ₛ 0 < x ∧ 1 < x
  sorry

example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  simp only [ex_and_left, ex_prop, ex_eq_right_right] -- This is the correct order
  guard_target =ₛ 1 < x ∧ 0 < x
  sorry

simp can take additional simp-sets, the order we provide them should be taken into account too.  Here is a mwe for this related issue.
inductive Ex (p : α → Prop) : Prop where
| intro (w : α) (h : p w) : Ex p

@[seval] theorem ex_prop (p q : Prop) : Ex (fun h : p => q) = (p ∧ q) := sorry
@[simp] theorem ex_and_left (p : α → Prop) (b : Prop) : (Ex fun x => b ∧ p x) = (b ∧ Ex fun x => p x) := sorry
@[simp] theorem ex_eq_right_right (p q : α → Prop) : (Ex fun x => p x ∧ q x ∧ x = a) = (p a ∧ q a) := sorry

/--
info: Try this: simp only [ex_prop, ex_and_left, ex_eq_right_right]
---
warning: declaration uses 'sorry'
-/
#guard_msgs in
example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  -- If theorems in `simp` and `seval` have the same priority, the one in `simp` must appear first
  -- in the resulting `simp only`
  simp? only [simp, seval, -Nat.isValue] -- produces an incorrect `simp only`
  guard_target =ₛ 1 < x ∧ 0 < x
  sorry

example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  simp only [ex_prop, ex_and_left, ex_eq_right_right]
  guard_target =ₛ 0 < x ∧ 1 < x
  sorry

example (x : Nat) : Ex fun (a : Nat) => Ex fun (_ : 0 < a) => Ex fun (_ : 1 < a) => a = x := by
  simp only [ex_and_left, ex_eq_right_right, ex_prop] -- This is the correct order
  guard_target =ₛ 1 < x ∧ 0 < x
  sorry


Generating extended types that implement interfaces in the extension fails to generated the actual interface implementation

Given a simple GraphQL schema where a type is extended in multiple places and interfaces are implemented in those extensions, DGS codegen fails to generate the implementation in the java classes.
A small example:
interface A { name : String }

type Example implements A {
    name: String
}

interface B { age :Int }

extend type Example implements B{
    age :Int
}

generates the following java class which does not implement the also generated B interface:
public class Example implements org.example.codegen.types.A {
  private String name;
  private Integer age;

  // ... the rest of the code
}

The expected behaviour would be that the java class implements both A and B. Especially because the fields added by the extension are actually generated.

Hello, thank you for the report. I tested this out and was able to reproduce the reported behavior.
This has been added to the backlog and will be prioritized in the coming weeks.


SQLAlchemy: Polyfill for UNIQUE constraints

About
CrateDB does not support the notion of UNIQUE constraints, because it is a distributed database. For supporting certain applications, specific workarounds have been showing a successful outcome. Hereby, we would like to evaluate how a corresponding patch could be generalized, to be optionally enabled on the CrateDB SQLAlchemy dialect.
Reference

https://github.com/crate/crate/issues/10279

Details
While working on mlflow-cratedb, we had the need to support for UNIQUE constraints, as defined by the application ORM model, so we added a corresponding monkeypatch, which also has a remark:

TODO: Submit patch to crate-python, to be enabled by a dialect parameter crate_polyfill_unique or such.

Currently, the check_uniqueness_factory function is invoked on a single model which needed to be patched. That is still a bit tied to application logic, and would need to be generalized.
from mlflow.store.tracking.dbmodels.models import SqlExperiment

listen(SqlExperiment, "before_insert", check_uniqueness_factory(SqlExperiment, "name"))

Proposal
So, the idea here is to add a dialect parameter crate_polyfill_unique, which will, under the hood, transparently augment the SQLAlchemy model setup process to establish an event listener on the before_insert event, to check for uniqueness by querying the database table.
Surely, this causes overhead, and needs to be strongly emphasized in the documentation. But in general, the kinds of applications we are building this for do not need that much throughput on this end.

There is a patch now, which includes the corresponding improvement.

GH-28


Add params and headers for URL uploads

Acceptance Criteria:

[ ] Can view/edit query params
[ ] Can view/edit headers
[ ] Headers and query parameters are sent when  is clicked
[ ] When accessing already ingested datasets, the params and headers will auto-populate

Tech Notes:

Ignore secret and URL preview
When in doubt, see how Postman behaves
Comp: https://aidigital.invisionapp.com/share/UFUH0HI7N84#/screens/389646420

Amigos:
@ramboyapati , @jakeclark

Questions:

how to delete rows?
how to add rows?  (plus button, or auto-resize like postman)
allow user to type query params in base URL box?

It would be nice to have a X button to the right of the last column to delete a row
Auto-resize like postman is preferred.
Allowing user to type parameters in the base URL is fine. Would these parameters be auto-populated in the parameters section below? or is the first iteration to only have a base URL?

Thanks Ram.  We talked through these questions with @jakeclark and we'll be building the 'easiest' solution first.  So...

We will allow the user to delete rows with an 'X' on the right-hand side of the row
We will use a plus button for now to add a row (auto-resize can be added later)
For now, we will strip query parameters out of the URL box.  We can add the feature later where adding query parameters in the URL input dynamically adds those query parameters in the table below.


sumo-bandplot --project gives KeyError: <Spin.up: 1>

Hi!
Not sure if this is a problem on my side, however I can not seem to figure out a solution.
I have bandstructures of a Si Ge alloy (one cubic, one tetragonal) with varying composition.
Plotting DOS, bandstats, bandplot etc all works fine and sumo does a great job, thank you all for that!
However when I run let's say
sumo-bandplot --project Ge,Si --ymin -4 --ymax 4
to look at orbital contributions of the individual elements using --projected
all I get is an error in bandstructure.py that ends in
KeyError: <Spin.up: 1>
all calculations are non-spin polarized, does that matter?
I am using the latest sumo version with python3.6 under macos 10.13.6
here is the full error:
File "/Library/Python/3.6/bin/sumo-bandplot", line 10, in <module>
   sys.exit(main())
 File "/Library/Python/3.6/lib/python/site-packages/sumo/cli/bandplot.py", line 548, in main
   dpi=args.dpi, fonts=args.font)
 File "/Library/Python/3.6/lib/python/site-packages/sumo/cli/bandplot.py", line 297, in bandplot
   no_base_style=no_base_style)
 File "/Library/Python/3.6/lib/python/site-packages/sumo/plotting/__init__.py", line 61, in wrapper
   return get_plot(*args, **kwargs)
 File "/Library/Python/3.6/lib/python/site-packages/sumo/plotting/bs_plotter.py", line 365, in get_projected_plot
   normalise='select')
 File "/Library/Python/3.6/lib/python/site-packages/sumo/electronic_structure/bandstructure.py", line 72, in get_projections_by_branches
   projections = get_projections(bs, selection, normalise=normalise)
 File "/Library/Python/3.6/lib/python/site-packages/sumo/electronic_structure/bandstructure.py", line 159, in get_projections
   for nk in range(nkpts)] for nb in range(nbands)]
 File "/Library/Python/3.6/lib/python/site-packages/sumo/electronic_structure/bandstructure.py", line 159, in <listcomp>
   for nk in range(nkpts)] for nb in range(nbands)]
 File "/Library/Python/3.6/lib/python/site-packages/sumo/electronic_structure/bandstructure.py", line 159, in <listcomp>
   for nk in range(nkpts)] for nb in range(nbands)]
KeyError: <Spin.up: 1>

thanks!

It should be fine to do non-spin-polarised calculations. In the Pymatgen band structure objects, these are stored as having a single spin-channel Spin.up so that key should be there even from an ISPIN=1 calculation.
One "obvious" thing to rule out; you are sure that you had LORBIT=11 in the INCAR to generate the orbital projections?

thank you Adam, this has resolved itself, I used an old vasprun.xml which was run without lorbit
error on my part, closing


SAK-43625 Samigo: Syntax error, unrecognized expression: Function.fa.…

…error
SAK-43814 Samigo - MCSC question labels are not aligned when shown all on one page
SAK-43688 T&Q: MCSC short answer choices are not aligned at all now in the student feedback or instructor grading view

Hey Austin
After looking at this do you think it would be better to just fix the markup in the template vs the js fixup approach?

That might be a good idea. I hadn't thought of that when I proposed my patch.
However, looking at the markup, it looks like it's doing some tricky stuff with feedback.  I'm not totally sure, but maybe the original author thought that it was better to get all the data including the question answers, labels, and feedback all in one loop, then move the fixup block with JS?
Is there someone else with that's more familiar with the samigo code that can take a look at that?  can my patch be used as an interm fix?

@mpellicer do you understand what's going on here?

@mpellicer do you understand what's going on here?

I see, I needed to revert back my alignment patch in our instances because there are multiple scripts that does the same when a page contains multiple questions of the same type, leading to missaligned radio buttons.
Searching for script looks weird indeed but the solution @austin48 is proposing makes sense to me in this case.


Removes deprecation warning of using contains

Fixes deprecation warning EMBER-RUNTIME.ENUMERABLE-CONTAINS which is introduced in Ember 2.8. A polyfill module has been added in the dependency, as instructed in the deprecation page, to fix it in a backward compatible way.

Thanks!


Set schema to array of items instead of single item [SA-15481] develop

For path 'get /api/user/{id}/group':
Documentation before change:

Documentation after change:

Actual response:

For path 'get /api/user/{id}':
Documentation before change:

Documentation after change:

Actual response:

There's still something strange showing in the API docs for groups, the [any-key] key is still displaying.

I don't think that should be there at all, and instead all the other object properties should be moved up into the array's item.

(I think that's what's going on? I can't be sure, but the [any-key] implies that the groups is still a list of objects.)

There's still something strange showing in the API docs for groups, the [any-key] key is still displaying.

This has been fixed.


Fix sun constraint

This should get the tests passing again and thereby closes #138 by doing two things:

Fixing the SunSeparationConstraint to properly do comparisons in the AltAz frame.  I'm not sure why the old version worked at all, TBH, but I think it was working only because that part of the sun transformation was buggy.  Now it transforms the sun and the targets to AltAz coordinates, and then does the comparison there. Note, @bmorris3, this might also apply to some of the other constraints - I didn't look too closely at whether or not others aren't converting to AltAz in places where they should be.
It skips some doctests that are failing because there were some small changes in the rise/set results. I considered updating them, but figured it's better to skip for now, at least, because that way we don't have to worry about tests working different on different versions of astropy.

It seems to still be failing a test on py3.3?

@eteq Any idea what's going on with the doctests?

@eteq It looks like there's a recursive error in this fix.

@eteq – still curious if you can figure out what's going on in your PR.

@bmorris3 @cdeil - OK, I tracked down the issue here.  In astropy <v1.0.4, the recursion error is triggered.  This shouldn't be an issue except that conda apparently doesn't supply astropy v1.0.4 or greater for python 3.3... So the py 3.3 build was failing not because it was py 3.3, but because astropy was out-of-date.
What I just did here now xfails the test of astropy is too old (more specific than the general xfail of #144).  I think that's OK because the test still gets run on the other python versions.   So hopefully this will pass and then this will be all set.

Looks good!


Create Break Glass accounts for AWS

Describe the Issue
Accounts are required for break glass use.  Individual accounts are to be created for each 'admin' for this purpose.  We will also have to assess current admin roles and recommend reducing their scope if possible.
Additional Context
https://app.zenhub.com/workspaces/cloud-pathfinder-5e4dbb426c3c6af8dcbf06a7/issues/gh/bcgov/cloud-pathfinder/2507
https://cloud.google.com/resource-manager/docs/super-admin-best-practices
Acceptance Criteria
A set of pre-defined requirement that need to be met in order to mark the user story as “done”.  See below for team agreement details.

[ ]  Create sample break glass IAM account in AWS (Super Admin)
[ ]  Create login alerts
[ ]  Test login/actions and alerts
[ ] Review current admin role use

.
.
.
.
.
.
.
.
.
.
.
Extra Template Info
Definition of Ready
These set of conditions will need to be met in order to bring a ticket into the sprint and start work. Protects the team from unclear requirements.
Issues (Task/Story/Spike) aligned to an EPIC and linked appropriately.
Assigned to the appropriate CPF MEMBER (and is not left blank in ZenHub) at the start of sprint (1st day of the sprint)
Acceptance has been defined for the issue and has been reviewed with CPF team and approved by the necessary approver.
Has been sized and estimated by the delivery team.
Detailed breakdown of the steps required to complete the story in the additional context
Any additional specifications have been documented, reviewed with CPF and approved by the necessary approver.
Acceptance Criteria
A set of pre-defined requirement that need to be met in order to mark the user story as “done”.
It should be testable with no room for interpretation
It should be either “pass” or “fail”
It should be clear enough for business stake holders to understand
As part of the user story, it should be written from the user perspective
A well written acceptance criteria is great for

managing expectations
defining scope
reducing ambiguity
establishing testing criteria for QA
Given (Pre-condition)
When (Action)
Then (Outcome)

Definition of Done
These set of conditions are met for work to be considered as complete on an issue.
All acceptance criteria(s) have been validated.
All the necessary documentation for the issue has been uploaded to Teams.
Functionality has been tested when applicable.
Functionality has been demonstrated to the relevant stakeholders (where applicable).
Story has been scheduled for a Sprint Demo/community update and impacted teams invited to the Demo.
Stories accepted by PO and documented for potential sharing with impacted users.

Documented = Captured in Community Update (CU) deck
Release notes = aspirational goal of providing a bulleted list of features and changes that our users can touch. Was going to store them in our Cloud Pathfinder repo. Can also display to users in the CU

Apparently these are already in place, but we need to investigate and ensure appropriate monitoring/alerting is applied.


Unable to use Copilot for free, Duplicate entry error

Copilot Chat Extension Version: I don't know, I'm using it built-in to VSC.
VS Code Version: 1.97.0-insider (also get it on latest mainline)
OS Version: Win 11

Steps to Reproduce:

Click the copilot icon next to the top bar
In the side panel (Welcome to Copilot), click Use Copilot for free.

I end up with this error:

If I click Learn More, I end up here, https://github.com/github-copilot/signup/copilot_individual, which wants me to sign up for a free trial. I'd call that an issue as well as I assume Learn More should lead to support help of some sort.

This is a duplicate of https://github.com/microsoft/vscode-copilot-release/issues/3367 and let's track it there.


After certificate update: Vaccination 2 of 1

Avoid duplicates

[x] Bug is not mentioned in the FAQ
? Bug is specific for Android only (I don't own an Apple phone, so I cannot test that)
[X] Bug is not already reported in another issue

Technical details

Device name: S9
Android version: 10
App version: 2.20.3

Describe the bug
My second vaccination certificate is shown as "Impfung 2 von 1".
Steps to reproduce the issue

get vaccinated with Johnson&Johnson
get vaccinated with Moderna
get infected
agree to renewal of certificate

Expected behaviour
"Impfung 2 von 2"

@nhnb Thanks for asking. The notation "2/1" is now correct one. See e.g. https://ec.europa.eu/commission/presscorner/detail/en/ip_21_6837
Best wishes, DS

Corona-Warn-App Open Source Team


Disable Celery event queue

Also: expose RabbitMQ management UI.

Codecov Report

Merging #264 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #264   +/-   ##
=======================================
  Coverage   98.77%   98.77%
=======================================
  Files          14       14
  Lines        1144     1144
=======================================
  Hits         1130     1130
  Misses         14       14

Continue to review full report at Codecov.

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


Landmarks for FaceMesh model

Hey team,
For the media Pipe Pose Landmarker model we can fetch landmark points (x , y, z ) coordinates for all 33 landmarks, we have a proper explanation in the docs like Nose (Landmark 0): Represents the position of the nose on the face.
Left Eye (Inner, Landmark 1): Marks the inner corner of the left eye.
Left Eye (Center, Landmark 2): Represents the center of the left eye.
Left Eye (Outer, Landmark 3): Marks the outer corner of the left eye... and so on for the pose model. Is there a way to derive landmarks for the   FACEMESH_TESSELATION model as well it has 478 3D facial landmarks, but I am not able to know what are the landmarks for eyebrows, for lips for mouth, any help with this please !

Hi @amaancoder,
We regret to inform you that the solution you are currently utilizing relies on a legacy face mesh model. Support for this model has been discontinued as it has been upgraded and integrated into the Face Landmarker Task API. We strongly recommend migrating to our new Task APIs.
Regarding the legacy Face Mesh, we have not found documentation that aligns with the structure of the new Face Landmarker. However, you can view the 3D landmarks for all points here
https://github.com/google/mediapipe/blob/a908d668c730da128dfa8d9f6bd25d519d006692/mediapipe/modules/face_geometry/data/canonical_face_model_uv_visualization.png
In addition, we regret to inform you that we will not be able to provide extensive assistance at this time, as our primary focus is on further improving our new Task APIs.
Thank you!!


No hover docs

I'm not getting any pop-ups when I hover over anything, docs or errors. I've tried restarting vs, disabling all other extensions, even reinstalling vs. The vs config says hover docs is active. I've tried everything I could think of and can't see why they aren't showing up.
I am getting info in "Problems" tab, and other features such as in-line hints and error squiggles.

Does it happen in a new project? Is there anything particular to your setup?

I have a folder open with multiple cargo projects. This cargo project is just a freshly generated one and I'm writing in src/main.rs.

Do you have any errors in here?

Does it still happen if you open a Rust project (instead of a folder with more than one)?
Can you post a screenshot?

I tried opening just a rust project, didn't change anything.
There isn't any output for Rust Analyzer Language Server.
Not sure what you want screenshots of, it just looks like code without a pop up. I took this screenshot and introduced an error for demonstration.

Strange, I can only reproduce this with "editor.hover.enabled": false. Can you set "rust-analyzer.trace.server": "verbose", then check the output in Rust Analyzer Language Server Trace (no need to reload the window)? There should be something like
[Trace - 21:21:33] Sending request 'textDocument/hover - (27)'.
Params: {
    "textDocument": {
        "uri": "file:///~/Projects/rust-analyzer/crates/syntax/src/ast/node_ext.rs"
    },
    "position": {
        "line": 9,
        "character": 6
    }
}

[Trace - 21:21:33] Received response 'textDocument/hover - (27)' in 10ms.
Result: {
    "contents": {
        "kind": "markdown",
        "value": "\n```rust\nextern crate rowan\n```\n\n---\n\nA generic library for lossless syntax trees.\nSee `examples/s_expressions.rs` for a tutorial."
    },
    "range": {
        "start": {
            "line": 9,
            "character": 4
        },
        "end": {
            "line": 9,
            "character": 9
        }
    }
}

I did that and searched for "textDocument/hover" and got 0 results.

Are you sure you didn't disable editor.hover.enabled?

Aha, that was it. I had checked the rust-analyzer>Hover:documentation and that was checked but I didn't know about the editor.hover.enabled.
I have one other quick question if that's okay before this thread is closed. The error highlighting and problems don't seem to calculate until I save the file. Is there a way to make it update more often so it shows errors as I'm typing?

Those are the cargo check diagnostics, which run when saving the file. You can enable auto-save, but I advise against it (it's a big waste of CPU time).
Instead, you can enable our experimental diagnostics. They don't don't always work well, but there's one for functions called with an invalid number of parameters, one for missing struct fields and one for type mismatches. You can also set up highlighting for unresolved references (I can't show how, but I think there's an example in the manual). This way you can see when you made a typo.
The native diagnostics work a bit differently: they only run for the open files. But overall I think they're pretty useful.

Awesome, thank you!

These are the settings I mentioned:
    "editor.semanticTokenColorCustomizations": {
        "rules": {
            "unresolvedReference": "#ff0000",
        },
    },
    "rust-analyzer.diagnostics.enableExperimental": true


How to instantiate a Morel context from an existing Calcite rootSchema?

Heya Julian,
I'm working on a web playground for Calcite, that I plan on hosting for free so that people can experiment with it. It'll essentially be a web REPL with some pre-loaded data, and the ability to render visualizations of query plans + schema diagrams.
I figured that while I'm at it, it could be nice to add a second input form, which takes Morel expressions, and is bound to the same Calcite context/rootSchema.
Having a bit of difficulty figuring out how to do this though.
I have a singleton object that holds the master schema like below -- I think I need to pass this as a foreignValue to Morel or similar?
// Holds the master schema that contains all datasource schemas and their sub-schemas
object CalciteSchemaService {

    val connection: CalciteConnection = initCalciteConnection()
    val rootSchema: SchemaPlus = connection.rootSchema

    val frameworkConfig: FrameworkConfig = Frameworks.newConfigBuilder()
        .defaultSchema(connection.rootSchema)
        .parserConfig(SqlParser.config().withCaseSensitive(false))
        .build()

    val relBuilder: RelBuilder = RelBuilder.create(frameworkConfig)

    // <SNIPPED>
}

I see this but it's protected:
https://github.com/hydromatic/morel/blob/0b76feee27343da5e5dba84938035a576b4665d1/src/main/java/net/hydromatic/morel/foreign/Calcite.java#L64-L71

Yes, foreignValue is the way to do it. It associates a Calcite schema with a Morel variable. You could have a single variable named ‘calcite’ for the root schema (and all first-level schemas would appear as fields) or create a separate foreignValue for each first-level schema.
You will need some kind of shell. (Parses and executes commands, and prints the results, in the environment created by previous commands in the same session.) Maybe one of the existing shells in Morel will work for you, or could be adapted.
The existing shells are able to read commands from a file, including recursively reading files, then switch back to their original input stream, which might be useful to you.
I briefly looked at creating a Java wrapper so that Morel could run in Jupyter, and it looked like a pretty similar problem.

I’m not sure that Calcite’s constructor being protected is a problem. Especially if it is constructed by a shell.
One improvement might be for the list of foreignValue to be dynamic, so you can add and remove after the shell has been created.

Thanks for the pointers Julian. I think I've gotten closer with this, but getting an error about a table not being found.
My guess would be that I maybe need to pass in a custom Calcite context instead of just the ForeignValue map, but I'm not 100% sure to be honest:
object CalciteSchemaService {

    // (... same as above)

    init {
        val chinookPostgresResource = ClassPathResource("chinook-postgres-small.sql")
        val chinookPostgresSql = chinookPostgresResource.inputStream.bufferedReader().use { it.readText() }

        val h2DataSource = org.h2.jdbcx.JdbcDataSource()
        val h2Base = "jdbc:h2:mem:chinook;DB_CLOSE_DELAY=-1;"
        h2DataSource.setURL(h2Base + "MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DEFAULT_NULL_ORDERING=HIGH")

        val h2Connection = h2DataSource.connection
        h2Connection.autoCommit = false
        h2Connection.createStatement().use { it.execute(chinookPostgresSql) }
        h2Connection.commit()

        addDatabase("chinook", h2DataSource)
    }

    private fun initCalciteConnection(): CalciteConnection {
        Class.forName(Driver::class.java.name)
        DriverManager.registerDriver(Driver())
        return DriverManager.getConnection("jdbc:calcite:", null).unwrap(CalciteConnection::class.java)
    }

    fun addDatabase(databaseName: String, ds: DataSource): SchemaPlus {
        // Inner helper func
        fun getSubSchemas(connection: Connection): List<String> {
            connection.metaData.schemas.use { rs ->
                val schemas = mutableListOf()
                while (rs.next()) {
                    schemas.add(rs.getString("TABLE_SCHEM"))
                }
                return schemas
            }
        }

        val schemas = getSubSchemas(ds.connection)
        if (schemas.isNotEmpty()) {
            val catalogSchema = JdbcCatalogSchema.create(rootSchema, databaseName, ds, null)
            rootSchema.add(databaseName, catalogSchema)
        } else {
            val jdbcSchema = JdbcSchema.create(rootSchema, databaseName, ds, null, null)
            rootSchema.add(databaseName, jdbcSchema)
        }

        return rootSchema
    }

class CalciteMorelInterpreter {

    static String smlProgram = "chinook;";
    static InputStream input = new ByteArrayInputStream(smlProgram.getBytes());
    static PrintStream output = System.out;

    static SchemaPlus rootSchema = CalciteSchemaService.INSTANCE.getRootSchema();
    static SchemaPlus chinookSchema = rootSchema.getSubSchema("chinook").getSubSchema("public");

    static Map<String, ForeignValue> foreignValueMap = Calcite
            .withDataSets(
                    Map.of("chinook", (Calcite calcite) -> new CalciteForeignValue(calcite, chinookSchema, true))
            )
            .foreignValues();

    public static void main(String[] args) {
        var morelMain = new net.hydromatic.morel.Main(List.of(), input, output, foreignValueMap, new File(""));
        morelMain.run();

        SchemaPlus rootSchema = CalciteSchemaService.INSTANCE.getRootSchema();
        for (String subSchemaName : rootSchema.getSubSchemaNames()) {
            System.out.println("Got sub schema:");
            System.out.println(subSchemaName);
        }
    }
}

Exception in thread "main" org.apache.calcite.runtime.CalciteException: Table 'chinook.public.Album' not found
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:505)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.apache.calcite.runtime.Resources$ExInst.ex(Resources.java:599)
	at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:505)
	at org.apache.calcite.runtime.Resources$ExInst.ex(Resources.java:599)
	at org.apache.calcite.tools.RelBuilder.scan(RelBuilder.java:1575)
	at org.apache.calcite.tools.RelBuilder.scan(RelBuilder.java:1575)
	at net.hydromatic.morel.foreign.CalciteForeignValue.lambda$value$4(CalciteForeignValue.java:91)
	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
	at com.google.common.collect.RegularImmutableSortedSet.forEach(RegularImmutableSortedSet.java:89)
	at net.hydromatic.morel.foreign.CalciteForeignValue.value(CalciteForeignValue.java:89)
	at net.hydromatic.morel.compile.Environments.lambda$foreignBindings$2(Environments.java:104)
	at com.google.common.collect.SingletonImmutableBiMap.forEach(SingletonImmutableBiMap.java:68)
	at net.hydromatic.morel.foreign.CalciteForeignValue.lambda$value$4(CalciteForeignValue.java:91)
	at net.hydromatic.morel.compile.Environments.foreignBindings(Environments.java:101)
	at net.hydromatic.morel.compile.Environments.env(Environments.java:95)
	at net.hydromatic.morel.compile.Environments.env(Environments.java:63)
	at net.hydromatic.morel.Main.run(Main.java:122)
	at com.github.gavinraydev.CalciteMorelInterpreter.main(Morel.java:33)
	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
	at com.google.common.collect.RegularImmutableSortedSet.forEach(RegularImmutableSortedSet.java:89)
	at net.hydromatic.morel.foreign.CalciteForeignValue.value(CalciteForeignValue.java:89)
	at net.hydromatic.morel.compile.Environments.lambda$foreignBindings$2(Environments.java:104)
	at com.google.common.collect.SingletonImmutableBiMap.forEach(SingletonImmutableBiMap.java:68)
	at net.hydromatic.morel.compile.Environments.foreignBindings(Environments.java:101)
	at net.hydromatic.morel.compile.Environments.env(Environments.java:95)
	at net.hydromatic.morel.compile.Environments.env(Environments.java:63)
	at net.hydromatic.morel.Main.run(Main.java:122)
	at com.github.gavinraydev.CalciteMorelInterpreter.main(Morel.java:33)

Ah okay, I figured it out. The logic for CalciteForeignValue only handles 1-level of Schema nesting, so you can't do chinook.public, you need to recursively visit and namespace nested schemas like chinook__public:
// Recursively copy sub-schemas from a rootSchema into a Morel Calcite ForeignValue context
private static Calcite createMorelCalciteForeignValueCtx(SchemaPlus rootSchema) {
    boolean toLowerCase = true;
    final ImmutableMap.Builder<String, DataSet> builder = ImmutableMap.builder();

    SchemaPlus currentSchema = rootSchema;
    while (true) {
        final Set<String> subSchemaNames = currentSchema.getSubSchemaNames();
        if (subSchemaNames.isEmpty()) {
            break;
        }
        for (String subSchemaName : subSchemaNames) {
            final SchemaPlus subSchema = currentSchema.getSubSchema(subSchemaName);
            String name = Schemas.path(subSchema).names().stream().reduce((a, b) -> a + "__" + b).get();
            builder.put(name, calcite -> {
                SchemaPlus newSchema = calcite.rootSchema.add(name, subSchema);
                return new CalciteForeignValue(calcite, newSchema, toLowerCase);
            });
        }
        currentSchema = currentSchema.getSubSchema(subSchemaNames.iterator().next());
    }

    return Calcite.withDataSets(builder.build());
}

static String smlProgram = "from a in chinook__public.artist yield {a.artistid, a.name};";

static Reader input = new InputStreamReader(new ByteArrayInputStream(smlProgram.getBytes()));
static Writer output = new StringBuilderWriter();

public static void main(String[] args) {
    Calcite calciteMorelCtx = createMorelCalciteForeignValueCtx(ROOT_SCHEMA);
    var morelMain = new Main(List.of(), input, output, calciteMorelCtx.foreignValues(), new File(""));
    morelMain.run();
}

Result:
val it =
  [{artistid=1,name="AC/DC"},{artistid=2,name="Accept"},
   {artistid=3,name="Aerosmith"},{artistid=4,name="Alanis Morissette"},
   {artistid=5,name="Alice In Chains"},{artistid=6,name="Ant?nio Carlos Jobim"},
   {artistid=7,name="Apocalyptica"},{artistid=8,name="Audioslave"},
   {artistid=9,name="BackBeat"},{artistid=10,name="Billy Cobham"},
   {artistid=11,name="Black Label Society"},{artistid=12,name="Black Sabbath"},
   ...] : {artistid:int, name:string} list

Is there a way to get this enhanced functionality into trunk? By which I mean, reframe it as a new feature, then submit a PR that implements the feature, including tests?
I certainly think that chinook would be a good data set to have built into Morel, alongside scott and foodmart.
Regarding the name mapping, to chinook__public. It would be preferable to address it via either chinook or chinook.public. The former would require the mapping to have something like a 'default schema' property; the latter would require CalciteForeignValue to surface sub-schemas as fields of the Morel record value, in addition to tables.

Is there a way to get this enhanced functionality into trunk? By which I mean, reframe it as a new feature, then submit a PR that implements the feature, including tests?

Sure, certainly not opposed to doing that.

the latter would require CalciteForeignValue to surface sub-schemas as fields of the Morel record value, in addition to tables.

I think I might try this route, extending the code that already exists
May see if there's a way to write a Shell that is more friendly for non-REPL uses, that allows you to instantiate a persistent foreign value context, where you can repeatedly call .run(scriptString, outBuffer)

May see if there's a way to write a Shell that is more friendly for non-REPL uses

Designing for reuse is hard. So I'd probably copy-paste the existing shell, customize it until I had something that works for non-REPL uses, then see whether there's any way to get rid of the copied code (by sub-classing, adding handlers, etc.) Or just start from scratch. If the code seems to be trending towards a shell, let it go in that direction. :)
Maybe take inspiration from https://github.com/SpencerPark/IJava (a Java kernel for Jupyter).

@julianhyde I have created an initial PR here, but it's throwing an error about RelMetadataQueryBase.getMetadataHandlerProvider being null:
https://github.com/hydromatic/morel/pull/146
java.lang.NullPointerException: metadataHandlerProvider

	at java.base/java.util.Objects.requireNonNull(Objects.java:233)
	at org.apache.calcite.rel.metadata.RelMetadataQueryBase.getMetadataHandlerProvider(RelMetadataQueryBase.java:122)
	at org.apache.calcite.rel.metadata.RelMetadataQueryBase.revise(RelMetadataQueryBase.java:118)
	at org.apache.calcite.rel.metadata.RelMetadataQuery.collations(RelMetadataQuery.java:604)
	at org.apache.calcite.rel.metadata.RelMdCollation.project(RelMdCollation.java:291)
	at org.apache.calcite.rel.logical.LogicalProject.lambda$create$0(LogicalProject.java:125)
	at org.apache.calcite.plan.RelTraitSet.replaceIfs(RelTraitSet.java:244)
	at org.apache.calcite.rel.logical.LogicalProject.create(LogicalProject.java:124)
	at org.apache.calcite.rel.logical.LogicalProject.create(LogicalProject.java:114)
	at org.apache.calcite.rel.core.RelFactories$ProjectFactoryImpl.createProject(RelFactories.java:178)
	at org.apache.calcite.tools.RelBuilder.project_(RelBuilder.java:2025)
	at org.apache.calcite.tools.RelBuilder.project(RelBuilder.java:1797)
	at net.hydromatic.morel.foreign.CalciteForeignValue.lambda$value$4(CalciteForeignValue.java:100)
	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
	at com.google.common.collect.RegularImmutableSortedSet.forEach(RegularImmutableSortedSet.java:89)
	at net.hydromatic.morel.foreign.CalciteForeignValue.value(CalciteForeignValue.java:89)
	at net.hydromatic.morel.compile.Environments.lambda$foreignBindings$2(Environments.java:104)
	at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:292)
	at net.hydromatic.morel.compile.Environments.foreignBindings(Environments.java:101)
	at net.hydromatic.morel.compile.Environments.env(Environments.java:95)
	at net.hydromatic.morel.compile.Environments.env(Environments.java:63)
	at net.hydromatic.morel.ProgrammaticShell.makeEnv(ProgrammaticShell.java:80)
	at net.hydromatic.morel.ProgrammaticShell.<init>(ProgrammaticShell.java:54)
	at net.hydromatic.morel.ProgrammaticShellTest.run(ProgrammaticShellTest.java:19)

Would appreciate any feedback if you see what I'm doing wrong

Ah wow wtf -- removing static from foreignValueMap makes it work:
// BROKEN
static Map<String, ForeignValue> foreignValueMap = Calcite.withDataSets(BuiltInDataSet.DICTIONARY).foreignValues();

// WORKS
Map<String, ForeignValue> foreignValueMap = Calcite.withDataSets(BuiltInDataSet.DICTIONARY).foreignValues();

I guess I don't understand Java? This is very confusing 🤔

Yes, foreignValue is the way to do it. It associates a Calcite schema with a Morel variable. You could have a single variable named ‘calcite’ for the root schema (and all first-level schemas would appear as fields) or create a separate foreignValue for each first-level schema.
You will need some kind of shell. (Parses and executes commands, and prints the results, in the environment created by previous commands in the same session.) Maybe one of the existing shells in Morel will work for you, or could be adapted.
The existing shells are able to read commands from a file, including recursively reading files, then switch back to their original input stream, which might be useful to you.
I briefly looked at creating a Java wrapper so that Morel could run in Jupyter, and it looked like a pretty similar problem.
Julian

On Apr 30, 2022, at 10:54 AM, Gavin Ray @.***> wrote:

Heya Julian,
I'm working on a web playground for Calcite, that I plan on hosting for free so that people can experiment with it. It'll essentially be a web REPL with some pre-loaded data, and the ability to render visualizations of query plans + schema diagrams.
I figured that while I'm at it, it could be nice to add a second input form, which takes Morel expressions, and is bound to the same Calcite context/rootSchema.
Having a bit of difficulty figuring out how to do this though.
I have a singleton object that holds the master schema like below -- I think I need to pass this as a foreignValue to Morel or similar?
// Holds the master schema that contains all datasource schemas and their sub-schemas
object CalciteSchemaService {
val connection: CalciteConnection = initCalciteConnection()
val rootSchema: SchemaPlus = connection.rootSchema

val frameworkConfig: FrameworkConfig = Frameworks.newConfigBuilder()
    .defaultSchema(connection.rootSchema)
    .parserConfig(SqlParser.config().withCaseSensitive(false))
    .build()

val relBuilder: RelBuilder = RelBuilder.create(frameworkConfig)

// <SNIPPED>

}
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.


Failures on [cfe] Report error on missing return from non-nullable function

There are new test failures on [cfe] Report error on missing return from non-nullable function.
The tests
standalone/io/socket_cancel_connect_test/0 CompileTimeError (expected Pass)
standalone/io/socket_cancel_connect_test/0 CompileTimeError (expected Pass)
standalone/io/socket_cancel_connect_test/1 CompileTimeError (expected Pass)
standalone/io/socket_cancel_connect_test/1 CompileTimeError (expected Pass)
standalone/io/socket_cancel_connect_test/2 CompileTimeError (expected Pass)
standalone/io/socket_cancel_connect_test/2 CompileTimeError (expected Pass)
standalone/io/socket_cancel_connect_test/3 CompileTimeError (expected Pass)
standalone/io/socket_cancel_connect_test/3 CompileTimeError (expected Pass)

are failing on configurations
dartk-strong-linux-debug-x64
dartk-strong-linux-release-x64
dartk-weak-asserts-linux-debug-x64
dartk-weak-asserts-linux-release-x64

@lrhn @sortie: I don't know enough about sockets/futures to fixes these. The problem is that a closure passed to Future<Socket>.timeout doesn't return a Socket. I find it a weird requirement that timeout on a Future<S> should return an S - isn't the purpose of the timeout to handle the case when no S was available in time?

It has to return something (or throw, but then the type is not a problem), and whatever it returns becomes value of the resulting future.
So, yes, it either has to return a Socket or a subtype of Socket, which will likely be Never when it throws. It can no longer return null.
We can't (or won't) just make the return type of timeout nullable, because that's annoying for the use-cases where the timeout handler does provide an alternative value.
It would be nice if we could allow a type parameter on timeout, but the type argument would have to be a supertype of the original future's type, and we can't write that.
(No Future<R> timeout<R super T>(..., R onTimeout()) or GLB(R,T) timeout<R>(..., R onTimeout())).
Another option would be future.cast<T?>().timeout(...) ... if we had cast on Future
So, the smallest workaround I can find is:
future.then<T?>((x)=>x).timeout(dur, () => null);

Maybe we should have made timeout a parameter of then. Then you could do all the result handling in one function, and control the return type. The timeout by itself is not particularly well suited for non-nullable types.

Looking at the socket_cancel_connect_test.dart, the rewrite I'd suggest is to move the timeout to be called on the result of task.socket.then(...). That future already has type .... dynamic or void or Null, whatever inference does when it has no return statement ... and that future accepts a timeout with no return statement in the onTimeout handler.


Remove feature: constraints from message usages

Why: Because the appearance of constraints are not consistent, some have constaints, but others do not. It will be better to leave it all out and state the constaints in the user guide.
This could be a feature flaw, so we can remove this feature.

Closed due to lack of time


fix: reimplement logic when prices are shows and add preference

Thank you for your contribution to the KodaDot NFT gallery.
👇  _ Do a quick check before the merge.
PR type

[x] Bugfix
[ ] Feature
[ ] Refactoring

https://user-images.githubusercontent.com/17953978/149622680-0d1ea104-065c-4b56-a9f6-9c4aa4a51d68.mov
What's new?

[x] PR closes #1836
[x] Show prices when "Buy now" toggled or explicitly via preference

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main-nuxt and I've no conflicts
[x] I've tried respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted screenshot of demonstrated change in this PR

Optional

[x] I've tested it at </rmrk/collection/d0962c02ed07f0f909-🌈>
[ ] I've tested PR on mobile and everything seems works
[ ] I found edge cases

Had issue bounty label ?

[x] Fill up your KSM address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot

[x] My fix has changed something on UI, a screenshot is best to understand changes for others.

Perfect, I’ve sent the payout https://kusama.subscan.io/extrinsic/0x6c76aaeac8be2e86e872bc8dfcb2040df1ee213b89933f39d656f355bcadd683
Let’s grab another issue and get rewarded!
https://github.com/kodadot/nft-gallery/issues/


Occasional error when loggin in

When executing contentsOfDirectory on my FTP server I get occasional failures with error code -1 and errorDescription 220 Welcome to IC Co. FTP Site. This seems like an instability as it happens totally randomly and quite frequently. Is there anything I can try?

@fotiDim please check either this new commit fix the problem or not

@amosavian no, I still have the same issue.

would you mind recheck waht is error code and description now?

@amosavian it's exactly the same

Impossible. I didn't update cocoapods. please install via git clone

I am using your new code. I used github "amosavian/FileProvider" "master" in my pod file and I also checked your commit id. The code execution visits the new line you added.
The old error still keeps popping up. Sometimes I get Error 425: Can't open data connection but I think this is unrelated.

@fotiDim As I said don't use pod, remove that entry from podfile, then get this library directly via git clone https://github.com/amosavian/FileProvider and dragging FileProvider.xcodeproj to your project to get latest version. I can't publish an unconfirmed version to pod.

@amosavian same problem occurred again.

@fotiDim please check if you experience this error with latest commit.


Status Tracking: Create backend model

[] Create StatusDescriptions / Status data classes
[] Add to models/Program
[] Add evolution

Dupe of #2902


It is possible to add a typingIndicator for the bot, when the bot is processing the response.

It would be useful to have a spinner or indicator when the bot is working on the response. In my case I have QNA, Luis and translator Api working together and for some questions the response time of the bot is taking a bit long.
I inspect every sample given and did not found similar case.

@emilianomoro  Please take a look at the Bot Framework Typing Indicator Documention.
In the future, 'How to' questions such as this one are better suited for Stack Overflow. Please feel free to post other questions you have about developing your own features over there so the community at large may help out. If you need help with a Web Chat implementation, you can post a question to the Web Chat tag. Thank you!


[OpenShift4]Installing with cert-manager operator

Describe the bug:
https://cert-manager.io/docs/installation/openshift/#installing-with-cert-manager-operator
Follow the above doc.
Install the cert-manager via operator-hub on OCP 4.4.4
The pods are running:
oc --context build02 get pod -n cert-manager
NAME                                      READY   STATUS    RESTARTS   AGE
cert-manager-74474fc98f-b4v2x             1/1     Running   0          96m
cert-manager-cainjector-f55ccfc78-qf4kw   1/1     Running   0          96m
cert-manager-webhook-5f6c45d48c-59klm     1/1     Running   0          96m

apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
  name: cert-issuer
spec:
  acme:
    email<EMAIL_ADDRESS>    server: https://acme-staging-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      name: cert-issuer-account-key
    solvers:
    - dns01:
        clouddns:
          project: openshift-ci-infra
          serviceAccountSecretRef:
            name: cert-issuer
            key: key.json

oc --context build02 apply -f clusters/build-clusters/02_cluster/cert-manager/cert-issuer_clusterissuer.yaml
Error from server (InternalError): error when creating "clusters/build-clusters/02_cluster/cert-manager/cert-issuer_clusterissuer.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=30s: dial tcp <IP_ADDRESS>:10250: connect: connection refused

cert-manager-cainjector-f55ccfc78-qf4kw seems having permission issues
E0528 21:38:09.279943       1 leaderelection.go:320] error retrieving resource lock cert-manager/cert-manager-cainjector-leader-election-core: configmaps "cert-manager-cainjector-leader-election-core" is forbidden: User "system:serviceaccount:cert-manager:cert-manager-cainjector" cannot get resource "configmaps" in API group "" in the namespace "cert-manager"

Expected behaviour:
CertIssuer can be created successfully.
Steps to reproduce the bug:

create namespace cert-manager.
On Operator Hub UI, deploy it to the namespace.
create the cluster-issuer above.

Anything else we need to know?:
The non-operator installation works well:
oc apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.15.1/cert-manager.yaml

Environment details::

Kubernetes version (e.g. v1.10.2):

oc version --context build02
Client Version: 4.5.0-202005290637-0087eb3
Server Version: 4.4.4
Kubernetes Version: v1.17.1

Cloud-provider/provisioner (e.g. GKE, kops AWS, etc):
AWS
cert-manager version (e.g. v0.4.0):
v0.15.1
Install method (e.g. helm or static manifests):
Operator Hub UI

/kind bug

Ignore Jetstack-bot :wink:

Thanks for the quick fix.
Which version will include the fix?

We're looking into that right now as we have a versioning issue with the operator, it will be either 0.15.2 or 0.16.0-alpha.0

Any update on this?

Any update ? Seeing the same issues with v1.0.3 on GKE


Wiki: Update to Require NET 6

I noticed that the wiki tutorial still uses NET 5, although the log actually mentioned NET 6 far below. This has caused me confusion when setting up
Accordingly, it is probably an ideal choice to recommend Visual Studio 2022 since Visual Studio 2019 is no longer supported for NET 6 or with this workaround included in the tutorial wiki.
I am referring to this wiki page, hope that helps!

Sorry for having ignored this for a while. I've been a bit lazy to update since I just want the next version to upgrade to v3.0 using WCSharp API instead of War3Net. I've been using the new API for a while in Spectrum TD and I haven't experienced any real issues or gotten much comments in recent times, so I'll look to get them out of pre-release soon. Ideally I just make the next release use .NET 7 as well, though I'll have to see if that will work out.


Editor: Better Resource List + Sidebar

The sidebar is currently sorted by alphabetical order. This is somewhat okay, but often doesn't actually show what you are working on.
Characters and Timelines are also mixed which can be annoying.

[ ] Better options for sorting should be considered. Possibilities:

sort by last used (latest used always at the top)
sort by alphabet but split characters and timelines
allow sorting by folder (taking into account the file system). This would allow more complex sorting.

[ ] It should also be allowed to hide the sidebar for users who prefer to use quick-open (SHIFT+ALT+O) or the file system.

[ ] When searching the first item should be focused so enter actually opens that item.

I would like to work on this feature.

@Jowan-Spooner Any input on the progress so far? Still need to implement the highlight on search before a PR is ready.

Resources are now split into characters and timelines, then sorted alphabetically.
I have added a collapse button beside the CurrentResource.

This image shows the UI while the sidebar is collapsed.

@firedfromlife Hey, that looks pretty cool. Did you convert the item list into a tree? Or how are you making those sections?
If you open a PR, I could test it and give more detailed feedback. But I like the look so far!

It is currently in a very broken state, by that I mean, it seems to work completely fine, but floods the console with errors when an item is clicked in the tree. Loads the resource up just fine though.
I will get that resolved then post a pr.


🐛Bug: Dialog component overlay does not block touch events for elements beneath it

Describe the bug
The dialog component overlay does not block touch events for elements beneath it.
To Reproduce
Steps to reproduce the behavior:

Go to https://melt-ui.com/docs/builders/dialog
Toggle device emulation on Chrome/Edge
Click on the "Open Dialog" button
Click on any bottom nav buttons under the overlay
Dialog closes and right after the action of the nav button is fired

Expected behavior
No event fired for anything beneath the dialog overlay.
Desktop (please complete the following information):

OS: Windows
Browser: Edge
Version: 120.0.2210.77

This seems to have been fixed in one of the recent releases. Closing the issue.

I'm still able to reproduce this!

If you go to https://melt-ui.com/docs/builders/dialog (on a mobile device), open the dialog, and then click on the little toggle button behind the dialog, you'll see the event passes through to the toggle.

You're right, I forgot to toggle device emulation 🤦


Bug when creating 'second planet' after destroying the first one.

Hit 'generate planet' on UI -> hit esc to close the planet -> hit 'generate planet' again -> crash
I think the problem is in initOgre.cpp at line 23:
Root = new Ogre::Root("", mResourcesCfg, "Generator.LOG");
after that it crashes and gives an Assertion failed -error in OgreSingleton.h at line 80 with Expression: !msSingleton

Fixed now.


fix langchain-express js example sending traces to arize

update commands in readme, running npm run dev on both the front end and backend directory results in connection error
call out node version the --import flag requires node version 20
update arize docs to make it a simple copy and paste into the instrumentation file
add grpc install to arize docs
Fix sending spans to arize

{"stack":"Error: Incorrect arguments passed\n    at ServiceClientImpl.checkOptionalUnaryResponseArguments (/Users/jackyhao/openinference/js/examples/langchain-express/backend/node_modules/@grpc/grpc-js/build/src/client.js:119:23)\n    at ServiceClientImpl.makeUnaryRequest (/Users/jackyhao/openinference/js/examples/langchain-express/backend/node_modules/@grpc/grpc-js/build/src/client.js:126:39)\n    at ServiceClientImpl.export (/Users/jackyhao/openinference/js/examples/langchain-express/backend/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)\n    at /Users/jackyhao/openinference/js/examples/langchain-express/backend/node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/grpc-exporter-transport.js:98:32\n    at new Promise (<anonymous>)\n    at GrpcExporterTransport.send (/Users/jackyhao/openinference/js/examples/langchain-express/backend/node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/grpc-exporter-transport.js:87:16)\n    at OTLPTraceExporter.send (/Users/jackyhao/openinference/js/examples/langchain-express/backend/node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/OTLPGRPCExporterNodeBase.js:88:41)\n    at /Users/jackyhao/openinference/js/examples/langchain-express/backend/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/otlp-exporter-base/build/src/OTLPExporterBase.js:77:22\n    at new Promise (<anonymous>)\n    at OTLPTraceExporter._export (/Users/jackyhao/openinference/js/examples/langchain-express/backend/node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/otlp-exporter-base/build/src/OTLPExporterBase.js:74:16)","message":"Incorrect arguments passed","name":"Error"}

closing was not able to reproduce but will update docs to make the process of adapting one of the examples for arize more clear


[New API] : Attendance Portal API

🎯 Title and Issue Number

Closes #94

🗒 Checklist:

[] I have mentioned the issue number in my Pull Request.
[]  I have gone through rules of when PR will get merged.
[] I have commented my code, particularly in hard-to-understand areas
[] I have created a helpful and easy to understand README.md
[] I have followed proper file structure.
[] I have gone through CONTRIBUTING GUIDELINES.md.

Thank you for contributing!❤
Don't forget to show some love by ⭐ the repository!

Hey @Puskar-Roy, Thank you for creating PR! We will review it super soon. 😇❣
As we continue to evolve and innovate, we encourage you to share your ideas, feedback, and code to help us push the boundaries of what's possible in the world of APIs🚀.
We hope you have followed CONTRIBUTING GUIDELINES.
Thank you for being an essential part of our community. Together, we'll keep building amazing things!
Don’t forget to ⭐ our repository!
Happy Coding!✨
Will See you soon❣

@Puskar-Roy We're thrilled to inform you that your pull request has been successfully merged into the APIverse🚀🎁
Your hard work, dedication, and expertise have made a significant impact on our project, and we couldn't be more grateful for your contributions.😇
Your code will now be a part of our growing ecosystem, helping developers worldwide to create exceptional APIs.❣🔥
Happy Coding! ✨
Will See you soon❣


Inventory Not Filtering/Recycling

Expected Behavior
Filter items on login based on config.json file.
Recycle items from stop when item is over limit specified in config.json file.
Actual Behavior
Not filtering or recycling
Steps to Reproduce
Normal play
Other Information
OS: OSX
Git Commit: Master - latest pull from 7/31/16

Recycle items is currently not 100% functional. PRs 129 and 132 will fix this when merged.


Add towncrier for release notes

What was wrong?
 Hopefully this will remove that problem.
How can it be fixed?
Add the Towncrier dependency, write a few scripts for the Makefile, and add tests to CI. web3py has a good setup to reference.

Closed in #221


fix(react18): tip not hiding with React 18 StrictMode enabled

Fixes an issue where the tooltip will not hide after hover.
In React 18 StrictMode, components may mount and unmount more than once
See here https://github.com/reactwg/react-18/discussions/19
Closes #754

@roggervalf @aronhelser could you merge this?

thanks @aronhelser, but the npm package is still the same version should we make a new PR to update it manually?

Try setting isCapture={true}, that worked for me on Nextjs app.


[Grid] Custom number of columns

[x] I have searched the issues of this repository and believe that this is not a duplicate.

We would like to use a 16 column grid as we're using material-ui to build a dashboard that requires more granular layout positioning.
Now I've thought of a few ways I could do this and would be interested in your opinions.
Possible solutions:

Add columns to the theme with a default of 12. This might not be ideal as 12 is material design, and the strict typings on grid sizes would be lost.
Copy and paste Grid.js and make the changes I need. This could cause potential issues with my local copy falling behind.
Re-work https://github.com/callemall/material-ui/blob/v1-beta/src/Grid/Grid.js to expose more methods allowing me to create a 16 column grid wrapper.

The number of column is hard coded (it's static). I can't see a way to make it dynamic. Noticed that 12 was most likely chosen by the material design team because of: PPCM(2, 3, 4, 6) = 12.

The limitation is coming from the static types. You might be able to get away with it without forking the component. You might be able to change the Grid.Naked.propTypes property to remove the warnings when using a value > 12, as well as injecting new styles with the theme.overrides.MuiGrid key.

It could be dynamic by adding it to the base theme and replacing GRID_SIZES with a method that generates the list. I was going to PR it, but didn't think you'd go for it.
Do you think it possible to expose generateGrid to help with creating the override classes?

@lukeggchapman My main issue is with https://github.com/callemall/material-ui/blob/85ab0e3f6495d075d0358319c311a317bc061391/src/Grid/Grid.js#L160.
We can definitely make it work, but I don't see how we can bypass the types checking.

Yeah, that would become boolean | number which is not ideal for the common use case.

@lukeggchapman Yes. Accepting this feature will most likely mean degrading the nominal use case :/.

At least, boolean | number doesn't prevent us from adding another dynamic runtime checks. But people using TypeScript or Flow dev hints will no longer see the right light of supported values.

Actually, I'm curious to hear more people use cases. If we find enough people asking for this feature,  we can consider degrading the nominal use case.

@lukeggchapman Oh wait, can't we create a component factory?

Thats what I'm looking into at the moment. I'm okay with typescript, but I'm determining the feasibility of using $Values to generate the Gridsizes type.

I can't see a way of dynamically creating the Gridsizes type in a component factory, so this approach would also suffer from losing the strict type values / dev hints.
It's looks like my best option for now is to add the class overrides then wrap and redefine Grid for my use case.

@lukeggchapman We have removed flow and the technical limitation that comes with it. This feature can now be implemented.

Material Design has an idea of the layout grid where the number of columns changes at certain breakpoints. Is this currently possible with Material UI?

I have to create component which will render something similar to a calendar, so having a Grid container of 7 columns will help a lot. For now looking to use GridList instead, but not sure if it's the best option in my case.

GridList won't help. We will rename it ImageList in v5.

Well then time for some custom css :sweat:

For our use case, 12 columns don't provide enough granularity for the top-level layout component. We have an information-dense dashboard made purely for a desktop experience. Our UI designer designs on a 24-columns grid right now. 12 columns are find when it comes to the sub-components though.

I keep getting directed to this issue in regards to my problem, and it would definitely be great to override the default grid column count on the  on a case by case basis.
We are utilizing a 12 column grid, but have smaller components that need to utilize 8 as they are aligned at 3 and 5. Unfortunately with the flow of the page we cannot simply do 3|5|4 to fill the 12 columns :(

As soon as #6115 is resolved, we should be able to easily implement this :).

#6115 was resolved, we should now be able to fix this issue. I had a quick look at it. The following was helping:
diff --git a/packages/material-ui/src/Grid/Grid.d.ts b/packages/material-ui/src/Grid/Grid.d.ts
index b52203882b..ef88324dad 100644
--- a/packages/material-ui/src/Grid/Grid.d.ts
+++ b/packages/material-ui/src/Grid/Grid.d.ts
@@ -67,6 +67,11 @@ export interface GridTypeMap<P = {}, D extends React.ElementType = 'div'> {
         'grid-xs-11'?: string;
         'grid-xs-12'?: string;
       };
+      /**
+       * The number of columns.
+       * @default 12
+       */
+      columns?: boolean;
       /**
        * If `true`, the component will have the flex *container* behavior.
        * You should be wrapping *items* with a *container*.
diff --git a/packages/material-ui/src/Grid/Grid.js b/packages/material-ui/src/Grid/Grid.js
index e87d15e940..709b2b72ef 100644
--- a/packages/material-ui/src/Grid/Grid.js
+++ b/packages/material-ui/src/Grid/Grid.js
@@ -47,7 +47,7 @@ function generateGrid(globalStyles, theme, breakpoint, styleProps) {
     };
   } else {
     // Keep 7 significant numbers.
-    const width = `${Math.round((size / 12) * 10e7) / 10e5}%`;
+    const width = `${Math.round((size / styleProps.columns) * 10e7) / 10e5}%`;
     let more = {};

     if (styleProps.container && styleProps.item && styleProps.spacing !== 0) {
@@ -231,6 +231,7 @@ const Grid = React.forwardRef(function Grid(inProps, ref) {
   const props = extendSxProp(themeProps);
   const {
     className,
+    columns = 12,
     component = 'div',
     container = false,
     direction = 'row',
@@ -248,6 +249,7 @@ const Grid = React.forwardRef(function Grid(inProps, ref) {

   const styleProps = {
     ...props,
+    columns,
     container,
     direction,
     item,

but we still need to use the React context to propagate the columns prop from a Grid container to a Grid item.

@oliviertassinari  can I take this up?


Use normal PAT for queuing build

Related and dependent on https://github.com/Azure/azure-sdk-tools/pull/5951

/azp run js - docindex


curl on macOS does not resolve IPv6 addresses

Describe the bug
I installed curl through nix and tried to request a website through IPv6:
Steps To Reproduce
Steps to reproduce the behavior:
nix-shell -p curl
this path will be fetched (0.05 MiB download, 0.25 MiB unpacked):
  /nix/store/frzkl4i1iyhy07949nrgqi2a6p9h0nmn-curl-8.4.0-dev
copying path '/nix/store/frzkl4i1iyhy07949nrgqi2a6p9h0nmn-curl-8.4.0-dev' from 'https://cache.nixos.org'...

[nix-shell:~]$ curl -6 www.heise.de
curl: (6) Could not resolve host: www.heise.de

Expected behavior
A working HTTP request, like the mac os provided curl delivers:
➜  ~ /usr/bin/curl --version
curl 8.4.0 (x86_64-apple-darwin23.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.55.1
Release-Date: 2023-10-11
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL threadsafe UnixSockets
➜  ~ /usr/bin/curl -6 www.heise.de

<title>301 Moved Permanently</title>

301 Moved Permanently

nginx

Additional context
Running on macOS 14.2.1 (23C71).
Notify maintainers
@lovek323
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
➜  ~ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.2.0, macOS 14.2.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.15.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

duplicate of https://github.com/NixOS/nixpkgs/issues/276961 and fix by https://github.com/NixOS/nixpkgs/pull/277471


Redlock::LockAcquisitionError

I am getting this error when running my specs
Redlock::LockAcquisitionError:
failed to acquire lock on 'Too many Redis errors prevented lock acquisition:
RedisClient::CommandError: NOSCRIPT No matching script. Please use EVAL. (redis://redis:6379/3)'
Everything works fine in development mode. Any ideas what the issue might be?

@casiodk, we are having the same issue. Did you find a solution?

I did this
::RSpec.configure do |config|
  include ActiveJob::TestHelper

  config.around(:each, active_job: :perform) do |example|
    perform_enqueued_jobs do
      example.run
    end
  end

  ActiveJob::Uniqueness.test_mode!
end

https://github.com/veeqo/activejob-uniqueness?tab=readme-ov-file#test-mode

I did this
::RSpec.configure do |config|
  include ActiveJob::TestHelper

  config.around(:each, active_job: :perform) do |example|
    perform_enqueued_jobs do
      example.run
    end
  end

  ActiveJob::Uniqueness.test_mode!
end

https://github.com/veeqo/activejob-uniqueness?tab=readme-ov-file#test-mode

Ah, sorry, I read too quickly, I am having this problem in production. Seems to be linked to https://github.com/leandromoreira/redlock-rb/issues/135


chore(main): release 1.0.0

:robot: I have created a release beep boop
1.0.0 (2024-12-16)
⚠ BREAKING CHANGES

models: The following actuator-specific state attributes have been replaced:

SolenoidValve: open -> state (bool)
Pump: running -> state (bool)
ProportionalValve: position -> state (float)

Code Refactoring

models: unify actuator state attributes into a single state field (474a2d1)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.0.0
:sunflower:


Metadata: dnGrep.dnGrep version 2.9.256.0

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.0 schema?

Microsoft Reviewers: Open in CodeFlow

/azp run

https://github.com/microsoft/winget-pkgs/pull/22166#issuecomment-886110868

@ItzLevvie can you test this one?
I was going to try a few properties from the MSI to check if i could find a property to disable the popup, but for some reason ITS NOT THERE ANYMORE??

Welp thank you, guess there is no updates for me then

I can't seem to find ANYTHING in the MSI referring to check for new version, and my installation is actually lightning fast now that it doesn't do it, guessing it can't connect to the server?

.

/azp run

Closing these PRs since the dnGrep devs seems to have no idea how to not check for update.


Windows native clients dont receive default router(default gateway) form dhcp when virtual nat is enabled and it is not virtual nat ip

Prerequisites

[ yep] Can you reproduce?
[yep ] Are you running the latest version of SoftEtherVPN?

SoftEther version: last pull
Component: Server
Operating system: Linux Centos 8 Stream
Architecture: 64 bit
[In case it's a computer with known specs, such as the Raspberry Pi, you can specify it omitting the details.]
Processor: KVM
Description
Windows native clients dont recieve default router(default gateway) form dhcp when virtual nat is enabled and it is not virtual nat ip.
Even if using external dhcp like dhcpd or dnsmasq.
Expected behavior:
Dhcp client receives default gateway from dhcp server.
Actual behavior:
Dhcp client receives no default gateway.
Steps to reproduce

Run the server as usually.
Enable Virtual Nat and any dhcp server
Tell dhcp server to give to clients default gateway ip that is not virtualnat ip. For example it may be L3 Virtual switch or tap interface or....
Try to connect from windows native sstp or l2tp client.
???
You will not receive a default gateway. But ip and mask you will obtain.

Confirm. We have the same thing.

Try to connect from windows native sstp or l2tp client.

sstp or l2tp is for L3 VPN , not L2 VPN.
So, you can not get default gateway address.
L3 VPN uses ppp protocol which does not support default gateway.

Dhcp client receives no default gateway.

Dhcp client does not work when using sstp or l2tp.

Try to connect from windows native sstp or l2tp client.

sstp or l2tp is for L3 VPN , not L2 VPN. So, you can not get default gateway address. L3 VPN uses ppp protocol which does not support default gateway.

Got it. Thanks for explaining. Its good that you know details about proto works what you thing about https://github.com/SoftEtherVPN/SoftEtherVPN/discussions/1985


aligning theme for pxt

Seems that the theme.json from the pxt-sample is quite outdated and we are probably loosing some PXT stylig in arcade. or is it by design?

No idea...


verifyUserSignatures does not work with fcl version 0.074

Problem
When I try to execute fcl.currentUser.verifyUserSignatures, encountered error "fcl undefined"

below is my code.
https://github.com/tokchin/flow-signUserMessage-demo/blob/ef1b0c712a4c2954a0a9374034168f7278aa6b7e/src/SignUserMessage.js#L34

Thanks for reporting @tokchin. Fix is in latest release

Thank you for your reply! The problem stays the same on 0.077.pain1. Will it be fixed in 0.078?


Add gitPath args for export function

The default export have gitPath arg and my CI failure when I upgraded to 2.1.0

Awesome, thank you!


Account Flow Updates. Breadcrumb Fix.

Issue:

bcgov/entity/issues/22830
bcgov/entity/issues/23724
bcgov/entity/issues/23663

Description of changes:

Update Account flow to redirect Examiner to Dashboard
Clean session storage so the Account Select page shows up
Fix Breadcrumb bug for Examiner on Details page

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

/gcbrun

Temporary Url for review: https://strr-ui-dev--pr-282-lm93k19o.web.app


Update Readme to new installation syntax

Hello, this is just an update to the readme with the new install syntax

thanks @galileopy


content.outcome field is not declared as enums

The documentation for pipelineRun.finished and taskRun.finished declares that the outcome shall be an enum with a limited set of values. The schemas declare these fields as free text strings though.
We need to align this, and at the same time I believe we should decide on and document how we should format these kinds of enum values. I prefer to see them as "constants" and use the well established formatting of UPPERCASE values for them, but I'm open for other decisions as well, as long as we align our enum values' formats all-over the protocol

Partly covered in #158 and fully covered in #179