Remove { workspace = true} requirement for sources

We error if a package is in the workspace but isn't marked as { workspace = true }. Should we just infer this? As-is, you need to specify the members up to three times (once in members, once in dependencies, and once in sources).

I think this probably makes sense. The downside is, if this is omitted by default, then we lose the behavior that we error if you mark workspace = true but the package isn't found.

I could be missing some nuance but I don't really see the logic in the current behavior. If I add the packages to the workspace then it'd be quite surprising to me for them to not be found/installed from the workspace when other packages depend on them. So to me it's only an improvement to add them to the list of sources by default to avoid having to duplicate them. It's even worse because the original workspace declaration is a glob for me hiding the details, and then I need to explicitly list the packages anyway.
[project]
# this can technically contain a subset of the packages so it makes sense to declare them here as default dependencies of the workspace
dependencies = ["my-foo", "my-bar", "..."]

# it'd be nice to get rid of this
[tool.uv.sources]
my-foo = { workspace = true }
my-bar = {workspace = true }
# ...

[tool.uv.workspace]
members = ["src/*"]

I should also point at that rye's workspaces don't have this extra sources requirement. In rye the packages are automatically workspace-packages when added to tool.rye.workspace.members.

Just to be explicit: if a package is defined in the workspace but not declared as a source, we error rather than proceeding. So we're just being strict in asking users to specify the source explicitly. It might be more annoying than helpful though.

I think I'm fine to remove this. If a user does it explicitly, we can then error if the package isn't found in the workspace but is marked as { workspace = true }. I guess this is breaking, though... any applications that would be affected by it would already error today, so maybe not.
\cc @konstin @zanieb

This behavior was carried over from cargo, which intentionally requires { workspace = true }.  In cargo, with workspace = true and registry = "..." you can always tell just from Cargo.toml where a dependency comes from, you have to explicitly annotate if you want a dependency that's not from the default registry.
I don't expect this change to be breaking, iirc workspace = true is a read-only check that doesn't actually change dependency lowering, you'd just have to remote this check:
https://github.com/astral-sh/uv/blob/56cc0c9b3cac860b072d2b22556d441d602a0eb0/crates/uv-distribution/src/metadata/lowering.rs#L47-L63

@konstin -- Any opinion on changing it?

I like the explicitness in cargo but I see the awkwardness when applied in a split-table dependencies vs. sources scenario.

Having implicit workspace=true in sources allows for having private packages/insiders repositories part of the venv glob listed in members. I've already migrated to uv and failed to notice this beforehand, not breaking for me but not ideal.
Somewhat related, but I find it weird having to re-define the workspace packages in dev-dependencies (without a version) for any [project.scripts] defined in member projects to create their entry points in the venv bin directory. Maybe I'm doing something wrong, most documentation points to uv run {cmd} which I don't really find ideal;
point is, listing a package in a rye workspace implies all of that, I had to lurk to get it working 🙂


Update mysql migration docs

Without multipleStatements: true, any migrations that include multiple statements will fail (such as a migration that adds two tables, etc).

Thanks @marbemac!
Will include this PR changes in next release
cc @dankochetov

Thanks and congrats on your first contribution @marbemac!

If anyone finds this issue thread wondering why migrations are failing using planetscale and drizzle-orm/planetscale-serverless, its because planetscale database-js does not yet support multiple statements:
Here's an issue tracking this: https://github.com/planetscale/database-js/issues/85


fix: #1911 - translation for user lists

Impacted files:

all_user_product_list_page.dart: replaced 3 const Strings with 3 translations
app_en.arb: 3 new translations
app_fr.arb: 3 new translations
user_preferences_page.dart: replaced 1 const String with 1 translation

What

3 translations for user list related pages, instead of const String in English

Fixes bug(s)

Fixes: #1911

Codecov Report

Merging #1914 (2d8b06c) into develop (2ea0da3) will decrease coverage by 0.92%.
The diff coverage is 15.83%.

@@            Coverage Diff             @@
##           develop   #1914      +/-   ##
==========================================
- Coverage     8.86%   7.93%   -0.93%
==========================================
  Files          161     176      +15
  Lines         6623    8163    +1540
==========================================
+ Hits           587     648      +61
- Misses        6036    7515    +1479

Impacted Files
Coverage Δ

...h_app/lib/cards/category_cards/abstract_cache.dart
0.00% <0.00%> (ø)

...p/lib/cards/category_cards/asset_cache_helper.dart
0.00% <0.00%> (ø)

...p/lib/cards/category_cards/raster_async_asset.dart
0.00% <0.00%> (ø)

...oth_app/lib/cards/category_cards/raster_cache.dart
0.00% <0.00%> (ø)

..._app/lib/cards/category_cards/svg_async_asset.dart
0.00% <0.00%> (ø)

...smooth_app/lib/cards/category_cards/svg_cache.dart
0.00% <0.00%> (ø)

...th_app/lib/cards/data_cards/image_upload_card.dart
0.00% <0.00%> (ø)

...es/smooth_app/lib/cards/data_cards/score_card.dart
4.54% <0.00%> (-0.22%)
:arrow_down:

...t_cards/knowledge_panels/knowledge_panel_card.dart
0.00% <0.00%> (ø)

...knowledge_panels/knowledge_panel_element_card.dart
0.00% <0.00%> (ø)

... and 132 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 c57a6fa...2d8b06c. Read the comment docs.

Fixed. Merging.


Clone questionMark and dotdotdot token

Fixes https://github.com/microsoft/TypeScript/issues/57924#issuecomment-2016963508
CompletionInfo is failing due to a synthetic propertySignature using an incorrect questionToken position which cause the Assert to fail.
The positions are incorrect due to the checker reusing the synthetic node for the questionToken. When assigning positions the value gets overwritten by the latest position update this generating a node that is "not contained" on the parent.
The PR fixes this by always cloning a synthetic questionToken instead of reusing it.

@typescript-bot perf test this

@typescript-bot perf test this

This makes sense; getSynthesizedDeepCloneWorker is similar and passes in the token visitor. Makes me wonder if we should try and make the visitor required and see where else we've missed this.
But, this does need a test; the linked issue should come with one that can be minimized.

@typescript-bot perf test this

Tested, and the test does actually test the crash, nice.


MCS-1441 Cache output metadata between action steps to reduce the number of raycasts and hopefully improve performance.

I remember when we did some Unity diagnostics (a long time ago) we found that AI2-THOR was doing a lot of raycasts constantly, and raycasts are some of the more costly operations to run. I pinpointed one area (maybe there are more, I don't know yet) where we could reduce the number of raycasts.
The call stack below, which does a lot of raycasting, generates output metadata (eventually returned to Python) at every Unity frame (which, at 20 FPS, is a lot), even if it hasn't changed. This PR caches the output metadata between action steps, and triggers recreation after each action.
I haven't seen noticeable improvement as far as time performance is concerned when run via Python (though running in the Unity Editor seems much less sluggish). However, I think it's more likely this will affect memory performance, and I'm not familiar with a good way of testing that. Additionally, I believe this is the type of change that would have a greater effect run at scale. Please let me know what you think, or if you have any questions/concerns.
Call stack:

AgentManager.EmitFrame (see the while (true) loop)
AgentManager.createPayload
BaseFPSAgentController.generateMetadataWrapper
BaseFPSAgentController.generateObjectMetadata
BaseFPSAgentController.GetAllVisibleSimObjPhysics
BaseFPSAgentController.GetAllVisibleSimObjPhysicsCollider
BaseFPSAgentController.CheckIfVisibilityPointInViewport
BaseFPSAgentController.CheckIfVisibilityPointRaycast

The code looks good but I feel like we should wait on this ticket until we have had a chance to talk to TA1 about what performance they would like to see improved and perhaps we can come up with some benchmarks and see if this does in fact push the ball forward.  I don't just want to start making changes until we can quantify the performance improvements of them.

That's fair!


Disable Prettier if no prettier config exists

A lot of users of prettier extension use it to format files automatically on save leading to unwanted diffs, so I've added an option to disable prettier unless there is a prettier config file.

I've added an option to disable prettier unless there is a prettier config file.

@muhammadsammy Seems reasonable. Thanks for submitting.

Passing CI - https://travis-ci.org/github/OmniSharp/omnisharp-vscode/builds/719102977


NPM isn't blocking traffic going to load balancer external IP

What happened:
NPM isn't blocking traffic going to load balancer external IP for requests coming from pods running at same node.
What you expected to happen:
NPM should allow traffic only for whitelisted pods and block any other traffic regardless of where it's coming from
How to reproduce it:
apply the yaml files below:
kubectl apply -f https://raw.githubusercontent.com/andremmandrade/npm_issue_repro/main/pod_destination.yaml
kubectl apply -f https://raw.githubusercontent.com/andremmandrade/npm_issue_repro/main/pod_source.yaml
Then run a nginx pod in default namespace and reach out the destination pod using the LB external IP address:
kubectl run nginx --image=nginx
kubectl exec -it nginx -- curl -I http://LB-nginx-destination-externalIP:80
Make sure the nginx pod is running at the same node running the nginx-destination pod.
To make it easily, scale down the agent pool node to 1 node.
Kubernetes Version:
1.20.7
NPM: v1.4.1
Kernel (e.g. uname -a):
Anything else we need to know?:
[Miscellaneous information that will assist in solving the issue.]

hello Team, any updates on the fix progress?


feat(cancel): Show all linked doc in a dialog box on cancel event

Task: TASK-2019-00760
Screenshots / GIFs:
Usecase:
As a User, I want to be able to delete the linked document to the one I'm trying to delete, so that I don't have to manually delete the document(s)
Problem:
Anytime you try to cancel a document that is linked somewhere else, it doesn't allow you to do so. Which is obviously a good thing to maintain data integrity. However, we should allow the User to cancel both the documents on another button click, whilst warning them of the consequences.
Solution:

Pull Request Depends on : https://github.com/DigiThinkIT/erpnext/pull/264
ToDo:

[x] Recursively find linked submittable documents.
[x] Check is user can cancel all docs, only then show "Cancel All" button.
[x] If user can cancel all docs, first cancel linked docs and then come back to cancel current doc.
[x] If errors are thrown during validation, rollback already cancelled docs.
[x] Remove non-submittable doctypes from view.
[x] Improve cancel message.

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

See the complete overview on Codacy

Pull Request Test Coverage Report for Build 685

2 of 10 (20.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.007%) to 46.297%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

frappe/desk/form/linked_with.py
2
10
20.0%

Files with Coverage Reduction
New Missed Lines
%

frappe/chat/util/util.py
1
55.7%

frappe/core/doctype/doctype/doctype.py
1
64.64%

Totals

Change from base Build 672:
-0.007%

Covered Lines:
18254

Relevant Lines:
39428

💛  - Coveralls

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

Made upstream PR here https://github.com/frappe/frappe/pull/8905

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 2

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Clones removed
==============
+ frappe/public/js/legacy/form.js  -2

See the complete overview on Codacy


[WIP]add something below all cards in column #332

[ ] Documentation

Codecov Report

Merging #359 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #359   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           15        13    -2
  Lines          195       184   -11
=========================================
- Hits           195       184   -11

Flag
Coverage Δ

#cypressspecs
?

#jestspecs
100.00% <100.00%> (ø)

Impacted Files
Coverage Δ

.../components/CardAdder/components/CardForm/index.js
100.00% <ø> (ø)

src/components/Board/components/Column/index.js
100.00% <ø> (ø)

...rd/components/Column/components/CardAdder/index.js
100.00% <100.00%> (ø)

assets/services/getUrlParams.js

assets/index.js

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 faeadec...228d353. Read the comment docs.

@anuradhabharti this is still on developing? if yes, please put a [WIP] message so we can review when u done.

@Sabrinovsky I solved the issue but I didn't update the docs, test and add myself as a contributor.

@Sabrinovsky It's done.

@anuradhabharti Thanks for your contribution, we really appreciate it.
About the PR, i think i should go for another approach. Looks like you just moved the card adder to the bottom of the column. I think the issue #332 is more like the Board user pass a component to render on the bottom of the column.
I imagine something like the rendercolumnheader that we have.
Something like this:
<Board renderColumnFooter={() <footer />} />
And then anything the user pass here, will be rendered on the column footer.
Want to try something like this?
I recommend you to work on the beta branch, it'll be release soon.
I think that a card adder on the column can be a good idea too, but we should let the user choose if he want it on the top, bottom or both.

Yes

Hi, @anuradhabharti. We're getting this project back to the track. Are you working on this issue yet? Or I can close it? Thanks.


How do we pause/unpause Webhook

What is the api or method for pause or unpause a existing webhook ?

The WebHook structure has a field for whether a WebHook is paused or not, see WebHook.cs. Either the owner of the subscription or you as the service should be able to update the registration to set if it is paused or not. If paused then it won't be returned in queries from the IWebHookStore.cs.
Hope this helps!
Henrik

Thanks Henrik, so if we update IsPaused in Registration, Webhook will not trigger for those registrations.

yes, that's correct!


Use a Static Site Generator

Right now, everything is a static .html file and the newsletter are generated using a simple self-made script.
It would be great if we can use a static site generator (React Static, Gatsby, Next.js) so that the code is cleaner and more structured.
It should be possible to generate issues dynamically but also to supply them as a .html file (for an archive if we decide to change the format).
Ideally we can pre-render all content statically such that no JavaScript at runtime is necessary.

I am working on this. Please take a look at my fork. I am planning on using Gatsby.


fix the injectedTests jelly failure :(

For me, org.jenkins-ci.main:jenkins-test-harness:jar:2.1:test defined version 4.5 and a compile dependency was defining 4.2.x.  Because compile dependencies get resolved first, 4.2.x was on the classpath and jenkins-test-harness could not find the class needed from 4.5.  Solved it by excluding httpclient (and other artifacts in the org.apache.httpcomponents groupId) from the compile dependency.
Try running "mvn dependency:tree" to identify the problem location.
http://jenkins-ci.361315.n4.nabble.com/InjectedTest-failures-due-to-class-not-found-td4787008.html

@chetanddesai if we want to fix this im going to leave this one to you lol. cuz its above my pay grade.

Interesting.  I'll take a look.

also should eventually fix this. no clue why it is breaking lol


[backend+web] Build output rendering

This PR will merge in changes to the build output rendering, on the backend carriage returns added only on new lines, and on the client the timestamp and build-stream has been visually added and performance improved by updating ANSI on each update, rather than each render.

@VJftw You got a little test failing on the backend, looks like I could fix it but I thought it'd be best to get your review before merging.


ascii art positioning

I've glanced over the theme documentation and I don't think there's this possibility yet.
Add a setting to specify the position where the ascii art should be displayed. Currently, it always displays on the left.
I have a fairly wide but short ascii art I'd like to use, it would look best if it was above the system info box.
Having a wide ascii art side by side with the system info doesn't work well in narrow terminal windows.
Something like:
[custom_ascii]
# Possible values: top, right, bottom, left
# Default value: left
position = "top"

This is interesting, we could definitely do this :)

Just had an afterthought about that feature-request, so I'll just leave that here as a brain-dump, it may be a bit overkill (?)
Additionally to the positioning, specifying the alignment could also be pretty cool. Alignment could for example be an enum of: Start, Center, or End.
[custom_ascii]
# Possible values: start, center, end
# Default value: start
alignment = "center"

Example for what I mean:
       alignment: start                alignment: center               alignment: end
  _______  __________________              __________________              __________________
  |     |  |                |              |                |              |                |
  | img |  |                |     _______  |                |              |                |
  |_____|  |                |     |     |  |                |              |                |
           |      text      |     | img |  |      text      |     _______  |      text      |
           |                |     |_____|  |                |     |     |  |                |
           |                |              |                |     | img |  |                |
           |________________|              |________________|     |_____|  |________________|

If the textbox is larger than the ascii image, then the alignment could be applied to the box instead.

@123marvin123 How feasible would this be with the current structure?

@123marvin123 How feasible would this be with the current structure?

It shouldn't be too hard, I think, but some things would need to be refactored to allow such a placement. Right now, we are using the ASCII art on the left side of the screen as an anchor to align the actual readout information.
I am currently too busy to work on this, maybe you can give it a try?

Can we please make this feature also include a way to disable the image as well?  I like the information, but don't need the image, which also don't render well on my light-themed terminal.

If you're looking to disable ASCII art, just set hide_ascii = true in your theme.

We're no longer accepting feature requests, sorry.


RecordBreaker C2 aka Raccoon Stealer

Description
RecordBreaker aka Raccoon Stealer v2 C2 servers, based on this tweet - https://twitter.com/1zrr4h/status/1593377638504087553
Censys Search Query
Raccoon Stealer V2 aka RecordBreaker C2.
services.banner_hashes="sha256:7987d0c39c4839572ab88c6d82da01395f74e0c31f12d94c58d0e1bed0b0c75c"

Additional context
A quick validation based on tweet details and URL confirm a good percentage does return a DLL from that location.

Added in 5a24af8


Build Error v1.19.0

Compiling tezos_identity v1.19.0 (/home/it-tezos/tezedge/tezos/identity)
error: there is no argument named `err`
   --> tezos/encoding/src/types.rs:107:88
    |
107 |                 .map_err(|err| serde::de::Error::custom(format!("cannot parse big int: {err}")))?;
    |                                                                                ^^^^^

error: there is no argument named `e`
   --> tezos/encoding/src/types.rs:238:80
    |
238 |             .map_err(|e| E::custom(format!("error constructing bytes from hex: {e}")))?;
    |                                                                                ^^^

error: there is no argument named `SIZE`
   --> tezos/encoding/src/types.rs:251:47
    |
251 |                     "invalid lenght, expected {SIZE}, got {len}",
    |                                               ^^^^^^

error: there is no argument named `SIZE`
   --> tezos/encoding/src/types.rs:271:47
    |
271 |                     "invalid lenght, expected {SIZE}, got {len}",
    |                                               ^^^^^^

error: there is no argument named `err`
   --> tezos/encoding/src/types.rs:427:83
    |
427 |                 serde::de::Error::custom(format!("error decoding from hex string: {err}"))
    |                                                                                ^^^^^

error: could not compile `tezos_encoding` due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

Hi @jdsika, which version of the rust toolchain are you using?
If you are not using 1.58.1 already, please try that version https://github.com/tezedge/tezedge#prerequisites-installation

I overlooked the version increase! Maybe the build process should check and give a better error message?

@jdsika we will set the rust version in the Cargo.toml files, in the future if the wrong version is used you will get this error:
> cargo build --release
error: package `shell v2.0.1 (/home/bruno/projects/tezedge/tezedge/shell)` cannot be built because it requires rustc 1.58.1 or newer, while the currently active rustc version is 1.56.0

I think that's perfect


Syncer: Fix infinite loop in task receiver

Sleep in the task receiver loop
Also limit the tokio runtime to two worker threads to additionally consume fewer system resources

Codecov Report

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

@@          Coverage Diff           @@
##             main    #132   +/-   ##
======================================
  Coverage        ?   12.6%
======================================
  Files           ?      27
  Lines           ?    5464
  Branches        ?       0
======================================
  Hits            ?     691
  Misses          ?    4773
  Partials        ?       0

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 8aa0048...cbb2be6. Read the comment docs.


Unable to pull resources from Cesium due to CORS error

Hi there,
It seems like CORS is no longer working for the Cesium domain. It was previously working. It seems like this issue is related to a similar issue which happened in the past: https://github.com/CesiumGS/cesium/issues/8050
The issue is only happening in a production environment, not locally.
The way we have always embedded Cesium.js in our app is as:
https://cesium.com/downloads/cesiumjs/releases/1.108/Build/Cesium/Cesium.js
@ggetz @hpinkos @mramato

Looking into this.

Thanks for the report and sorry for the delay, this issue has been addressed. Please reopen this if you're still having issue. Thanks again.

@aerialist7 Try clearing your cache (or try private/Incognito mode to confirm you are starting with a fresh cache). Sandcastle no longer shows this issue on several machines we tested.

Doesn't help
https://github.com/CesiumGS/cesium/assets/32072831/53c0e0c6-c6ea-4a3e-a051-917131639fcb

Thanks for the reports, we've identified this as a sporadic issue and have reproduced it and are looking into what's happening.

@brianwthomas - thank you.  Appears to be working on our side now.

@brianwthomas, thanks, now it's ok


Remove default value for GITHUB_TEAM_ID

Uses a dummy placeholder instead, similarly to api_client.rb.
Closes #183

Well, apparently it should be an integer... How about just not adding the team at all if the env var is unset, or setting it to some nothing-up-my-sleeve number like -1?

Yeah, let's just omit it if it's it's not set.

Is this ready to merge, or do you want me to do something more to it?

Nope, thanks.


add handle percent in utils

It should be noted that we handle percentage differently across bridge and station wallet.... looking at bridge i'm not convinced that the two methods are compatible:


Radio element can not be checked

The sample from the official example can work
    Favorite Color

    <Field name="favoriteColor" component="select">
        <option></option>
        <option value="ff0000">Red</option>
        <option value="00ff00">Green</option>
    </Field>

The following example won't work.
The radio option can not be checked at all,
When I clicked any of the radio item, the checked status will be restore in a flash. That is, I could not select any item.

ui_builder_form.tsx
    schemaData.tableList = [
        {
            name: "AcceptedEventRelation",
            value: "ff0000"
        },
        {
            name: "Account",
            value: "00ff00"
        }
    ]

    <MyCheckBox
        items = {schemaData.tableList}
    />

    UIBuilderForm = reduxForm({
        form: 'dashbaordUiBuilderForm'
    })
    (UIBuilderForm as any);

my_check_box.tsx
    export class MyCheckBox extends React.Component<any, any> {
        render() {
            let {items} = this.props;
            return (

table name

                    {items.map((item:any, i:number)=> {
                        return (

                                <Field
                                    key={item.value} name={item.name} component="input" type="radio"
                                    value={item.value}/> {item.name}

                        )
                    })}

            );
        }
    }

can you paste ui_builder_form.tsx in more detail?

Have you provided the redux-form reducer to redux like shown in the docs here?
Also, it is worth noting that all radio inputs in the same group need to have the same name attribute. Once you fix your current issue, you will see that you can select each option at the same time, which I am assuming is not your intention.

Closing due to non-response from OP.


Reordering Relationship on pivot table column

Discussed in https://github.com/filamentphp/filament/discussions/3492

Originally posted by MACscr August 13, 2022
I have Banners and Banner Zones with a pivot table with an order column. Ordering in an RM should try update the order column on the pivot table instead of trying to do it on the banners table.
$table->reorderable('order');

class Banner extends Model
{
    public function zone(): BelongsToMany
    {
        return $this->belongsToMany(BannerZone::class)->withPivot('order');
    }
}

class BannerZone extends Model
{
    public function banners(): BelongsToMany
    {
        return $this->belongsToMany(Banner::class)->withPivot('order');
    }
}

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'order' in 'field list'

update
  `banners`
set
  `order` = 1,
  `banners`.`updated_at` = 2022 -08 -12 23: 38: 52
where
  `id` = 6

Ahh yeah. I still need to make a PR for this right?!😅. Something with time🙈

Yes please 😂

@danharrin see #4372

any idea for reorder by pivot column?

@uitlaber, I'm having the same issue. Did you find a solution?

It works for me. My related models are Collection and Product, the order_column in the pivot table is called 'order'.
Defining many to many relation as usual:
// app/Models/Product.php
public function collections(): BelongsToMany
{
    return $this->belongsToMany(Collection::class)->withPivot('order');
}

// app/Models/Collection.php
public function collections(): BelongsToMany
{
    return $this->belongsToMany(Product::class)->withPivot('order');
}

// database/migrations/2024_07_01_192353_create_collection_product_table.php
Schema::create('collection_product', function (Blueprint $table) {
    $table->id();

    $table->foreignId('product_id')->constrained('products')->onDelete('cascade');
    $table->foreignId('collection_id')->constrained('collections')->onDelete('cascade');

    $table->unsignedSmallInteger('order')->default(0);
});

Creating the RM as usual:
php artisan make:filament-relation-manager CollectionResource product name

Making the table reorderable and setting default sort:
// app/Filament/Resources/CollectionResource/RelationManagers/ProductRelationManager.php
public function table(Table $table): Table
{
    return $table
        ->recordTitleAttribute('name')
        ->columns([
            TextColumn::make('name')->label('Name')
                ->searchable()
                ->sortable(),
            ...
        ])
        ->filters([
            ...
        ])
        ->headerActions([
            ...
        ])
        ->actions([
            ...
        ])
        ->bulkActions([
            ...
        ])
        ->reorderable('order') // <------ HERE
        ->defaultSort('order');
}

Additionally, don't forget the permission to reorder. In your ModelRelationManager, add:
 protected function canReorder(): bool
    {
        return true;
    }


Move code snippet to better location

The C# code snippet wasn't related to how to make Program public, so it doesn't make sense to have it listed under the second method to make Program public. This commit effectively reverts commit e376d96ef5193bfc510f318ee8373f97e7117cc0 as well as removing the misplaced code snippet, leaving a single code snippet near the related text.
This improves upon PR #28689 submitted by @tdykstra to fix #28676 .

Internal previews

📄 File
🔗 Preview link

aspnetcore/test/integration-tests.md
aspnetcore/test/integration-tests

@knumat Thanks for the suggestion. I had considered that approach but decided against it because the text immediately following the first instance of the snippet refers to elements that appear in the snippet as if they had been shown already. On second thought, however, I agree that your solution is better.


nodeos crashed upon filter Reason :bad alloc

Jungle testnet is being synced on a 16 GB  vm
Looks like a memory issue, nodeos used 100% CPU too while replaying
$NODEOSBINDIR/nodeos --max-irreversible-block-age 108000 --filter-on "eosio.token:transfer:" --data-dir $DATADIR --config-dir $DATADIR --replay
1507495ms thread-0   chain_plugin.cpp:200          plugin_initialize    ] initializing chain plugin
1507496ms thread-0   chain_plugin.cpp:306          plugin_initialize    ] Replay requested: deleting state database
1507629ms thread-0   block_log.cpp:123             open                 ] Log is nonempty
1507629ms thread-0   block_log.cpp:136             open                 ] my->head->block_num(): 326878
1507629ms thread-0   block_log.cpp:142             open                 ] Index is nonempty
1507639ms thread-0   http_plugin.cpp:285           plugin_initialize    ] configured http to listen on <IP_ADDRESS>:8888
1507639ms thread-0   net_plugin.cpp:2815           plugin_initialize    ] Initialize net plugin
1507639ms thread-0   net_plugin.cpp:2836           plugin_initialize    ] host: <IP_ADDRESS> port: 9876
1507640ms thread-0   net_plugin.cpp:2908           plugin_initialize    ] my node_id is 31859bd2211d897d0b15fc8c9b4ba085e5ee97371523b88dd765fcead1e93481
1507640ms thread-0   http_plugin.cpp:251           operator()           ] configured http with Access-Control-Allow-Origin: *
1507640ms thread-0   main.cpp:104                  main                 ] nodeos version 0961a560
1507640ms thread-0   main.cpp:105                  main                 ] eosio root is /home/ubuntu/.local/share
1507640ms thread-0   controller.cpp:1142           startup              ] No head block in fork db, perhaps we need to replay
1507640ms thread-0   controller.cpp:307            initialize_fork_db   ]  Initializing new blockchain with genesis state
1507676ms thread-0   controller.cpp:199            init                 ] existing block log, attempting to replay 326878 blocks
2389330ms thread-0   controller.cpp:147            emit                 ] bad alloc
2389330ms thread-0   fork_database.cpp:93          close                ] num_blocks_in_fork_db: 2
2389330ms thread-0   controller.cpp:261            ~controller_impl     ] db.revision(): 22266 head->block_num: 22266 blog.read_head()->block_num(): 326878
2400343ms thread-0   main.cpp:116                  main                 ] bad alloc
config.ini
log-level-net-plugin = info
max-clients = 120
connection-cleanup-period = 30
network-version-match = 1
sync-fetch-span = 2000
enable-stale-production = false
required-participation = 33

mongodb-queue-size = 256
# mongodb-uri =

# peer-key =
# peer-private-key =

plugin = eosio::producer_plugin
plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::history_plugin
plugin = eosio::history_api_plugin

The eosio::history_plugin will consume a large amount of state storage space on any active chain if you filter-on the eosio.token transfer action.
By default the amount of RAM a node can use to store state is 1 GiB and can be controlled with the chain-state-db-size-mb option which is specified in MiB
This error means you exhausted that storage and in order to proceed, you will need to set a higher value or a tighter filter.
Once the mongodb plugin #3030 is re-enabled that may be a better option for storing lots of historical transaction data as it does not colocate the history data and the contract state in the critical shared memory file.


Typos/links in the 43870 advisory

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/67fd828be33e53fe82bf04b012ecbb31569cc8a5/
Edited pages:

advisories/a43870.md

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/721833e549da870f48bd69f6c6014c7799674923/
Edited pages:

advisories/a43870.md


Forkproxy logfile size is unbounded

Required information

Distribution: Gentoo
Distribution version: n/a
The output of "lxc info" or if that fails:

Kernel version: 4.9
LXC version: 3.1.0
LXD version: 4.0.0
Storage backend in use: btrfs

Issue description
Proxy devices write logfiles, that's all well and okay unless you have a daemon which does decline connections on purpose when there are too many open connections (currently running IPFS which due to the p2p nature has several thousand connections open at a time).
In that case the forkproxy starts logging lots of error messages like these:
Warning: Error while reading data: write udp [::1]:59370->[::1]:4001: write: connection refused

Which is all good and well until that file reaches the 1.5T mark and you run out of diskspace ;-)
I haven't found a way to turn off logging (or raise the minumum loglevel  for proxy devices).
Ideally I'd have an option to disable logging for specific devices entirely or set the minimum loglevel needed to log to message.
Steps to reproduce

use proxy device
get failed connections
diskspace full

Notes
This is more of a feature request than a bug report so I left out most of the details, if you do need any further information though give me a heads-up and I'll add it.

Yeah, feels like we should move all user-generated log entries to debug, we don't want user action to be able to result in log entries. We'd probably want the --debug option of LXD to similarly run the proxy in debug mode though.

@benaryorg as a temporary workaround, you can probably symlink the log file to /dev/null :)

That's assuming we don't delete/create it every time on proxy startup.

you can probably symlink the log file to /dev/null :)

Had the same thought.

That's assuming we don't delete/create it every time on proxy startup.

And the same concern ;-)
However it's actually worse than that if I do use a symlink:
Error: Error occurred when starting proxy device, please look in /var/log/lxd/[instance name]/[logfile]
Try `lxc info --show-log [instance name]` for more info


Fix function comments based on best practices from Effective Go

Every exported function in a program should have a doc comment. The first sentence should be a summary that starts with the name being declared.
From effective go.
I generated this with CodeLingo and I'm keen to get some feedback, but this is automated so feel free to close it and just say "opt out" to opt out of future CodeLingo outreach PRs.

Looks like these changes, few as they are, are pretty solid. Let me know if you find this useful :smile: If not, are there any fixes I can do to make it useful?
Note: I've only updated functions that CodeLingo can rewrite nicely, but you can install it on GitHub to review your PRs automatically and find all issues.


Cannot read property 'to' of undefined

Refering to the animation portion in your README.
import React, { Component } from 'react';
import { Layer, Rect, Stage } from 'react-konva';

class App extends Component {

    constructor(...args){
        super(...args);
        this.state={color:"green", points:[5, 70, 140, 23, 250, 60, 300, 20]};
    }

    changeSize() {
        const rect = this.refs.rect;
        // console.log(this.refs)
        rect.to({
            points: [5, 70, 140, 23, 250, 60, 300, 20, 900, 20],
            duration: 0.8
        })
    }

    render() {
    return (
      <div>
          <Stage width={700} height={800}>
              <Layer><Rect
                  x={10} y={10} width={50} height={50}
                  fill    =   {this.state.color}
                  points    =   {this.state.points}
                  onClick   =   {this.changeSize.bind(this)}
              /></Layer>
          </Stage>
      </div>
    );
  }
}

export default App;

To make it work, I had to modify changeSize() function as
changeSize() {
        //const rect = this.refs.rect;
        // console.log(this.refs)
        this.to({
            scaleX: Math.random() * 0.8,
            duration: 0.8
        })
    }

and call it as
<Layer>
    <Rect
              x={10} y={10} width={50} height={50}
              fill    =   {this.state.color}
              points    =   {this.state.points}
              onClick   =   {this.changeSize}
     />
</Layer>

You have an error, because you didn't define "rect" ref . So this.refs.rect is undefined.
You just need to add ref="rect" to Rect difinition in render() function.
<Rect
             ref="rect"
              x={10} y={10} width={50} height={50}
              fill    =   {this.state.color}
              points    =   {this.state.points}
              onClick   =   {this.changeSize}
     />


Application version check [Laravel 4]

The application check in d6c915496f86a19f60197f7ab6ce2baed793f3f8 only works in Lumen and Laravel 5+. Since Laravel 4 doesn't support $this->app->version() the application fails.
[RuntimeException]
  Error Output: PHP Fatal error:  Call to undefined method Illuminate\Foundat
  ion\Application::version() in /intervention/imag
  e/src/Intervention/Image/ImageServiceProvider.php on line 66

Thanks for pointing out. 6771cbfc785a04cbf863879bc41991e5e2cf9ec3 should fix it.


Update eng-common-workflow-enforcer

Fix error in eng-common-workflow-enforcer

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

Looks good but lets please test it out before merging.

I'll test it while calling it in the language repos


Fix naming inconsistencies wrt. test data factory classes

The code examples in the AbstractValueProvider Javadoc use MyBeanTestData as class name for the test data factory.
The respective classes in the example module are all named TestDataFactory which is also the term used in the README.md.
The  AbstractValueProvider Javadoc should therefore by adapted to fix this inconsistency.

Fixed as part of commit 32300ea46f3cc7a4aaa24f4349a3b7b9dde02897.


Support for Java 11 & other changes

Changes

Updated most dependency versions.
Added a dependency to make it compatible with Java 11. (Issue #30)
Replaced spongycastle dependency with bouncycastle. (Issue #26)
Replaced simple-xml dependency with simple-xml-safe. (Issue #26)
Entry fields (url, notes, passwords) are returned as character arrays. (Issue #28)

Notes

My approach to solving Issue #28 is probably rather ham-fisted as it makes all Entry fields be returned as character arrays, which might not be necessary and make the library a little harder to use.
I did not make any changes to the JAXB/HTTP modules as I felt they weren't used enough to warrant the time and effort.
I did not make any changes to the example or test modules.

Hi
Thanks for this PR and sorry to have taken a little time to acknowledge it.
The original reason for using spongy castle was for Android compatibility, wondering if that is still a problem with the latest bouncy castle?
I think there is a problem with the non-backwards compatible change to char[] from String for passwords. I don't disagree with the motivation, though. Possibly the way forward on that is to deprecate the String interface and introduce a new one. As you mention, I don't see the need to change all the methods to return char[].
I continue to hope that I will find some time soon to look at this.
Meanwhile, there is a branch with KeePass V4 support you might want to review.

@jorabin I'll have to test the Android compatibility of BouncyCastle, I shouldn't have assumed it would just work.
As for the char[] changes, while it will absolutely make the API non-backwards compatible, I think it is the right way to go, especially considering that not just passwords can be marked as protected in memory by KeePass. If KeePass permits marking Entry fields like title and notes as protected, that indicates to me that they could hold information worth hiding and (by my logic at least) are therefore worth wiping from memory. I do agree, though, that adding a new interface and deprecating the old one would be better than just changing existing methods like I did, that way existing API implementations won't break and new ones can use the new interface.


dbm.error: db type is dbm.gnu, but the module is not available

今天用 conda 来统一环境，但是报这个错误，有头绪吗?
Traceback (most recent call last):
  File "/mnt/data0/work/ComfyUI/nodes.py", line 1906, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/__init__.py", line 16, in <module>
    from .service.model_manager.model_installer import *
  File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_installer.py", line 13, in <module>
    from .model_list import start_populate_file_hash_dict, save_file_hash
  File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_list.py", line 21, in <module>
    with shelve.open(FILE_HASH_DICT_PATH) as file_hash_dict_early_open:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 243, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 227, in __init__
    Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
                         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/dbm/__init__.py", line 91, in open
    raise error[0]("db type is {0}, but the module is not "
dbm.error: db type is dbm.gnu, but the module is not available

Cannot import /mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager module for custom nodes: db type is dbm.gnu, but the module is not available

ohh ok 我回头加个catch这里 你用的什么python版本

From: darkmirrors @.>
Sent: Wednesday, July 10, 2024 6:03:29 PM
To: 11cafe/comfyui-workspace-manager @.>
Cc: Subscribed @.***>
Subject: [11cafe/comfyui-workspace-manager] dbm.error: db type is dbm.gnu, but the module is not available (Issue #436)
今天用 conda 来统一环境，但是报这个错误，有头绪吗?
Traceback (most recent call last):
File "/mnt/data0/work/ComfyUI/nodes.py", line 1906, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/init.py", line 16, in
from .service.model_manager.model_installer import *
File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_installer.py", line 13, in
from .model_list import start_populate_file_hash_dict, save_file_hash
File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_list.py", line 21, in
with shelve.open(FILE_HASH_DICT_PATH) as file_hash_dict_early_open:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 243, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 227, in init
Shelf.init(self, dbm.open(filename, flag), protocol, writeback)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/dbm/init.py", line 91, in open
raise error[0]("db type is {0}, but the module is not "
dbm.error: db type is dbm.gnu, but the module is not available
Cannot import /mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager module for custom nodes: db type is dbm.gnu, but the module is not available
―
Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/436, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOJ7DJVLX6FOXGXKGJ3ZLUBHDAVCNFSM6AAAAABKUR4QJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDAMZQGE2DIMI.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

噢我看到了你用的11，奇怪..没事 我回头加个catch吧这个不是必须要用的 主要是缓存models list

From: Weixuan F @.>
Sent: Wednesday, July 10, 2024 6:12:23 PM
To: 11cafe/comfyui-workspace-manager @.>; 11cafe/comfyui-workspace-manager @.>
Cc: Subscribed @.>
Subject: Re: [11cafe/comfyui-workspace-manager] dbm.error: db type is dbm.gnu, but the module is not available (Issue #436)
ohh ok 我回头加个catch这里 你用的什么python版本

From: darkmirrors @.>
Sent: Wednesday, July 10, 2024 6:03:29 PM
To: 11cafe/comfyui-workspace-manager @.>
Cc: Subscribed @.***>
Subject: [11cafe/comfyui-workspace-manager] dbm.error: db type is dbm.gnu, but the module is not available (Issue #436)
今天用 conda 来统一环境，但是报这个错误，有头绪吗?
Traceback (most recent call last):
File "/mnt/data0/work/ComfyUI/nodes.py", line 1906, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/init.py", line 16, in
from .service.model_manager.model_installer import *
File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_installer.py", line 13, in
from .model_list import start_populate_file_hash_dict, save_file_hash
File "/mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_list.py", line 21, in
with shelve.open(FILE_HASH_DICT_PATH) as file_hash_dict_early_open:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 243, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/shelve.py", line 227, in init
Shelf.init(self, dbm.open(filename, flag), protocol, writeback)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/comfyui/miniconda3/envs/py311/lib/python3.11/dbm/init.py", line 91, in open
raise error[0]("db type is {0}, but the module is not "
dbm.error: db type is dbm.gnu, but the module is not available
Cannot import /mnt/data0/work/ComfyUI/custom_nodes/comfyui-workspace-manager module for custom nodes: db type is dbm.gnu, but the module is not available
―
Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/436, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOJ7DJVLX6FOXGXKGJ3ZLUBHDAVCNFSM6AAAAABKUR4QJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDAMZQGE2DIMI.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Same promblem.
Traceback (most recent call last):
  File "/root/ComfyUI/nodes.py", line 1993, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/ComfyUI/custom_nodes/comfyui-workspace-manager/__init__.py", line 16, in <module>
    from .service.model_manager.model_installer import *
  File "/root/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_installer.py", line 13, in <module>
    from .model_list import start_populate_file_hash_dict, save_file_hash
  File "/root/ComfyUI/custom_nodes/comfyui-workspace-manager/service/model_manager/model_list.py", line 21, in <module>
    with shelve.open(FILE_HASH_DICT_PATH) as file_hash_dict_early_open:
  File "/opt/conda/lib/python3.10/shelve.py", line 243, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/opt/conda/lib/python3.10/shelve.py", line 227, in __init__
    Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)
  File "/opt/conda/lib/python3.10/dbm/__init__.py", line 91, in open
    raise error[0]("db type is {0}, but the module is not "
dbm.error: db type is dbm.gnu, but the module is not available

Cannot import /root/ComfyUI/custom_nodes/comfyui-workspace-manager module for custom nodes: db type is dbm.gnu, but the module is not available

I fixed this with git clean -xfd.
Looks like this happens with an update, and it just needs to get cleaned first.


fix: selectively ignore one warning instead of all warnings

Summary of Changes
When we tried to test whether a specific warning was issued, we discovered that these tests failed if all tests were run but passed if only the test for the warning was run. This happened because one module basically disabled all warnings when it was loaded. This behavior is now removed and instead one specific warning is disabled for the one call that may create it.

🦙 MegaLinter status: ✅ SUCCESS

Descriptor
Linter
Files
Fixed
Errors
Elapsed time

✅ PYTHON
black
2
0
0
0.58s

✅ PYTHON
mypy
2

0
1.58s

✅ PYTHON
ruff
2
0
0
0.03s

✅ REPOSITORY
git_diff
yes

no
0.02s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff
MegaLinter is graciously provided by

:tada: This PR is included in version 0.12.0 :tada:
The release is available on:

v0.12.0
GitHub release

Your semantic-release bot :package::rocket:


[Sema]Allow associated type inference for requirement returning dynamic Self...

… when witness returns it's own type and isn't a class or is a final class. (Same restrictions as meeting the requirement.)
Resolves SR-8902.

@swift-ci Please smoke test.

@swift-ci Please smoke test

@swift-ci Please smoke test.

@swift-ci Please smoke test.

@swift-ci Please smoke test.

@DougGregor want to take a look at this too?

Thank you!

Switched to hasDynamicSelfType() and added one more test with a non-trivial return type that includes dynamic self.

@swift-ci Please smoke test and merge.

@swift-ci Please smoke test Linux

@slavapestov Did you assign this because you wanted to do something more with it, or shall I merge?

@gregomni I assumed it to myself because we have a radar tracking this internally and I wanted to remind myself to close it ;)


feat: update something awesome

Codecov Report

Merging #57 (087978f) into master (7ba49cf) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #57   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines            7         7
=========================================
  Hits             7         7

Impacted Files
Coverage Δ

src/db/db.js
100.00% <ø> (ø)

Continue to review full report at Codecov.

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


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 949 ms

Resolved: Bofrost.at performance has improved in f05ca48 after 303 days, 23 hours, 31 minutes.


gh-113 Check for a file extension before doing a string in tuple cond…

…itional

Coverage increased (+0.1%) to 78.303% when pulling 89e9f2ded6e38add369be13f85029e65a8db558f on files-without-extension-gh-113 into b986c779e5fd81682ff367ec0cd600f2247ccc5d on master.

Coverage increased (+0.1%) to 78.303% when pulling bd32c87b37e735bf54ef9b33e417dec40574a0b8 on files-without-extension-gh-113 into b986c779e5fd81682ff367ec0cd600f2247ccc5d on master.


Add badge for gradle plugin portal

It would be cool if we have a badge for the gradle plugin portal.
I image it like similar the maven central or the bintray badge.
 (If it's working of course 🙃)

plugin portal | v0.9.95
You can use this URL for example: (don't know how shields works, but I think you need that 😄)
https://plugins.gradle.org/plugin/org.shipkit.java-publish/0.9.95

Hi, thanks for the suggestion. Do they have a public API?

I can't find one :disappointed:
Even something like _latest doesn't work...

I'm marking all the needs-upstream-help issues closed.
If there's new information from the upstream service, please post in the thread. If they're actionable by Shields, a maintainer will reopen the issue.
If anyone wants to follow up with these vendors, feel free to do that! Even though the unresolved issues are closed, they are easy to find:
https://github.com/badges/shields/issues?q=label%3Aneeds-upstream-help+is%3Aclosed

In the meantime, can't we just parse the output of https://plugins.gradle.org/plugin/<plugin-id> and extract the output? This would be abstracted by the shields.io API so when Gradle does expose a public API for getting just the version, we could always update the shields.io implementation.

Shields has limited server resources so we avoid parsing HTML for performance reasons.
Wanted to link gradle/gradle#1477 which is the request for an API.

@paulmelnikow I wrote a dumb parser, it should work for most cases. It currently redirects to a shield badge, which does not appear to be the way the maven badge thing works, but this is just a prototype, happy to rewrite it to match the shields.io style for plugins(?).
https://github.com/loosebazooka/gradle-plugin-badges

Just for reference:
https://github.com/badges/shields/issues/1839 & https://github.com/gradle/gradle/issues/1477#issuecomment-410068172

With the maven repo https://plugins.gradle.org/m2/  and the Maven metadata URL it work for me.

[![Maven metadata URL](https://img.shields.io/maven-metadata/v?label=Plugin&metadataUrl=https%3A%2F%2Fplugins.gradle.org%2Fm2%2Fde%2Finetsoftware%2Fjwebassembly%2Fde.inetsoftware.jwebassembly.gradle.plugin%2Fmaven-metadata.xml)](https://plugins.gradle.org/plugin/de.inetsoftware.jwebassembly)

@paulmelnikow Can you/we add the Gradle Plugin Portal badge as an alias of https://github.com/badges/shields/issues/1125#issuecomment-588435609?
The plugin marker artifact's group id is the id of the plugin and artifact id is <gradle plugin id>.gradle.plugin so It's possible to make an alias. I think it's not undocumented or reverse-engineered API endpoints because the Plugin Marker Artifact system is documented at Using Gradle Plugins.


Update disqus_dumpdata.py

Hi, another PR has been merged and we'll now stick to stdlib json. but thanks a lot for this pull request anyway!


jsonform does not work when loaded with htmx

jsonform version 2.11.0
I use htmx on my website to show a popup dialog with a form. The popup is triggered with this button:
Edit widget

And loads html dialog containing the following form template:
{% load bootstrap3 %}

{% csrf_token %}
{% bootstrap_form form layout='horizontal' %}
{{ form.media }}

This results with dialog opening correctly and containg the form, but the jsonform widget does not render. The following error is logged in console:
VM155:22 Uncaught ReferenceError: reactJsonForm is not defined
    at initJSONForm (<anonymous>:22:28)
    at <anonymous>:35:9
    at <anonymous>:37:3
    at Ge (htmx.min.js:1:17995)
    at htmx.min.js:1:18122
    at B (htmx.min.js:1:3281)
    at Ke (htmx.min.js:1:18094)
    at htmx.min.js:1:6875
    at htmx.min.js:1:32813
    at B (htmx.min.js:1:3281)

However, if I close the dialog and trigger it the second time, the jsonform widget does render.
I also tried removing dialog out of the equation and just render the form on the page, but same result. jsonform does not render the first time it is triggered.

In v2.11.0, the react widget is initialized in the template (see source) from a self-invoking function which automatically runs when the page loads.
So, when HTMX loads the content, the initialization function executes but since the JS files aren't loaded yet, you get this reactJsonForm is not defined error. It works second time because the scripts are already loaded.

I also tried removing dialog out of the equation and just render the form on the page

Same reason as above, the reason is that the initialization function is running before the scripts are loaded. Moving {{ form.media }} line above {% bootstrap_form form layout='horizontal' %} might fix it (but it's still not guaranteed). It was a bug in v2.11.0. This has been changed in v2.13.0. Now we wait for scripts to load before initializing. If you upgrade, this will be fixed. However, the dynamic loading will still not work.

I'll try to find a fix soon.

I looked into this a bit more. When HTMX dynamically loads the content, there's no event or any other way to know when the scripts will finish loading.
As a temporary fix, you can include the widget's dependencies in the initial page before loading the widget.
For v2.11.0:

<link rel="stylesheet" href="{% static 'django_jsonform/style.css' %}">

For v2.13.0 (and above), you also have to include this script after the above scripts:

I'll keep it open for now and see if there are any graceful ways to do this but don't expect a fix anytime soon.

Hi, I've released a fix in v2.15.0. Please upgrade and test it out.
And, since you're using an older version (v.2.11.0), I recommend reading release notes for v2.13.0 and v2.15.0. These two versions introduced minor breaking changes. Check whether you're affected or not.
Thank you.


Incorrect Error Message for Large Max Fuel Flow Rate Value

Created out of ticket #5698. When adding a Max Fuel Flow Rate value in a Monitoring System Fuel Flow record that is greater than the acceptable amount of digits, the error message returned is incorrect. The error message should inform users what the maximum amount of digits they can enter is. Currently in ECMPS 1.0, users are allowed to enter a Max Fuel Flow Rate value that is up to 8 digits left of the decimal place and one decimal place.
Steps to reproduce:

Check out ORIS 612, FMCT2A
In the Systems section of the monitoring plan, select system 108
Click View/Edit for one the PNG System Fuel Flow records
Enter a large Max Fuel Flow Rate value (ex. 100000000) and attempt to save. An incorrect error message is returned.

@lgiannini1 I checked the document and the error message that is mentioned in the document is the same that I see on the frontend can you please tell me what needs to be changed or added in the error message?

These are the screenshots.

Moving this to 2025 as it is a low priority. The value entered is too large- it shouldn't be greater than 8 decimal places left of the decimal point.

ECMPS 1.0 currently handles this in the UI.

Created PR https://github.com/US-EPA-CAMD/easey-monitor-plan-api/pull/607


Added container usage regexes for zabbix and ops registry pods.

[test]

Merging without bot because the bot is down and this is needed urgently.


Replace remaining fontawesome dropdown icons with SVG

Replace leftover dropdown triangles with SVG
Replace remove icon with SVG and add styling for it:

One more related tweak, active css added for label:

I think we should put these "best practices" into our devtmpl, the future contributors could simply copy & paste the code. Otherwise more <i icon> would come in the future.

I think we should put these "best practices" into our devtest/dropdown.tmpl, the future contributors could simply copy & paste the code, and we can tell them "please use the example in devtest/dropdown.tmpl". Otherwise more <i icon> would come in the future.

I plan to remove FontAwesome next, so <i> will no longer work then. Just need to confirm there's no more use coming from Fomantic I guess.

I think we should put these "best practices" into our devtest/dropdown.tmpl, the future contributors could simply copy & paste the code, and we can tell them "please use the example in devtest/dropdown.tmpl". Otherwise more <i icon> would come in the future.

I plan to remove FontAwesome next, so <i> will no longer work then. Just need to confirm there's no more use coming from Fomantic I guess.

I  think having examples in our devtest templates still helps developers , because when using Fomantic components, our code is different from the official one. If some contributors copy the Fomantic official code into Gitea, they will be surprised.

For example, everyone could have the question:
<div "ui dropdown">
	{{svg "octicon-triangle-down" 14 "dropdown icon"}}
	{{svg "octicon-x" 14 "remove icon"}}
</div>

Why there are two SVG elements ..... no document mentions that.

I think most people just copy existing HTML when creating new ones. They don't really care how it works under the hood or don't read documentation anyways. Seen it too many times where legacy stuff like inline styles are copied into new PRs.

I think most people just copy existing HTML when creating new ones. They don't really care how it works under the hood or don't read documentation anyways. Seen it too many times where legacy stuff like inline styles are copied into new PRs.

That's just because we do not have the best practice guideline.
And the examples could also help reviewing, if some people write non-ideal code, we can just tell them: see the devtest examples.

Devtest examples are good, but only if they are kept up to date. I need to look into those.


Unify UX

This PR builds on top of https://github.com/LedgerHQ/app-tezos/tree/unifiy-ux , updagrind the Nano S to use UX_FLOW.
I've removed some fields in the globals_t structure along the way, as it was required in order not to stackoverflow. Most fields I've removed are public_key related fields, which are now recomputed when we need them (ah, the time / space dilemma.... :p)

closed in favor of https://github.com/LedgerHQ/app-tezos/pull/18


Etag management

Is there any default mechanism to  manage etag ?
Is it to the developer to manage etag and insert the if-no-match header ?

It depends on whether the HttpClient in Dart:io library support.


Fails to build on Fedora "v4l2_pix_format_union_(anonymous_at_/usr/include/linux/videodev2_h_500_2)" is not a valid Ident

When I try to build v4l2-sys-mit v0.2.0 on Fedora it fails with the error below. I have tried in a clean Fedora container with the same results. Works in a Ubuntu container.
   Compiling v4l2-sys-mit v0.2.0
error: failed to run custom build command for `v4l2-sys-mit v0.2.0`

Caused by:
  process didn't exit successfully: `/webcam/target/debug/build/v4l2-sys-mit-8a538bcaf39af04d/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.56.0/src/ir/context.rs:846:9:
  "v4l2_pix_format_union_(anonymous_at_/usr/include/linux/videodev2_h_500_2)" is not a valid Ident
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

You could try bumping bindgen to the latest upstream version and see whether this helps. Which version of Fedora is this, by the way?

The latest version works (v4l2-sys-mit v0.3.0). It was just 0.2.0 that did not build. I just need to push my dependency to update this dependency then. I'm consuming v4l2-sys-mit via nokhwa :)
I run the latest Fedora (39) btw.

Thas was apparently already brought up in https://github.com/l1npengtul/nokhwa/issues/147. Sorry for the noise!


Replace blur with focus out

@jperals I'm replacing "blur" with "focusout" because we need the event to bubble.
Use case:
Inside element user has a button as a drag handler, and user use keyboard to drag element by using that button. When the sensor is activated, the event won't be caught because "blur" doesn't bubble up the DOM tree

Hi @tonybuiswe,
Not sure I understand the use case. Are the listeners provided by dnd-kit not attached to this button element that you mention wich acts as a drag handler? If they are assigned to the same button element, why the need to bubble? Or if the listeners are assigned to a different element, why is that?
Also, note that this is not the main dnd-kit repository, which is here: https://github.com/clauderic/dnd-kit. This repository was created with the sole purpose of opening this PR (which was never merged) against the main repository. Eventually merging this PR in this repository would not publish any changes to the @dnd-kit/core npm package, as merging a PR in the main repository would.

@jperals
"Are the listeners provided by dnd-kit not attached to this button element that you mention which acts as a drag handler ?"
No, they're not, they are attached to the parent element which is passed a ref only.
const { setNodeRef } = useSortable({id})
{children}

My PR has been open for almost a year, so I would not let something urgent depend on that. If you need to get unblocked, I would recommend you to make a local modified copy of the keyboard sensor, as we did ourselves here.


Fix broken links

The previous links returned a GitHub 404. This fixes the links to point to the files on the master branch. Not sure if that is what you want, but thought I'd make this pull request to help out.

I signed it


Need precommit (or similar) check for dashboards

We should automatically have the fix_datasources.sh script run for all updates to the dashboards.
cc: @jeffmendoza

Sounds good, I will check the latest Grafana version to see if the script is still needed first.

I checked the latest version and it sill requires the script to go from export to provisioning, so I'll move forward with the check.
#4254


clarify atomicity of deploy start

Description
Ensure we end the deploy if we start it, all part where in place, this is mostly docs
closes #8325
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[x] Type annotations are present
[x] Code is clear and sufficiently documented
[x] No (preventable) type errors (check using make mypy or make mypy-diff)
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
[ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

Processing this pull request

Merged into branches master in dbf5c7ae7233a775375b50e77dc76cdb2e1bd68d


Switching branch in flux_bootstrap_git shouldn't force a replacment

Hello,
While working on flux or other integrations, I frequently switch branch, but doing it with the new flux_bootstrap_git forces to reinstall flux, which it troublesome (didn't test it, but I think it will break many thing).
I think it should be able to change the branch in the gitrepository object without breaking flux.
I managed to prevent the deletion of flux by:

Patching the gitrepository
terraform state rm flux_bootstrap_git.this
terraform import flux_bootstrap_git.this flux-system

Also, refreshing the resource should detect branch changes.
Thanks in advance.

After moving the git configuration to the provider this is not an issue anymore as it does not force a new resource. Please reopen the issue if you are still having issues.


API for Numba IR rewrite passes

There is currently no official API for adding rewrite passes to the compiler.  We should fix that, as external projects may want to add support for various optimizations or custom code transformations.

Can this be closed given there's an API available to implement compiler passes, and also entirely new compiler pipelines, this in general covering rewrites?

Closing as covered by the referenced link. Thanks for raising this.


Using Kafka Streams Branching as @Component Bean causes NPE

Description
Next to the issue of https://github.com/spring-cloud/spring-cloud-stream/issues/2820 I've found another issue when using Kafka Streams branching mechanism, but in this case here when the branching function is registered as @Component bean.
To Reproduce
Steps to reproduce the behavior:

Get the example from https://github.com/spring-cloud/spring-cloud-stream-samples/tree/main/kafka-streams-samples/kafka-streams-branching
Rewrite the example to create a @Component bean instead of a function @Bean
When running the example, see that an NPE is being triggered like:

Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Class.isAssignableFrom(java.lang.Class)" because the return value of "org.springframework.core.ResolvableType.getRawClass()" is null
	at org.springframework.cloud.stream.binder.kafka.streams.function.KafkaStreamsBindableProxyFactory.buildInputBindings(KafkaStreamsBindableProxyFactory.java:212)
	at org.springframework.cloud.stream.binder.kafka.streams.function.KafkaStreamsBindableProxyFactory.afterPropertiesSet(KafkaStreamsBindableProxyFactory.java:100)

Suggested Fix
The issue is that the code at the following place doesn't expect the type to miss the raw class:
https://github.com/spring-cloud/spring-cloud-stream/blob/ca2d3046b9bed5bb29b82a55044fe8fa809a760d/binders/kafka-binder/spring-cloud-stream-binder-kafka-streams/src/main/java/org/springframework/cloud/stream/binder/kafka/streams/function/KafkaStreamsBindableProxyFactory.java#L206-L212
As one can see in the original code before this is being checked on the regular types:
https://github.com/spring-cloud/spring-cloud-stream/blob/ca2d3046b9bed5bb29b82a55044fe8fa809a760d/binders/kafka-binder/spring-cloud-stream-binder-kafka-streams/src/main/java/org/springframework/cloud/stream/binder/kafka/streams/function/KafkaStreamsBindableProxyFactory.java#L200-L202
so I've adapted the path for @Component bean in the same way which fixed the issue for me, like:
final ResolvableType returnType = ResolvableType.forMethodReturnType(method);
Object bean = beanFactory.containsBean(functionName) ? beanFactory.getBean(functionName) : null;

if (bean != null && (BiFunction.class.isAssignableFrom(bean.getClass()) || BiConsumer.class.isAssignableFrom(bean.getClass()))) {
  numberOfInputs = 2;
}
else if (returnType.getRawClass() != null && (returnType.getRawClass().isAssignableFrom(Function.class) || returnType.getRawClass().isAssignableFrom(Consumer.class))) {

Version of the framework
4.0.3
Let me know if you've any further questions.

@GFriedrich Thanks for the issue. This is fixed on the main branch and back-ported to 4.0.x.

Awesome - thats great to hear. Looking forward to the next release.


Bug with bn after saving

After saving bn records inside dict were overwritten, this bug was fixed.

Codecov Report

Merging #91 (6c27969) into master (f234a9f) will decrease coverage by 0.03%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
- Coverage   65.03%   65.01%   -0.03%
==========================================
  Files          43       43
  Lines        2903     2907       +4
==========================================
+ Hits         1888     1890       +2
- Misses       1015     1017       +2

Files
Coverage Δ

bamt/networks/base.py
46.81% <16.66%> (-0.20%)
:arrow_down:

... and 1 file with indirect coverage changes


Having trouble in SmsRetriever

when first time , I insert phone no  and wait for SMS , it does not auto fill the OTP
here is log -
11-07 19:36:44.683 2143-2143/? I/SmsRetriever: [SmsRetrieverApiChimeraService] Prefix does not match 11-07 19:36:44.683 2143-2143/? I/SmsRetriever: [EndsWithStringMatcher] Found a match 11-07 19:36:44.683 2143-2143/? I/SmsRetriever: [SmsRetrieverApiChimeraService] No matching message is found
But if go back and again fill the phone no , it fills the OTP
here is log -
11-07 19:38:43.314 2143-2143/? I/SmsRetriever: [EndsWithStringMatcher] Found a match 11-07 19:38:43.314 2143-2143/? I/SmsRetriever: [SmsRetrieverApiChimeraService] Matched prefix:[#]
Have tried debugging but can't find anything

Not quite sure what could be causing this :-(.
Can you get the sample app to work? (For testing purposes you should be able to send text messages "manually" via adb or the emulator, rather than setting up the service.)

@ithinkihaveacat I just want to know is the sample code updated to details explained in this video? https://www.youtube.com/watch?v=jzWYv8y2v1c

I am closing this issue/PR, as it has been migrated to the new repo linked above in the comments. Thank you!


[Portuguese] Localize 'Shift Left'

Localize https://glossary.cncf.io/shift-left/

Hello, @MrErlison I would like to localize this term, could you assignee for me?

Hello, @MrErlison I would like to localize this term, could you assignee for me?

Hi @matheuspaes if you need help, please don't hesitate to ask us in  Portuguese slack channel #glossary-localization-portuguese


AddMax/MinEquality constraint not working with OnlyEnforceIf

I'm using the SAT-Solver in python and I've come across some odd behavior. There seems to be a bug with the AddMaxEquality constraint when it is used together the method OnlyEnforceIf taking a BoolVar as input.
Here's a brief example of the problem:
from ortools.sat.python import cp_model
model = cp_model.CpModel()
solver = cp_model.CpSolver()

a = model.NewIntVar(0,15, 'a')
b = model.NewIntVar(0,15, 'b')
c = model.NewIntVar(0,15, 'c')
d = model.NewIntVar(0,15, 'd')
e = model.NewBoolVar('e')

model.AddMaxEquality(d, [a,b,c]).OnlyEnforceIf(e)

solver.Solve(model)

As a result, I get MODEL_INVALID
However, with the following instead: model.AddMaxEquality(d, [a,b,c]).OnlyEnforceIf(1) the result is FEASIBLE.
Furthermore, I'm using ortools version 7.4.7247.

From the last CHANGELOG:

CP-SAT: The solver now checks for constraints that do not support enforcement literals (they are the Boolean literals passed to OnlyEnforceIf() methods). The model checker will return an error before solving if such a constraint has an enforcement literal.

So yeah, it is not accepted anymore. I guess you can declare a intermediate var:
tmp = model.NewIntVar(0,15, '')
model.AddMaxEquality(tmp, [a,b,c])

model.Add(d == tmp).OnlyEnforceIf(e)

PS: .OnlyEnforceIf(1) works because it is removed during presolve

I reviewed the documentation and found out that the OnlyEnforceIf method is sepcified to work with BoolAnd, BoolOr and "linear constraints". I'm guessing AddMaxEquality and AddMinEquality do not fall into any of these categories...
I've found a workaround for my need, but it would make some useful feature for the OnlyEnforceIf method to also work for the aforementioned constraints.

Exactly.
Thanks

I had the same issue (ie. MODEL_INVALID) but for AddCircuit.
Mine is a job-shop problem where some machines are not used, causing AddCircuit to fail with the status INFEASIBLE.
This is how I fixed it:
is_used = model.NewBoolVar("")
model.Add(sum(machine_presences) > 0).OnlyEnforceIf(is_used)
model.Add(sum(machine_presences) == 0).OnlyEnforceIf(is_used.Not())
arcs.append([0, 0, is_used.Not()]) # << this is key

As documented, OnlyEnforceIf only works on BoolOr, BoolAnd, and Linear
equations.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le dim. 26 avr. 2020 à 04:29, Felix Tioh<EMAIL_ADDRESS>a
écrit :

I had the same issue (ie. MODEL_INVALID) but for AddCircuit.
Mine is a job-shop problem where some machines are not used, causing
AddCircuit to fail with the status INFEASIBLE.
This is how I fixed it:
is_used = model.NewBoolVar("")
model.Add(sum(machine_presences) > 0).OnlyEnforceIf(is_used)
model.Add(sum(machine_presences) == 0).OnlyEnforceIf(is_used.Not())
arcs.append([0, 0, is_used.Not()]) # << this is key
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1703#issuecomment-619469925,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3NUFEM3APZDKR4RDVTROOL7BANCNFSM4JLJEL6Q
.

OnlyEnforceIf doesn't work with AddAllowedAssignments :(
i wanted to specify a constraint to one fixed list of literal value pairs for [x,y], if a certain boolean is true, and to another fixed list of literal value pairs for [x,y] otherwise.
Is there a way to do so?

OnlyEnforceIf doesn't work with AddAllowedAssignments :(
i wanted to specify a constraint to one fixed list of literal value pairs for [x,y], if a certain boolean is true, and to another fixed list of literal value pairs for [x,y] otherwise.
Is there a way to do so?

Maybe something like this?
model = cp_model.CpModel()
x = model.NewIntVar(0, 10, "x")
y = model.NewIntVar(0, 10, "y")

boolean = model.NewBoolVar("")
a1 = model.NewBoolVar("a1")
a2 = model.NewBoolVar("a2")
b1 = model.NewBoolVar("b1")
b2 = model.NewBoolVar("b2")

model.AddBoolOr([a1, a2]).OnlyEnforceIf(boolean)
model.AddBoolOr([b1, b2]).OnlyEnforceIf(boolean.Not())

model.Add(x == 1).OnlyEnforceIf(a1)
model.Add(y == 1).OnlyEnforceIf(a1)

model.Add(x == 2).OnlyEnforceIf(a2)
model.Add(y == 2).OnlyEnforceIf(a2)

Maybe something like this?
model = cp_model.CpModel()
x = model.NewIntVar(0, 10, "x")
y = model.NewIntVar(0, 10, "y")

boolean = model.NewBoolVar("")
a1 = model.NewBoolVar("a1")
a2 = model.NewBoolVar("a2")
b1 = model.NewBoolVar("b1")
b2 = model.NewBoolVar("b2")

model.AddBoolOr([a1, a2]).OnlyEnforceIf(boolean)
model.AddBoolOr([b1, b2]).OnlyEnforceIf(boolean.Not())

model.Add(x == 1).OnlyEnforceIf(a1)
model.Add(y == 1).OnlyEnforceIf(a1)

model.Add(x == 2).OnlyEnforceIf(a2)
model.Add(y == 2).OnlyEnforceIf(a2)

Ok I see, so I have to list it out line-by-line
I was just wondering whether there was a concise way to write it e.g. AddAllowedAssignments allows me to specify a single list in one line

Ok I see, so I have to list it out line-by-line
I was just wondering whether there was a concise way to write it e.g. AddAllowedAssignments allows me to specify a single list in one line

As documented, OnlyEnforceIf only works on bool_or, bool_and, and linear
constraints.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le sam. 2 janv. 2021 à 02:56, evandrix<EMAIL_ADDRESS>a écrit :

Ok I see, so I have to list it out line-by-line
I was just wondering whether there was a concise way to write it e.g.
AddAllowedAssignments allows me to specify a single list in one line
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1703#issuecomment-753416506,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3LWFRTCVPRN3J7HPELSXZ4MTANCNFSM4JLJEL6Q
.

As documented, OnlyEnforceIf only works on bool_or, bool_and, and linear
constraints.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le sam. 2 janv. 2021 à 02:56, evandrix<EMAIL_ADDRESS>a écrit :

Ok I see, so I have to list it out line-by-line
I was just wondering whether there was a concise way to write it e.g.
AddAllowedAssignments allows me to specify a single list in one line
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1703#issuecomment-753416506,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3LWFRTCVPRN3J7HPELSXZ4MTANCNFSM4JLJEL6Q
.

I am not getting an error when trying to apply OnlyEnforceIf on AddAllowedAssignments and the solver fails silently

It does not fail silently. It returns a model_invalid status.
Le ven. 22 avr. 2022, 17:33, eyaler @.***> a écrit :

I am not getting an error when trying to apply OnlyEnforceIf on
AddAllowedAssignments and the solver fails silently
—
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1703#issuecomment-1106629967,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3JG3JKR4LY7Y2F6OXTVGLBDFANCNFSM4JLJEL6Q
.
You are receiving this because you were assigned.Message ID:
@.***>


Confused about some Pooler parameters

❓ Questions and Help
Hi, I'm not a deep learning expert so I apologize if that is a trivial question.
I'm a bit confused by the
 _C.MODEL.ROI_BOX_HEAD.POOLER_SCALES = (0.25, 0.125, 0.0625, 0.03125)
 _C.MODEL.ROI_BOX_HEAD.POOLER_SAMPLING_RATIO = 2
parameters in the yacs config files. I looked at the Pooler and relevant roiAlign cuda code, but I'm still not sure how these values are computed and what they mean. Can somebody please explain them? Thanks.

No need to apologize, there is no trivial question.
These scales stand for the reduction scales caused by the backbone's strides. BTW, you should understand well the ResNet and ResNeXt architectures to better understand this explanation.
For instance, suppose you found a RoI of coordinates [0, 0, 64, 64] in the input image. Suppose again that you want to pool its features from all backbone's levels (here, a backbone is a ResNet or ResNeXt architecture).
So, since there is a stride of 2 in the conv1 layer and another stride of 2 at the end of the first block, it results in a feature-map 4x smaller than the original image, thus, a scale of 0.25. Since, there is a stride of 2 between all the convolution blocks of the backbone, the scale gets divided by 2 at each level.
Hence, the coordinates of your RoI will be:

[0, 0, 16, 16] in the first level feature-map
[0, 0, 8, 8] in the second level feature-map
[0, 0, 4, 4] in the third level feature-map
[0, 0, 2, 2] in the fourth level feature-map

The sampling_ratio parameter determines how many samples you want to do in the bi-linear interpolation of the RoIAlign algorithm.

Thank you very much @LeviViana . That is a very good explanation! However, that would be great if you could clarify one thing about the "pool its  features from all backbone's levels" bit... My understanding is that, assuming the four levels you described, we get four tensors of different sizes by projecting the ROI into each of these levels (e.g. one of size batch_size*num_channels_on_first_level*16*16, another of size batch_size*num_channels_on_second_level*8*8 and so on). If I'm not mistaken, in the end, we only want to have a single "small" featuremap per ROI, so it seems to me that the reasonable thing to do is to perform roiAlign on each of these tensors separately, and then combine the four resutling fix-sized featuremaps afterwards. Is that correct, and if that's the case, where/how is it done? Thanks again for your time.

Thanks for your great explanation @LeviViana !

thanks


feat(ui-ux): add cursorPagination for listing page

What this PR does / why we need it:
As titled
Which issue(s) does this PR fixes?:

Fixes #
Sample Links & Screenshots:

Link:

Desktop Screenshot

Mobile Screenshot

Additional comments?:
There is an issue with the pagination where by if we have 30 proposals it should only have 3 pages but a 4th page is appearing in the number buttons for CursorPagination resulting in below image

Developer Checklist:

[ ] Read your code changes at least once
[ ] Tested on multiple web browsers
[ ] Tested responsiveness (e.g, iPhone, iPad, Desktop)
[ ] No console errors
[ ] Unit tests*
[ ] Added e2e tests*

Issue reported in additional comment has been long standing issue in jellyfish, currently the api does not perform a +1 look ahead when returning next token


Wallet not reflecting the actual balance

Just checking...

[X] This is a cardano-wallet bug.
[X] I am using the latest cardano-wallet release.
[X] I am using the correct cardano-node version for that release of cardano-wallet.

Version
v2022-01-18 (git revision: a5085acbd2670c24251cf8d76a4e83c77a2679ba)
Platform
Linux jeffhappily 5.13.0-28-generic #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 GNU/Linux
Installation method
Binary from GitHub release page
Network configuration
mainnet
Context
No response
Description
Steps to Reproduce

Start the wallet (with the node running already)

> cardano-wallet serve --mainnet --node-socket $HOME/cardano/db2/node.socket --database db-wallet +RTS -N4 -RTS

Query

> cardano-wallet wallet get <my id>
{
    "balance": {
        "total": {
            "quantity": 0,
            "unit": "lovelace"
        },
        "available": {
            "quantity": 0,
            "unit": "lovelace"
        },
        "reward": {
            "quantity": 0,
            "unit": "lovelace"
        }
    },
    "name": "...",
    "id": "...",
    "tip": {
        "height": {
            "quantity": 6882893,
            "unit": "block"
        },
        "epoch_number": 321,
        "time": "2022-02-14T22:19:40Z",
        "absolute_slot_number": 53310889,
        "slot_number": 2089
    },
    "passphrase": {
        "last_updated_at": "2022-02-14T16:11:59.411505681Z"
    },
    "address_pool_gap": 20,
    "state": {
        "status": "ready"
    },
    "delegation": {
        "next": [],
        "active": {
            "status": "not_delegating"
        }
    },
    "assets": {
        "total": [],
        "available": []
    }
}

Expected behavior
My actual balance should be shown.
Actual behavior
I was trying to use cardano-wallet to check the balance of my wallet (and perform some transactions), but the correct balance isn't shown. If I query from Cardano Scan or login to Yoroi with the same credentials, I am able to see my correct balance, so I'm not sure what went wrong.
One thing to mention is that when I try to query my addresses using
cardano-wallet address list <my id>

I can't seem to find my used address (the one that I transferred money to), but when I look up for any of these new addresses on Cardano Scan, it's connected to my previous transactions via the same stake key.

The wallet is fully synced? 🤔 You can get the synchronization status with GET /v2/network/information (field sync_progress).

I was trying to use cardano-wallet to check the balance of my wallet (and perform some transactions), but the correct balance isn't shown. If I query from Cardano Scan or login to Yoroi with the same credentials, I am able to see my correct balance, so I'm not sure what went wrong.

Just to make sure, is the wallet that you were using on Yoroi a Shelley wallet? Yoroi used to support also sequential Icarus Byron wallet's. Note that if your addresses in the wallet are prefixed with addr_ then it is a Shelley wallet, otherwise it is most likely Icarus.
Icarus type of wallet can be restored in cardano-wallet with different endpoint:
POST /byron-wallets
For instance:
$ curl -X POST http://localhost:8090/v2/byron-wallets \
-d '{"name":"My Test Wallet (icarus)",
      "style":"icarus",
      "passphrase":"Secure Passphrase",
      "mnemonic_sentence":["boil","predict","dolphin","eye","soon","knee","fine","alter","sausage","inquiry","asset","also"]}' \
-H "Content-Type: application/json"

Then you can manage transactions on that wallet with this set of endpoints https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Byron-Transactions.

@HeinrichApfelmus Yes it's fully synced
@piotr-iohk It's a Shelley wallet
I'm not sure what happened, I was guessing it could be that the address I transferred to isn't in the list of addresses managed by cardano-wallet, so possibly cardano-wallet only looked up for those addresses? I don't know, but I managed to resolve this by transferring the fund (via Yoroi) to another cardano-wallet managed wallet, and everything works fine. So I'm closing this issue.
Thanks for helping.


FEniCS is not working

I tried running tutorials/HT/partitioned-heat/fenics-fenics and got an error:
$ python3 heat.py
...
ModuleNotFoundError: No module named 'fenics'

FEniCS is installed in the develop branch. Please try again and close. :)

I checked the current version from develop and now we get the following error:
vagrant@precicevm:~/Desktop$ python3
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fenics
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/fenics/__init__.py", line 7, in <module>
    from dolfin import *
  File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/__init__.py", line 144, in <module>
    from .fem.assembling import (assemble, assemble_system, assemble_multimesh, assemble_mixed,
  File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/fem/assembling.py", line 38, in <module>
    from ufl.form import sub_forms_by_domain
ImportError: cannot import name 'sub_forms_by_domain' from 'ufl.form' (/home/vagrant/.local/lib/python3.8/site-packages/ufl/form.py)
>>>

This is a good old friend of mine: See https://github.com/precice/fenics-adapter/issues/103 and especially https://fenicsproject.discourse.group/t/installing-python-package-with-fenics-dependency-breaks-fenics-installation/4476. I would suggest implementing the fix from the forum post directly in the vm.
I already tried this manually in the vm and it seems to work:
vagrant@precicevm:~/Desktop$ pip3 uninstall -y fenics-ufl
Found existing installation: fenics-ufl 2019.1.0
Uninstalling fenics-ufl-2019.1.0:
  Successfully uninstalled fenics-ufl-2019.1.0
vagrant@precicevm:~/Desktop$ python3
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fenics
>>>

Let's keep this issue open. Problem has slightly shifted, but is still there.

I am already doing this, so I am confused:
https://github.com/precice/vm/blob/7d1f1fb6c92eaadad002dfccf4b43c8c155afb82/provisioning/install-fenics.sh#L15

I am already doing this, so I am confused:
https://github.com/precice/vm/blob/7d1f1fb6c92eaadad002dfccf4b43c8c155afb82/provisioning/install-fenics.sh#L15

Hmm... this also brings for me a new layer of confusion into https://github.com/precice/fenics-adapter/issues/103.

The same problem here:
from fenics import *

ModuleNotFoundError: No module named 'fenics'

The same problem here:
from fenics import *

ModuleNotFoundError: No module named 'fenics'

@vidanovic As far as I understand the history of our current release (https://github.com/precice/vm/releases/tag/v202211.0.0), the fix from #64 is not included yet. Can you try to uninstall fenics-ufl as described above? (I'm assuming you are using v202211.0.0)

@BenjaminRodenberg Yes, I have tried to uninstall fenics-ufl and it did not help. Will try later when this is fixed.
Best!

@vidanovic we are not planning any release of the vm (even a bugfix) till the next preCICE Distribution (which will come after preCICE v3 is released, not before summer). Do you need this fix released soon?

@MakisH No, it is not urgent at all. It was more of a test against some of the equations I am developing in my FEM engine.


Change copyright & maybe also the license

The copyright should be
Copyright 2014-2016 Javaslang contributors

Which license fits best?
The headers and IDEA settings.jar have to be changed accordingly.
/*     / \____  _    _  ____   ______  / \ ____  __    _______
 *    /  /    \/ \  / \/    \ /  /\__\/  //    \/  \  //  /\__\   JΛVΛSLΛNG
 *  _/  /  /\  \  \/  /  /\  \\__\\  \  //  /\  \ /\\/ \ /__\ \   Copyright 2014-2016 Javaslang contributors
 * /___/\_/  \_/\____/\_/  \_/\__\/__/\__\_/  \_//  \__/\_____/   Licensed under the Apache License, Version 2.0
 */

Regarding the lifetime we spent (thousands of hours of hard work), it is important to me that the copyright remains at the authors of Javaslang.
Per definition, the authors of Javaslang are part of the Javaslang organisation. Therefore the copyright should remain at the organisation. We are Javaslang.
Copyright 2014-2016 Javaslang
I wil change the headers accordingly.

Fixed

(IntelliJ settings are also up-to-date now)


Fix IRGen and tests to use musttail/swiftasync correctly

@swift-ci smoke test

@swift-ci clean smoke test Linux

@swift-ci smoke test Linux

@varungandhi-apple This test is failing on watchsimulator-i386 and windows-x86_64.
IRGen/async/run-call-dynamic-void_to_void.swift:20:14: error: CHECK-LL: expected string not found in input
// CHECK-LL: musttail call swifttailcc void
             ^

@benrimmington, the watch simulator case should be fixed with this LLVM change. https://github.com/apple/llvm-project/pull/2768 (the automerger needs to get through)
I can fix it for Windows.

https://github.com/apple/swift/pull/36720

apple/llvm-project#2768 has been reverted in apple/llvm-project#2786


Hi, not an issue but a request

Is it possible to add a funtion to capitalise just the first letter of a list item/sentence? I love this addon, it's just one of those QOL ones which makes everything so much easier, if you're editing things.

support it on version 1.1.0.
I only consider the conditions that the letter is after ?!. or the letter is the first of the line and selection. If there are some conditions that I miss, please comment here, and I will update the code.

Oh wow that's great, that should work brilliantly, looking forward to it, thank you!


Using paper-material without dependency

paper-typeahead-input version: 1.3.15
Polymer version: 1.8.1
Line 15 imports paper-material, but bower.json doesn't list paper-material as a dependency.
As a result, including paper-typeahead-input as a dependency in another project (but not paper-material), running bower install, and then building the project with polymer-build throws an error:
Error: ENOENT: no such file or directory, open '/path/to/my/project/bower_components/paper-material/paper-material.html'

Adding the paper-material dependency to the consuming project is a sufficient workaround, but it should be in paper-typeahead-input's dependency list.

Hi @Lithl
This is going to be handled by #48


Add license file to distribution

Currently, the license file is not included in the PyPI distribution. This should fix it.
Ref: https://pypi.org/project/dwave-cloud-client/#files
CC https://github.com/dwavesystems/dwave-ocean-sdk/issues/144

@randomir This would also make https://github.com/dwavesystems/dwave-ocean-sdk/issues/144 slightly easier but not a requirement.

Thanks for merging.