Injecting enums

Are enums supported? Tried to inject one with .injectClass but always turned out null. If they're not supported, are there plans to support it in the future? Would be really handy for some of my use cases.

Hi @newk5 ! Enum fields are not currently supported due to a shortcoming in our API (we do not register properties on injected classes). This is a good future enhancement that we will add to the TODO-list.


fix to track changes in camlp5 8.01.00

The old API for installing a grammar was prone to (sadly, silent) errors if one loaded more than one grammar.  8.01.00 fixes that, and this change is to stay compatible with that change.

Thanks Chet!


Flag missing from detailed install command

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor microsoft.asc.gpg

Needs an output flag.
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o microsoft.asc.gpg

EDIT: Appears to be the case for 18.04 and 16.04 as well.

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

ID: 172f0b88-61f2-d631-478f-e88af9be1f7d
Version Independent ID: c610685f-57a2-048d-8dfa-146e19943434
Content: Install .NET Core on Ubuntu 19.04 package manager - .NET Core
Content Source: docs/core/install/linux-package-manager-ubuntu-1904.md
Product: dotnet-core
GitHub Login: @Thraka
Microsoft Alias: adegeo

Similar to #16160

Same issue different page, looks like this issue is the dupe.

Thanks I'll get this fixed

Duplicate of #16160


Question: Upgrade to v2

As v2 is still in development, will be easy to update v1 to v2 when it will go live?
I am planning to create a theme with v1.
Thanks

Hi @papazetis! We're in the midst of last steps right now on V2. The big stuff is conquered and we're moving forward with the little stuff and code cleaning. "Easy" is a tough call. But we've been very conscious of backwards compatibility in the new version. While there are changes to the API, it's the sort of thing that might take a few hours (at most) to update/convert — not wholesale "throw it out" changes between versions. Hope that helps!
(And if you really want to be a Master of the Universe, start using V2 while it's in development and help us shake out last bugs?)


elf2uf2 raise "The input file has no memory pages" for a valid elf file

reproducer.zip
Hi,
I manage to generate a valid elf file (see attachment), but the elf2uf2 raises the "The input file has no memory pages" issue.
The elf is generated from arm compiler 6.16 and the MDK project can be found here:
https://github.com/GorgonMeducer/Pico_Template
In general, the map file shows that the elf contains valid content, so you don't have to use the MDK project.
By the way, I know that pico-SDK only support GCC, but with a simple wrapper, I make it work for Arm Compiler 6. I was about to try the image on pico, but the issue coming from elf2uf2 (built for win32) blocks me.
Please help. Thank you.

Ah, yes, it seems that elf2uf2 assumes that the ELF program header immediately follows the ELF file header, which it usually does (but doesn't have to)...
You can use SWD debug to download the ELF directly, or use https://github.com/microsoft/uf2/tree/master/utils to convert the BIN file to a UF2 as a workaround.
That said, your binary isn't going to work anyway, as it does not have a second stage boot from 0x10000000-0x10000100

Hi Kilograham,
What a quick reply!
I will try the bin2uf2 solution, thank you, and I hope the elf2uf2 issue could be fixed soon.
About the second stage boot, which files should I bring into compilation? do you have any suggestions?
Thank you in advance.

About the second stage boot, which files should I bring into compilation? do you have any suggestions?

That depends which board you're using, see https://github.com/raspberrypi/pico-sdk/tree/master/src/boards/include/boards
If you're using a Raspberry Pi Pico, see https://github.com/raspberrypi/pico-sdk/blob/master/src/boards/include/boards/pico.h#L67 and https://github.com/raspberrypi/pico-sdk/tree/master/src/rp2_common/boot_stage2

I am using Raspberry Pi Pico.
I will try https://github.com/raspberrypi/pico-sdk/blob/master/src/boards/include/boards/pico.h#L67 and https://github.com/raspberrypi/pico-sdk/tree/master/src/rp2_common/boot_stage2
Cheers.

There's also in-depth info about the boot stage 2 in section 2.8 of https://datasheets.raspberrypi.org/rp2040/rp2040-datasheet.pdf (which may be useful if you're rolling your own build system)

Yes, I am reading the sdk manual and rp2040 datasheet. I was trying to ignore those parts (to save time...), but it looks like I shouldn't.

By the way, the SDK manual is entirely focusing on CMake and provide limited information for people who want to use a different build system. For example, I thought Appendix D: Board Configuration might help, but it doesn't. It is sad.
If there is any chapter to help people understand the compilation relationship and how the header files are included (obviously there are plenty of decision makings are done by CMake), it will help a lot.
Don't you think people would like to try SDK on IAR, LLVM, arm compiler 5 and arm compiler 6? Not only to mention that the current version of arm GCC is way behind the LLVM, armcc and armclang in terms of performance and code size.
Cheers

I move the discussion about lack of documentation to a dedicated issue.
Let's focus on the uf2 conversion issue here.

I move the discussion about lack of documentation to a dedicated issue.

I transferred the issue to the feedback repo, raspberrypi/pico-feedback#176. Not an SDK issue.

sure

This was fixed by #512
(just adding this comment for cross-referencing purposes)


Citation key scope, editing, and repair

We had an interesting conversation a few weeks ago about what should happen to document text when a citation key is edited. It would be nice if all documents with citations using that citation key could update themselves. When thinking about a solution to this question, it became clear that we need to figure out if references are scoped to a document, project, or user. This issue is a long-term consideration but will have an impact on the backend so I'm filing now to ensure it's considered some time in the future.

Should we close this issue?
References are currently scoped by project, and we currently use the reference id in documents so the citation keys are automatically updated when editing them.
Exported files (markdown and bib) are not automatically updated and you need to be export them again


Considering replacing throttleRequestByServer with RequestsByServer

See 847fd9f74015b52f688f189bcfc2dc9e30924c5f
RequestsByServer allows checking to see if any requests will be allowed so, for example, we can sort requests before making any.  This is not important to expose now but perhaps will be of interest later.

Would be nice if Cesium exposed the ability for the application to manipulate the throttling behavior (say, by changing the current max requests allowed).  Would be useful for bandwidth-sensitive situations.

I made a small change in the nm branch awhile back to allow this:
https://github.com/AnalyticalGraphicsInc/cesium/commit/e9b0bae375d9db1570e8bc9624707b7aac0a5d30

I'm going to replace RequestsByServer with a more general, Cesium-wide, scheduler for throttling requests that ensures different parts of Cesium can't starve each other.


[Security] Workflow push.yml is using vulnerable action actions/checkout

The workflow push.yml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

@akulpillai is your team automating the closure of these issues?

@akulpillai I believe this to be mitigated, thanks for the heads up.


[Request for Protected var] page 9209 "Invt. Analys by Dim. Matrix" - ItemAnalysisView

We would like to request for a protected var ItemAnalysisView.
Signature:
protected var
    //A108F0000.Event18.03 protected var
    ItemAnalysisView: Record "Item Analysis View";

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


[Bug]: Control construktor doesn't work properly

What happened?
When creating a Control object it is permamently draggable even if you specify in the constructor it should be not.
What should have happened?
the control object should not be draggable
Code
const rowControl = new Control({
id: isFunctionalRow ? row_${rowID} : Nonfunctional_row_${i},
attributes: { x: 1, y: i + 1, width: totalWidth - 8, height: 1 },
children: widget,
draggable: false
});
Library Version
3.7.0
Node Version
20.17.0
What operating system are you using?
Other Linux
Terminal
zsh
Interest to fix the bug

[X] I would like to fix this bug!

Hey!
you need to set a proper height. if you set 1 you cannot hang to the shape of the control.
try to set 2 or more.
for example:
const {
  ConsoleManager,
  ConfirmPopup,
  InPageWidgetBuilder,
  Control
} = require("console-gui-tools");

//const si = require("systeminformation");
// si.currentLoad().then((data) => {
//   console.log(JSON.stringify(data));
// });

const opt = {
  title: "SYSTEM INFO", // Title of the console
  enableMouse: true, // Enable mouse support
};
const GUI = new ConsoleManager(opt);

const widget1 = new InPageWidgetBuilder()
widget1.addRow({ text: "┌────────┐", color: "yellow", style: "bold" })
widget1.addRow({ text: "│ START! │", color: "yellow", style: "bold" })
widget1.addRow({ text: "└────────┘", color: "yellow", style: "bold" })

/*const rowControl = */new Control({
  id: "fsd",
  attributes: { x: 80, y: 1, width: 20, height: 10 },
  children: widget1,
  draggable: true,
  visible: true,
});

GUI.on("exit", () => {
  closeApp();
});

GUI.on("keypressed", (key) => {
  switch (key.name) {
    case "q":
      new ConfirmPopup({
        id: "popupQuit",
        title: "Are you sure you want to quit?",
      })
        .show()
        .on("confirm", () => closeApp());
      break;
    default:
      break;
  }
});

const closeApp = () => {
  console.clear();
  process.exit();
};

GUI.refresh();

You can put height to 1, but check also the dynamic width.
You can't know if the children is bigger than the Control, the overflow is visible, so you need to check the size better.
The size is related to the draggable area.


Add Largest Sum Contiguous Subarray.c

👨💻 Changes proposed
Added Largest Sum Contiguous Subarray (Kadane's Algorithm)

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

@Kumar-laxmi  please review my PR and allow it to merge


Video black with mp4 url

Be sure to search for your issue before opening a new one.
Current Behavior
Player is showing black, nothing happening
Expected Behavior
Player to appear and playable as when I use a youtube src
Steps to Reproduce
https://codesandbox.io/s/blissful-dawn-9p6d7
I found this similar issue https://github.com/CookPete/react-player/issues/856 but doesn't seem to be solved

This seems to work on Firefox, I think your problems is that your mp4 video is served via http and this yields a Mixed Content error on the browser level. So not exactly the libraries fault.

Since the url you provided will be used by FilePlayer. So, In order to run your video, you ither have to enable controls which you can do by providing props:
<ReactPlayer url={src} controls />
@CookPete I think controls prop default value must be true.

Thanks @afzaalahmad, adding controls prop made it work


enh: tag filtering

Is your feature request related to a problem? Please describe.
Currently, users can only include tags when filtering conversations and cannot exclude specific tags from their results, limiting flexibility in viewing relevant conversations.
Describe the solution you'd like
Add a tag exclusion option in the filtering system, allowing users to exclude specific tags when filtering conversations, similar to how label filtering works in GitLab and GitHub.
Describe alternatives you've considered

Creating separate tag combinations

Additional context
Examples of desired functionality:

Show all conversations except those tagged with "Archived"
Display conversations tagged with "Project A" but exclude those also tagged with "Completed"

This feature would greatly improve the ability to focus on specific subsets of conversations by excluding irrelevant tags.

Partially implemented with search input refac, closing in favour of #6190


Config Render Support in Action

This adds support for rendering configuration elements inside action definitions for standalone actions and action-chains.

[x] Tests
[x] St2 Docs Update
[x] Changelog Update
[x] Explore Mistral Support

Codecov Report

Merging #3183 into master will increase coverage by -0.03%.

@@            Coverage Diff             @@
##           master    #3183      +/-   ##
==========================================
- Coverage    77.6%   77.57%   -0.03%
==========================================
  Files         432      432
  Lines       22318    22333      +15
==========================================
+ Hits        17318    17323       +5
- Misses       5000     5010      +10

Impacted Files
Coverage Δ

st2common/st2common/constants/pack.py
100% <100%> (ø)
:white_check_mark:

st2common/st2common/util/param.py
99.3% <100%> (+0.06%)
:white_check_mark:

st2api/st2api/controllers/v1/actionexecutions.py
89.66% <100%> (-0.78%)
:x:

st2actions/st2actions/container/base.py
89.47% <100%> (-1.11%)
:x:

st2debug/st2debug/utils/git_utils.py
72.73% <ø> (-18.18%)
:x:

...on/st2common/transport/connection_retry_wrapper.py
75% <ø> (-5.77%)
:x:

...ctions/st2actions/resultstracker/resultstracker.py
72.22% <ø> (-5.56%)
:x:

st2common/st2common/services/triggerwatcher.py
85.92% <ø> (-2.82%)
:x:

st2common/st2common/util/greenpooldispatch.py
91.3% <ø> (-2.17%)
:x:

st2api/st2api/controllers/v1/triggers.py
77.83% <ø> (-1.48%)
:x:

... and 17 more

Continue to review full report at Codecov.

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

Added StackStorm/st2docs PR StackStorm/st2docs#395

:+1:
For history, can you show a piece of yaml with complete action example?

@armab added full example to docs https://github.com/StackStorm/st2docs/pull/395/files#diff-157d9a0f26f16d59cb8468550a11f495R224

Overall, nice work :+1:
I added some small comments, but no major blockers from my side.
As far as tests go - there is a good amount of unit tests, but it would also be great to add, if possible, "end to end" integration test (perhaps in st2tests repo).

https://stackstorm.slack.com/archives/community/p1492201362523180

https://stackstorm.slack.com/archives/community/p1494869108843734

lakstorm pointed me here.
For me, my use case is that I'd like to configure some defaults, specifically a default_url and allow the end user or workflow to override it. I can do this in python code (if url is None: self.url = self.config['default_url']), but it would be nicer to have stackstorm handle this when I define the parameter.
My example would look something like this:
parameters:
    url:
      type: string
      default: "{{ config.default_url }}"
      description: Service URL

Today, I wanted to add an IntervalTimer trigger, and I wanted to have the delta set in configuration.
I think it would be advantageous to allow end-users of my pack to set the interval delta (and unit) in configuration instead of having to edit the pack's yaml file.
trigger:
  type: "core.st2.IntervalTimer"
  parameters:
    unit: "hours"
    delta: 20

Let's include this in v2.4.0 :+1:

Let's please also add a changelog entry and clarify what support for config values for actions means aka where those values are supported (default values for parameters inside action metadata, parameter values which are rendered during action execution time, action chain workflows context).


[closed] Deprecate toggleableActiveColor

toggleableActiveColor is used in bunch of widgets where colorScheme is not adopted.
This PR deprecates toggleableActiveColor and updates all the widgets to use the colorScheme property.

Deprecated toggleableActiveColor and added changes for dart fix
Updated Switch, & SwitchListTile
Updated Checkbox & CheckboxListTitle
Updated Radio and RadioListTile
( had to expected colors in the test since Colors.blue[600] (default value of toggleableActiveColor is slightly different blue than colorScheme.secondar)

This is breaking as it would make toggleableActiveColor not have any effect on the above widgets
Related https://github.com/flutter/flutter/pull/90317 and #91772
Fixes https://github.com/flutter/flutter/issues/93709
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Gold has detected about 1 new digest(s) on patchset 9.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 3 new digest(s) on patchset 10.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 1 new digest(s) on patchset 11.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 3 new digest(s) on patchset 12.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 5 new digest(s) on patchset 13.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 2 new digest(s) on patchset 14.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 3 new digest(s) on patchset 14.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 1 new digest(s) on patchset 15.
View them at https://flutter-gold.skia.org/cl/github/95870

@guidezpl
Resolved conflicsts, update branch and also updated deprecation to use beta release as in the wiki but still tests fails for deprecation notice
Do you have any suggestions here?

Gold has detected about 2 new digest(s) on patchset 16.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 4 new digest(s) on patchset 19.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 5 new digest(s) on patchset 20.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 5 new digest(s) on patchset 21.
View them at https://flutter-gold.skia.org/cl/github/95870

Gold has detected about 2 new digest(s) on patchset 22.
View them at https://flutter-gold.skia.org/cl/github/95870

@guidezpl
Here is the update, the deprecation guide is live
Here are the things I did with this PR

Fix doc reference for ColorScheme.
Updated the beta version in the deprecation message.
Resolve fix_data.yaml, flutter/test_fixes/material.dart, flutter/test_fixes/material.dart.expect conflicts (due to another depracation PR)
Updated dev/integration_tests/flutter_gallery/lib/gallery/themes.dart as it uses this color and it is deprecated and test was failing

Todo
After this lands, I will immediately file website PR to update timeline
Please let me know if there is anything else needed to land this, thank you!

I'm working on pre-migrating internal uses so this won't be a breaking change internally, will report back when done

After some investigation, unfortunately, this won't be able to land without some prerequisite work. Many teams have defined a toggleableActiveColor which isn't ColorScheme.secondary and so that color must be defined via component themes.
However, RadioListTile, SwitchListTile and CheckboxListTile don't use the relevant component themes in the same way that Radio, Switch, and Checkbox do, when they were introduced in https://github.com/flutter/flutter/pull/70311. So first, the three list tile components will have to be updated to utilize component themes.

Closing this for https://github.com/flutter/flutter/pull/97972

@TahaTesser, is this definitely landed in 3.7? I'd like to update the breaking changes page.

Hi @sfshaza2
Yes, I can confirm toggleableActiveColor deprecation is in the latest stable 3.7 release.


[harvest] Do not delete existing item images

Fixes https://jira.sng.sk/browse/WEBUMENIA-1405
Type of change

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

Checklist:

[x] I have updated the CHANGELOG
[x] I have requested at least 1 reviewer for this PR
[ ] I have made corresponding changes to the documentation

Looks good.!
Out of curiosity: could the processBelongsToMany and processHasMany methods be covered by Laravel's Eloquent relationships sometime in the future? (https://laravel.com/docs/7.x/eloquent-relationships)

I'd love to reduce unnecessary code on our side, but I'm not sure what do you mean by that.


[raft] server.rv.deny.vote: cause stale term

After restoring snapshots or load log
All master servers received a folder with metadata logs or snapshots with state.
But now the last index and last term are also updated
This leads to incorrect operation of the raft:
master1_1  | I0328 14:34:40     1 master_server.go:165] leader change event: master1:9334 =>
master1_1  | [raft]14:34:40.770336 [master1:9334 Term:305] server.deny.vote: cause out of date log:  master0:9333 Index :[ 147 ]  [ 46 ] Term :[ 304 ]  [ 5 ]
master1_1  | [raft]14:34:40.770449 [master1:9334 Term:305] server.loop.run  follower
master1_1  | [raft]14:34:40.770601 [master1:9334 Term:306] server.rv.vote:  master1:9334  votes for master2:9335 at term 306
master1_1  | [raft]14:34:40.771078 [master1:9334 Term:306] server.deny.vote: cause duplicate vote:  master0:9333  already vote for  master2:9335
master1_1  | [raft]14:34:40.771152 [master1:9334 Term:307] server.rv.vote:  master1:9334  votes for master2:9335 at term 307
master0_1  | [raft]14:34:40.771760 peer.vote.recv:  master0:9333 <- master1:9334
master0_1  | [raft]14:34:40.771835 [master0:9333 Term:306] server.candidate.vote: denied
master2_1  | [raft]14:34:40.772234 peer.vote.recv:  master2:9335 <- master1:9334
master2_1  | [raft]14:34:40.772362 [master2:9335 Term:307] server.candidate.vote.granted:  1
master2_1  | [raft]14:34:40.772407 [master2:9335 Term:307] server.candidate.recv.enough.votes
master2_1  | [raft]14:34:40.772582 [master2:9335 Term:307] server.loop.run  leader
master2_1  | [raft]14:34:40.772606 [master2:9335 Term:307] leaderLoop.set.PrevIndex to  147
master2_1  | I0328 14:34:40     1 master_server.go:165] leader change event:  => master2:9335
master2_1  | I0328 14:34:40     1 master_server.go:168] [ master2:9335 ] master2:9335 becomes leader.
master2_1  | [raft]14:34:40.773033 peer.heartbeat:  master0:9333 1.221923286s
master2_1  | [raft]14:34:40.773384 peer.heartbeat:  master1:9334 1.221923286s
master2_1  | [raft]14:34:40.773610 [master2:9335 Term:307] server.command.process
master2_1  | [raft]14:34:40.776047 peer.heartbeat.flush:  master1:9334
master2_1  | [raft]14:34:40.776092 log.entriesAfter.partial:  147   0x1aa6500
master2_1  | [raft]14:34:40.776112 log.entriesAfter: startIndex: 116  length 32
master2_1  | [raft]14:34:40.776128 peer.append.send: master2:9335->master1:9334 [prevLog:147 length: 1]
master2_1  | [raft]14:34:40.776166 peer.heartbeat.flush:  master0:9333
master2_1  | [raft]14:34:40.776188 log.entriesAfter.partial:  147   0x1aa6500
master2_1  | [raft]14:34:40.776208 log.entriesAfter: startIndex: 116  length 32
master2_1  | [raft]14:34:40.776250 peer.append.send: master2:9335->master0:9333 [prevLog:147 length: 1]
master1_1  | [raft]14:34:40.776793 log.truncate:  147
master1_1  | I0328 14:34:40     1 master_server.go:165] leader change event:  => ma

@chrislusf I still don't know what to do with it
can be played locally use PR https://github.com/chrislusf/seaweedfs/pull/2832:
local-cluster-compose.yml:
version: '2'

# s3cmd --no-ssl  --host=<IP_ADDRESS>:8333 mb s3://test3
services:
  master0:
    image: chrislusf/seaweedfs:local
    ports:
      - 9333:9333
      - 19333:19333
    command: "-v=4 master -mdir /data -volumeSizeLimitMB 100 -resumeState=true -heartbeatInterval=1000ms -electionTimeout=3s -ip=master0 -port=9333 -peers=master0:9333,master1:9334,master2:9335"
    volumes:
      - ./master/0:/data
    environment:
      WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
      WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
      WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
  master1:
    image: chrislusf/seaweedfs:local
    ports:
      - 9334:9334
      - 19334:19334
    command: "-v=4 master -mdir /data -volumeSizeLimitMB 100 -resumeState=true -heartbeatInterval=1000ms -electionTimeout=3s -ip=master1 -port=9334 -peers=master0:9333,master2:9335"
    volumes:
      - ./master/1:/data
    environment:
      WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
      WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
      WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
  master2:
    image: chrislusf/seaweedfs:local
    ports:
      - 9336:9335
      - 19336:19335
    command: "-v=4 master -mdir /data -volumeSizeLimitMB 100 -resumeState=true -heartbeatInterval=1000ms -electionTimeout=3s -ip=master2 -port=9335 -peers=master0:9333,master1:9334"
    volumes:
      - ./master/2:/data
    environment:
      WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
      WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
      WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
  volume1:
    image: chrislusf/seaweedfs:local
    ports:
      - 8080:8080
      - 18080:18080
    command: 'volume -dataCenter=dc1 -rack=v1 -mserver="master0:9333,master1:9334,master3:9336" -port=8080 -ip=volume1 -publicUrl=localhost:8080 -preStopSeconds=1'
    depends_on:
      - master0
      - master1
  volume2:
    image: chrislusf/seaweedfs:local
    ports:
      - 8082:8082
      - 18082:18082
    command: 'volume -dataCenter=dc2 -rack=v2 -mserver="master0:9333,master1:9334,master3:9336" -port=8082 -ip=volume2 -publicUrl=localhost:8082 -preStopSeconds=1'
    depends_on:
      - master0
      - master1
  volume3:
    image: chrislusf/seaweedfs:local
    ports:
      - 8083:8083
      - 18083:18083
    command: 'volume -dataCenter=dc3 -rack=v3 -mserver="master0:9333,master1:9334,master3:9336" -port=8083 -ip=volume3 -publicUrl=localhost:8083 -preStopSeconds=1'
    depends_on:
      - master0
      - master1
  filer:
    image: chrislusf/seaweedfs:local
    ports:
      - 8888:8888
      - 18888:18888
      - 8111:8111
      - 8333:8333
    command: 'filer -defaultReplicaPlacement=100 -iam -master="master0:9333,master1:9334,master3:9335" -s3'
    depends_on:
      - master0
      - master1
      - volume1
      - volume2

make cluster
Send TERM to all masters for make snapshots

docker kill -s TERM seaweedfs_master0_1
docker kill -s TERM seaweedfs_master1_1
docker kill -s TERM seaweedfs_master2_1

ctrl+C and make cluster

It seems useful to study https://developpaper.com/snapshot-of-raft-algorithm/

@chrislusf this is fix
https://github.com/chrislusf/seaweedfs/pull/2831
leads to the problem in this issue

@chrislusf How about to be able to connect an external KV store for maxVolumeId ?
PS. I do not see the strength in myself to repair the statemachine in the raft

I am following the steps to reproduce. I do not see "cause stale term" now. Maybe because this is fixed?

I am following the steps to reproduce. I do not see "cause stale term" now. Maybe because this is fixed?

It is important to make sure that snapshots were created and there were changes in the raft logs.  I just created some buckets before the kill.

In any case, the current raft does not look like a working one if it is launched without a bootstrap


Bug in print2eps.m, lost '*_text_handles' after line 255

The 'black_text_handles' and 'white_text_handles' are cleared after Line255. It happens when CursorModel enabled.
Line254:   % Print to eps file
Line255:    print(fig, options{:}, name);
Fix: redo findall() '*text_handles'
% Find the white and black text
black_text_handles = findall(fig, 'Type', 'text', 'Color', [0 0 0]);
white_text_handles = findall(fig, 'Type', 'text', 'Color', [1 1 1]);
% Set the font colors slightly off their correct values
set(black_text_handles, 'Color', [0 0 0] + eps);
set(white_text_handles, 'Color', [1 1 1] - eps);
Then everything works well!

Fixed - please recheck


Live stream duration

We have tested the live IVS stream URL, but we did not get the duration of that stream URL.
If we use the same URL in AVPlayerViewcontroller we got duration with buffer data. how can we achieve to get duration and buffer data in IVS player?  Kindly suggest

Hello, thanks for filing an issue. When playing a live stream, the duration property of IVSPlayer will return the constant CMTime.indefinite. The buffer duration can be obtained by subtracting the player's current position from the buffered property.
For example:
let isLive = player.duration.isIndefinite              // `true` if this is a live stream, `false` otherwise
let bufferDuration = player.buffered - player.position // `CMTime` representing the buffer duration

Thanks!

@ryanecrist Thanks for the reply.
We have checked your feedback, it did not give a total duration.
We are using the DVR+Live URL  For example https://...........Stream1/playlist.m3u8?DVR. This url contains 1 hour recorded plus appending live video content. So we are actually trying to seek a particular time for that video content (eg: 55:05 to 22:05)  but in IVS player it starts from 0,1,2,3 CMTime sec in the periodic observer callback.  So how do I achieve to get the played total duration? kindly suggest.

Can you please provide a code sample and describe where functionality is missing or the results are different? Thank you.

Thanks for the response.
Please find the below scenario which we are trying to achieve.

As I mentioned in the previous comment. This URL contains 1 hour recorded plus appending live video content ( https://...........stream1/playlist.m3u8?DVR.)

We have tried the above URL in IVS player which is giving Indefinite (LIVE)   with a timer starting of (00:00:01)  and the duration which we are not able to access past 1-hour duration content. please find the SCREEN_SHOT_IVS.png

If we use that URL in AVPlayercontroller which is giving 1 hour of past buffered content plus live so I can drag back the slider and see old video content. please find the SCREEN_SHOT_AVPLAYERCONTROLLER

.png

How can  I achieve to get the 1-hour past buffered duration to seek back the video content in the IVS player?

Hello,
In order to help us further investigate, can you provide a code sample and test stream that reproduces the issue?
We appreciate your patience, thanks.

Closing this due to lack of activity. Please reopen if the issue still persists, thanks!


Unhandled exception handler

Summary of the Pull Request
What is this about:
Log exception and stack trace in case it is not handled. This implementation is specific for x64. For stack walking, we use StackWalk64.
What is include in the PR:

Log exception and stack trace in case of unhandled exception
Log stack trace in case of abort

How does someone test / validate:

Throw an exception in code and check if stack trace is logged. Check both main and keyboard hook
Check debug and release versions

Quality Checklist

[ ] Linked issue: #xxx
[ ] Communication: I've discussed this with core contributors in the issue.
[ ] Tests: Added/updated and all pass
[ ] Installer: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Docs: Added/ updated
[ ] Binaries: Any new files are added to WXS / YML

[ ] No new binaries
[ ] YML for signing for new binaries
[ ] WXS for installer for new binaries

Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.

Let's stop using _ in file names, and use CamelCase instead.

@mykhailopylyp
can you show in a PR comment an example of output?


Morphosemantic Database

per @vcvpaiva's request.
add morphosemantic relations, described here https://wordnet.princeton.edu/wordnet/download/standoff/
copy/paste:
Morphosemantic Database
Links among noun and verb synsets containing words that share an underlying meaning and are derivationally related. The morphosemantic database (semantic relations between morphologically related nouns and verbs) for WordNet3.0 contains derivational links connecting noun and verb senses, e.g., employment#n1-employ#v2. morphosemantic-links.xls repeats these links, but also give the semantic type of the relationship. The database uses 14 semantic relations, as listed in the README file, and can be downloaded from http://wordnetcode.princeton.edu/standoff-files/morphosemantic-links.xls.

Please, let us talk first!

will merge with #28


Second assertion test format seems wrong for the Bonfire:Convert HTML Entities challenge

Challenge http://www.freecodecamp.com/challenges/bonfire-convert-html-entities has an issue. Please describe how to reproduce it, and include links to screen shots if possible.
Below is the test structure for the second code test:
assert.strictEqual('<>', '<>', 'should escape characters');should escape characters: expected '<>' to equal '<>'
I believe the assertion strictEqual is missing the convert function part.  I believe it should contain the following code assertion:
assert.strictEqual(convert('<>'), '<>', 'should escape characters');

Thank you for looking into the issue.

This is a duplicate of #1062, please keep discussion in there and close this issue. Thank you :)


[Console-IoT] Add ID to IoT device module

Type of change

Refactoring

Description
Add ID to IoT device module
Checklist

[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[ ] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

Can one of the admins verify this patch?


Locale strings not getting generated for frontend translation strings whose context is passed in multiple lines

The locale strings are missing for translation strings whose context is passed in multiple lines.
Example
return i18n.t("Password should be at least __length__ characters long", {
    length: min_length,
});

const message = i18n.t('Alert word "__word__" added successfully!', {
    word: words_to_be_added[0],
});

return i18n.t("Message #__- stream_name__ > __- topic_name__", {
    stream_name: opts.stream,
    topic_name: opts.topic,
});

return i18n.t("Message __- recipient_name__ (__- recipient_status__)", {
    recipient_name: recipient_names,
    recipient_status: status,
});

All the strings that have their context passed in the same line has their locale strings generated correctly
Examples.
return i18n.t("Message #__- stream_name__", {stream_name: opts.stream});

return i18n.t("Message __- recipient_names__", {recipient_names});

The bug here is that we do our own parsing in manage.py makemessages, and that parsing is structurally wrong:
regexes = [
 r"{{#tr .*?}}([\s\S]*?){{/tr}}",  # '.' doesn't match '\n' by default
    r'{{\s*t "(.*?)"\W*}}',
    r"{{\s*t '(.*?)'\W*}}",
    r'\(t "(.*?)"\)',
    r'=\(t "(.*?)"\)(?=[^{]*}})',
    r"=\(t '(.*?)'\)(?=[^{]*}})",
    r"i18n\.t\('([^']*?)'\)",
    r"i18n\.t\('(.*?)',\s*.*?[^,]\)",
    r'i18n\.t\("([^"]*?)"\)',
    r'i18n\.t\("(.*?)",\s*.*?[^,]\)',
]

I think https://github.com/zulip/zulip/pull/16110 was an effort at fixing that; and I think there was a better approach discussed that involved using a library (i18next should provide something for this).  @aero31aero would remember, though I haven't seen him in a little while, so hopefully he sees this and can help!

This is fixed by #18075, which replaces the frontend translation library with FormatJS, which also comes with a translation discovery library that is less hacky than what we were using before (and thus doesn't have bugs like this).  A few dozen strings that had been tagged for translation but were missing from translation data were made available by this.


Debug the issue that crash frequently in SkyrimVR

As the title.
Attach to SkyrimVR.exe to debug.

Call Hook_Loop() in BSTEventSink<InputEvent>::ReceiveEvent() has thread safe issue in SkyrimVR. Since I don't know how to add a lock or fix it, I return the old implementation:
https://github.com/YihaoPeng/DragonbornSpeaksNaturally/commit/18d4f911e2ce9f1f23f8d9ef993b664fe55b76cd


ARTEMIS-4641 Support events for add of missing federation resources

When an AMQP federation instance attempts to federate an address or queue it can fail if the remote address or queue is not present or cannot be created based on broker policy. A federation link can also closed if the federated resource is removed from the remote broker by management etc. In those cases the remote broker should note the resources that were targets of federation and send alerts to the source federation broker to notify it that these resources become available for federation and the source should attempt again to create federation links if demand still exists. This allows an AMQP federation instance to heal itself based on updates from the remote.

I've run the full test suite with these changes.

Made the cleanups requested and rebased.  Ran all AMQP federation tests again and all passed.


Display pending verifiable credentials

Purpose
Display pending verifiable credentials.
Changes

Add session storage for verifiable credential metadata.
Use session stored metadata if credentialEntry is missing.
Catch some errors in VC hooks.

Checklist

[x] My code follows the style of this project.
[x] The code compiles without warnings.
[x] I have performed a self-review of the changes.
[x] I have documented my code, in particular the intent of the
hard-to-understand areas.
[x] (If necessary) I have updated the CHANGELOG.

If I press the pending credential to see its details, then I get shown blank content.


jenkins initial configuration fail due to "started by anonymous user"

Not sure if I need to restart from scratch.

I uninstall and re-installed PIC-SURE and this time jenkins starts as admin. I ran the iniitial config and build step and the step has been executing for more than 12 hours. I am not sure if the process has been stalled,

We started from a fresh VM and get passed the initial configuration step. However, the email address cannot be used to login, not sure where to check. Note that  re-running in jenkins "set admin email" does not seem to help.

Hi @BoPeng can you please share the logs that show once you login. They can be found in the wildfly docker. sudo docker logs -f wildfly
You may also see something in the network tab in devtools for the authorization call.

19:37:53,884 WARN  [edu.harvard.hms.dbmi.avillach.auth.service.auth.AuthenticationService] (default task-1) Failed to authenticate.  Retrying
19:37:54,109 WARN  [org.apache.http.client.protocol.ResponseProcessCookies] (default task-1) Invalid cookie header: "Set-Cookie: did=s%3Av0%3A9b90c950-92b0-11ed-b403-5b6a74c724fa.a0ycCoueVg%2FhkP60C1YDaMJamUeoSiOAj%2BJ1jXWzL3Q; Max-Age=31557600; Path=/; Expires=Sat, 13 Jan 2024 01:37:54 GMT; HttpOnly; Secure; SameSite=None". Invalid 'expires' attribute: Sat, 13 Jan 2024 01:37:54 GMT
19:37:54,110 WARN  [org.apache.http.client.protocol.ResponseProcessCookies] (default task-1) Invalid cookie header: "Set-Cookie: did_compat=s%3Av0%3A9b90c950-92b0-11ed-b403-5b6a74c724fa.a0ycCoueVg%2FhkP60C1YDaMJamUeoSiOAj%2BJ1jXWzL3Q; Max-Age=31557600; Path=/; Expires=Sat, 13 Jan 2024 01:37:54 GMT; HttpOnly; Secure". Invalid 'expires' attribute: Sat, 13 Jan 2024 01:37:54 GMT
19:37:54,110 ERROR [edu.harvard.hms.dbmi.avillach.auth.service.auth.AuthenticationService] (default task-1) getToken() cannot find user_id by retrieveUserInfo(), return json response: {"sub":"google-oauth2|107783506330274448378","given_name":"Bo","family_name":"Peng","nickname":"ictr.bpeng","name":"Bo Peng","picture":"https://lh3.googleusercontent.com/a/AEdFTp5inL92TTlOLDTFK-jdH5tHTX0BkcDT2ozHLHw4=s96-c","locale":"en","updated_at":"2023-01-12T19:37:53.163Z","email":"ictr.bpeng@gmail.com","email_verified":true}

mysql> select * from user;
+------------------------------------+----------------+----------------------------------+-------------+------------------------------------+----------------------+------------------+---------+----------------------+-----------------+
| uuid                               | auth0_metadata | general_metadata                 | acceptedTOS | connectionId                       | email                | matched          | subject | is_active            | long_term_token |
+------------------------------------+----------------+----------------------------------+-------------+------------------------------------+----------------------+------------------+---------+----------------------+-----------------+
| 0x1CB5E16A75E54F229C141507DAE157F4 | NULL           |<EMAIL_ADDRESS>| NULL        | 0x97FD002DC366B0D8420F998F885D0ED7 |<EMAIL_ADDRESS>| 0x00             | NULL    | 0x01                 | NULL            |
| 0x2C622AB4A401470AB6F770D45751F6FD | NULL           |<EMAIL_ADDRESS>| NULL        | 0x97FD002DC366B0D8420F998F885D0ED7 |<EMAIL_ADDRESS>| 0x00             | NULL    | 0x01                 | NULL            |
| 0x9F422202EAF34F45B87010E2505AC226 | NULL           |<EMAIL_ADDRESS>| NULL        | 0x97FD002DC366B0D8420F998F885D0ED7 |<EMAIL_ADDRESS>| 0x00             | NULL    | 0x01                 | NULL            |
| 0xBA43730811D14E44B339ABB33D61513E | NULL           |<EMAIL_ADDRESS>| NULL        | 0x97FD002DC366B0D8420F998F885D0ED7 |<EMAIL_ADDRESS>| 0x00             | NULL    | 0x01                 | NULL            |
+------------------------------------+----------------+----------------------------------+-------------+------------------------------------+----------------------+------------------+---------+----------------------+-----------------+
4 rows in set (0.00 sec)

That error usually occurs when Auth0 isn't configured as pic-sure expects. Are you using your own Auth0 connection? Can you please check to make sure that the following settings are turned OFF:

Use Auth0 instead of the IdP to do Single Sign On (under Application Properties)
OIDC (Advanced -> OAuth)

I did not touch SSO and not sure where to set the IdP. I have turned off ODIC. I still get the same authentication error, where nothing appears to be wrong for the login according to auth0 dashboard

Can we have a zoom meeting so that I can show you my auth0 dashboard?

@BoPeng We can set something up. In the meantime, these settings are under the application section not users.
So the url would be something like: https://manage.auth0.com/dashboard/us/[your-organization-name]/applications/[your-client-id]/settings
This is the same location where you would have had to put your call back url.

@JamesPeck I looked under applications but could not find the SSO setting so I guess a zoom meeting is our best option now. I am available any time today except for lunch time (noon to 1pm CST) so please send an invite to<EMAIL_ADDRESS>if you are available.

According to the auth0 documentation: https://auth0.com/docs/get-started/applications/application-settings

I do not quite understand what it says, @JamesPeck do you know if this option matters?

Also, I do not know if it matters but I chose "Java EE" as the technology for this application.

User has reported that this issue is resolved. Closing this issue.

User has reported that this issue is resolved. Closing this issue.


Are these instructions still valid?

Hi,
Do the instructions on this page still work?
I can get the test working if I do not get the username and password from Azure Key Vault, but I always get the following error when using Key Vault:

Message:
Test method CarterBrown.Tracker.Internal.UITests.Project1Tests.WhenMipAuthenticationRopcLogin_MsGraphCallSucceeds threw exception:
Azure.Identity.AuthenticationFailedException: Azure CLI authentication failed due to an unknown error. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/azclicredential/troubleshoot ERROR: AADSTS700082: The refresh token has expired due to inactivity.áThe token was issued on 2023-03-29T13:57:09.8239350Z and was inactive for 90.00:00:00.
Trace ID: fd133f60-cb97-42e7-a126-80a62ca90b00
Correlation ID: ffce0a01-dccd-4b62-a3fa-2ce9deeeaee0
Timestamp: 2023-06-28 14:49:55Z
Interactive authentication is needed. Please run:
az login --scope https://vault.azure.net/.default
Stack Trace:
AzureCliCredential.RequestCliAccessTokenAsync(Boolean async, TokenRequestContext context, CancellationToken cancellationToken)
AzureCliCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage)
AzureCliCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
TaskExtensions.EnsureCompleted[T](ValueTask'1 task)
AzureCliCredential.GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken)
DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage)
DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
<26 more frames...>
HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory'1 pipeline)
HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory'1 pipeline)
HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory'1 pipeline)
HttpPipeline.Send(HttpMessage message, CancellationToken cancellationToken)
HttpPipeline.SendRequest(Request request, CancellationToken cancellationToken)
KeyVaultPipeline.SendRequest(Request request, CancellationToken cancellationToken)
KeyVaultPipeline.SendRequest[TResult](RequestMethod method, Func'1 resultFactory, CancellationToken cancellationToken, String[] path)
SecretClient.GetSecret(String name, String version, CancellationToken cancellationToken)
Project1Tests.WhenMipAuthenticationRopcLogin_MsGraphCallSucceeds() line 149
ThreadOperations.ExecuteWithAbortSafety(Action action)

Is there an incompatibility between "AadAuthorityAudience": "AzureAdMultipleOrgs", and the authentication requirements of the Azure Key Vault SecretClient!?
Regards,
Mark

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

ID: 7eeaaf94-5ef0-c43d-d3c2-e03812cbf698
Version Independent ID: 3d638b5b-525b-178e-8bcb-7af0b7fc316a
Content: Run automated integration tests - Microsoft Entra
Content Source: articles/active-directory/develop/test-automate-integration-testing.md
Service: active-directory
Sub-service: develop
GitHub Login: @cilwerner
Microsoft Alias: cwerner

@MChez
Based on the error message you provided, it appears that the Azure CLI authentication failed due to an expired refresh token. The error message suggests running the command "az login --scope https://vault.azure.net/.default" for interactive authentication.
To determine if there is an incompatibility between "AadAuthorityAudience": "AzureAdMultipleOrgs" and the authentication requirements of the Azure Key Vault SecretClient, you would need to review the documentation and specifications of both the AadAuthorityAudience configuration and the SecretClient.
The document reference you provided seems to be unrelated to the specific error you encountered. It is a Microsoft documentation page about testing and automating integration testing in Azure Active Directory development.
To resolve the issue with the expired refresh token, you can try running the suggested command "az login --scope https://vault.azure.net/.default" in your Azure CLI to perform interactive authentication. This should allow you to refresh the token and continue with the authentication process.
Additionally, you may want to check if there are any updates or changes in the Azure Key Vault or Azure Active Directory services that could affect the authentication process.
Regarding your question about the compatibility between "AadAuthorityAudience": "AzureAdMultipleOrgs" and the authentication requirements of the Azure Key Vault SecretClient, there should not be any incompatibility between the two. The "AadAuthorityAudience": "AzureAdMultipleOrgs" setting specifies that the application can authenticate users from multiple Azure AD tenants, while the Azure Key Vault SecretClient requires authentication using a client ID and client secret or a certificate.
To use Azure Key Vault with Azure AD authentication, you can use the DefaultAzureCredential class from the Azure.Identity library. This class automatically tries different authentication methods, such as environment variables, managed identity, and Azure CLI, to obtain an access token for the specified resource.
Here is an example of how to use DefaultAzureCredential to authenticate with Azure Key Vault:
var keyVaultUrl = "https://.vault.azure.net/";
var secretName = "";
var client = new SecretClient(new Uri(keyVaultUrl), new DefaultAzureCredential());
var secret = client.GetSecret(secretName);
Console.WriteLine($"Secret value: {secret.Value}");
Please replace  and  with the appropriate values for your environment.
I hope this helps. Let me know if you have any further questions.


Web issue: Unexpected Null Value during a schedule callback in DevTools

══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown during a scheduler callback:
'<Unexpected Null Value>'
method not found
Receiver: null
Arguments: []

When the exception was thrown, this was the stack:
package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 194:49      throw_
package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 35:3        throwNullValueError
package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 462:39  _notNull
package:build_web_compilers/lib/_engine/engine/dom_canvas.dart 95:39                      drawRect
package:build_web_compilers/lib/_engine/engine/recording_canvas.dart 775:11               apply
package:build_web_compilers/lib/_engine/engine/recording_canvas.dart 77:22                apply
package:build_web_compilers/lib/_engine/engine/surface/picture.dart 223:29                [_applyDomPaint]
package:build_web_compilers/lib/_engine/engine/surface/picture.dart 213:7                 applyPaint
package:build_web_compilers/lib/_engine/engine/surface/picture.dart 525:5                 [_applyPaint]
package:build_web_compilers/lib/_engine/engine/surface/picture.dart 538:5                 apply
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 644:5                 build
package:build_web_compilers/lib/_engine/engine/surface/picture.dart 544:11                build
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 959:14                build
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 959:14                build
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 959:14                build
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1215:19               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/clip.dart 99:11                    update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/clip.dart 99:11                    update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/clip.dart 99:11                    update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/clip.dart 306:11                   update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1204:17               [_updateManyToMany]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 993:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/offset.dart 45:11                  update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/transform.dart 42:11               update
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 1108:15               [_updateManyToOne]
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 989:7                 update
package:build_web_compilers/lib/_engine/engine/surface/scene_builder.dart 468:23          build
package:flutter/src/rendering/layer.dart 767:35                                           buildScene
package:flutter/src/rendering/view.dart 227:36                                            compositeFrame
package:flutter/src/rendering/binding.dart 347:16                                         drawFrame
package:flutter/src/widgets/binding.dart 782:13                                           drawFrame
package:flutter/src/rendering/binding.dart 283:5                                          [_handlePersistentFrameCallback]
package:flutter/src/scheduler/binding.dart 1047:15                                        [_invokeFrameCallback]
package:flutter/src/scheduler/binding.dart 986:9                                          handleDrawFrame
package:flutter/src/scheduler/binding.dart 902:5                                          [_handleDrawFrame]
package:build_web_compilers/lib/_engine/engine.dart 176:21                                <fn>
════════════════════════════════════════════════════════════════════════════════════════════════════

Doctor:
$ flutter doctor
[✓] Flutter (Channel master, v1.10.15-pre.344, on Mac OS X 10.14.6 18G87, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] Android Studio (version 3.5)
[✓] Android Studio
[✓] IntelliJ IDEA Community Edition (version 2019.1.3)
[✓] Connected device (3 available)

@DaveShuckerow :  When a shader is set on rect, we were incorrectly using dom_canvas which throws exception, that bug is fixed. Please reopen if you still see issue.

test

Reopening this issue, as there's new instance of same error observed by @AbdulRafaySiddiqui on latest master.

The original issue is pretty old. We'll need a new repro case for the new issue. Can you please file a new issue so there's higher signal to noise ratio.


sqlite:cuid():called Result::unwrap() on an Err value: FingerprintError("Could not retrieve hostname")

Hi Prisma Team! My Prisma Client just crashed. This is the report:
Versions

Name
Version

Node
v16.16.0

OS
windows

Prisma Client
4.2.1

Query Engine
2920a97877e12e055c1333079b8d19cee7f33826

Database
sqlite

Logs
prisma:tryLoadEnv Environment variables loaded from D:\workspace\lunwen4\test-remix1\.env
prisma:tryLoadEnv Environment variables loaded from D:\workspace\lunwen4\test-remix1\.env
prisma:client dirname D:\workspace\lunwen4\test-remix1\node_modules\.prisma\client
prisma:client relativePath ..\..\..\prisma
prisma:client cwd D:\workspace\lunwen4\test-remix1\prisma
prisma:client clientVersion 4.2.1
prisma:client clientEngineType library
prisma:client:libraryEngine internalSetup
prisma:client:libraryEngine:loader Searching for Query Engine Library in D:\workspace\lunwen4\test-remix1\node_modules\.prisma\client
prisma:client:libraryEngine:loader loadEngine using D:\workspace\lunwen4\test-remix1\node_modules\.prisma\client\query_engine-windows.dll.node
prisma:client:libraryEngine sending request, this.libraryStarted: false
prisma:client:libraryEngine library starting
prisma:client:libraryEngine library started
prisma:client:request_handler {"code":"P2025","clientVersion":"4.2.1","meta":{"cause":"Record to delete does not exist."}}
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true

Client Snippet
// PLEASE FILL YOUR CODE SNIPPET HERE
const { PrismaClient } = require("@prisma/client");

const bcrypt = require("bcryptjs");

const prisma = new PrismaClient();

async function seed() {
  const email =<EMAIL_ADDRESS>
  // cleanup the existing database
  await prisma.user.delete({ where: { email } }).catch(() => {
    // no worries if it doesn't exist yet
  });

  const hashedPassword = await bcrypt.hash("racheliscool", 10);
  const ds = await prisma.user.findMany();
  ds.forEach((f) => console.log(f));
  console.log({
    email,
    password: {
      create: {
        hash: hashedPassword,
      },
    },
  });
  const user = await prisma.user.create({
    data: {
      email,
      password: {
        create: {
          hash: hashedPassword,
        },
      },
    },
  });

  await prisma.note.create({
    data: {
      title: "My first note",
      body: "Hello, world!",
      userId: user.id,
    },
  });

  await prisma.note.create({
    data: {
      title: "My second note",
      body: "Hello, world!",
      userId: user.id,
    },
  });

  console.log(`Database has been seeded. 🌱`);
}

seed()
  .catch((e) => {
    console.error(e);
    process.exit(1);
  })
  .finally(async () => {
    await prisma.$disconnect();
  });

Schema
datasource db {
  provider = "sqlite"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

model User {
  id    Int @id @default(autoincrement())
  email String @unique
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  password Password?
  notes    Note[]
}

model Password {
  hash String

  user   User   @relation(fields: [userId], references: [id], onDelete: Cascade, onUpdate: Cascade)
  userId Int @unique
}

model Note {
  id    String @id @default(cuid())
  title String
  body  String

  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  user   User   @relation(fields: [userId], references: [id], onDelete: Cascade, onUpdate: Cascade)
  userId Int
}

Prisma Engine Query
{"X":{}}

full error

D:\workspace\lunwen4\test-remix1>npx prisma db seed
Environment variables loaded from .env
Running seed command `node --require tsconfig-paths/register prisma/seed.js` ...
{
  email<EMAIL_ADDRESS>  password: {
    create: {
      hash: '$2a$10$1XzAqhH8x3XI0VL/Jr4voufpwdzvTwDZFFyOYtMnAGKvxLDfotbQe'
    }
  }
}
Database has been seeded. 🌱

The seed command has been executed.

D:\workspace\lunwen4\test-remix1>npx prisma db seed
Environment variables loaded from .env
Running seed command `node --require tsconfig-paths/register prisma/seed.js` ...
{
  email<EMAIL_ADDRESS>  password: {
    create: {
      hash: '$2a$10$qiZ6BIuMPcaBzsZTJ7H3ieodAxaE2nVVrQHnE9c0LdBKCc60oGs.a'
    }
  }
}
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: FingerprintError("Could not retrieve hostname")', C:\Users\runneradmin\.cargo\git\checkouts\cuid-rust-05420f73eb18afd9\1637fd2\src\lib.rs:29:65
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
PrismaClientRustPanicError:
Invalid `prisma.note.create()` invocation in
D:\workspace\lunwen4\test-remix1\prisma\seed.js:37:21

  34   },
  35 });
  36
→ 37 await prisma.note.create(
  called `Result::unwrap()` on an `Err` value: FingerprintError("Could not retrieve hostname")

This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.

https://github.com/prisma/prisma/issues/new?body=Hi+Prisma+Team%21+My+Prisma+Client+just+crashed.+This+is+the+report%3A%0A%23%23+Versions%0A%0A%7C+Name++++++++++++%7C+Version++++++++++++%7C%0A%7C-----------------%7C--------------------%7C%0A%7C+Node++++++++++++%7C+v16.16.0+++++++++++%7C+%0A%7C+OS++++++++++++++%7C+windows++++++++++++%7C%0A%7C+Prisma+Client+++%7C+4.2.1++++++++++++++%7C%0A%7C+Query+Engine++++%7C+2920a97877e12e055c1333079b8d19cee7f33826%7C%0A%7C+Database++++++++%7C+sqlite+++++++++++++%7C%0A%0A%0A%0A%23%23+Logs%0A%60%60%60%0Aprisma%3AtryLoadEnv+Environment+variables+loaded+from+D%3A%5Cworkspace%5Clunwen4%5Ctest-remix1%5C.env%0Aprisma%3AtryLoadEnv+Environment+variables+loaded+from+D%3A%5Cworkspace%5Clunwen4%5Ctest-remix1%5C.env%0Aprisma%3Aclient+dirname+D%3A%5Cworkspace%5Clunwen4%5Ctest-remix1%5Cnode_modules%5C.prisma%5Cclient%0Aprisma%3Aclient+relativePath+..%5C..%5C..%5Cprisma%0Aprisma%3Aclient+cwd+D%3A%5Cworkspace%5Clunwen4%5Ctest-remix1%5Cprisma%0Aprisma%3Aclient+clientVersion+4.2.1%0Aprisma%3Aclient+clientEngineType+library%0Aprisma%3Aclient%3AlibraryEngine+internalSetup%0Aprisma%3Aclient%3AlibraryEngine%3Aloader+Searching+for+Query+Engine+Library+in+D%3A%5Cworkspace%5Clunwen4%5Ctest-remix1%5Cnode_modules%5C.prisma%5Cclient%0Aprisma%3Aclient%3AlibraryEngine%3Aloader+loadEngine+using+D%3A%5Cworkspace%5Clunwen4%5Ctest-remix1%5Cnode_modules%5C.prisma%5Cclient%5Cquery_engine-windows.dll.node%0Aprisma%3Aclient%3AlibraryEngine+sending+request%2C+this.libraryStarted%3A+false%0Aprisma%3Aclient%3AlibraryEngine+library+starting%0Aprisma%3Aclient%3AlibraryEngine+library+started%0Aprisma%3Aclient%3Arequest_handler+%7B%22code%22%3A%22P2025%22%2C%22clientVersion%22%3A%224.2.1%22%2C%22meta%22%3A%7B%22cause%22%3A%22Record+to+delete+does+not+exist.%22%7D%7D%0Aprisma%3Aclient%3AlibraryEngine+sending+request%2C+this.libraryStarted%3A+true%0Aprisma%3Aclient%3AlibraryEngine+sending+request%2C+this.libraryStarted%3A+true%0Aprisma%3Aclient%3AlibraryEngine+sending+request%2C+this.libraryStarted%3A+true%0A%60%60%60%0A%0A%23%23+Client+Snippet%0A%60%60%60ts%0A%2F%2F+PLEASE+FILL+YOUR+CODE+SNIPPET+HERE%0A%60%60%60%0A%0A%23%23+Schema%0A%60%60%60prisma%0A%2F%2F+PLEASE+ADD+YOUR+SCHEMA+HERE+IF+POSSIBLE%0A%60%60%60%0A%0A%23%23+Prisma+Engine+Query%0A%60%60%60%0A%7B%22X%22%3A%7B%7D%7D%0A%60%60%60%0A&title=called+%60Result%3A%3Aunwrap%28%29%60+on+an+%60Err%60+value%3A+FingerprintError%28%22Could+not+retrieve+hostname%22%29&template=bug_report.md

If you want the Prisma team to look into it, please open the link above 🙏
To increase the chance of success, please post your schema and a snippet of
how you used Prisma Client in the issue.

    at RequestHandler.handleRequestError (D:\workspace\lunwen4\test-remix1\node_modules\@prisma\client\runtime\index.js:28846:13)
    at RequestHandler.request (D:\workspace\lunwen4\test-remix1\node_modules\@prisma\client\runtime\index.js:28820:12)
    at async PrismaClient._request (D:\workspace\lunwen4\test-remix1\node_modules\@prisma\client\runtime\index.js:29753:16)
    at async seed (D:\workspace\lunwen4\test-remix1\prisma\seed.js:37:3) {
  clientVersion: '4.2.1'
}

An error occured while running the seed command:
Error: Command failed with exit code 1: node --require tsconfig-paths/register prisma/seed.js

when i change the id from cuid() to autoincrement(), it run ok
model User {
  id    String @id @default(cuid())

}

model User {
  id    Int @id @default(autoincrement())

}

possiblely it cause by the id column define cuid type

Related old issue https://github.com/prisma/prisma/issues/8716

Note: @do4gr daid we are using a fork of the cuid crate but we could probably go back to the original one now.

Internal discussion on how we might be able to get a reproduction:
https://prisma-company.slack.com/archives/C040N0UADF0/p1663002257434649

I'll write some observations and some guesswork what is causing this issue. We have three open issues with similar problems:

The one you're reading.
https://github.com/prisma/prisma/issues/14864
https://github.com/prisma/prisma/issues/14130

The error is coming from the cuid library, we forked 0.1 back in the days and never been merging back the upstream changes. The code tries to determine the hostname and stores it in lazy_static:

fingerprinting here: https://github.com/mplanchard/cuid-rust/blob/703e2733a65670e4bd8beadbcf8b3246b1a959fe/src/lib.rs#L30-L32
calls get_hostname from an old version of hostname: https://github.com/mplanchard/cuid-rust/blob/703e2733a65670e4bd8beadbcf8b3246b1a959fe/src/fingerprint.rs
The old version of get_hostname calls winutil::get_computer_name(): https://github.com/svartalf/hostname/blob/1c6ff9ba7a5a3c5651351a88db7f606808d17bd7/src/lib.rs#L18-L22
And that call uses the Windows API function GetComputerNameA, that returns the NetBIOS name if available (docs: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcomputernamea)
Microsoft started deprecating the NetBIOS system in the latest dev builds: https://news.thewindowsclub.com/microsoft-starts-disabling-netbios-name-resolution-in-windows-106920/
If disabled, we get None back from the winapi, causing the unwrap errors...

This is very hard to reproduce, but all signs show that updating our cuid and hostname crates to the latest version would fix the issue. The latest version of hostname calls the Windows API function GetComputerNameExA that returns the DNS name if NetBIOS name is not set, and can never return None as the hostname on Windows.
For the developer fixing the issue: update hostname and cuid. Close the issues and monitor are we still having these errors in the future. Microsoft is just rolling out the deprecation, so in the future we will see more of these errors if we are not fixing it now.
The new hostname does the correct API calls: https://github.com/svartalf/hostname/blob/master/src/windows.rs#L12-L44
What about the poisoning errors?
If a function that sets a Once or lazy_static value panics, all further calls to this function return a poison error instead of the original one.


test tests

@rkpagadala: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/daily-upgrade-tests-1.0.1.sh
e9692a0f4571c1da55d6c729b33e074f0ce099dc
link
/test daily-upgrade-tests-1.0.1

prow/daily-upgrade-tests-1.0.2.sh
e9692a0f4571c1da55d6c729b33e074f0ce099dc
link
/test daily-upgrade-tests-1.0.2

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


feat: add fuzzy text search support

Hey @ParthJadhav, don't release this PR, because it and #6 have a BC, so release both in one major version

Alright cool.

@ParthJadhav there is no strict when search without extinction, i think it's better not to have strict with the extension too, do you think?

@TheAwiteb added this feature to below PR.
https://github.com/ParthJadhav/rust_search/pull/9

@ParthJadhav there is no strict when search without extinction, i think it's better not to have strict with the extension too, do you think?

Yes, It defaults to be not strict when passed None


[CT-279] Delta tables missing column schema in show table extended

Context: When generating the catalog for documentation, we switched to using one show table extended in databasename like '*', instead of a separate describe table extended for each individual table. See:

https://github.com/dbt-labs/dbt-spark/issues/93
https://github.com/dbt-labs/dbt-spark/pull/160

(We could still meaningfully speed that up, by passing the specific table names into show table extended instead of *. This will benefit users with many thousands of objects per Spark database, of which dbt is concerned with a small subset.)
Complication: We believe that open source Delta tables fail to return their column schema in show table extended. This originally came up in:

https://github.com/dbt-labs/dbt-spark/issues/199
https://github.com/dbt-labs/dbt-spark/pull/207

We believe this is the root cause of https://github.com/dbt-labs/dbt-docs/issues/236. Columns are missing / have null names, which is not something that the dbt-docs code is expecting to be possible.
I'm not sure what action we can take here, beyond opening an issue in https://github.com/delta-io/delta. I'd prefer to avoid a return to the much slower describe table extended approach, or trying to finagle support for both. I also understand that Apache Spark will eventually add support for a real information schema :)

Actually, I'm using Spark with Iceberg tables and have the same issue.


chore: enable minimal mode

Summary
Minimal mode is an experimental feature. See the Next.js GitHub discussion about this feature, https://github.com/vercel/next.js/discussions/29801
Test plan

Visit the Deploy Preview (insert link to specific page) ...

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Standard checks:

[ ] Check the Deploy Preview's Demo site for your PR's functionality
[ ] Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

We may revisit minimal mode in the future. Closing for now.


network chatflow always crash at start

I can't start the network chatflow, it immediately crashs.
The threebot server logs shows this error:
2020-07-08 16:21:20.122 | ERROR    | jumpscale.sals.chatflows.chatflows:wrapper:150 - error
Traceback (most recent call last):

> File "/home/zaibon/dev/gig/code/github/threefoldtech/js-sdk/jumpscale/sals/chatflows/chatflows.py", line 143, in wrapper
    getattr(self, step_name)()
            │     └ 'ubuntu_start'
            └ <tfgrid_solutions.chats.ubuntu_deploy.UbuntuDeploy object at 0x7fc60c20dfa0>

  File "/home/zaibon/dev/gig/code/github/threefoldtech/js-sdk/jumpscale/sals/chatflows/chatflows.py", line 624, in wrapper
    return func(*args, **kwargs)
           │     │       └ {}
           │     └ (<tfgrid_solutions.chats.ubuntu_deploy.UbuntuDeploy object at 0x7fc60c20dfa0>,)
           └ <function UbuntuDeploy.ubuntu_start at 0x7fc60c6f0820>

  File "/home/zaibon/dev/gig/code/github/threefoldtech/js-sdk/jumpscale/packages/tfgrid_solutions/chats/ubuntu_deploy.py", line 39, in ubuntu_start
    j.sals.reservation_chatflow.validate_user(user_info)
    │ │                                       └ {'username': 'zaibon.3bot', 'email'<EMAIL_ADDRESS>    │ └ <property object at 0x7fc61246c310>
    └ <jumpscale.loader.J object at 0x7fc61244db80>

  File "/home/zaibon/.cache/pypoetry/virtualenvs/js-ng-1E86Bdzo-py3.8/src/js-ng/jumpscale/loader.py", line 46, in getter
    new_module = mod.export_module_as()
                 │   └ <function export_module_as at 0x7fc60e1aae50>
                 └ <module 'jumpscale.sals.reservation_chatflow' from '/home/zaibon/dev/gig/code/github/threefoldtech/js-sdk/jumpscale/sals/rese...

  File "/home/zaibon/dev/gig/code/github/threefoldtech/js-sdk/jumpscale/sals/reservation_chatflow/__init__.py", line 4, in export_module_as
    return ReservationChatflow()
           └ <class 'jumpscale.sals.reservation_chatflow.reservation_chatflow.ReservationChatflow'>

  File "/home/zaibon/dev/gig/code/github/threefoldtech/js-sdk/jumpscale/sals/reservation_chatflow/reservation_chatflow.py", line 221, in __init__
    self.update_local_reservations()
    │    └ <function ReservationChatflow.update_local_reservations at 0x7fc60c29a8b0>
    └ <jumpscale.sals.reservation_chatflow.reservation_chatflow.ReservationChatflow object at 0x7fc60c1e1640>

  File "/home/zaibon/dev/gig/code/github/threefoldtech/js-sdk/jumpscale/sals/reservation_chatflow/reservation_chatflow.py", line 490, in update_local_reservations
    reservations = self.get_solutions_explorer()
                   │    └ <function ReservationChatflow.get_solutions_explorer at 0x7fc60c29a820>
                   └ <jumpscale.sals.reservation_chatflow.reservation_chatflow.ReservationChatflow object at 0x7fc60c1e1640>

  File "/home/zaibon/dev/gig/code/github/threefoldtech/js-sdk/jumpscale/sals/reservation_chatflow/reservation_chatflow.py", line 441, in get_solutions_explorer
    info = metadata["form_info"]
    │      └ {'Solution name': 'minio hercule demo'}
    └ {}

KeyError: 'form_info'

Verified

reopening this, probably in the chatflow SAL we make assumption some certain keys exists and it's only created via the admin panel. e.g form_info, these situations needs to be properly handled.

related to : https://github.com/threefoldtech/js-sdk/issues/230

verifying


feat(orm): add materialization to SELECT CTE statements

For emergency situations where we would want to force CTE materialization:
func (q *Query) With(name string, subq *Query) *Query                // WITH "name" AS (...)
func (q *Query) WithMaterialized(name string, subq *Query) *Query    // WITH "name" AS MATERIALIZED (...)
func (q *Query) WithNotMaterialized(name string, subq *Query) *Query // WITH "name" AS NOT MATERIALIZED (...)

LGTM :+1:
Thought it would need more changes than that.


quantity is updated when qty changed at cart page #7662

Coverage remained the same at 69.68% when pulling 66916959e9dbba2717b26c5e60d97513137ee4bd on gautampanday:task-7662 into 86e6fe98720c324ff9d03d72c1545dd544ff223c on openlabs:develop.


ISPN-6789 EnwtryWrappingInterceptor computes location twice on backups

https://issues.jboss.org/browse/ISPN-6789

integrated! thanks @danberindei !


ListIdentity Endianness Change

Summary
When parsing a ListIdentity event (type CIP_Identity_Item starting on line 314 in enip-protocol.pac),
the parser will insert both the sin_addr and sin_port into the log in the opposite endianness as the
packet (this is logged by type Socket_Address_Info_Item on line 386 in enip-protocol.pac). This
results in incorrect values being logged. For example, the IP address 123.456.7.8 will be inserted as
8.7.456.123 and the port will be converted to decimal incorrectly as the raw bytes were read in
backwards.
Fixes and Implementation Notes
A potential fix to this issue could be changing the byteorder on enip-protocol.pac line 393 in type Socket_Address_Info_item from littleendian to bigendian.

Fix has been applied as suggested!


Update pyro-api interaction workflow

The webserver (via engine.py)  interactions with pyro-api is not up to date.
There have been some updates pyro-api side about about alerts/events workflow.
It has to be managed in in pyro-engine.
Also, remember that an instance of the client's class is used for each pi camera (in order to identify from which pi the sent information comes from).
With #31, picamera using inference route will be authenticated. Hence, the right instance of pyro-client has to be used. (I would  suggest to instantiate a dict containing authenticated class for each pi in a dict created at the start up of the webserver)
Credentials of picamera on pyro-api could be stored in the fleet_access.json file (see #31)
Sorry if this issue is not detailed enough yet, lack of time on my side,
Would be happy to discuss it,
Thanks a lot

Isn't this a duplicate of #51 ? :thinking:  (or the other way haha)

Well so far, we have succeed to manage the worklfow with pyro-api. Hence, unless we want to question it now, this issue should be closed.


[Extensibility Bug/Breaking Change] Codeunit 44 - ReportManagement - OnCustomDocumentMerger (not a working replacement yet for MergeDocument events)

Dear ALAppExtensions team,
Through this issue we would like to report that the replacement for ReportManagement.OnMergeDocumentReport and "Document Report Mgt.".OnBeforeMergeDocument which is the new ReportManagement.OnCustomDocumentMerger event does not get triggered in the Base Application build 20.0.35273.0.
It concerns the following event that does not get triggered:
    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Reporting Triggers", 'CustomDocumentMerger', '', false, false)]
    local procedure CustomDocumentMerger(ObjectID: Integer; ReportAction: Option SaveAsPdf,SaveAsWord,SaveAsExcel,Preview,Print,SaveAsHtml; XmlData: InStream; LayoutData: InStream; var DocumentStream: OutStream)
    var
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnCustomDocumentMerger(ObjectID, ReportAction, XmlData, LayoutData, DocumentStream, IsHandled);
        if (IsHandled) then
            exit;
    end;

There is no indication on why the code is not being reached or when it should be reached (but considering it is a replacement for the MergeDocument events, it should be triggered when a report is run with a layout of type <> Word.
Actual Behaviour:
The event OnCustomDocumentMerger is not triggered when:

Running a report with Custom Report Layout of Type=Word
Running a report with Custom Report Layout with a custom "Custom Report Layout Type" (= extensible enum).

Expected Behaviour (non-breaking, allowing for extensibility)
The event OnCustomDocumentMerger is triggered when:

Running a report with Custom Report Layout of Type=Word
Running a report with Custom Report Layout with a custom "Custom Report Layout Type" (= extensible enum).

Could you please look into this issue? Could you also supply any documentation for using the event for Custom Report Layouts (for Type = "Word", or Type = "" (where  is a member of the "Custom Report Layout Type" enum added by an enumextension object)?
P.S.
The old events do not get triggered either, although that is explained by the comment in the ReportManagement.MergeDocument procedure, i.e., that it is being due to (new) EnableReportLegacyWordRender being disabled by default:
    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Reporting Triggers", 'MergeDocument', '', false, false)]
    [Obsolete('Replaced by CustomDocumentMerger for support of AL driver report renders.', '20.0')]
    local procedure MergeDocument(ObjectType: Option "Report","Page"; ObjectID: Integer; ReportAction: Option SaveAsPdf,SaveAsWord,SaveAsExcel,Preview,Print,SaveAsHtml; XmlData: InStream; FileName: Text; var DocumentStream: OutStream)
    var
        DocumentReportMgt: Codeunit "Document Report Mgt.";
        IsHandled: Boolean;
    begin
// IMPORTANT: This codepath is only reachable if the platform feature switch EnableReportLegacyWordRender is active. The default is to render Word driven reports in the platform.

Thank you for reaching out. Your request could be reporting a platform bug (the related work item id 416624) not related to the AL application extensibility. Please reach out to the relevant support channels:

For Microsoft partners, for versions already in general availability and supported, file requests through Microsoft Partnersource (https://mbs.microsoft.com/partnersource/).
For ISVs/VARs who have discovered a bug in a in preview or beta version, use MS Collaborate (https://docs.microsoft.com/en-us/collaborate/).
For Business Central customers who have issues or found bugs, please contact your Microsoft partner.


[Bug]: Losing focus when opening new window (Xwayland)

Before you make the issue, confirm that

[ ] You are running the master build from GitHub actions - not sure, installed from KDE's settings (New Scripts)
[X] You have read the FAQ and the usage instructions
[X] You have searched pull requests and issues and have found none similar to your issue
[X] This problem comes from a failure in the tiling system and not a missing feature

Describe the bug
When opening new window for some Xwayland applications (noticed only emacsclient) focus stays on the current application (active window) instead of switching to the newly created window.
To reproduce
emacs --daemon && emacsclient --create-frame
Expected behavior
Focus is put on the newly created window (most other Wayland applications seem to work this way)

The engine doesn't handle focus between windows. If the bug only happens with a select number of XWayland apps, most likely the apps don't send the correct signals to KWin to recieve focus.

thank you for explaining, that appears to be correct. Sorry, so many moving parts it's sometimes hard to know where to look.

Just to confirm, this was caused by the "Focus stealing prevention" setting in plasma's "Window Behaviour".
Can't believe it took me this long to come up with this...


Publish to JetBrains Marketplace

https://blog.jetbrains.com/fleet/2024/08/fleet-plugins-themes-first/

Well, I imported everything, and everything seems to work
repository(click)

And yes, don't forget to change the file

Thanks for letting us know, please request me for review on the eventual PR and allow me to set up the CI/CD to plugin to our already existing JetBrains Marketplace Account @davfsa

Thanks for letting us know, please request me for review on the eventual PR and allow me to set up the CI/CD to upload the plugin to our already existing JetBrains Marketplace Account @davfsa
I imagine the deployment process / CI/CD will be quite similar to our existing catppuccin/jetbrains port.
Essentially, yes, it should be similar.


MsgDelegate amount should not be nullable

For some reason the amount field in the generated MsgDelegate is optional: https://github.com/confio/cosmjs-types/blob/v0.8.0/src/cosmos/staking/v1beta1/tx.ts#L36-L44
Hoewver, the protos from which is is generates have a (gogoproto.nullable) = false annotation:
// MsgDelegate defines a SDK message for performing a delegation of coins
// from a delegator to a validator.
message MsgDelegate {
  option (cosmos.msg.v1.signer) = "delegator_address";
  option (amino.name)           = "cosmos-sdk/MsgDelegate";

  option (gogoproto.equal)           = false;
  option (gogoproto.goproto_getters) = false;

  string                   delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
  string                   validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
  cosmos.base.v1beta1.Coin amount            = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
}

In other places this annotation is considered, right? My expected output is
 export interface MsgDelegate {
   delegatorAddress: string;
   validatorAddress: string;
-  amount?: Coin;
+  amount: Coin;
 }

@webmaster128 Can you review the new fixtures, thank you!


[TRIVIAL] use same Error type in all methods of BlockFilter

Codecov Report

Merging #301 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #301   +/-   ##
=======================================
  Coverage   81.68%   81.68%
=======================================
  Files          38       38
  Lines        6815     6815
=======================================
  Hits         5567     5567
  Misses       1248     1248

Impacted Files
Coverage Δ

src/util/bip158.rs
93.05% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

merged into https://github.com/rust-bitcoin/rust-bitcoin/pull/302


Change Two Layer Storage Model

Change the Model "StorageTwoLayer":
Use two masses with two different temperatures
Storage losses account both masses

Fixed with commit e567f0b8cd51b4590b5436991eed4e804e2c3a9f.
The old model is completely replaced by the new one. The two models are not compatible.


Remove stale code make navbar more independent

Navbar has too many dependencies squirreled away in various depths of code includes, assumptions about global scope and Django extends. Bring csrf functions into navbar code (for resource creation), collecting first then will dedupe over time and sub out css, script files.

Ensure create resource works
Review basic functionality/layout of Discover as presumably stale scripts have been removed

METRIC
VALUE

NEW BUGS
0

NEW CODE SMELLS
0

NEW SECURITY HOTSPOTS
0

NEW VULNERABILITIES
0

NEW DUPLICATED LINES DENSITY
0.0

https://sonarqube.cuahsi-workstation.com:9000/dashboard?id=hydroshare-4174

Potentially addesses or is a step towards fixing https://github.com/hydroshare/hydroshare/issues/4043


Add with_http_client method to ImgurClient

This will allow customization of the http client or just providing an already existing http client. In my use case I already have a client I'd like to reuse.

I will release a new version later.


avoid making a copy in insert() if the new neighbor already exists or we're at capacity and it's worse than our worst edge

test failure is reproducible and does not appear in main.  investigating...

so in fact this is an incorrect optimization -- we should not throw away potential edges, even "bad" ones, before checking diversity.  Doing so is causing the graph in the test to be disconnected.  I will close the PR and edit out the TODO.


Feature Request: Allow Title text on top of Banner Image

Please see this project: https://github.com/thom-bartlett/jss-filevault-reissue and the commentary in the #swiftdialog Mac Admin's slack channel with Adam and macsimus.
I would like to be able to include a Banner Image, but still have the Text data written on top of the banner. A --titleonbanner flag, per se. This would allow for a very nice looking title but leave it accessible for screen readers.

My Take on this would be to add --alttextbanner which could set alt text for the banner image for screen readers but not need to actually render text.
Could possibly add --alttext flags to all the other screen media options.

alttext for images in general would be most beneficial.
One to look in to. 🙂

@BigMacAdmin how does this look? Tossing up whether the argument should be --bannertitle or --bannertext, for now though, it's --bannertitle
Standard behaviour:

With --bannertitle
Sets the text colour to white. Will respect --titlefont colour=... modifications. This is because there's no direct support for light/dark mode images and so the font colour should be predictable.
Can be used as --bannertitle "<text>" or as a modifier to title as --title "<text>" --bannertitle

With --bannertitle --titlefont shadow=true
Since text over images doesn't always work, an option to add a drop shadow. value can be true, yes, y, or 1 to enable.

Looks sweet, @bartreardon.

👏 👏 Very nice! I especially love the addition of being able to add a drop shadow. Good thinking ahead on that one!

You've outdone yourself again,I love the look and the dropshadow option. I also love how flexible you made it with the multiple ways to call it.


Deployment Failed: Script execution failed: az.cmd

Hi Elton,
I followed the steps mentioned and i am getting this error -
Deployment Failed: Script execution failed: Program 'az.cmd' failed to run: The system cannot find the file
specifiedAt C:\laas\oxa-tools\scripts\Common.ps1:346 char:20

...  $results = az login -u $AadWebClientId --service-principal --tenant  ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.

At C:\laas\oxa-tools\scripts\Deploy-OxaStamp.ps1:197 char:5

throw "Deployment Failed: $($_)";

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : OperationStopped: (Deployment Fail...~~~~~~~~~~~~~~.:String) [], RuntimeException
FullyQualifiedErrorId : Deployment Failed: Script execution failed: Program 'az.cmd' failed to run: The system c
annot find the file specifiedAt C:\laas\oxa-tools\scripts\Common.ps1:346 char:20

...  $results = az login -u $AadWebClientId --service-principal --tenant  ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.

Please review docs at https://aka.ms/laas for details step-by-step setup instructions . The error suggests you don't have the azure cli installed.

Thanks for the quick reply


Added either applicatives

This is useful when you get a bunch of lifted variables and want to use them.
For example:
var userId = GetLoggedInUserId() // Either<int, string>
var profile = ValidateProfile(profileFromPost) // Either<Profile, string>
var result = UpdateProfile(userId, profile) // can't do this right now

But with EitherApplicative...
var result = EitherArg(GetLoggedInUserId())
                   .And(ValidateProfile(profileFromPost))
                   .Then((userId, profile) => UpdateProfile(userId, profile));

Uh oh, I think that this PR might be super dumb?

Yeah, this functionality already exists. Sorry, my bad.