[Question] Dose the Service bus processor support pick derral message

Library name and version
Azure.Messaging.ServiceBus
Query/Question
I used ServiceBusSessionProcessor to handle my session queue's message.
while I deferred a message like below:
  await args.DeferMessageAsync(args.Message, new Dictionary<string, object>(1) { { "ScheduledEnqueueTime", DateTime.UtcNow.AddMinutes(1) } });
Then I would like to pick this message 1 minutes later. However, I wait for a long time(30minutes+) but this message has never been picked by the processor.
So,  I would like to know whether the service bus processor support "deferred message"? If so how should I set the processor?
If not, would you please recommend a best practice about My case: my app respossible for upload the messages to a website. However as to the volume of the message is very large. So, the website sometime throttle my request. that means I need to wait 20minutes to upload then again. So, I would like to reschedule the message and pick then 20 minute again.
my app haven't storage. So, I couldn't maintain the sequence number and I don't want maintain a timer for this cause the message is too large. I need to handle other message immediately.
the best solution is I could use DeferMessageAsync method to reschedule the message. but it looks like the server bus processor doesn't work.
My workaround ugly solution is that remove the current message and create a new one with schedule time and send them to service bus again.
Environment
No response

Thank you for your feedback.  Tagging and routing to the team member best able to assist.  Please expect and forgive slow responses during the US holiday season.

Deferred messages won't be automatically picked up by the processor because you need to receive them using the sequence number of the message. You can receive deferred messages within your handler for the ProcessMessageAsync event doing the following:
async Task ProcessMessage(ProcessMessageEventArgs args)
{
  ProcessorReceiveActions receiveActions = args.GetReceiveActions();
  IReadOnlyList<ServiceBusReceivedMessage> receivedMessages = await receiveActions.ReceiveDeferredMessagesAsync( new [] { << sequence number 1>>, << sequence number 2 >> });
}

You could also just use a regular ServiceBusReceiver to accomplish the same thing - which is more flexible as you can receive the deferred messages whenever you want, not just when a "regular" message has been received by the processor.

Deferred messages won't be automatically picked up by the processor because you need to receive them using the sequence number of the message. You can receive deferred messages within your handler for the ProcessMessageAsync event doing the following:
async Task ProcessMessage(ProcessMessageEventArgs args)
{
  ProcessorReceiveActions receiveActions = args.GetReceiveActions();
  IReadOnlyList<ServiceBusReceivedMessage> receivedMessages = await receiveActions.ReceiveDeferredMessagesAsync( new [] { << sequence number 1>>, << sequence number 2 >> });
}

You could also just use a regular ServiceBusReceiver to accomplish the same thing - which is more flexible as you can receive the deferred messages whenever you want, not just when a "regular" message has been received by the processor.

Thank you, @JoshLove-msft. This is exactly what we needed. However, we have encountered the same requirement of deferring a specific time to pick up a message multiple times in our industry. It would be much more convenient if the service bus allowed for rescheduling of messages, rather than requiring the use of sequence numbers. Although the 'Defer Message' feature exists, it seems that very few people use it and instead opt for a workaround of copying and scheduling a new message. We are interested in learning more about the use cases for the current 'Defer Message' feature.
And we believe that it would be beneficial if the service bus SDK to support message deferral specific time:
e.g.
       public async Task MessageHandler(ProcessMessageEventArgs args, IMessageSender sender)         {             args.DeferMessageAsync(args.Message,System.TimeSpan.FromMinutes(20)); }
Then I could pick it as "regular" message in 20 minutes later, instead of using a sequence number and maintain a timer(....It's too uxxxx :))

The rescheduling feature is essentially the concept of abandoning a message with delay. The feature request can be found in the Service Bus repo - https://github.com/Azure/azure-service-bus/issues/454. Closing this issue out as a duplicate. Let us know if you have further questions.


merge repos

Merge
https://github.com/Deltares/ribasim-python
into
https://github.com/Deltares/Ribasim.jl
This will make it easier to keep them synchronized.

Fixed in #100


Need sync operation to update for Company Communicator v5.3?

I have tried upgrade process to v5.3 from v5.2 follow the guide.
https://github.com/OfficeDev/microsoft-teams-apps-company-communicator/wiki/v5-migration-guide
After finished "Upgrading from v5.x to latest version" section, my company communicator was broken. All functions had errors like below(sorry my primary language is Japanese, then a few UI labels are Japanese):

I guess you need sync operation at deploy center of all app service and function apps to deploy latest source code.

I didn't notice this. Does this "sync" mean sync at Deploy center?

Hi @runceel ,
Thanks for raising the query.

Go to Prep-Function in the resource group
Click on configuration
Go to Function runtime settings
select ~4 from the drop down of Runtime version
Do the same for Data Function, Function as well.
Then click on the App service -> Click on Configuration -> Click on General Settings
Check and confirm the .NET version to be .NET 6 (LTS)

Hope this helps. Keep us posted.

@gsv022 Thank you for your response.
I had followed that procedure. My question is, do I need to click the sync button in the deploy center to complete the migration?
When I did the migration I needed to click the sync button but I didn't notice this step just by looking at the migration guide.


Voice on

even though i did /8 guide voice, and it shows voice is turned on, i do not hear anything.
Anyone has an idea why?

Hi,
By default guide voice is enabled. What language does use on your OS? Is the Toolbox running as administrator?

the voices work normally for me, though for me the native language is Spanish


Neurolab class - New feature

Since the neurolab device can be extended not only to measure EEG but also ECG, EMG and accelerometer a separate class is needed to maintain the base class.
NeuroLab class
   |-  ADC
   |- wifi module
   |- accelerometer

Hope this feature may help to decouple ADC and other modules from the main code

@tharaka27 You have implemented this feature so let's close both issues


Upgrade the Paloma Documentation for Changelog, Releasenotes, goreleaser setup and tag rules

Background
As we prepare for more validators and users of Paloma, we want to upgrade the release note and changelogs so that anyeon will know what was created.
Done when

[ ] - Implement changelog
[ ] - Implement release notes
[ ] - Add goreleaser setup
[ ] - Implement correct tags and branch rules

Thanks for the quick turn, @alexanderbez We also need to do this for the Pigeon relayer repo as well. https://github.com/palomachain/pigeon.


bug: default boolean not displayed in questionnaire

I have a variable defined in copier.yml like so:
private:
  type: bool
  default: true

Yet, despite the default value being set that default value is not displayed in the questionnaire:
private? Format: bool
🎤? [Y/n]

Oooooh, I see now that the way the default is rendered is by capitalizing the Y! That's very subtle. Color that value for added emphasis perhaps?

It's the standard way of showing defaults in POSIX (or something) :slightly_smiling_face:
You'll notice that in many GNU tools (and other tools for that matter), the default value is capitalized.

Who am I to disagree with convention... I'd still lobby for something less subtle – I, for one, was too ignorant to know of the convention and I've been around the block a few times. But feel free to close if you disagree.


Update LAB[PL-400]_Lab01_Data_Modeling.md

Remove step
Now done automatically.
Module: 00
Lab/Demo: 00
Fixes # .
Changes proposed in this pull request:

Submitted by Tattedgeek on behalf of MOC Labs Review

Submitted by Tattedgeek on behalf of MOC Labs Review


Combined PR with 3 commits

See also PR #46 which has just the first of these commits in it in case you want to do the other steps separately.

I think with #43, #44 and #46 this can be closed -- thanks for tackling these Pixel dimensions!


Compilation (installation via npm) fails on OS X El Capitan

Possibly of limited interest as this is not the latest version of OS X, and you're unlikely to have the hardware to reproduce it, but I thought I'd report it.
% node --version
v7.0.0

% npm --version
3.10.3

% clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

% npm install better-sqlite3

><EMAIL_ADDRESS>install [...]/node_modules/better-sqlite3
> node install

  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o
  LIBTOOL-STATIC Release/sqlite3.a
  CXX(target) Release/obj.target/better_sqlite3/src/objects/int64/int64.o
  CXX(target) Release/obj.target/better_sqlite3/src/util/data.o
  CXX(target) Release/obj.target/better_sqlite3/src/objects/database/database.o
  CXX(target) Release/obj.target/better_sqlite3/src/objects/statement/statement.o
In file included from ../src/objects/statement/statement.cc:20:
../src/objects/statement/util.cc:11:48: error: no member named 'GetHiddenValue'
      in 'v8::Object'
                return v8::Local<v8::Object>::Cast(handle()->GetHiddenVa...
                                                   ~~~~~~~~  ^
../src/objects/statement/util.cc:23:13: error: no member named 'SetHiddenValue'
      in 'v8::Object'
                handle()->SetHiddenValue(Nan::EmptyString(), namedParams);
                ~~~~~~~~  ^
2 errors generated.
make: *** [Release/obj.target/better_sqlite3/src/objects/statement/statement.o] Error 1

Ah never mind - I see this is a duplicate of issue #12


Add cluster deletion items for basic toolset

Child task of https://github.com/opensearch-project/opensearch-migrations/issues/6
Blocked by: https://github.com/opensearch-project/opensearch-migrations/issues/16
Acceptance Criteria:

Add additional library functions necessary for terminating an existing cluster
Add unit tests

Handled with PR: https://github.com/opensearch-project/opensearch-migrations/pull/40


[HUDI-3625][RFC-60] Add StorageStrategy to HoodieStorage

Change Logs
This is a part of RFC-60: Object Storage Storage Strategy https://github.com/apache/hudi/blob/master/rfc/rfc-60/rfc-60.md. The end goal is to leverage the HoodieStorage layer to further separate Hudi logic from File IO, allowing more flexibility in the physical location of files.
This PR will add StorageStrategy to HoodieStorage, but StorageStrategy will NOT be used anywhere just yet.
Impact
No impact.
Risk level (write none, low medium or high below)
None
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".

The config description must be updated if new configs are added or the default value of the configs are changed
Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the instruction to make
changes to the website.

Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

Hey @CTTY I'm YueZhang, Coming from JD.com

Still Conflicting @CTTY Orz..


Error: Invalid object parameter | Ref Snowflake Support Ticket 00675051

Terraform CLI and Provider Versions
0.72.0 and latest
Terraform Configuration
resource "snowflake_account_parameter" "account_parameter1" {
  key   = "TRANSACTION_ABORT_ON_ERROR"
  value = "true"
}

resource "snowflake_account_parameter" "account_parameter2" {
  key   = "QUOTED_IDENTIFIERS_IGNORE_CASE"
  value = "true"
}

Expected Behavior
We are attempting to automate the account parameters using Terraform and are adhering to the official parameters document from Snowflake.
We are experiencing an error message which is attached as a screenshot for parameters listed below.

"Invalid object parameter: TRANSACTION_ABORT_ON_ERROR" and
"SQL compilation error: invalid value ['true'] for parameter 'QUOTED_IDENTIFIERS_IGNORE_CASE'"

Do revert for any information. Ref Snowflake Support Ticket 00675051
Any assistance or guidance on this would be greatly appreciated, thank you.
Actual Behavior
Error: Invalid object parameter: TRANSACTION_ABORT_ON_ERROR
Error: 001008 (22023): SQL compilation error:
Note- Screenshot Attached

Steps to Reproduce

terraform apply

How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response

@ravisingh27 Hey 👋, the fix was merged and will be a part of the next release

release 0.86.0 hit the shelves yesterday ; could you please test it and see if it fixes the issue for you ?
If it does, please mark this issue as close. Of course if there are further concerns, do let us know here. Thank you !

I'm experiencing this issue on version 0.92, for the following parameters:

CORTEX_ENABLED_CROSS_REGION
SAML_IDENTITY_PROVIDER
UI_NOTIFICATIONS

Hey @dlouseiro. Thanks for reaching out to us.
Please submit a separate issue for these.

Hey @dlouseiro. Thanks for reaching out to us.
Please submit a separate issue for these.

Will do!

Done here @sfc-gh-asawicki

As this was already fixed, and this thread seems inactive, I'm closing the issue. If you still have similar problems, please create a new issue. The referenced issue will be fixed while reworking the account_parameter resource.


chore(master): release 1.5.18

:robot: I have created a release beep boop
1.5.18 (2023-11-21)
Miscellaneous

deps: update portainer/portainer-ce docker tag to v2.19.3 (5650a78)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/docker-shared-services/releases/tag/v1.5.18 :sunflower:


Improve clarity of LayerBuilder initialization

Initializing LayerSettings with the new method is not very explicit or type safe, and map_id  and layer_id types use unclear types.
New users will see
        LayerSettings::new(
            UVec2::new(2, 2),
            UVec2::new(8, 8),
            Vec2::new(16.0, 16.0),
            Vec2::new(96.0, 256.0),
        ),

in https://github.com/StarArawn/bevy_ecs_tilemap/blob/main/examples/map.rs and be at a loss for what the magic numbers do.
There are a few possible improvements that immediately come to mind:

Use intermediate variable names (or constants) in the examples.
Use wrapper types for map_size etc.
Use explicit struct construction. Probably not possible if other invariants must be upheld (and many fields are omitted).
Use the builder pattern (probably too verbose and frustrating).
Consistently use custom enums for map and layer ids that impl Into<u16> to increase clarity and safety.

@StarArawn, if you're interested in this style of approach, I'd be happy to spend some time trying to make the API more type-safe and explicit. I'd like to start using bevy_ecs_tilemap for my games, so dedicating some time to that would be well worth it.

I was reading somewhere of doing more struct based stuff and it seemed like an interesting idea, but I'm kinda worried about having .0 everywhere in code(perhaps we can auto deref or something though), but essentially the idea was something like:
        LayerSettings::new(
            MapSizeInChunks(UVec2::new(2, 2)),
            ChunkSize(UVec2::new(8, 8)),
            TileSize(Vec2::new(16.0, 16.0)),
            AtlasSize(Vec2::new(96.0, 256.0)),
        ),
        ```

I'm super open to suggestions though and feel free to explore and open a few PR's for stuff! I tend to have difficulty writing user facing API's so I know they aren't the best! 😅

IMO we can consider decoupling the internal and external APIs a bit here if needed :)
My ideal end user API for this snippet would be:
        LayerSettings::new(
            MapSizeInChunks(2, 2),
            ChunkSize(8, 8),
            TileSize(16.0, 16.0),
            AtlasSize(96.0, 256.0),
        ),

Then, upon initialization, we can convert these to the glam types and store them internally. This is a one-time expense, so I'm not concerned about the increased overhead of the indirection.

As an aside, we may be able to specify the units of map size by using an enum: MapSize::Chunks and MapSize::Tiles.
The same pattern is used for Val over in Bevy itself and I rather liked it.

@alice-i-cecile that sounds good! I'm looking forward to seeing that!


Triggering a sync manually

Describe the solution you'd like
Manually trigger an ExternaSecret sync out of its normal schedule.
What is the added value?
For secrets that change on an irregular basis, being able to manually trigger a sync is useful.
Having a semi-static secret refresh every x hours is not needed and if the update schedule is not constant you can't set a timer on it.
I couldn't find it the docs or the issues, does this functionality exist already?

Hi @NivStav-RecoLabs ! It's actually said here. In short, the best way to do it is have an automation to kubectl annotate. You can do it with Lambda functions, for instance.

Thanks @gusfcarvalho !


[ADD ME TO THE ORGANIZATION]

Name: Omar Moustafa
Location: Dubai, UAE
Interest: Programming and Gaming
Discord username(optional):- Omar Dev 8345#4914 (Note that I don't open Discord a lot)
Why do you want to join?

I want to join because I would like to contribute to the open-source community, be part of it, and also encourage people to develop open-source software applications... As I am a advanced programmer I will take a big part of the open-source community, as being a member of the open-source community supports it, each person who is in the open-source community improves the community and encourages everyone! Thank you.

You can also join our Discord community here
Feel free to check out other cool repositories of the Open Source Community here.

@Jothin-kumar , are you able to add me?

@Jothin-kumar , are you able to add me?

@Omar8345 kindly wait for @Susmita-Dey to add you.

Okay. Thanks @Jothin-kumar. How you joined the team? Did you apply? If so, I don't see your issue If not, then, did they personally contact you?!

Okay. Thanks @Jothin-kumar. How you joined the team? Did you apply? If so, I don't see your issue If not, then, did they personally contact you?!

@Omar8345 see #2

@Omar8345 Thanks for your interest. Invitation have been sent to you. Kindly accept it and make your membership public.


Loading from checkpoint?

Hi - Thanks so much for the amazing package.
Is there any easy way to load a checkpoint so that I can do inference with the trained model. Something like:
.
.
exp = BaseExperiment(args, dataloaders=(dataloader_train, dataloader_val, dataloader_test), strategy='ddp')
PATH = './checkpoints/best.ckpt'
exp.load_from_checkpoint(PATH)

exp.eval()
y_hat = exp(x)

Thanks in advance!

If you're using the PyTorch Lightning, you can refer to this document: Saving and loading checkpoints

I will close this issue if there are no more questions. Please feel free to open a new issue when you have new questions.


Do not depend on fastparquet (only Python 3.7)

Parquet format is handled by pyarrow

Pull Request Test Coverage Report for Build 793457095

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Totals

Change from base Build 779195358:
0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls


eam file reading and section name change

There are some changes regarding eam file reading and the section name change from e3sm_chem_diags to chemdyg.

@hsiangheleellnl, let me know if more detailed instructions would be helpful.  I'm happy to provide them.

@xylar , I showed Hsiang-He how to rebase and the conflicts should be resolved now.
The commit (832b549) changes to use relative paths for input files as suggested in https://github.com/E3SM-Project/ChemDyg/issues/4#issuecomment-1470790434.
The reference_data_path is set in ChemDyg_example_script.cfg and should match the root input data path, which mache should know for each machine. Do you have suggestions on how to set the root path automatically for different machines?

@tangq, thank you for clarifying what you need from me here.  I can add an example of how to use mache to find the path on each machine in one of your bash scripts and you can hopefully figure out how to make similar changes to other scripts.

@hsiangheleellnl and @tangq, I pushed a commit that I think will take care of this.  I think that zppy will provide the diagnostics_base_path config option (which it will get from mache) if I understand https://github.com/E3SM-Project/zppy/pull/402 correctly.

@xylar , thank you. The diagnostics_base_path config option is exactly what I am looking for.


Casing issues

There seem to be a few issues with casing and the way things are generated:

This causes classes to not exist in the way that cpp expects them to be

It also mentioned there being issues with it being delcared as a struct & a class, could it be that there are 2 things with the same name but different casing causing issues?


Question about the Adept-2

Dear All,
I am trying to build the Jacobian matrix for one ODE question, like dy/dt=f(t,y). I have programmed the C++ code for the ODE functions. And I want to build one Jacobian matrix of df/dy for the ODE solver. I know I can create the hand code of df/dy by myself, but it is not effective. So I want to know whether the Adept algorithm can help me to build this Jacobian matrix? The size of this matrix is around 3000*3000. Thank you,

Yes you could use Adept for that - you would need to code up a function that computes f(t,y) using Adept's active types, e.g. adept::adouble, adept::aVector etc.  Have a look at the two listings in section 2.4 of the documentation (http://www.met.reading.ac.uk/clouds/adept/adept_documentation_2.1.pdf) - one uses Adept's scalar types (adouble), the other its array types.

Thank you for your quick reply. As a beginner of this kind of algorithm, I am wondering do you have some specific examples because I am reading the user guide, but it looks like it has multiple examples but maybe not be related to mine. So I wonder would you like to give me some specific examples. Thank you very much!

The test directory of the package is full of examples.  The function beginning on line 117 here: https://github.com/rjhogan/Adept-2/blob/master/test/test_minimizer.cpp#L117 computes a Jacobian matrix of a function of the form y(x), where y and x are vectors. This seems to be almost identical to your problem.  Obviously my program does a bit more with the result - in fact this code was used to produce the data for the animation here: http://www.met.reading.ac.uk/clouds/adept/optimization.html

Thank you for your recommendations.

@rjhogan I have another question about the usage of Adept. From the manual, it seems like the AD algorithm in Adept will provide the numerical value for each element in the Jacobian matrix. But if there is a variable in the element, could I also use this algorithm? One specific example is that:
One of the ODE equations in my case is dy(i)/dt = Ay(i) + By(i-1)y(i+1), then the element in the Jacobian matrix could be By(i+1), but if the y(i+1) is the unknown which would be the solution of from the solver. In this case, could I still use the Adept numerical AD algorithm? Thank you for your clarification.

No you can't use Adept for that - you would need a symbolic math language. I wonder if Adept is the tool you need - Adept is for differentiating very complex functions, whereas you know the expression for the derivative of a function and you want to integrate it to work out the function at a new time.
If you want to evolve y(i) in time then the classic approximate approach would be to chose a timestep and use something like the Midpoint Method or (for more accuracy) Runge-Kutta-4.  This is useful if the right-hand-side is too complicated - in your case it might be simple enough that there is an analytic solution but I don't know how to handle the nonlinear "B" term (I should say I'm a physicist not an applied mathematician). If the right hand side consisted only of linear terms [nothing with y(i)*y(j)] then there is an analytic solution in terms of matrix exponentials.

Thank you for your clarification! Yes, I am currently trying to use a linear matrix solver (Dense Matrix solver) for the ODE function, f(y,t). The current solver definitely has a default Jacobian matrix by calling the ODE function multiple times. But using the default method is very time-consuming since my matrix size is too large (~2886).
I agree with you that the nonlinear term in the right-hand may not easy to be solved analytically.  The current solver that I used is based on the BDF algorithm in the Newton matrix, it could be based on the numerical method to solve the nonlinear issue. But to be honest, I also do not fully understand how it works.

BDF is solving the same family of problems as Runge-Kutta but I didn't know that (unlike Runge-Kutta) BDF makes use of df/dy - I can see how it might help extrapolate to the new value of t. Let me know if you need help using Adept to compute df/dy.  I guess not all of your ODEs are as simple as f(i)=Ay(i) + By(i-1)y(i+1) because the Jacobian of this is trivial to code up by hand:
df(i)/d[y(i-1), y(i), y(i+1)] = [By(i+1), A, By(i-1)]
where I'm using square brackets to indicate a vector.

Really appreciated your help. I wonder when using Adept for the calculation of df/dy, is it symbolic? If it is, that would be very helpful. Thank you!

No, it is algorithmic differentiation, as distinct from symbolic differentiation and numerical differentiation - see https://en.wikipedia.org/wiki/Automatic_differentiation


bread crumb link goes to wrong url

I'm using angular-breadcrumb with ui state router.  I have anchor with ui-sref="app.page", which becomes href="/page", and it works perfectly, taking me to http://localhost/app/#/page.  However, the breadcrumb for app.page only has href="/page", and it takes me to http://localhost/page, which 404s.
my state provider is
$stateProvider
  .('root', {
    'abstract': true,
    'views': {...}
  })
  .('app', {
    'abstract': true,
    parent: 'root',
    'views': {...},
    ncyBreadcrumb: {
      skip: true
   }
.('app.home', {
    url: '/',
    views: {...}
    ncyBreadcrumb: {
      label: 'Home'.
      parent: 'app'
    }
})
.('app.page', {
    url: '/page',
    views: {...}
    ncyBreadcrumb: {
      label: 'Page'.
      parent: 'app'
    }
})
.('child', {
    url: '/page/:childId',
    views: {...}
    ncyBreadcrumb: {
      label: '{{child.name}}'.
      parent: 'app.page'
    }
})

When I'm on the child page, and click the breadcrumb for app.page (which has the same href as the main nav), I end up at the wrong URL.  It looks like what UI Router takes as '/' is the root of the angular app ('http:/localhost/app/#/') but whereas breadcrumb interprets '/' as 'http:/localhost'.  The latter is not even in my app.

I  updated my UI-router to 0.2.13 and my issue was resolved.


Add test coverage for track 2 specific features

Resolving in favor of more specific issues tracking required tests like #8425.


Release

Hello @mikkopaderes, would it be possible to cut a release in the not too distant future? I need that ember-classic-decorator deletion so I can get rid of a few Ember global deprecation warnings. Thank you!
Changelog:

Upgrade Ember CLI to 3.28.5 (#217)
Fix acceptance test for query (#218)
Fix lint warning (#219)
Fix working but improper import (#220)
Removed unused hasMany (#223)
QUnit equal -> strictEqual (#222)
Bump firebase and firebase-tools version (#227)
Remove auto generated files from repo (#228)

Release in 2.2.0


add name_with_middle element for russian locale

calling nameWithMiddle() with russian locale causes TypeCast Exception. I've added "name_with_middle" to the "ru.yml" file.

Thanks for your contribution!, thanks to that I was able to check the error.

@seriabov Thanks for your contribution! This change will be live on v0.2.


Add my first file

created a new branch, created a file, and made a commit.

created a new branch, created a file, and made a commit.


`GLIBC_2.28' not found

Hello, I'm trying to run an electron application on Ubuntu 20.04 using the @serialport package, and the app is being installed through the Snapcraft store.
But before the app can start, is throwing the following exception related to the @serialport
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /run/user/1000/snap.xxx/.org.chromium.Chromium.juyTIN)
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2073)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at bindings (/snap/xxx/9/resources/app.asar/node_modules/bindings/bindings.js:112:48)
    at Object.<anonymous> (/snap/xxx/9/resources/app.asar/node_modules/@serialport/bindings/lib/linux.js:2:36)#033[0m

Does anybody have some idea what can be happening?

Hi @joaorbdg which app is it that you are using from snapcraft store?

@GazHank It is a private app. Btw, I'm building it using electron-builder

What version of glibc do you have installed?
Also, are you packaging the app, and installing on the same machine?  To me it looks like the machine used to build the package/app is running newer versions of the build tools than the machine you are trying to install to.
If this is the case then it is advisable to build using the oldest versions of the libraries that you would like to support

I'm building/packaging the app on Ubuntu 20.04 which has the GLIBC 2.31
Output from ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31

So, based on your thought, I'll try to build/package the app on Ubuntu 18.04.5, which contains the following GLIBC
ldd (Ubuntu GLIBC 2.27-3ubuntu1.4) 2.27

I've packaged the application on Ubuntu 18.04.5, but the same issue persists. If I run the application locally, works fine. This issue is just happening when the application is packaged to distribute on the Snapcraft store.

I've deployed a blank app based on this repo https://github.com/serialport/electron-serialport and the same issue occurs:

You can install the app Electron Serial Port on Ubuntu running:
snap install blank-demo-app

I've used Ubuntu 18.04.5 to package the application.

Thanks @joaorbdg
Based on the fact that the app runs correctly until packaged, it would seem to be a problem with electron-builder or it's configuration.
I assume you are using "buildDependenciesFromSource": true,"npmRebuild": false, in your project's json, rather than the prebuild binaries?
I don't have access to a linux machine at the moment, but will try to take a closer look when I get access, if you are still facing issues

@GazHank Good catch! I'll try to add these configs to my package.json and check again.

@GazHank it worked! the issue was because I didn't add buildDependenciesFromSource and npmRebuild to the electron-builder.yml file.
Thank you so much!

For all those who are still having problems with this topic, I report the configuration that worked for me.
Environment:
Windows 10 Home 64bit 22H2 (19045)
WSL 2 for windows enabled (Hyper-V is not available on Windows 10 Home)
Docker Desktop
electron: 13.0.1
electron-builder: 23.0.3 (used with Docker)
serialport: 10.4.0
@serialport/parser-readline: 10.3.0

Objective:
create a build from Windows to Ubuntu 18.04

As you can read at this link, electron-builder allows the use of docker to create builds from Windows to Linux-like, in particular thanks to the images made available directly by them you can choose which image to use to create the build with.
I tested both the electronuserland/builder version (with NodeJs 18) and the electronuserland/builder:16 version (with NodeJs 16) and both worked after correctly configuring the package.json file in electron.
The images contain Ubuntu 20.04 and NodeJs 18 or 16 depending on the version you choose.
To make the builds work correctly I set the parameters suggested above by @GazHank like this:
"buildDependenciesFromSource": false,
"npmRebuild": false

Previously I tried:
"buildDependenciesFromSource": true,
"npmRebuild": false

but it didn't work, it gave an error GLIBC_2.28 not found.
I hope it helps


KNL-1461 - Carry LRS_Result forward on LRS getEventStatement

Okay, I think this is finally the last commit on this task, looking good to me now!

LGTM


Default author assignment setting doesn't work with large user sets

I have a guest entries section where thousands of existing users have author privileges, so they all show up in the dropdown…but only the first 100 of them, so I can never select the default user I want.
Thinking this selection should probably be an elementselect modal instead.

Hey Tim, can you send a DB backup to<EMAIL_ADDRESS>and point out which user you can't access? Not seeing anything in the code that would limit the dropdown to 100 users.

Sorry didn’t realize this was for v1. Can fix it there. Will be harder to fix for v2 since the settings have been redesigned as an Editable Table, which currently doesn't support element select columns (cc craftcms/cms#811).

Thanks. Will brainstorm on how to address this for v2 once this project is on Craft 3.

Decided to just keep it a normal dropdown for v1, since in v1 the dropdown actually doubles as the way to enable/disable allowing guest entry submission for the section. So swapping it with a element select field would add confusion, unless we redesigned the settings to be more like they are in v2.

Will brainstorm on how to address this for v2 once this project is on Craft 3.

@brandonkelly can you reopen this? It is still an issue for Craft 3. The only way I can adjust settings is via project-config, as I have too many users for the settings templates to render.


Change to manifest list sha for multiarch support

Use the following command for manifestlist sha:
./manifest-tool-linux-amd64 inspect registry.redhat.io/ocp-tools-43-tech-preview/source-to-image-rhel8:v1.3.0

/lgtm


Error: pages/404 can not have getInitialProps/getServerSideProps

Describe the bug
After setting up next-i18next, I have the following error in the terminal on every page (probably because it's looking for an not existing favicon.ico by default).
Error: `pages/404` can not have getInitialProps/getServerSideProps, https://err.sh/zeit/next.js/404-get-initial-props

But my 404 page is really simple, no getInitialProps/getServerSideProps
export default () =>
This is the 404 page

Note: i'm trying the setup the project for a potential future translation. Therefore, next-i18next provides a clean way for developers to use the system as string dictionary for UI texts, which later on could be translated.
Obviously, if I go to /404, I see the error in browser.
Thank you!
Occurs in next-i18next version
From the package-lock.json and other info

next-i18next: 4.2.1
i18next:  19.3.4
node JS: 13.9.0
npm: 6.13.7

Steps to reproduce
File structure
└── public
    └── static
        └── locales
            ├── en
               └── common.json
               └── homepage.json
└── src
     └── pages
     └── components

In i18n.js
Note: I needed to add those properties in the config to be able to make t('key) working
lng: 'en',
fallbackLng: 'en',
languages: ['en', 'not-existing-yet'],

More specifically lng: 'en', the fallbackLng is for later if we do add more languages, and languages to be able to access i18n.languages (otherwise it wasn't working)
const NextI18Next = require('next-i18next').default

const NextI18NextInstance = new NextI18Next({
  defaultLanguage: 'en',
  lng: 'en',
  fallbackLng: 'en',
  languages: ['en', 'not-existing-yet'],
  otherLanguages: ['not-existing-yet'],
})

module.exports = NextI18NextInstance;

In _app.js
import React from "react";
import App from "next/app";

// i18n
import { appWithTranslation } from '~/i18n'

class MyApp extends App {
  render() {
    const { Component, pageProps } = this.props;

    return (
      <>

              <title>NextJS Advanced Routing</title>

            <Component {...pageProps} />
      </>
    );
  }
}

export default appWithTranslation(MyApp);

In index.js (homepage)
import { withTranslation } from '~/i18n'

const Index = ({ data, t, ...props }) => {
   return (

{ t('homepage:title') }

   )
}

Index.getInitialProps = async ({ query }) => {
  // get some data
  const data = await getData();
  return { data, namespacesRequired: ['common', 'homepage'], }
}

export default withTranslation('homepage')(Index)

Expected behaviour
404 should be working without triggering an error
Screenshots
OS (please complete the following information)

Device:MBP 2019 15"
Browser: Chrome 80.0.3987.149

Additional context

Actually this Next's requirement is absurd, cause if you have translations you must translate your custom 404 as well.

Yeah, @Danetag this is probably an issue to raise with the NextJs team. There's not much that can be done on the next-i18next side of things - we have to get translations somehow.

Hello, you are right we should be able to translate the 404 page as well ! (great job on this repo btw)
Is it possible to disable the warning though ? Because all my other pages are correctly setup and I would like to avoid to be spam by the warning when navigating to the 404 page.
Thank you !

Just to follow up: I don't think it's right to disable the warning. I think the correct thing to do is translate our 404 pages.
I can speak to the NextJs team about this.

Any updates?

Yeah. I'm facing the same issue now. I like to keep my console clean. But in this particular situation I get or warning from Next.js You should have custom 404 page because it's good to optimize its as static content either warning from next-18next You have not declared a namespacesRequired array on your page-level component: Custom404.
Frustrating 😞

@Dynkin, you can add your custom 404 page without the getInitialProps. Actually i'm running with this solution. it's not the best solution but it's working.
import PropTypes from 'prop-types';
import { withTranslation } from '../i18n';

function Custom404({ t }) {
  return (

{t('title-message')}

  );
}

Custom404.propTypes = {
  t: PropTypes.func.isRequired,
};

export default withTranslation('404')(Custom404);

@Dynkin, you can add your custom 404 page without the getInitialProps. Actually i'm running with this solution. it's not the best solution but it's working.
import PropTypes from 'prop-types';
import { withTranslation } from '../i18n';

function Custom404({ t }) {
  return (

{t('title-message')}

  );
}

Custom404.propTypes = {
  t: PropTypes.func.isRequired,
};

export default withTranslation('404')(Custom404);

I still see the error @anthonyrenard

@Dynkin, I'm also still seeing the error if I use your method!

I tried default props instead of getInitialProps but it did not get the message away

Any updates on this? 👀

I haven't heard any updates from the Vercel team. Not much to be done in user land.

Feature request opened at https://github.com/vercel/next.js/issues/17004

New to next.js and currently fiddling around to solve the same problem.
I noticed, that if I don't have a 404.js page, it will fallback to the _error.js page to display the 404 Error and inside _error.js it is possible to use "getInitialProps".
I am using that for now as a workaround. It solves the translation problem, but it does cause another warning:

"You have added a custom /_error page without a custom /404 page. This prevents the 404 page from being auto statically optimized."

The same problem is happening to me, it without getInitialProps but it doesn't work.

Ok, so basically we're getting errors having and not having getInitialProps.

Any updates for this? Seems crazy to not be able to translate 404s...

@CalebLovell As next-i18next@beta supports other data-fetching methods, this should no longer be an issue. See #869.

This is now possible with<EMAIL_ADDRESS>by using getServerSideProps on your custom error page.

I've stumbled upon this discussion but couldn't find the solution right away here, so I'm posting it for future reference:
// pages/404.tsx
import { GetStaticProps } from 'next'
import NextErrorComponent from 'next/error'
import { useTranslation } from 'next-i18next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'

export const getStaticProps: GetStaticProps = async ({ locale }) => {
  return {
    props: {
      ...(await serverSideTranslations(locale ?? 'en', ['common'])),
    },
  }
}

const NotFoundPage = () => {
  const { t } = useTranslation()
  return <NextErrorComponent statusCode={404} title={t('error.title')} />
}

export default NotFoundPage

I've stumbled upon this discussion but couldn't find the solution right away here, so I'm posting it for future reference:

Apparently this is supposed to work for the 500 page too, but it's not working for me :(

Does not work for me either
"next": "^10.2.2",
"next-i18next": "^8.3.0",

Getting this error in terminal:
error - ./node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:48:0
Module not found: Can't resolve 'fs'

I've stumbled upon this discussion but couldn't find the solution right away here, so I'm posting it for future reference:
This solution uses "next-i18next": "^8.2.0" with "next": "^10.2.0"
// pages/404.tsx
import { GetStaticProps } from 'next'
import NextErrorComponent from 'next/error'
import { useTranslation } from 'next-i18next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'

export const getStaticProps: GetStaticProps = async ({ locale }) => {
  return {
    props: {
      ...(await serverSideTranslations(locale ?? 'en', ['common'])),
    },
  }
}

const NotFoundPage = () => {
  const { t } = useTranslation()
  return <NextErrorComponent statusCode={404} title={t('error.title')} />
}

export default NotFoundPage

I came from google. It works! Saved my time. Thank you. Hopefully we do not need getServerSideProps on 404 page.

I spend an afternoon fiddling with this I managed to get the following to work
import { GetServerSideProps, NextPage } from 'next';
import { SSRConfig } from 'next-i18next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import React, { useEffect, useState } from 'react';
import { useTranslation, withTranslation } from 'react-i18next';
import { Footer } from '../components/footer/footer';
import { Navigation } from '../components/navigation/navigation';
import { NotFoundHero } from '../components/not-found/notFoundHero';

export type NotFoundPageProps = SSRConfig & { locale: string };

const Page404Component: NextPage<NotFoundPageProps> = ({ locale }) => {
	const { t } = useTranslation();
	const [menus, setMenus] = useState([]);
	const loadMenus = async () => {
		const res = await fetch(`/api/menus?locale=${locale}`);
		const menus = await res.json();
		setMenus(menus);
	};
	useEffect(() => {
		loadMenus();
	}, []);
	return (

			<Navigation menus={menus} slugs={{}} />

			<NotFoundHero
				title={t('notfound.title')}
				description={t('notfound.description')}
				imageDescription={t('notfound.imageDescription')}
			/>

	);
};

export const getStaticProps: GetServerSideProps<NotFoundPageProps> = async ({
	locale,
	preview,
}) => {
	const translations = await serverSideTranslations(locale, ['common']);

	return {
		props: {
			locale,
			...translations,
		},
	};
};

const Translated404Page = withTranslation('translations')(Page404Component);

const Page404 = (props) => {
	return <Translated404Page {...props} useSuspense={false} />;
};

export default Page404;

the important part was to use withTranslation to get the translation context and to disable suspense as it is not yet supported. basically this allows a for a fully translated 404 page with client side data fetching for additional stuff like navigation etc.

This works for me. On my specific case I need to import both footer and errors locale.
import { useTranslation } from 'next-i18next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';

export default function Custom404() {
  const { t } = useTranslation('errors');

  return (

404

{t('404')}

  );
}

export async function getStaticProps(context: any) {
  let localisation = {};
  if (context.locale) {
    localisation = await serverSideTranslations(context.locale, ['errors', 'footer']);
  }

  return {
    props: {
      ...localisation,
    },
  };
}

This works for me. On my specific case I need to import both footer and errors locale.
import { useTranslation } from 'next-i18next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';

export default function Custom404() {
  const { t } = useTranslation('errors');

  return (

404

{t('404')}

  );
}

export async function getStaticProps(context: any) {
  let localisation = {};
  if (context.locale) {
    localisation = await serverSideTranslations(context.locale, ['errors', 'footer']);
  }

  return {
    props: {
      ...localisation,
    },
  };
}

On build I get an error
Error occurred prerendering page "/pl/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Error serializing ._nextI18Next.userConfig.i18n.reloadOnPrerender returned from getStaticProps in "/404".
Reason: undefined cannot be serialized as JSON. Please use null or omit this value.c

Any updates on this? 👀

The solution is an advanced error page - https://nextjs.org/docs/advanced-features/custom-error-page#more-advanced-error-page-customizing
pages/_error.tsx
import { GetServerSideProps } from 'next';
import { getTranslations } from '../utils/translations';

export const getServerSideProps: GetServerSideProps = async ({ res, locale }) => ({
  props: {
    ...await getTranslations(locale || 'ka'),
    errorCode: res.statusCode,
  },
});

export default function Page({ errorCode }: { errorCode: number }) {
  return
{errorCode}
;
}

Still having this issue using "next-i18next": "^13.2.2" and "next": "13.3.1"
I try to create pages/404.tsx
import Button from '@/components/ui/Button'
import { GetStaticProps } from 'next'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
import Image from 'next/image'

const Custom400Page: React.FC<{}> = ({}) => {
  return (

      <Image src='/images/500.svg' alt='500 Error Icon' width={200} height={135} />

Internal System Error

      Something went wrong at our end. Back to home to refresh your page.
      <Button id='back-to-home' handleClick={() => {}} text='Home' />

  )
}

export const getStaticProps: GetStaticProps = async ({ locale }) => {
  return {
    props: {
      ...(await serverSideTranslations(locale ?? 'en', ['common'])),
    },
  }
}

export default Custom400Page

upon building the app, it shows bunch of errors:
Error occurred prerendering page "/id/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error occurred prerendering page "/en/404". Read more: https://nextjs.org/docs/messages/prerender-error

info  - Generating static pages (2/2)

> Export encountered errors on following paths:
        /404: /en/404
        /404: /id/404
error Command failed with exit code 1.

@HimanshuBari21  did you ever find a solution for this?

No, We choose not to personalize menu on 404 page 😞

You can create another route that provides the needed props and load them yourself with fetch directly from the _next route. It is a bit of a hack but it could work. That being said, it is shame that this is not possible and the only route is the buggy app router.


'datasphere' branch: Postman can't create job - Error while starting job

Error while starting job
When I am trying to create a job with postman I am getting a HTTP 200, but the application reports an error:

The application log states:
,"msg":"Error while processing API call : AxiosError: Request failed with status code 404
Is this originating from the Ariba API?
How can I further analyze this?
Notes on destination configuration
The 'apikey' property should ideally be 'apiKey' so that the key would be masked in the UI of the destination service. Unfortunately, the code requires the lower-case property key 'apikey'.
See jobHandler.js, line 50:
       //Destination validation
        if(!oDestination || !oDestination.originalProperties.destinationConfiguration.apikey) {
As it turns out one has to configure for the client secret only the password part of the otherwise base64 encoded client id and secret:
E. g. secret: NDI0NzExMTItc29tZS11dWlkLWM1NzYtMTIzNDU2Nzg5MDEyOlN1cGVyU2VjcmV0UGFzc3dvcmQxMjM0NTY3ODkwMTIz
Decoded:
42471112-some-uuid-c576-123456789012:SuperSecretPassword1234567890123

The above issue can be marked as resolved.
We found out that we had to use a different view template name, not EXT_Contracts as in the mission, but ApprovalsFactSystemView.

Would be nice if the extractor would do an existence check for the passed view template name on Ariba to produce a more meaningful error message.
It would also be nice to have the /jobadmin/UpdateJobStatus endpoint return the Ariba job IDs, apitype or product, view template and their status, too. This way the '/jobadmin/ProcessFinishedJobs` endpoint could be called right after the job completed.


Swift Version

Hi Robby,
Thanks for this great resource!!
Do you think to develop a Swift 2+ version?
I don't understand the documentation about How can make for a viewable and tappable area. Can you explain it ?

Hi,
I haven't learned swift yet. I'd be happy to port this when I learn it!
-(BOOL) touchInRect:(CGRect)rect;
this will tell return true if a finger is touching inside of a defined rect - this rect is defined in pixels:
if your image is 1024 x 512 pixels, a rect of (0, 0, 10, 256) will be a tall column in the upper left corner, 10 pixels wide stretching halfway down the image.
it returns true when a touch is inside of that rect. if you want more complicated tapping and releasing, i wonder if you could use a TapGesture in conjunction with my touchInRect function..

any progress on this :-)?

I've got some free time - considering a Swift re-write.
I have a question for cocoapods: can one cocoapod include both obj-c and swift versions? I've searched about 30+ pods, each one is either one language or the other, none contain both. Is anyone familiar with cocoapods and know best practices here?

My knowledge and experience so far is that once you use 'use_frameworks!' to include a swift pod then all pods update to their swift equivalent. It's been a real pain in my projects updating everything to swift but happy to be proved wrong and learn if it's possible!

You can add both Swift and obj-c via cocoa pods. Just add on plist file > user header search paths > Pods/**

I feel like Obj-C is working great inside swift projects, including with cocoapods using use_frameworks! like what chris said. A Swift re-write isn't necessary.
Unless anything else comes up, probably no re-write will happen (I tried last year it's not as easy as I expected). Going to close for now.


Bug: Unable to resize code pane

Attempting to resize the horizontal code pane to address #2857 fails. Instead, a grey vertical line moves can be dragged back and forth (with no other effect on page layout) and is left on the screen. Verified in Chromium and Safari on macOS 10.12.2. Screenshot with grey line highlighted in red attached.

Sorry. This is a duplicate of #2796 .


RFC: add angle for computing the argument of a complex number

This RFC requests to include a new API in the array API specification for the purpose of computing the argument of a complex number.
Overview
Based on array comparison data, the API is available in the majority of libraries in the PyData ecosystem.
The Array API specification does not currently include an API for computing the argument of a complex number.
Prior art

NumPy: https://numpy.org/doc/stable/reference/generated/numpy.angle.html
PyTorch: https://pytorch.org/docs/stable/generated/torch.angle.html
TensorFlow: https://www.tensorflow.org/api_docs/python/tf/math/angle
C99: https://en.cppreference.com/w/c/numeric/complex/carg

Proposal:
def angle(x: array, /) -> array

Questions

okay with angle as name? arg? phase?
only operate on complex arrays, similar to conj et al?

cc @kgryte

angle is a thin wrapper on top of atan2. Here's the numpy implementation: https://github.com/numpy/numpy/blob/v2.1.0/numpy/lib/_function_base_impl.py#L1670-L1724
So it's literally atan2(xp.real(z), xp.imag(z)) for complex-valued z plus some additional gymnastics due to xp.imag(real.input) refusing to return zeros. So the decision on adding angle to the spec depends on the resoution of https://github.com/data-apis/array-api/issues/824, I'd say.
(and I'm on record for making xp.imag(real input returning zeros, FWIW)

we can put this in array-api-extra if it doesn't make it into the standard for v2024


109 pinned interpolationjl causes package conflict with julia 190 rc2

Problem related to scriptsenv not updating TMI.
In main TMI, Interpolations.jl was already free.

Didn't add much -- so codecov didn't pass the CI even though all tests passed.


Intermittent test failures in Kafka integration

Branch master
KafkaCdiExtensionTest fails on line 468 with timeout - as the timeout is configured to 30 seconds, this is most likely a race condition or a bug.
See https://builds.helidon.io/51A9EA2726241E0093DFA5D5139F3E6B/logs/14

Confirmed flaky-kafka-test.log

I missed this, I can take it.

I am not able to reproduce this locally in my computer after 40 tries.
I don't think there is a race condition, before every test we wait that the KafkaConsumer has the partitions assigned. This is done in the @BeforeEach after the comment 'Wait till consumers are ready'. Only after that, we produce new events, so consumers should be ready to consume them.
It could be a bug, but I should be able to reproduce it after so many tries.
Other possibility:
In the attached file of Daniel we can see that there are many events after the line '==========> test error()' related to the test someEventsNoAckWithOnePartition().
That is because in the test someEventsNoAckWithOnePartition() some events are not committed, so every new test execution after that is reading that events again and again, overloading a bit.
Correct me if I'm wrong but this tool we have for building is twice slow than the previous one we had. Maybe it is because of that.
For the time being I will decrease the number of events in the test so we can verify if this theory is correct or not.

Fixed by #1918


Use parameterized configuration

Maybe for a separate PR, but should this include a README like https://github.com/firebase/functions-samples/tree/main/2nd-gen/alerts-to-discord includes?

Maybe for a separate PR, but should this include a README like https://github.com/firebase/functions-samples/tree/main/2nd-gen/alerts-to-discord includes?

Yes, that would make sense. Feel free to write something 😏


Integration Test - Release - 2019/02/21 08:50:06

Auto create for integration test. IssueCommandFlow

#assign PRMergerTest1


builtin/error: late assignment of custom error type cause nil checking of the error variable not working

What version of Go are you using (go version)?

$ go version
go version go1.18.3 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/bsthun/Library/Caches/go-build"
GOENV="/Users/bsthun/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Volumes/Data/Environments/gopath/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Volumes/Data/Environments/gopath"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/opt/go/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18.3"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/zc/z09bkbz52kjd29vyb4jjz7rw0000gn/T/go-build613377742=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

After declare an error variable with type of error, and assign its value with a function that returned custom error (a struct with an interface of error). It will have issue when checking nil (err != nil) as the statement will always returnd true even the real value of the variable is nil. You can reproduce the bug using playground: https://go.dev/play/p/otd6w4e7nK1.
What did you expect to see?
The condition statement should return proper value when doing nil check. (if the value of variable err is nil, then err != nil should return false)
What did you see instead?
Even err (which declare as a type error, then later assign to a custom error) has value of nil but the condition err != nil is always returned true.

Under the covers, interfaces are implemented as two elements, a type T and a value V.
...
An interface value is nil only if the V and T are both unset, (T=nil, V is not set), In particular, a nil interface will always hold a nil type. If we store a nil pointer of type *int inside an interface value, the inner type will be *int regardless of the value of the pointer: (T=*int, V=nil). Such an interface value will therefore be non-nil even when the pointer value V inside is nil.

See https://go.dev/doc/faq#nil_error.

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


Assignments in CInit

[x] Tests added for any new code
[x] Ran make fmt-fix (or had formatting run automatically on all files edited)
[ ] Documentation added for any new functionality
[ ] Entries added to ./unreleased/ for any new functionality

Closes #2268

Codecov Report

Merging #2289 (06f8906) into main (25699e1) will decrease coverage by 0.00%.
The diff coverage is 62.50%.

@@            Coverage Diff             @@
##             main    #2289      +/-   ##
==========================================
- Coverage   78.61%   78.60%   -0.01%
==========================================
  Files         435      435
  Lines       14840    14843       +3
  Branches     2075     2076       +1
==========================================
+ Hits        11666    11667       +1
- Misses       3174     3176       +2

Impacted Files
Coverage Δ

...he/tla/passes/assignments/TransitionPassImpl.scala
79.41% <62.50%> (-4.46%)
:arrow_down:

.../forsyte/apalache/tla/pp/ConstSimplifierBase.scala
95.40% <0.00%> (-1.15%)
:arrow_down:

...he/io/annotations/parser/CommentPreprocessor.scala
96.70% <0.00%> (+1.09%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


As a user, I want an appealing skybox that changes depending on the time of day

#planet
Dev: Joshua R.
PR:
Testing Instructions:

Attach the script to the "Directional Light" in the scene
Set the timeChange variable on the script to 1
Hit the play button
After some time the lighting should change since the light is rotating

PR:
It works!


Refactor tables part 1

Description

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Code quality improvements

How to test

Checklist

[ ] I have tested this code
[ ] I have updated the documentation

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 8 (0.0%)  changed or added relevant lines in 7 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.003%) to 37.926%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/pages/academy/adminPanel/subcomponents/AddStoriesUserPanel.tsx
0
1
0.0%

src/pages/academy/adminPanel/subcomponents/AddUserPanel.tsx
0
1
0.0%

src/pages/academy/adminPanel/subcomponents/NotificationConfigPanel.tsx
0
1
0.0%

src/pages/academy/adminPanel/subcomponents/assessmentConfigPanel/AssessmentConfigPanel.tsx
0
1
0.0%

src/pages/academy/adminPanel/subcomponents/userConfigPanel/UserConfigPanel.tsx
0
1
0.0%

src/pages/academy/groundControl/GroundControl.tsx
0
1
0.0%

src/commons/dataTable/DataTable.tsx
0
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.003%

Covered Lines:
5897

Relevant Lines:
14572

💛  - Coveralls

Superseded by #3001


Fork-hooks for providers?

Should providers be able to register pre/post fork handlers, analogous to the init/unload?  (See OPENSSL_fork_prepare ec) Or should providers register functions themselves?  One subtlety of the latter is the fork handlers need to be told when a library is unloaded.
This came to mind with the fork/drbg issues, and #12405 more generally.

In the course of discussing CVE-2019-1549 (which was caused by the fact that the advertised drbg fork handler was not used) we had a controversial discussion whether libcrypto should install fork handlers by default. The outcome was that it should happen only if the application requests it. As a consequence, fork-safety was established without using a pthread_atfork handler (commit 1b0fe00e2704b5e20334a16d3c9099d1ba2ef1be).

Thanks for the history reminder.  Since the "provider" architecture is explicitly to allow "anyone" to write crypto code, I think OpenSSL has to provide something in the fork-handler area.

Since the fork-handling routines are now deprecated, closing this.


Jruby executable not added to path correctly on Ubuntu

It appears that the jruby executable is not added to the shim/path correctly on Ubuntu.
Example:
$ cat /proc/version
> Linux version 3.13.0-107-generic (buildd@lcy01-09) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #154-Ubuntu SMP Tue Dec 20 09:57:27 UTC 2016
$ rbenv version
> jruby-<IP_ADDRESS> (set by RBENV_VERSION environment variable)
$ rbenv which jruby
> /home/user/.rbenv/versions/jruby-<IP_ADDRESS>/bin/jruby
$ jruby
> The program 'jruby' is currently not installed. To run 'jruby' please ask your administrator to install the package 'jruby'

My workaround has been:
$ export PATH=$PATH:/home/user/.rbenv/versions/jruby-<IP_ADDRESS>/bin

I'm not sure how I would debug something like this. From the documentation it seems like the executable is in the correct place which would get added to the path as a shim. Any insights?

Hi sorry for the late reply. This sounds like a problem of  rbenv not being setup fully. Please see README for installation instructions and for the doctor script to troubleshoot an installation, and ensure:

rbenv version lists "jruby-<IP_ADDRESS>";
run rbenv rehash just in case';
which -a jruby should list /home/user/.rbenv/shims/jruby first.

Closing since it's most likely an issue with installation


Revert "[ImgBot] Optimize images"

Reverts CircuitVerse/CircuitVerse#1474

Coverage remained the same at 84.379% when pulling 07ef3a29583f987c72a89686731c778be930c65d on aayush-05:revert-1474-imgbot into a3ad8dc09c8be0f7b853a29789c02307eb2b736f on CircuitVerse:master.


[FLINK-10768][Table & SQL] Move external catalog related code from TableEnvironment to CatalogManager

What is the purpose of the change
In the design of Flink-Hive integration and external catalog enhancements, we propose using CatalogManager to manage all external catalogs and related aspects for a clearer separation. Currently all external catalogs are managed by TableEnvironment, which makes TableEnvironment bloated.
Background: there are two parallel efforts going on right now - FLINK-10686, driven by Timo, includes moving external catalogs APIs from flink-table to flink-table-common, also from Scala to Java; FLINK-10744 I'm working on right now to integrate Flink with Hive and enhance external catalog functionality.
As discussed with @twalthr in FLINK-10689, we'd better parallelize these efforts while introducing minimal overhead for integrating them later. Our agreed way is to writing new code/feature related to external catalogs/hive in Java in flink-table first then move to other module like flink-table-common, this way we can minimize migration efforts. If existing classes are modified for a feature we can start migrating them to Java in a separate commit first and then perform the actual feature changes, and migrated classes can be placed in flink-table/src/main/java until we find a better module structure.
This PR moves all EXISTING external catalogs related code from TableEnvironment to CatalogManager, and it's the initial step for CatalogManager. It blocks [[FLINK-10698]Create CatalogManager class manages all external catalogs and temporary meta objects](https://issues.apache.org/jira/browse/FLINK-10698)
This PR is a PURE REFACTOR, only moving APIs around, NO change on the behaviors and NO new feature is added.
Brief change log

added CatalogManager in Java
moved external catalog related code from TableEnvironment to CatalogManager
added unit tests in CatalogManagerTest

Verifying this change

This change is already covered by existing tests, such as TableEnvironmentTest.
This change added tests and can be verified as follows:

Added unit tests in CatalogManagerTest

Does this pull request potentially affect one of the following parts:
none
Documentation

Does this pull request introduce a new feature? (no)

@twalthr @fhueske @xuefuz Can you please take a look?

Thanks for the PR. I quickly went over the changes and have some high-level comments:

It would be better if there is clearer distinction of responsibility for the CatalogManager class. If it manages catalogs and temp tables/functions, then it should just expose those as needed. If we need something extra, then we need some justification.

Since we are encapsulating catalog, Calcite schema, and temp tables/functions in CatalogManager, we should hide them as much as possible. Exposing something like registerExternalCatalog() might trigger some questions.

Intuitively TableEnvironment depends on CatalogManager but not vise versa. Thus, I'm not sure if and why we need a circular reference between them.

holding on this PR as there are some related discussion going on at the design doc


Fix Answer Key Causing Code Validation to Detect Error Incorrectly

Fix Answer Key Causing Code Validation to Detect Error Incorrectly (#9346)
Not 100% consistent, but sometimes, if the user opens the answer key and then tries to proceed to the next step, validation will flag an error, even if the user has the correct code. This happens because, in this scenario, the call to Blockly.getMainWorkspace() sometimes doesn't return the user's actual workspace. Instead, it returns a workspace with no blocks in it.
To fix this, I've gotten rid of the call to Blockly.getMainWorkspace and instead grab it directly from the ProjectView editor (using an existing getBlocksEditor() function)

Cherry pick of https://github.com/microsoft/pxt/commit/a043c2cf41645aa09f5a2b7ac561c6130dee5af1


Remotely set user property

Push action to set user analytics property to create audiences etc.
https://github.com/jraska/github-client/blob/58c41d42268de20bd69fcfb6c046a2c1bbf13c07/client/src/main/java/com/jraska/github/client/push/PushHandler.java

Depends on #27

Action: set_config_as_property
Parameter: config_key


Dead links on README

local-storage and session-storage links are dead. I would be very much interested on a local-storage package if there's an official one.

Both are on the way. Hopefully in the next week or two!


How to actually authenticate via ajax request?

I've deployed a Let's Chat application for my own server.
However, instead of using currently built, original Let's Chat web application I would like to develop my own, using its API.
And according to Let's Chat wiki:

Revoke an API Token
In the top-left dropdown menu:

Select "Auth tokens"
Click "Revoke token"
Choose "Yes". This will delete any previously generated token.

Basic Authentication
Use the API token as the username when authenticating. The password
can be set to anything, but it must not be blank (simply because most
clients require it).

So far I've generated own token and tried to send GET request to retrieve all rooms that I have in the app, but I've got an error: 401 - Unauthorized - I've tried to send this request with { data: my_token, password: my_random_password } credentials but without success. So my main question is: how exactly I can authenticate with Let's Chat API using ajax request?
I couldn't find any API url / endpoint dedicated for such task - please help.
EDIT:
I've tried also setting headers but it still doesn't work:
  $.ajax({
        url: CHAT_URL + 'rooms',
        beforeSend: function(xhr){
            xhr.setRequestHeader('Authentication', 'bearer NTcz112222222222wYThiNzZhYjhmYjFjOWJkOTQ5ZDQ2YjhjNWUyMzkwNmMzYjhjMQ==');
        }
    }).done(function(resp){
        console.log('1');
        console.log(resp);
    }).done(function(resp){
        console.log('2');
        console.log(resp);
    });

Change your header to Authorization:
xhr.setRequestHeader('Authorization', 'bearer......

It works! thanks!


Form validation on dynamic multistep forms

I have an issue with validating a multi-step form (wizard). My form consists of a variable number of steps and each step is dynamically created based on data I initially load from remote. I am not very experienced in React and Redux, so please don't hate me for not following a lot of conventions which I try to learn while building.
My issue: I managed to create the multi step form but the form validation is acting weird and I can not figure out why.
Redux Form Render Questions
import React from 'react'
import { Field, reduxForm } from 'redux-form'
import Navigation from '../components/Navigation'
import Header from '../components/Header'
import * as validator from '../components/Validation'

import renderField from '../components/renderField'

//Import question types
import QuestionClosure from '../questions/Closure_q'
import ImageMultiCheck from '../questions/ImageMultiCheck'

var renderQuestion = function(question) {

    //Set header values
    const questionHeader =

    //Set question identifier
    //const questionName = String("Question" + question.id)
    const questionName = String("$" + question.id)

    //Select which question component to render
    switch (question.type) {

        case "ImageMultiCheck":
            return

                    {questionHeader}
                    <Field component={ImageMultiCheck}
                           name={questionName}
                           options={question.Option}
                           multiple={question.multiple}
                           validate={validator[question.type]}
                    />

        case "Colors":
            return <Field name="color" type="text" component={renderField} label="Color" validate={validator['color']}/>

        case "Closure":
            return

                {questionHeader}
                <QuestionClosure name="Customer" question={question} validate={validator[question.type]}/>

}

const Questions = (props) => {
    const { handleSubmit } = props
    return (
        <form onSubmit={handleSubmit}>
            {renderQuestion(props.question)}
            <Navigation length={props.length}
                        page={props.page}
                        previousPage={props.previousPage}

                        />
        </form>
    )
}

export default reduxForm({
    form: 'wizard',
    destroyOnUnmount: false,
    forceUnregisterOnUnmount: true,
})(Questions)

So basically I use the renderQuestion-function to render whatever the question type tells me. Each question has its own component/way to be rendered. Matching this each question also has its own validation rules. All of them are combined in in a single file Validation that is imported as validator.
Validation.js
var required = function(value) {
    if (typeof value == 'undefined' || value == 0) {
        return 'Bitte wähle aus'
    }
}

/** VALIDATION SETS FOR FORM FIELDS **/
export const color = value => {
    console.log(value)
    return required(value)
}

//ImageMultiCheckValidation
export const ImageMultiCheck = value => {
    return required(value);
}

In my test case I have 3 questions. The first one is of the ImageMultiCheck-Type. It renders and validates successful.
The second one is of the color-type. It renders well but inputs are not validated at all. When I move to the third question and then back to the second validation kicks in. In this case I can not proceed to the third question again.
I am not sure if this is some misunderstanding in the way validation works or if there is some constraint to use dynamic validation rules on dynamic forms?
I appreciate your help :-)

@RT-TL sorry that no one got back to you. Noones going to hate you for your code, honestly, I'm actually impressed with your setup! You understand the nature of dynamic form generation with alternate validators quite well.
Everything here looks pretty good, I can only think that this was a specific issue to renderField...
Or perhaps you managed to figure it out?

Closing due to non-response, and that it is a support request. Please feel free to provide an update even so.


libClangSharp 13.0 osx-x64 has dependency on (missing?) libclang-cpp.dylib

Hi, thank you for this excellent package. I'm wondering about the following issue with 13.0 on macOS 10.14 (intel).
The libClangSharp runtime package for osx-x64 contains libClangSharp.dylib. This shared library depends on libclang.dylib and libclang-cpp.dylib:
base ❯ otool -L ~/Downloads/libClangSharp.dylib
/Users/inorton/Downloads/libClangSharp.dylib:
	@rpath/libClangSharp.13.0.0.dylib (compatibility version 13.0.0, current version 13.0.0)
	@rpath/libclang-cpp.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libclang.dylib (compatibility version 1.0.0, current version 13.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 904.4.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1)

However the libclang runtime package does not contain libclang-cpp.dylib. Is this available separately? I've looked around a bit and may have missed a separate package, if it exists.
Apologies in advance if this is user error.

By the way, the 12.0 version of libClangSharp only references libclang.dylib:

base ❯ otool -L runtimes/osx-x64/native/libClangSharp.dylib
runtimes/osx-x64/native/libClangSharp.dylib:
	@rpath/libClangSharp.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libclang.dylib (compatibility version 1.0.0, current version 12.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 904.4.0)

Also, for reference I am using the following simple package to try to install the dependencies automatically (based on this comment and related discussions) -- this works fine with 12.0:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <PropertyGroup>
    <RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' AND '$(PackAsTool)' != 'true'">$(NETCoreSdkRuntimeIdentifier)</RuntimeIdentifier>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="ClangSharp" Version="13.0.0-beta1" />
    <PackageReference Include="libClangSharp.runtime.osx-x64" Version="13.0.0-beta1" />
  </ItemGroup>

</Project>

(after building that project, I set DYLD_LIBRARY_PATH to the runtime directory before running ClangSharpPInvokeGenerator -- works for 12, fails for 13)

Ok, I see libclang-cpp is actually in the upstream and brew packages for 13.0. So something must have changed (here or upstream) such that statically-linked libclang.dylib is no longer sufficient. Not quite working on 13.0 for me yet, but I'll go ahead and close this since the remaining issues appear unrelated to packaging. Apologies for the noise.


Manage lock overrides using the config variables instead of the endpoint

This also allows the device lock override methods to
work on open-balena.
Resolves: #1071
Change-type: minor
See: https://github.com/balena-io/open-balena-api/issues/632
See: https://github.com/balena-io/balena-api/issues/3076
Signed-off-by: Thodoris Greasidis<EMAIL_ADDRESS>
Contributor checklist

[ ] Includes tests
[ ] Includes typings
[ ] Includes updated documentation
[ ] Includes updated build output

@balena-ci retest

@balena-ci I self-certify!


[incubator/honeydipper] release 0.1.3 enabling annotations on service

Signed-off-by: Chun Huang<EMAIL_ADDRESS>
Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Enabling users to add annotations to the deployment and the service.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
N/A
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign

/assign @wyardley
added you as a trusted collaborator so you can now review and approve PRs.

/assign @wyardley

/ok-to-test

/approve

/lgtm


Remove Travis badge

Type: documentation update
Breaking change: no
We do not use Travis any longer

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@52b9c79). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #970   +/-   ##
=========================================
  Coverage          ?   88.65%
  Complexity        ?     1055
=========================================
  Files             ?       95
  Lines             ?     2661
  Branches          ?        0
=========================================
  Hits              ?     2359
  Misses            ?      302
  Partials          ?        0

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


fix: fix routing bug when opening model sidebar

Description
Opening model sidebar shouldn't route to a specific model by default
Resolves #(issue)
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide reproduction instructions and list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

This will be resolved by the PR #329


v2.7.0 TypeError in model_construct where field has a validation_alias with AliasChoices

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
Using model_construct on a model that has a field with AliasChoices for the validation_alias throws a TypeError exception. This issue is new to v2.7.0. Example code works with v2.6.4.
Traceback (most recent call last):
  File "/home/bryan/src/temp/pydantic-regression/my.py", line 6, in <module>
    FooBase.model_construct().dict()
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/twispt/src/temp/pydantic-regression/.venv/lib/python3.11/site-packages/pydantic/main.py", line 228, in model_construct
    elif field.validation_alias is not None and field.validation_alias in values:
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'AliasChoices'

Example Code
from pydantic import BaseModel, Field, AliasChoices

class FooBase(BaseModel):
  foo: str = Field(serialization_alias='bar', validation_alias=AliasChoices('bar', 'foo'))

FooBase.model_construct().dict()

Python, Pydantic & OS Version
pydantic version: 2.7.0
        pydantic-core version: 2.18.1
          pydantic-core build: profile=release pgo=true
                 install path: /home/twispt/src/temp/pydantic-regression/.venv/lib/python3.11/site-packages/pydantic
               python version: 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801]
                     platform: Linux-6.6.25-1-MANJARO-x86_64-with-glibc2.39
             related packages: typing_extensions-4.11.0
                       commit: unknown

I am running into the same issue, and can confirm the code works on v2.6.4 but not on v2.7.0
in v2.6.4 i do not see a reference to field.validation_alias in model_consruct whereas the check occurs in v2.7.0
a potential solution would be to replace the line
elif field.validation_alias is not None and field.validation_alias in values:

with
any(alias in values for alias in field.validation_alias.choices)

This checks if any alias choice is in the values field, but does not check if multiple choices are defined in the value field.
If that isnt checked elsewhere than i would use
sum(alias in values for alias in field.validation_alias.choices) == 1:

@twispt,
Thanks for reporting this! We'll work on a fix and get a patch release out early next week!

I believe this was introduced with https://github.com/pydantic/pydantic/pull/9144

Working on a fix now and will have a PR up shortly!


Mirrored technique

Added Mirrored Technique, new persistent power for combat that will count the number of incoming attacks, and then play the card that many times. Perhaps this should apply the damage that many times because it currently procs relics like kunai, ink bottle, nunchaku, etc.
Also the Reflection to get intentMultiAmt could probably use the ReflectionUtils method, but I'm unsure what it would look like.
I have a feeling this card will get balanced. It's very very strong.

Updated with PR comments and added Exert functionality.


Tutorial no longer works

This "Get started using Power BI Desktop" tutorial no longer works. I did report it in the community but no-one's done anything on that.

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

ID: 7bf2015c-41fe-8234-dd4d-698e589b6fc7
Version Independent ID: bc0deeb1-04c7-abc3-b26c-10ea6d75c57f
Content: Get started with Power BI Desktop - Power BI
Content Source: powerbi-docs/fundamentals/desktop-getting-started.md
Service: powerbi
Sub-service: powerbi-desktop
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Hi, @chrisdolby-HE -- thanks for your comment! Assigned to the author. It might help if you could be more specific: which part doesn't work? If you spelled that out in the community, you could just add a link to it. Thanks!

Hi @maggiesMSFT - I mentioned it on the community at the following link: https://community.powerbi.com/t5/Issues/Problem-loading-data-in-Get-Started-with-Power-BI-Tutorial/idc-p/1251857#M59369

We're updated that tutorial, thanks!


Update [Explorer] e2e tests config to work with rdev

DoD
E2E tests will run against rdev in PRs and on demand locally
Tasks

[ ] Accept rdev link through env var or something
[ ] Fix anything else that comes up

Hopefully the learnings from doing the DP one will make Explorer one easier!

Closing this, since CI/CD support for Explorer is not prioritized currently. If we decide to support CI/CD for Explorer there is likely additional work that needs to be considered and that can be done as an epic.


Build for arm64 under macOS Big Sur fails

Environment
macOS Big Sur 11.6.3
MacBook Pro M1
Xcode 13.2.1
autoconf 2.69
automake 1.16
pkg-config 0.29.2

Current Behavior:
Building tesseract for arm64 arch fails with error message :
Undefined symbols for architecture arm64:
  "tesseract::IntSimdMatrix::intSimdMatrixNEON", referenced from:
      tesseract::SIMDDetect::SIMDDetect() in libtesseract.a(libtesseract_la-simddetect.o)
      tesseract::SIMDDetect::Update() in libtesseract.a(libtesseract_la-simddetect.o)
  "tesseract::DotProductNEON(float const*, float const*, int)", referenced from:
      tesseract::SIMDDetect::SIMDDetect() in libtesseract.a(libtesseract_la-simddetect.o)
      tesseract::SIMDDetect::Update() in libtesseract.a(libtesseract_la-simddetect.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [tesseract] Error 1
make: *** [all-recursive] Error 1

Under same environment,  build for x86_64 arch has no problem

Builds with configure && make work for me without any problem on Monterey. I am surprised that you are running Big Sur on a MacBook Pro M1. Please give a complete list of the commands which you used to get the build error.

Sorry, I was using a deprecated tesseract-build script.
Using the current official https://github.com/pokkinandpup/TesseractBuild works without problems.
Thank you

That's not the official Tesseract build procedure and not required if you just want to build tesseract for macOS.


[POC] Add creation & edition events

Hi,
While using ng-admin, I've found two limits for my needs :

I've not found an easy way to mark a field as invalid after API POST or PUT call (the API 400 response contains violations)
After an entity update, if the API has updated a field (slug generation for example), the new values returned by the call are not set in the entity (there is a transformToRest, but no updateToRest method call in the submitEdition method.

In order to fix this problems, we can use a updateToRest method here and add a handleCustomError here, or we can add some events in the FormController and let the developer do what it wants.
This PR is a POC, what do you think about the event usage ?

Interesting approach. However, it needs more work because:

it's hard to target a specific entity with event interceptors, and the code may live far from the entity configuration. I'd prefer something living in admin-config
an event can't change the workflow of the form submission (e.g. after creation, redirect to another page than the edition page of the new entry). We should use a the return value of a function instead.
if the event handler is asynchronous, the screen may flicker once it updates the scope.
I'm not very fond of event handlers updating things outside of their scope (which is the only way for a ng-admin.edition.success handler to update this.$scope.entry);

I don't have a better solution for now, but I'll be thinking about it. Anyway, thanks for taking the time to look into this.

Superseded by #898


⚠ Bofrost.at has degraded performance

In 0ce5582, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1311 ms

Resolved: Bofrost.at performance has improved in 1ea5505.


Updated events and info on Msiexec parameters

https://github.com/MicrosoftDocs/windows-itpro-docs/issues/5046

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

To which extent does this PR touch on the contents of issue ticket #4984 (Microsoft Surface Dock Updater Doesn't Exist),
specifically the part that the updater software does not create any Start menu item or logs by default?
(just to draw a connection between these pages)


"Maximum entries displayed" not being honoured?

I have configured the plugin to show 500 "Maximum entries displayed" except it will never show more than ten in the display. Is there a "timeout" for when it removes a frame from the display? There may be a delay of a second or so between messages from my websocket server.
This is using Firefox 56.0, 64bit on Windows 10.
Thanks

I think there must be a TTL for a frame that is displayed. If I use the plugin on a websocket with frequent traffic (2 or 3 messages/second) then it does seem to honour the setting. On a low traffic websocket it seems to remove frames from the display too quickly. I changed the title accordingly.


Inline Index::as_usize()

I saw util::locksteparray::Index::as_usize() pop up in some profiler output in a place where I didn't think that should matter, so I added #[inline(always)]. That obviously made the call vanish from the profiler output, but it also improved the benchmarks.
Before:
test rudymap_find_existing     ... bench:      26,501 ns/iter (+/- 5,358)
test rudymap_find_existing     ... bench:      27,782 ns/iter (+/- 9,235)
test rudymap_find_existing     ... bench:      26,330 ns/iter (+/- 2,462)
test rudymap_find_existing     ... bench:      26,742 ns/iter (+/- 3,441)
test rudymap_find_existing     ... bench:      27,537 ns/iter (+/- 5,810)

After:
test rudymap_find_existing     ... bench:      20,880 ns/iter (+/- 3,969)
test rudymap_find_existing     ... bench:      19,898 ns/iter (+/- 4,214)
test rudymap_find_existing     ... bench:      19,462 ns/iter (+/- 977)
test rudymap_find_existing     ... bench:      19,322 ns/iter (+/- 7,073)
test rudymap_find_existing     ... bench:      19,356 ns/iter (+/- 2,566)

Interesting, I find that surprising. Thanks for taking a look.

I did some further benchmarks. This improves benchmark times across nearly all non-trivial benchmarks. It's a good win.


Typescript support

I was looking to switch to this library because of missing functionality in zazuko/rdf-shacl-engine, but the lack of typescript support is a barrier. I generated some dummy types for now, but is there any interest in converting the project to typescript or at least creating some official types as a part of the DefinatelyTyped project?

I don't use TypeScript in my projects, which is why there are currently no Type Definitions.
But adding Type Definitions is part of the planned work funded via the RDF-Ext Open Collective. I didn't make a big announcement yet, as the coordinated detailed plan is not yet ready. But let me know if you are interested.
As anyone can contribute to DefinitelyTyped, you are very welcome to add types there. I'm happy to help out if there are questions that don't require in-depth TypeScript know-how.


Installation issues on a FEI Titan

This branch tracks some of the issues getting instamatic to work on a FEI Titan

[x] Fix #17

Note that the question argument in the choice_prompt function isn't referred to in the function's code. (every answer will have the same question)

Yeah, you are right... Odd, I was working on this a while ago, but I don't know why I left it in this state.


Configure CSP headers

After implementing Security Headers (#130), work on CSP implementation.

Based on my limited experience, this issue requires more work and creates more ongoing maintenance work than is justified by the benefit.


Fix missing av.opaque implicit import in pyav >= 13.1.0

Thank your for contributing to Nuitka!
!! Please check that you select the develop branch (details see below link) !!
Before submitting a PR, please review the guidelines:
Contributing Guidelines
What does this PR do?
pyav >= 13.1.0 adds av.opaque which is imported by av.frame and av.packet. The missing implicit import causes programs that use pyav to crash with No module named "av.opaque"
Why was it initiated? Any relevant Issues?
PR Checklist

[x] Correct base branch selected? Should be develop branch.
[x] Enabled commit hook or executed ./bin/autoformat-nuitka-source.
[x] All tests still pass. Check the Developer Manual about Running the Tests. There are GitHub
Actions tests that cover the most important things however, and you are welcome to rely on those,
but they might not cover enough.
[ ] Ideally new features or fixed regressions ought to be covered via new tests.
[ ] Ideally new or changed features have documentation updates.

Thanks, looks good to me, will merge for 2.5 release about to happy any day now.


Card is not displaying

The card is not displaying at all, seems to be related to the image.
However when I use the same image in the normal picture card it works fine.
The custom card is installed through HACS.
This is my lovelace card config:
type: 'custom:plant-picture-card'
entity: plant.plant1
title: Strelitzia
image: 'https://has.bobvmierlo.nl/local/strelitzia.png'

It shows nothing at all in the frontend. When using the same picture in a normal picture card it shows fine.

what happens if you just put in a path:
image: /local/strelitzia.png

instead of a web url?

Tried that, same problem

Hmm.. apparently it was some kind of browser cache issue. It's working now.
 So if you input a png image without a background it puts the png on top of the default homeassistant tshirt picture.
See screenshot below:

The conditional formatting is there..
      if ( hass.states[config.entity].attributes.problem.indexOf(_sensors[parseInt(i)]) !== -1){
        _class += " state-problem";
      }

      .state-problem {
        color: var(--google-red-500);
      }

I'll sort out the background picture issue.


Reduce number of comparisons when using components

Custom components should be modeled as case classes that extend a Component trait that extends the Node trait. They'd be given custom treatment in the DOM renderer along with Text nodes.
Using components creates potential to optimize the rendering of component-created elements. We assume that the render function of a component is pure, always returning the same tree for the same parameters. Case classes have built-in equality checking, meaning that it's easy to compare the components of a previous render with those of the next. Since the same tree is always returned, we don't have to compare each node to the nodes of the DOM, just the component with the last component, if they are the same, we can ignore entire sub-trees of the generated HTML. This reduces the amount of unnecessary tree and DOM traversal that each render requires - and a re-render when the root component is unchanged becomes a no-op.

Closed by #20


Create getTopics endpoint, update getQuestions endpoint

Pull Request
Description

I am updating getQuestions response body and creating a new getTopics endpoint.
GET /api/questions
I think with the increased number of questions in our database, it is not a good practice to return a large response payload in getQuestions endpoint. The large response payload majority comes from the description and examples, as they allow storing images as base64 encoded string. Of course I can make use of pagination as it is the right approach to return large response. However, I don't think I need to implement that. Since when we get a list of questions, we only need the question title, topics, complexity. Hence, I want to update the response body to only include these fields. From my rough inspection through the frontend code, there is no impact to our existing code and behavior. Let me know if there is any issue that I oversee.
GET /api/topics
As suggested by @c0j0s , we can define the existing topics in the question service to synchronize the topics enum between the frontend and backend servers. The benefits is that we don't need to create the same enum again and again.
Related Issue(s)

Closes #87
Changes Made

update getQuestions handler
create new endpoint for getTopics
update unit test to accommodate the new changes

Screenshots (if applicable)

Checklist

[x] I have checked that the changes included in the PR are intended to merge to master or any destination branch.
[x] I have verified that the new changes do not break any existing functionalities, unless the new changes are intended and have approved by the team.
[x] I will take care of the merging and delete the side-branch after the PR is merged.

Additional Notes/References

that being said should the other backends that use the same Enums (ie. SocketEvents in collab/matching service) have this as well to align it? or is this only practical for questions/users

The issue about topics is that both the frontend, question, user, and matching services are using the same enumeration. Hence, there will be 4 copies of this enum, which is bad for DRY principle xD. If your socket event enum also has this kind of duplication, I will suggest that you create an endpoint to provide the single source of truth as well.


Consider encrypting in-cluster traffic

Right now in-cluster traffic is unencrypted. For cases where users don't trust the network this might be problematic.
We can be solve this in different ways (using a CNI plugin with encryption support, using a service mesh...)
This issue tracks discussions on this topic.

This could be done experimentally with latest version of Calico (3.14+) and WireGuard.

Calico 3.15 was released and supports Wireguard over VXLAN and IPIP so we could add experimental support for this once https://github.com/kinvolk/lokomotive/pull/652 is merged.

The PR is close to merging.