Models: Create definitions for everything in AaiComponents

Maybe this one has been addressed through #187 ?

No the issue here is that we're re-using the same models for definitions and non-definitions (in-line usage).  So these for example:
https://github.com/Apicurio/apicurio-data-models/blob/master/src/main/java/io/apicurio/datamodels/asyncapi/models/AaiComponents.java#L44-L47
This results in fewer models but more difficult visitation and analysis.  Because when you visit e.g. an AaiMessage you don't know if it's inline or a definition found in the /components.  The result is code like this:
https://github.com/Apicurio/apicurio-data-models/blob/master/src/main/java/io/apicurio/datamodels/asyncapi/io/AaiDataModelWriter.java#L309-L331
Where we try to figure out from the parent what kind of thing we're writing out.  If instead we had a AaiMessageDefinition subclass with its own visitMessageDefinition, we would just know.  It makes some other things slightly more difficult (e.g. if you have a visitor that needs to analyze Messages and MessageDefinitions then you need to implement the visit method for both of those).  But it's how we do things in the OpenAPI model, so if nothing else we should be consistent.


Single-page application page tracking

For multi-page applications the operation ID is different for each page request.  Support for equivalent behavior is needed for single page applications.  Perhaps a new method appInsights.trackPageRequest() which changes the operation ID is a reasonable way to support this?

Hi @gregjhogan, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@gregjhogan, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;

Closing stale PR

Does my request make sense? Should I update and resubmit?  If not how do you recommend changing the operation ID when navigating around a single page application?  Thanks!

@gregjhogan apologies for closing this PR without explanation! I only just realised we never properly responded to it. You are absolutely right that for SPAs the user may want to create new operationID and new operation name for all or some of page transitions, however we feel that it doesn't warrant a separate  root level API. The name trackpagerequest can be easily mixed up with trackpageview and gives no indication that operation ID is changing. This API would be redundant, we feel the user should implement this on their side as we are trying to approach introduction of each new API extremely carefully. Going forward we may decide to invest in SPA support and implement some sort of page auto tracking for popular SPA frameworks.


Open source license inquiry

Hey I'm really excited about this extension after hearing about it on PortSwigger's blog. There's currently no license file for this project though so I was hoping you could post one – hopefully one that's open source (ie: not just "source available"). Github provides a great brief guide to choosing a license. Thanks so much for your time and this awesome project!

I really need to stop forgetting to add a license to these, I'll add MIT - one min

Added in this commit: https://github.com/mandatoryprogrammer/ChromeGalvanizer/commit/8a972b74006122a7da31bafdc9fedbf233a94498
Thanks for filing the issue! If this license doesn't work for your use-case for some reason feel free to file another issue and I can take another look. (I think MIT should be open enough for everyone)

Awesome thanks so much!


Install.sh syntax error

Error message: Line 69: syntax error near unexpected token `newline'
Found this while trying to install.

Figured out what was wrong, personal error.


Check geography of events and groups added by user

The event aggregator should filter the events and event groups submitted by user based on geography. For instance, Kompiler would only want events from Bergen and the surrounding area to be added. Because the event submission form is completely open to any Internet user there needs to be a mechanism by which we filter out events not geographically relevant to the organisation.
When the event modules (meetup, facebook, and eventbrite) has fetched their events, Paraply 2 should check wether the event or group location satisfy some geographical criteria. I suggest we let the configuration file define a geobox (for example a square), and let a module implement a function to check wether the longitude and latitude pair of the event is inside this geobox. If there is no longitude and latitude the code should use an address to lon, lat api to fetch the coordinates and then run the check.
Events and groups that do not match the geographical criteria should not be inserted into the ElasticSearch index.

Finished.


alpha f has bug?

VSCode Version:
1.46.1
cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
x64

OS Version: Darwin * 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan  9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64

Steps to Reproduce:

type files

Does this issue occur when all extensions are disabled?: No

code -v
1.47.0
d5e9aa0227e057a60c82568bf31c04730dc15dcd
x64
the latest versins can not reproduce，so close. sorry and thanks.


Drawing a circuit nicely.

Printing a circuit looks very dull and boring. Is there a way to make the circuits look a little nicer with colors and shapes when printed or drawn like in qiskit?
The reason I am asking for this feature is because I have a blog where I write about quantum computing and I would like to add code examples written using cirq. If there is a way to make circuits look nice, I will use cirq in my blog.
What is the urgency from your perspective for this issue? Is it blocking important work?

P3 - I'm not really blocked by it, it is an idea I'd like to discuss / suggestion based on principle

Hey @chitramdasgupta, You an draw nicer looking diagrams than the ones from printing the circuits if you have Jupyter notebook
import cirq
from cirq.contrib.svg import SVGCircuit

a, b = cirq.LineQubit.range(2)
SVGCircuit(cirq.Circuit(cirq.X(a), cirq.CNOT(a,b)))

@chitramdasgupta I just filed https://quantumcomputing.stackexchange.com/questions/16521/in-cirq-how-do-you-display-circuit-diagrams-that-are-prettier-than-the-ones-d. Please re-open this issue if you have more questions.


Problem while accessing arduino core libraries in Ardupilot code??

Hello,
I'm using "ArduPilot-Arduino-1.0.3-windows" which has been modified for Ardupilot code. In this version of the compiler arduino core libraries are deliberately excluded.
I want to use some functions like pinMode(), digitalWrite() etc., but due to the exclusion of these libraries I'm unable to use these functions in my code.
Can some one PLEASE help me out how to use these functions?? I'm totally stuck on this point. I have used arduino IDE 1.0.6 and many other versions which were downloaded from Arduino's official Website which access to these functions but do not execute the code.
Thank You in advance...........

This is a general purpose, thin client IO layer, not meant to be an application layer itself, therefore does not need application layer libraries.


Formatting and email treatment of plaintext family members field

https://github.com/cds-snc/ircc-rescheduler/blob/a13d81a819f2cf503870a13349bb2f352a784b58/web/email_templates/applicant-rich.html#L43-L44

Discussed the issues around making opinionated formatting decisions with Paul. Some solutions I recommend:

Change Example: to For example:
Put the quotation marks around Full Name, Full Name, Full Name but exclude For example: The "example" isn't quoted, only the names are.
Same changes apply for French.

For the email, I think we have to remain un-opinionated about text in that field, and keep that formatting in the email. Sure, some people might get really long, messy emails, but that might actually look "correct" because that formatting is how they input their text. This is something to observe, IMO, and if folks are putting descriptive info in that field, we can modify the description/instruction copy to either accommodate that, or specifically recommend against it.

Casting a vote for "For example:"

@timarney, here, I'll update the placeholder text as per Zak's revisions.

@timarney,
The other point here is whether to change the names in the email message, which @zakkain says to leave it be.
Unfortunately, I'm still getting this in my emails:
staff email

user email

I think it would be a nice quality of life thing to prepend the family option string (if it exists) with , .
Thoughts?

I think that would be a nice touch easy enough to setup.


Atmosphere model

Differentiable model for atmosphere

Nice work, @katherinezhao02 ! Merged and closed; branch now deleted!


Can not run t authorize, undefined method error from oauth.

I've just run a fresh install of t on Lubuntu.
On my first try of the t executable, to run authorize, I get this error, apparently coming from a gem spec.
$ t authorize
/home/ajfaraday/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x61ca88 oauth-0.4.7> (NoMethodError)
        from /home/ajfaraday/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path'
        from /home/ajfaraday/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require'
        from /home/ajfaraday/.rvm/gems/ruby-2.3.0/gems/t-2.10.0/bin/t:7:in `<top (required)>'
        from /home/ajfaraday/.rvm/gems/ruby-2.3.0/bin/t:23:in `load'
        from /home/ajfaraday/.rvm/gems/ruby-2.3.0/bin/t:23:in `<main>'
        from /home/ajfaraday/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
        from /home/ajfaraday/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'

This same error is thrown in all ruby executables.
I'm using ruby 2.3.0 via rvm...
$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
$ gem -v
2.5.1

Note: Changing back to ruby 2.2.2 fixed this issue.

@AJFaraday I checked it on ruby version 2.3.1 and it works as expected. I didn't face any issue so I think you can now upgrade to ruby 2.3.1 instead of downgrading to  2.2.2

Issue #402 has a work around to this.


Support Expo Snack for [LoadingIndicator] sample code

Description
Support Expo Snack for [LoadingIndicator] sample code in storybook.
Add "Link" Button below the sample code. When you click the button, it goes to Expo Snack.
Related Issues
related #57
Tests
X
Checklist
Before you create this PR confirms that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] Run yarn test:all and make sure nothing fails. You can run yarn test -u to update snapshots if needed.
[x] I am willing to follow-up on review comments in a timely manner.

Great work. Can you update dooboo-ui to latest version?(0.1.34)

Great work. Can you update dooboo-ui to latest version?(0.1.34)

Do you want me to change the version of doboo-ui on Snack?

@ldm0830  Yes. But as @hyochan pointed out, we're on a roadmap to use storybook addons such as @storybook/addon-controls. So expo snack will exist until integration is finished. So I think updating version is not required.
Thanks for your work!


Rubocop goes against Style/LambdaCalling

Rubocop does not comply with ruby style guide when it comes to lambda calling.
https://github.com/bbatsov/ruby-style-guide#proc-call
# bad - looks similar to Enumeration access
l = ->(v) { puts v }
l[1]

# also bad - uncommon syntax
l = ->(v) { puts v }
l.(1)

# good
l = ->(v) { puts v }
l.call(1)

Expected behavior
Rubocop shouldn't give warnings in these code samples:
abcd.call
abcd.call(1)
Whilst Rubocop is expected to do it here:
abcd.()
abcd[]
Actual behavior
The actual behaviour is diametrically opposite from the expected.
$ rubocop app/controllers/orders_controller.rb --only-guide-cops
<...>
app/controllers/orders_controller.rb:170:7: C: Prefer the use of lambda.(...) over lambda.call(...).
      pause.call
      ^^^^^^^^^^

Steps to reproduce the problem
Simply copy-paste the provided samples.
RuboCop version
0.49.1 (using Parser <IP_ADDRESS>, running on ruby 2.3.3 x86_64-linux)

@orotti13 I think this might be due to your RuboCop configuration. By default, LambdaCall is configured to use call which is what you want.
Style/LambdaCall:
  EnforcedStyle: call
  SupportedStyles:
    - call
    - braces


gosec enablement

Signed-off-by: Kim Tsao<EMAIL_ADDRESS>Please specify the area for this PR
What does does this PR do / why we need it:

enables gosec in githubs actions
adds rule to Makefile

Which issue(s) this PR fixes:
Fixes #?
https://github.com/devfile/api/issues/937
PR acceptance criteria:

[ ] Test Coverage

Are your changes sufficiently tested, and are any applicable test cases added or updated to cover your changes?

Documentation (WIP)

[ ] Does the REST API doc need to be updated with your changes?
[ ] Does the registry library doc need to be updated with your changes?

How to test changes / Special notes to the reviewer:

I forgot to put it in review but thanks for approving @maysunfaisal .  Can I get a quick approval again?


Error in parsing gtf file

Hello
I am trying to use ALFA on a yeast data set. I downloaded a gtf file from ENSEMBL, Saccharomyces_cerevisiae.R64-1-1.104.gtf, but I get a KeyError exception:
if "exon" in prev_features_minus[biotype]:

KeyError: 'snoRNA'
It doesn't seem to be an issue specific to snoRNAs, because if remove the snoRNA features from the gtf file the exception is raised for another annotation.
It seems that ALFA was run on yeast before, without raising such error. Any suggestions?
Thank you!
Mihaela

You can get the file from here:
http://ftp.ensembl.org/pub/release-104/gtf/saccharomyces_cerevisiae/Saccharomyces_cerevisiae.R64-1-1.104.gtf.gz

I could reproduce the error with ALFA v1.1.1 from Conda with:
alfa -a Saccharomyces_cerevisiae.R64-1-1.104.gtf

However, after sorting with:
sort -k1,1 -k4,4n -k5,5nr GTF_FILE > SORTED_GTF_FILE

it works.
So it appears that the Ensembl yeast annotations, unlike those, e.g., for human and mouse, are not in the expected sort order, causing index builds to fail.
However, I think it would be nice if ALFA caught that and reported a more informative error message.

Thanks, it does work!

Hi,
Thanks for your questions and solutions! :)
I'm really sorry but have currently no time anymore to work on this. I hope the tools still helps...
Cheers,
Mathieu


Display series of quantiles instead of series data in check UI

Currently in the checks UI, we display a line per series. This results in too much data being returns to the user and long queries (due to window performance).

We would like to instead, display the max, min, p90, p75, and p50 lines to show the ranges of data.
This will involve converted the query
data = from(bucket: "device_metrics_prod")
  |> range(start: -100m)
  |> filter(fn: (r) => r._measurement == "cpu")
  |> filter(fn: (r) => r._field == "usage_system")
  |> filter(fn: (r) => r.cpu == "cpu-total")
  |> aggregateWindow(period: 1m, fn: mean)

to
data = from(bucket: "device_metrics_prod")
  |> range(start: -100m)
  |> filter(fn: (r) => r._measurement == "cpu")
  |> filter(fn: (r) => r._field == "usage_system")
  |> filter(fn: (r) => r.cpu == "cpu-total")
  |> group()

data
  |> aggregateWindow(fn:  (tables=<-, column) => (tables |> quantile(q: 0.99, column: column, method: "estimate_tdigest",)), every: 1m)
  |> yield(name: "99")

data
  |> aggregateWindow(fn:  (tables=<-, column) => (tables |> quantile(q: 0.90, column: column, method: "estimate_tdigest",)), every: 1m)
  |> yield(name: "90")
 // |> quantile(column: "_value", q: 0.99, method: "estimate_tdigest", compression: 1000.0)

so that we have a graph more like

After talking with @samhld it seems that this is not an immediate blocker. I'd like for us to take a bit of time to work through with the customer what they would like to see.


Dialog windows are hidden under keypass window when 'Always on top' is enabled

Thank you for making this plugin.
I migrated from KeeOtp to KeeOtp2.  None of the KeeOtp2 dialog window display, instead the focus goes to a window that I cannot see and cannot interact with.
I switched off View -> 'Always on top' and now the KeeOtp2 dialog windows appear.  Naturally, the keypass window now doesn't stay on top of other windows, which is a pain for me.
This issue doesn't occur with the original KeeOtp.
Please try and fix it, thanks for your consideration.

Hi,
thank you for submitting.
I have fixed your problem quickly.
I will attach a pre-release to this comment here, which you can use.
The bug will completely implemented with the next update, which is planned this or next week.
Quick fix (pre-release):
KeeOtp2 - <IP_ADDRESS>(pre).zip

Sorry for not responding sooner, I didn't get a notification.
Thank you very much for fixing this, working great for me.


Updated PHPStorm-EAP to 143.790

Wow that was fast... I just started upgrading by hand :D

At homebrew-cask, we aim to please :+1:
Thanks for the PR!


lvm: allow loop-backed storage pools

Closes https://github.com/lxc/lxd/issues/2983.
Addresses https://github.com/lxc/lxd/issues/2866.

So lvm is kind of annoying to use with loop devices. Since the loop device is only ever associated with a loop file but never itself mounted (in contrast to btrfs loop pools), we need to ensure that the loop device stays around as long as we need it. This especially means, that we can never configure the loop device with LO_FLAGS_AUTOCLEAR set, as this would mean as soon as we drop any reference to it it might vanish which causes all kinds of inconsistencies. For example, configure a loop device on pool creation and on container or image creation it is already gone and the volume group cannot be found anymore.
Also, we now need a custom "is-this-loop-file-already-associated-with-a-loop-device" function (addressed in https://github.com/lxc/lxd/pull/2979) otherwise we will use a new loop device everytime. This wasn't a problem before (in the btrfs case) since we mounted the loop device which means that mount() would take care to check whether the loop file is already associated with a loop device and if so reuse that one. Again, since we don't mount in the lvm case we need to check and only prepare a new loop device if the file is not already associated with one.
On storage pool delete we set LO_FLAGS_AUTOCLEAR on the associated loop device and let the kernel take care of the rest.
The test-suite should also benefit from this (at least the parts outside of storage.sh).


[BEAM-10371] Run dependency check script with Python 3

Python 2 is incompatible with some dependencies, which prevents Beam's community from getting the full picture of dependencies.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

R: @TheNeuralBit
cc: @tvalentyn

Run Python2_PVR_Flink PreCommit

@TheNeuralBit Could you take a look?

Run Dependency Check

Run Python PreCommit

Run Python PreCommit

Great! Thanks.


issues (mostly doc) when playing with A8 today

Custom setup on examples didn't list if users can use his own kube or swarm cluster.  It is helpful to provide vagrant file to install kube or swarm but many users already have their kube env.  We need to provide docs on how user can configure A8 to work with an existing kubernetes (mini-kube for example).

deploy A8 control plane failed but everything seem to have worked.  Perhaps add a bit more retry?  seems a timing issue or explain in the doc that this is no issue by validating which cmds.

curl -w '%{http_code}' --max-time 10 http://localhost:31200/health -o /dev/null
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
curl: (28) Operation timed out after 10001 milliseconds with 0 bytes received

code=000
'[' 000 = 200 ']'
attempt=11
'[' 11 -gt 10 ']'
echo 'Timeout waiting for controller route: /health returned HTTP 000'
Timeout waiting for controller route: /health returned HTTP 000
echo 'Deploying the controlplane has failed'
Deploying the controlplane has failed
exit 1
vagrant@vagrant-ubuntu-trusty-64:~/amalgam8/examples$ curl http://localhost:31200/health

"welcome to ngnix" needs to updated to welcome to open resty...

is it possible to have docker id added to the A8 service  API for a given service?  https://amalgam8.slack.com/archives/users/p1474472426000624

we should note specify default route when there is only 1 version of the service is optional in the doc, as they are not needed at all.

Addressed (1), (2).
Welcome to "nginx" stuff has been addressed as well.
As for adding the Docker ID to the A8 service version, it would require some scripting, breaking the demo experience. People can no longer do docker-compose -f <> or kubectl create -f . There would be scripts and stuff. Having scripts makes things hard for Windows users as well.


feat(wallet-tests): add peg_ins_that_are_unconfirmed_are_rejected

Fully migrate an old integration test that was removed (https://github.com/fedimint/fedimint/pull/2969#pullrequestreview-1581944324)

There is a off by one somewhere


tensorflow2.0 yolov3是基于keras还是纯tensorflow？

看评论区对tf2的速度表达不一致，到底是tf1快还是tf2快呢，在实际的运行当中。

the same video,and software/hardware environment , tf1 VS tf2 written by YunYang1994,tf1 24ms/img and tf2 90+ms/img

feels like the model was written by tf.keras inside (common.py)

tf.keras.layers is part of TensorFlow 2.0 API and it will be used for building models. I think it is considered as pure TensorFlow now.

项目中keras搭建模型，加载数据，训练模型是tf，算是混用，但是tf为主，同时似乎这个项目有bug，issue中好多人都在讨论，我也遇见了这些问题。


json is not accepted for the path from geoPath() in d3 API version 4

In d3 API 3， it has the function to transfer the data to json.The data download from html through http and put the data to the path
for example the code in version 3 is like
d3.json("http://d2qnyrq2dk7zba.cloudfront.net/"+dataFileName, function(collection) {
          self._collection = collection;
}

self._feature = self._g.selectAll("path")
         .data(collection.features)
         .enter().append("path")
         .on( );

Now I use the angular2 framework to build the leaflet map to project the coordinates in D3.js,  The D3.js have been improted
import * as d3 from 'd3';
*In my angular2 project, I put the way of data into map.service, shown as below
getMaps2(dataFileName): Observable<any> {
  	console.log('getMaps2')
        return this.http.get("http://d2qnyrq2dk7zba.cloudfront.net/"+dataFileName)
 }

In my angular2 project,the D3.js 's API is built upon the version 4. I used d3.js and leaflet.js to build a leaflet map component, shown as below
import * as L from 'leaflet';
import * as d3 from 'd3';
export class MapsComponent implements OnInit {
          map;
          _path ;
          ngOnInit(){
                    his.map = L.map('mapid', {
                    center: L.latLng(38, 15),
                    zoom: 5,
                    });
         this.map.setView(L.latLng(-37.81108500,<PHONE_NUMBER>0), 18);
         var self = this;
         var transform = geoTransform({point: self.projectPoint})
         self._path = geoProjection(transform);
         }
         var dataFileName = '20140101.json';
         this.mapService.getMaps2(dataFileName).subscribe(
         collection => {
                    self._collection = JSON.parse(collection._body);
                    }

         d3.select('#leaflet-overlay-pane').selectAll('*').remove();
         this._svg = d3.select('#leaflet-overlay-pane').append("svg");
         this._g = this._svg.append("g").attr("class", "leaflet-zoom-hide");

         this._feature = this._g.selectAll("path")
                    .data(self._collection.features)
                    .enter().append("path")
                    .on({
                             "mouseover": function(d) { },
                             "mouseout":  function(d) { },
                             "click":  function(d) { console.log(d); },
                             });
}
projectPoint(x, y) {
     var point = this.map.latLngToLayerPoint(new L.LatLng(y,x));
     this.map.stream.point(point.x, point.y);
}

Athough the project does't occur error,but the developers tools of the google show the path is nothing as below
<g class="leaflet-zoom-hide"> ==$0
<path></path>==$0
......

what is the wrong and wether the json is differnet in angualar2 for the path

Did you forget to set the “d” attribute on the path element?
Please use Stack Overflow tag d3.js to ask for help. Although I make an effort to assist everyone that asks, I am not always available to provide help promptly or directly. Stack Overflow provides a better collaborative forum for self-help: tens of thousands of D3-related questions have already been asked there, and some answered questions may be relevant to you.
When asking for help, please include a link to a live example that demonstrates the issue, preferably on bl.ocks.org. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.
If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.
Thank you! 🤗

@mbostock Hello mobostock ! I am very happy to gain your answer . I am very happy to tell you that this issue is solved .The key measure is that I add the code in front of the code:
.attr("d", self._path)
.on({
                            "mouseover": function(d) { },
                            "mouseout":  function(d) { },
                            "click":  function(d) { console.log(d); },
                            });


(483) Store assignment timestamp

Changes
Add caseworker_assigned_at field to Project that can only be set once
We want to record the time that a project has been assigned to a caseworker. This will represent the start point when measuring how long it takes a project in the service to reach completion.
This adds a caseworker_assigned_at timestamp to the Project. Because we should not update this value once it has been set, we override the setter to raise an error if this is attempted (this seems like it will more useful to future devs than just an early return).
Set caseworker_assigned_at timestamp when caseworker first assigned
We only want to set the caseworker_assigned_at timestamp once.
This assigns the timestamp in the controller conditionally on whether the timestamp has been previously set.
This also contains very small tidy-up to update any instances of "case_worker" to "caseworker" for consistency.
Checklist

[x] Attach this pull request to the appropriate card in Trello.
[x] Update the CHANGELOG.md if needed.

 Store 'assignment timestamp' for a Project


Read user content from single file

Not a good idea. Customization will be effected. So not doing it right now.


[🐞 BUG]:  accessLevel set to undefined on signin

Description 📝
On signing of a user the accessLevel parameter is undefined due to which all route are redirected to /home by default which is not an expected behavior.
It occurs due to conditional checking at redirect() in tools.js
Link 🔗
/signin
Steps to Reproduce 🔄

Go to /signin and continue
user is redirected to /home by default
After this failing to redirect to /testslit from anywhere.

Screenshots 📸
Screencast from 01-03-24 03:40:21 AM IST.webm
Expected Behavior 🤔
The accessLevel parameter should not be none.
Actual Behavior 😱
The accessLevel parameter should is none.
Environment 🌍
Vue component- tools.js, SignInView.vue
Additional Information ℹ
No response

@jvJUCA
Please assign me this issue.
I need additional details about importance of accessLevel parameter to resolve this.

@jvJUCA , what you think about it??

Hello @Gaurav-Verma07, usually this error occurs if you don't have all the emulators setup (auth, firestore, storage, functions), or if you don't have a deploy of cloud functions, which has one specific functions that is a trigger to setup access role.
Do you have all the services of emulators running? Did you deploy your cloud funtions?
If yes to any of the questions above, try to look at the logs of this functions in particular and send us the output.

Please, refer to discussion #309. I'll be closing this and following up there.


Consider only allowing up to C++14 for tools and CMake 3.5 across build

So installing an updated compiler and cmake distribution is not required.

Going to re-write my in progress opcode parsing code.


TC004 reported for object that exists both inside and out of type checking block

See the following code: https://github.com/mesonbuild/meson/blob/d4733984e9e3970c23a9436dce8919f8a25194e8/mesonbuild/compilers/mixins/gnu.py#L30-L39
if T.TYPE_CHECKING:
    from ...compilers.compilers import Compiler
else:
    # This is a bit clever, for mypy we pretend that these mixins descend from
    # Compiler, so we get all of the methods and attributes defined for us, but
    # for runtime we make them descend from object (which all classes normally
    # do). This gives up DRYer type checking, with no runtime impact
    Compiler = object

...

# this is a mixin
class GnuLikeCompiler(Compiler, metaclass=abc.ABCMeta):

This reports:
mesonbuild/compilers/mixins/gnu.py:33:1: TC004 Move import 'Compiler' out of type-checking block. Import is used for more than type hinting.

But weirdly enough, this type-checking only import is shadowed at runtime and thus not actually used. Not sure if there's a good way to detect it -- even the code comments imply it's a bit too clever.

Nice, this is something we should be able to add handling for I reckon :+1:
I might have time to get this added in a few weeks, and in the meantime contributions are always welcome :slightly_smiling_face:

I started to think about how to implement this, and unfortunately I think this can get quite complex. For the easy scenario, when a file has a single type-checking block at the top, we can map the import names in the else block and offset the "unused" imports by this set. This is pretty straight forward and make sense to do, as the runtime equivalents do exist, so there's actually no basis for the TC004 error. So far so good.
The problem arises when we consider how this will work for multiple type-checking blocks scoped differently around the code. We suddenly need a lot of logic to get this right I think :/
What do you think @eli-schwartz?

Handling only the easy scenario would still be more than what you do now, so I guess it cannot possibly hurt. :)
Does it help if you only consider names in the else block, when they are defined in the immediately matching if block?

Take this example:
if T.TYPE_CHECKING:
    from  a import Compiler

def foo():
    if T.TYPE_CHECKING:
        from b import Compiler
    else:
         Compiler = object

    bar: Compiler
    return bar

The plugin doesn't know about scopes, it just knows about line numbers. So this isn't impossible; it's just hard to make the plugin do anything coherent without a lot of added complexity. And the false positives seem easy to ignore.
If you want to take a stab at implementing it, PRs are welcome :slightly_smiling_face:


fix --page-index

The option --page-index exports all pages from defined page-index up to the last page. According to --help it should export one page only.

Thanks, but this shouldn't be needed once the other typo fix goes in.


DDB Importer boxes won't tick on

Attempting to tick any of the boxes above produces no change and logs nothing to the console.

Patreon Link is valid
Cobalt cookie is valid
Campaign ID is selected

Foundry Version 10 Build 286

So this option is currently only available to Undying tier as it's a bit wobbly right now. You can sync characters back individually on the character import tabs without altering anything here.

I see, that wasn't totally clear from what I saw. Thanks for the clarification!


Permanent Live Stream to youtube

#11

Technical finish, but not published. The test with peertube indicates heavy use of CPU resources for RTMP transcoding. When we fixed this we will publishing proberly this week to youtube.

We already test the live stream on Youtube. We will start the stream on Friday Morning 9:00 Berlin time

We are Live: https://www.youtube.com/watch?v=IQjGUSDWHww


Address some minor pylint concerns

Description
This just fixes some pylint concerns that were in a test module that I wrote a while back.

Checklist

[x] This PR has only one purpose or idea.
[x] Tests have been added/updated to verify that the new/changed code works.

[x] The code style follows good practices.
[x] The commit message(s) follow good practices.

[x] The release notes (location doc/release/0.X.rst) are up-to-date with any bug fixes or new features.
[x] The documentation is still up-to-date in the doc folder.
[x] The dependencies are still up-to-date in setup.py.

Sorry, I jumped on board this PR late.
We are going to say, for the purpose of pylint, that we are testing using Python 3.9 and Pylint 2.14.2.
However, let's take a grain of salt there because those are OBVIOUSLY not standard.  The only way to standardize would be to add a pylint CI build to the repo.  But I have looked into it, and we would need to fix a TON of pylint concerns in ARMI first, and heavily narrow and constrain our current pylintrc file.  So, we aren't doing that today.
Having said that...
The changes here amount to removing unused code and improving loops.  Pylint or no, these are obviously good things.

Yeah, I'm gonna upgrade to 3.9 and redo, so hold off merging please!

@albeanth Okay, I pushed up some more changes. The code is clean as a whistle now!


added ShaderObject::Dispatch function and fixed ShaderObject::Activate

added ShaderObject::Dispatch function which activates and dispatches a compute shader
fixed: even if stated in the comments ShaderObject::Activate did not check if the program was already bound

The fix is indeed crucial.
However, I do not want to add the dispatch method to the shader object. Personally, I see a dispatch as equivalent with a rendering call - both trigger a command pipeline to be executed (though the compute pipeline is considerably short). Adding glDispatch would consequently also mean to add indirect dispatch and all forms of direct and indirect calls ... which I currently object due to the abstract object model ("a shader draws sth.") that does not mirror the OpenGL concept of triggering pipelines.
Any comments on that?
Unfortunately I cannot split up the commit, so I would need create a new one myself (which would not do any justice to your highly appreciated contributions ;-))

You are right about the draw calls. I wouldn't add them to the shader too.
But somehow I feel else about the dispatch stuff, because the compute pipeline only consists of data and the compute shader. All the other changes like blending etc. are not influenced (aren't they?). So for me a compute shader is an algorithm that I want to be applied to certain data and as such the dispatch belongs to the functional unit (the shader).
As far as I know you can even cherry-pick single lines of code. But don't ask how ;-). Otherwise feel free to do another commit.

Fix is now commited in cbfd5ec3365c0e0fbb24715db205e00189815034.
Other change rejected after personal discussion.


No variable data returned to companion

Play, pause, volume up etc work fine,  but the presets return no value. Controller v 0.2.0.
Spotify: Spotify for macOS (Apple Silicon)
<IP_ADDRESS>6.g7a7fc7f0

Meaning the variables are all blank?

Pretty much. Not returning anything about current track playing. The transport controls work as mentioned, but no dynamic data is available.

Seconding this issue. There is and has been an issue with this for some time. Companion can't get the majority of this dynamic data from the helper app.

Interesting. It is working for me.

Try the latest release and if you are still seeing this issue, we can revisit. But I am not seeing it on my end.


Ability to automatically split Websocket data frames larger than max length

WebSocket08FrameDecoder currently requires the user to set a limit on the payload size, and an error will be thrown if it encounters a frame with a larger payload:
https://github.com/netty/netty/blob/8d99aa1235d07376f9df3ae3701692091117725a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocket08FrameDecoder.java#L286
As explained in RFC6455 (https://tools.ietf.org/html/rfc6455#section-5.4), fragmentation of messages into frames should not be used semantically, so the sender should be allowed to use any fragmentation they want. This seems to be true for example in web browsers, where the WebSocket API (https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) provides no way to control fragmentation, so the browser will fragment messages however it likes.
Given that the RFC also says that "an intermediary might coalesce and/or split frames", I imagine a sensible solution to this would be to just have Netty emit continuation frames when a large payload is encountered. This could be behind a configuration option, but to be honest, this seems like it should be the default behaviour.
If there is any sort of application-specific size limit, it should already be handled at a higher level than Netty, since Netty has no size limits on messages, and message boundaries (not frame boundaries) are what the application should care about.

@slandelle @vietj WDYT ?

@slandelle @vietj ping...

Anyone looked into this one yet? This would be amazing to get support for since we're sending large payloads over a websocket and having to manually chunk things is quite a challenge.


lumi.gateway.mgl03 alarm control broken after update to HASS 2024.11

So after the upgrade to HASS 2024.11 looks like the alarm control for the Gateway: ZNDMWG03LM, ZNDMWG02LM, YTC4044GL, lumi.gateway.mgl03 broke. It works in terms of actions, but it doesn't show the current status:

I tried rebooting HA and the Gateway but doesn't seem to solve the issue.

@AlexxIT: I had the same issue with my Aqara M1S CN, this fixed the problem of "unknown status":
niceboygithub/AqaraGateway@37c33e0

Trying to understand in the code where can this fit, however, the way both are set up works differently (Aqara component and this one)

Yes, I also came to this conclusion, however I wanted to share this in case it can point anyone in the right direction.

not work also for me

Same here. I can control the gateway, but status in HA is Unknown. Looks like HA->Gateway works, but Gateway->HA doesn't. Conected devices (ble door sensor, temp/hum clock) work as before.

This was written in the release log:
https://developers.home-assistant.io/blog/2024/10/22/new-alarm-state-property/

Some solution?

I'm having the same issue.
custom_components.xiaomi_gateway3.alarm_control_panel.XAlarmControlPanel'>) is setting state directly which will stop working in HA Core 2025.11. Entities should implement the 'alarm_state' property and return its state using the AlarmControlPanelState enum, please report it to the custom integration author.

Solution - master version

Solution - master version

Don't get it

@MiroG225 download and apply the master version of integration.
Alternatively replace your alarm_control_panel.py with the file from the master branch.

https://github.com/AlexxIT/XiaomiGateway3/releases/tag/v4.0.7


Migrate functionality from sol-dbg

Preface
This PR migrates some functionality from https://github.com/ConsenSys/sol-dbg to be reusable in other dependent packages (like https://github.com/ConsenSys/scribble).
Changes

[x] Introduced source map parsing functions fastParseBytecodeSourceMapping() and parseBytecodeSourceMapping().
[x] Tweak InferType.toABIEncodedType().
[x] Add tests.

Regards.

Codecov Report

Merging #202 (4410b5a) into master (fbe0e24) will decrease coverage by 0.04%.
The diff coverage is 86.56%.

@@            Coverage Diff             @@
##           master     #202      +/-   ##
==========================================
- Coverage   91.37%   91.33%   -0.04%
==========================================
  Files         266      267       +1
  Lines        6398     6463      +65
  Branches     1265     1288      +23
==========================================
+ Hits         5846     5903      +57
- Misses        302      306       +4
- Partials      250      254       +4

Impacted Files
Coverage Δ

src/types/infer.ts
80.60% <68.42%> (-0.20%)
:arrow_down:

src/misc/srcmap.ts
93.61% <93.61%> (ø)

src/misc/index.ts
100.00% <100.00%> (ø)

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


Update dotnet-6.md

We have published an article that can help popularize .NET updates. To prove our relevance and reliability, I would like to refer to the Shopping Cart page of ASP.NET documentation, where nopCommerce have been presented as an example: https://docs.microsoft.com/en-us/aspnet/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/shopping-cart#summary
Also, read testimonials from Microsoft MVPs of nopCommerce: https://www.nopcommerce.com/why-for-developers-testimonials
Summary
We have added a sentence with a link to the article about effectiveness measures of .NET 6 integration into nopCommerce, eCommerce platform.

Hi @adegeo,
Do you need some more information from us?

Hi,
I have noticed that my PR is in Milestone June 2022 but the milestone is closed. Will it be reviewed?

Hi @alexsolntsev sorry, I've not been doing well with my github notifications!
I'm not sure this link is really needed, considering it's listing a few features that were performance improved and then links to a more in-depth blog post by the .NET team about all of the features that were improved.
I usually see this type of link on the marketing page or something specific to upgrading, like with what was done on the ASP.NET page.
@richlander what do you think?

Sorry, but we cannot accept this. We haven't even linked to our own blog posts here (which might be a good idea).  We also don't accept content (actual content or links) that might be motivated by a desire to advertise from our content.


Add calendar setting to the setting view.

Note the Contracts at the settigns.

added tracking of expiry dates of ranks and contracts


Error Compiling?

hello?
I had a problem with arduino LighsaberOS that there are "error compiling", how do I solve the problem
Thanks

care to share the error log?

this is the problem that I found and I can not upload to my arduino nano

You need to install the libraries. Please see step 5 of https://github.com/neskweek/LightSaberOS#set-up-for-arduino-ide.
By chance I was able to decipher the problem from the screenshot this time but you need to understand this is not the proper way to ask for help. You have only showed a screen shot of a fragment of the error. The full console output won't fit in the console window as you have it so you would need to scroll up to see the full output. When you need to share an error you should click the "Copy error messages" button on the right side of the orange bar and then paste the error as text USING CODE TAGS(<> button on the toolbar).

I am sorry before, but I still found a problem I follow the instruction Move all folders inside LightSaberOS/Libraries to {sketchbook folder}/libraries. its shown like this
Arduino: 1.6.7 (Windows 10), Board: "Arduino Nano, ATmega328"
Build options changed, rebuilding all
D:\diy lightsaber\Lightsaber One Button\LightSaberOS\LightSaberOS.ino: In function 'void setup()':
LightSaberOS:267: error: 'class MPU6050' has no member named 'dmpInitialize_light'
devStatus = mpu.dmpInitialize_light();  // this is a ligter version of the above
               ^

exit status 1
'class MPU6050' has no member named 'dmpInitialize_light'
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
help me please

Oh, this seems to be a recurrent issue. The _light function is new and you must download the new MPU library to be able to use it. But it seems it not very straightforward. I guess the problem can be if you

either did not download the new MPU library, in which case the compiler will not find it
or you did download it, but since your libraries might be references from a source other than the new one, still the old lib is in use.

Anyway, try to download the new lib, purge your PC of all old MPU libs.
But if all else fails, just remove the _light from the function all. It will then call the bigger function, which does the same, but takes a lot more code space.

I've tried to remove _light a few days ago and it worked
I try to uncomment devStatus = mpu.dmpInitialize_light (); but there are still problems. as you say just remove _light and it bekerta. so far I have not found the problem after remove it
I use arduino nano, mpu6050, dfplayer, and led single
Thank you for the advice.

OK, I found the problem. In 1.4, the libs were copied from the master branch, so the _light function was not part of the cpp file. Now I fixed that. Please do a full download of 1.4 again and let me know if it works now.

hello protonerd , I'm sorry for the late I wanted to let you know that LightSaberOS v1.4 its worked with a copy of the library in the master branch.

Protonerd , Copied libraries of the new version, but does not compile
Arduino: 1.6.0 (Windows 7), Board: "Arduino Nano, ATmega328"
LightSaberOS.ino: In function 'void setup()':
LightSaberOS.ino:229:18: error: 'loadConfig' was not declared in this scope
LightSaberOS.ino:250:12: error: 'saveConfig' was not declared in this scope
LightSaberOS.ino:480:16: error: 'InitDFPlayer' was not declared in this scope
LightSaberOS.ino:485:22: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino: In function 'void loop()':
LightSaberOS.ino:525:21: error: 'HumRelaunch' was not declared in this scope
LightSaberOS.ino:545:43: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:565:17: error: 'motionEngine' was not declared in this scope
LightSaberOS.ino:578:16: error: 'motionEngine' was not declared in this scope
LightSaberOS.ino:598:47: error: 'LoopPlay_Sound' was not declared in this scope
LightSaberOS.ino:612:42: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:653:53: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:882:48: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:907:21: error: 'HumRelaunch' was not declared in this scope
LightSaberOS.ino:935:22: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:953:22: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:960:22: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:977:41: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:1165:44: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:1191:15: error: 'saveConfig' was not declared in this scope
LightSaberOS.ino:1203:22: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino:1241:26: error: 'SinglePlay_Sound' was not declared in this scope
LightSaberOS.ino: In function 'void HumRelaunch()':
LightSaberOS.ino:1387:38: error: 'LoopPlay_Sound' was not declared in this scope
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

Is there a reason you are still using the 1.6.0 IDE? The code is tested to
work up to 1.6.11.  There are some issues with 1.6.12.  I haven't tried
with 1.6.13 or 1.8.x.
Jason "Kuma" Brinkerhoff
*Mad Science Workshoppe, *proprietor
http://jbkuma.com/workshoppe
On Thu, Feb 9, 2017 at 1:55 PM, shiryu55<EMAIL_ADDRESS>wrote:

Protonerd , Copied libraries of the new version, but does not compile
Arduino: 1.6.0 (Windows 7), Board: "Arduino Nano, ATmega328"
LightSaberOS.ino: In function 'void setup()':
LightSaberOS.ino:229:18: error: 'loadConfig' was not declared in this scope
LightSaberOS.ino:250:12: error: 'saveConfig' was not declared in this scope
LightSaberOS.ino:480:16: error: 'InitDFPlayer' was not declared in this
scope
LightSaberOS.ino:485:22: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino: In function 'void loop()':
LightSaberOS.ino:525:21: error: 'HumRelaunch' was not declared in this
scope
LightSaberOS.ino:545:43: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:565:17: error: 'motionEngine' was not declared in this
scope
LightSaberOS.ino:578:16: error: 'motionEngine' was not declared in this
scope
LightSaberOS.ino:598:47: error: 'LoopPlay_Sound' was not declared in this
scope
LightSaberOS.ino:612:42: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:653:53: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:882:48: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:907:21: error: 'HumRelaunch' was not declared in this
scope
LightSaberOS.ino:935:22: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:953:22: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:960:22: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:977:41: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:1165:44: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:1191:15: error: 'saveConfig' was not declared in this
scope
LightSaberOS.ino:1203:22: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino:1241:26: error: 'SinglePlay_Sound' was not declared in
this scope
LightSaberOS.ino: In function 'void HumRelaunch()':
LightSaberOS.ino:1387:38: error: 'LoopPlay_Sound' was not declared in this
scope
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/neskweek/LightSaberOS/issues/35#issuecomment-278737250,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATdCMEiKJ0JVBcMI8VOsW0lywa7ZcZmhks5ra2EFgaJpZM4LMmcv
.

Thank you very much for the constestation, I worked perfectly.
Right now I have a look at your online store, sure there is something interesting that can serve my project.

Is this issue solved now? Can it be closed?

To what I refer to compile and burn the program worked perfectly using version <IP_ADDRESS>
I am a sea of doubts when it comes to properly feed the circuit, and that neopixel strip model use to maximize the brightness of the project. I guess it will be through the test failure method.
The language in English and the technical complications are a barrier to take into account, in Spain there is not much affition to these topics.

For if you want to intruducir in the base of sounds cuts of the voice of vader in Spanish, Spain.
https://mega.nz/#!Mh8nlBrR!Xash8dYgHnz0iC6NrFRKKe51i4bkA9mVKoSwrvzorI0

I think it's been resolved, and can be closed.

Ok


Spyder crashed during last session

Issue Report Checklist

[ X] Searched the issues page for similar reports
[X ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[X ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[X ] Could not reproduce inside jupyter qtconsole (if console-related)
[X ] Tried basic troubleshooting (if a bug/error)

[X ] Restarted Spyder
[X ] Reset preferences with spyder --reset
[X ] Reinstalled the latest version of Anaconda
[X ] Tried the other applicable steps from the Troubleshooting Guide

[X ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
I try to run spyder but I always get the same error: Spyder crashe during last session.I have tried everything, even unistalling the whole Anaconda package and still get the same result
What steps reproduce the problem?

What is the expected output? What do you see instead?
A pop up message telling that Spydeer crashed during last session
Paste Traceback/Error Below (if applicable)

Traceback (most recent call last):
  File "C:\Users\RodriM11\anaconda3\lib\site-packages\spyder\utils\external\github.py", line 51, in <module>
    from urllib2 import build_opener, HTTPSHandler, Request, HTTPError
ModuleNotFoundError: No module named 'urllib2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\RodriM11\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3718, in main
    mainwindow = run_spyder(app, options, args)
  File "C:\Users\RodriM11\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 3559, in run_spyder
    main.setup()
  File "C:\Users\RodriM11\anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 908, in setup
    from spyder.plugins.console.plugin import Console
  File "C:\Users\RodriM11\anaconda3\lib\site-packages\spyder\plugins\console\plugin.py", line 39, in <module>
    from spyder.widgets.reporterror import SpyderErrorDialog
  File "C:\Users\RodriM11\anaconda3\lib\site-packages\spyder\widgets\reporterror.py", line 28, in <module>
    from spyder.widgets.github.backend import GithubBackend
  File "C:\Users\RodriM11\anaconda3\lib\site-packages\spyder\widgets\github\backend.py", line 36, in <module>
    from spyder.utils.external import github
  File "C:\Users\RodriM11\anaconda3\lib\site-packages\spyder\utils\external\github.py", line 59, in <module>
    from urllib.request import build_opener, HTTPSHandler, HTTPError, Request
ImportError: cannot import name 'HTTPSHandler' from 'urllib.request' (C:\Users\RodriM11\anaconda3\lib\urllib\request.py)

Versions

Spyder version: 4.0.1
Python version: 3.7.6
Qt version: 5.9.7
PyQt version: 5.9.2
Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE

It looks like your Anaconda is broken. Please remove it and reinstall it to fix this problem.

I did that and it still happens


feat: add support for postgresql

This allows users to connect to a postgresql backend for our ent library. The ent client creation was broken into it's own function so we can use the enttest library to pass in the test client for unit testing in the future.
Also included:
Gqlgen gets angry because it doesn't recognize the Time datatype. The
solution is to define a separate graphql schema with the Time type
defined before it generates the rest of our schema for us.
See https://github.com/99designs/gqlgen/issues/1463
We already had gqlgen configured to look for an archivista.graphql file
for this reason (see gqlgen.yaml), but apparently we did not check it
in.
Third inclusion:
This updates to v0.12.4 of ent and the latest version of ent contrib.
v0.12.4 contains a fix for https://github.com/ent/ent/issues/3752 which
fixes compatibility with postgres 16
Fourth inclusion:
Allows the user to configure the SQL connection pool's max idle and open
connections as well as a connections maximum lifetime

Working on adding a psql service to the docker compose and some e2e tests for both mysql and psql before this gets merged

If we want to break up some of the ent changes to separate PRs we can, just let me know

This is ready for review!

Now this is actually ready for review


Editor Page -> Context panel -> Validate action

Why do we want validation only to happen upon a manual click? We already do real-time artifact validation in Studio. Is there some reason we want/need to move away from this?
Also cc'ing @carlesarnal purely for discussion on the topic.

I know we covered this in a meeting today but I want to comment here for future posterity.  :)
This action should not be Validate but should instead be some sort of "Registration Dry-Run".   What it means it that we will do a dry-run of a Service Registry (Apicurio Registry) dry-run, which can result in a set of validity or compatibility errors.  The results will depend on the content and the rules configured in registry.
I am renaming this task (and removing the Compatibility task) to better reflect what we want to do.


feat: Add assetTypes/{assetType}/assetViews/{assetViewId}/projects endpoint

fixes fds-769
This PR:

adds the /assetTypes/{assetType}/assetViews/{assetViewId}/projects  endpoint (formerly /storage/projects)
adds generated models Project ProjectPage and ProjectsPageAllOf

@linglp This PR is ready for your review


Table not exists error after creating table

I have this migration file:
exports.up = function (knex, Promise) {
    return Promise.all([
        knex.schema.dropTableIfExists('hosts').then(() => {
            return knex.schema.dropTableIfExists('ddFrames');
        }),

        knex.schema.createTable('hosts', (t) => {
            t.increments('id').primary();
            t.string('name').notNullable();
            t.string('url').notNullable();
            t.enu('environment', ['qa', 'uat', 'production']);
            t.string('instanceId');
            t.string('region');
            t.timestamps(false, true);
        }),

        knex.schema.createTable('ddFrames', (t) => {
            t.increments('id').primary();
            t.string('value').notNullable();
            t.integer('owner')
                .unsigned()
                .notNullable()
                .references('id')
                .inTable('hosts');
        })
    ]);
};

exports.down = function (knex, Promise) {
    return Promise.all([
        knex.schema.dropTableIfExists('ddFrames'),
        knex.schema.dropTableIfExists('hosts')
    ]);
};

And when running I get this error:
Knex:warning - migrations failed with error: alter table `ddFrames` add constraint `ddframes_owner_foreign` foreign key (`owner`) references `hosts` (`id`) - ER_NO_SUCH_TABLE: Table 'ta.ddframes' doesn't exist
Error: ER_NO_SUCH_TABLE: Table 'ta.ddframes' doesn't exist

What am I doing wrong?
Plus I have another question.
What's the best way to pull all of the host rows including their referencing ddFrames?
Thanks.

@Moshem123 Without testing the code I would guess that using Promise.all is the issue, since that will run all the promises at the same time, resulting in a race condition? Try chaining instead.
I could be wrong of course. Personally I never use parallel functions when the order of execution is important.

@wubzz You are right. I chained the actions with then and it worked.
I guess I need to sharpen up my Promise knowledge. Thanks.


[Ansible/artifactory] [Debian 11.5 ]Fails to listen on port 8082, collection documentation very outdated

Which installer:
ansible installer
Which product and version (eg: ansible & collection version - 7.24.2):
jfrog.platform   10.9.1
Which operating system and version(eg: ubuntu & version - 20.4):
Debian 11.5
What happened:
fatal: [artifactory-1]: FAILED! => {"attempts": 25, "changed": false, "elapsed": 0, "msg": "Status code was -1 and not [200]: Request failed: <urlopen error [Errno 111] Connection refused>", "redirected": false, "status": -1, "url": "http://<IP_ADDRESS>:8082/router/api/v1/system/health"}
What you expected to happen:
That the server should start listening on port 8082
  router:
    entrypoints:
      internalPort: 8046
      externalPort: 8082

How to reproduce it (as minimally and precisely as possible):
Install a clean debian 11.5, install gnupg
Inventory file
[postgres_servers]
postgres-1 ansible_host=<IP_ADDRESS> postgres_enabled=true
[artifactory_servers]
artifactory-1 ansible_host=<IP_ADDRESS> artifactory_enabled=true
[xray_servers]
xray-1 ansible_host=<IP_ADDRESS> xray_enabled=false
[distribution_servers]
distribution-1 ansible_host=<IP_ADDRESS> distribution_enabled=false
[insight_servers]
insight-1 ansible_host=<IP_ADDRESS> insight_enabled=flase
Playbook

hosts: postgres_servers
collections:

jfrog.platform
vars:
curr_user:
enabled: false
username: artifactory
password: secret
curr_db:
enabled: false
roles:
role: postgres
when: postgres_enabled | bool

hosts: artifactory_servers
collections:

jfrog.platform
vars:
artifactory_extra_java_opts:
artifactory_systemyaml: |-
configVersion: 1
shared:
security:
joinKey: "{{ join_key }}"
extraJavaOpts: -server -Xms512m -Xmx2g -Xss256k -XX:+UseG1GC
node:
id: {{ ansible_hostname }}
ip: {{ ansible_host }}
taskAffinity: {{ artifactory_taskaffinity }}
haEnabled: {{ artifactory_ha_enabled }}
database:
type: "postgresql"
driver: "org.postgresql.Driver"
url: "localhost:5432/artifactory"
username: "artifactory"
password: "password"
router:
entrypoints:
internalPort: 8046
externalPort: 8082
serial:

1
100%
roles:

role: artifactory
when: artifactory_enabled | bool

hosts: xray_servers
collections:

jfrog.platform
roles:
role: xray
when: xray_enabled | bool

hosts: distribution_servers
collections:

jfrog.platform
roles:
role: distribution
when: distribution_enabled | bool

hosts: insight_servers
collections:

jfrog.platform
roles:
role: insight
when: insight_enabled | bool

Anything else we need to know:
ansible-playbook -i inventory/artifactory playbooks/artifactory.yml --become --user loginuserwithsudo  --extra-vars "master_key=${MASTER_KEY_VALUE} join_key=${JOIN_KEY_VALUE}"

I've also run into this. Where is this 8082 is defined for artifactory to use? I cannot find it.
Based on nginx config tempalte, maybe artifactory is listening on 8082 if in HA? But then why we always check the status in 8082 if that is jsut for HA deployments? In my system, I can reach artifactory on 8081 just fine

@klucsik  See https://jfrog.com/knowledge-base/how-to-change-artifactorys-service-port/

Artifactory uses port 8081 by default. In version 6.x this port is also used to access the web UI.
In version 7.x the web UI is accessible via port 8082 and Artifactory’s service is still using port 8081.

Although that's not exactly consistent with...
https://www.jfrog.com/confluence/display/JFROG/System+Requirements#SystemRequirements-MinimumSystemandApplicationRequirements
... which says it's a port allocated to the Router component.

@opentokix : JFrog is not yet supporting ansible collection on Debian 11. You can see the OS requirement here. Can you confirm whether you are facing the same issue with any of the supporting OS as well.
@klucsik : 8082 is the port that is being used by one of the microservice (router) in jfrog platform by default. All the inter-communication, as well as UI requests, are servered through the router from version 7x. Further on 7x version, artifactory is also an internal microservice that serves in port 8081

@klucsik : 8082 is the port that is being used by one of the microservice (router) in jfrog platform by default. All the inter-communication, as well as UI requests, are servered through the router from version 7x. Further on 7x version, artifactory is also an internal microservice that serves in port 8081

Thank you, I found out these in a alter point of installation. I missed the part of the docs where this microservices architecture is explained. I had a problem with database connection string(I had a typo in it), and I had no clue about it until I shelled in to the node and searched through the logs (the systemctl status was also green, I assumed artifactory working fine from that)
I'm thinking on a way to have more sophisticated validation at the end of the install role... or at least a message on fail, that hey check the logs for the services, you'll find the problem there.

I've also run into this. Where is this 8082 is defined for artifactory to use? I cannot find it. Based on nginx config tempalte, maybe artifactory is listening on 8082 if in HA? But then why we always check the status in 8082 if that is jsut for HA deployments? In my system, I can reach artifactory on 8081 just fine

It seems to be missing from this declaration in defaults/main.yml, i.e. artifactory_systemyaml has no external port 8082

The culprit however seems to be that this bug only appears in situations where Artifactory is hosted with particular network setup. {{ ansible_host }} when configured to a public IP in a cloud inventoryk, is not reachable for the router, when using <IP_ADDRESS> my setup (with nginx-ssl as a reverse proxy) started working!
https://github.com/jfrog/JFrog-Cloud-Installers/blob/ebbf19a6166fbbe059db1d701b1dddd83f3d82f3/Ansible/ansible_collections/jfrog/platform/roles/artifactory/defaults/main.yml#L87
So, there is a workaround where you need to define these in your project vars:
# Note: artifactory_systemyaml_override is by default false,  if you want to fix #245
artifactory_systemyaml_override: true
artifactory_systemyaml: |-
  configVersion: 1
  shared:
    security:
      joinKey: "{{ join_key }}"
    extraJavaOpts: "{{ artifactory_extra_java_opts }}"
    node:
      id: {{ ansible_hostname }}
      ip: <IP_ADDRESS>
      taskAffinity: {{ artifactory_taskaffinity }}
      haEnabled: {{ artifactory_ha_enabled }}
    database:
      type: "{{ artifactory_db_type }}"
      driver: "{{ artifactory_db_driver }}"
      url: "{{ artifactory_db_url }}"
      username: "{{ artifactory_db_user }}"
      password: "{{ artifactory_db_password }}"
  mc:
    enabled: {{ artifactory_mc_enabled }}
  router:
    entrypoints:
      internalPort: 8046

@opentokix  via #295  platform collection 10.13.0 supports debian 11 , pls try and share feedback

I ran into this again with 10.13.1


mount empty volumes at /opt/graphite, /opt/graphite/conf, /opt/graphite/storage, or /opt/statsd  doesn't work properly

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 101, in get_response
resolver_match = resolver.resolve(request.path_info)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 340, in resolve
sub_match = pattern.resolve(new_path)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 224, in resolve
return ResolverMatch(self.callback, args, kwargs, self.name)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 231, in callback
self._callback = get_callable(self._callback_str)
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 31, in wrapper
result = func(*args)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 98, in get_callable
mod = import_module(mod_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/opt/graphite/webapp/graphite/browser/views.py", line 22, in
from graphite.util import getProfile, getProfileByUsername, defaultUser, json
File "/opt/graphite/webapp/graphite/util.py", line 81, in
defaultUser = User.objects.get(username='default')
File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 143, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 398, in get
num = len(clone)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 106, in len
self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 317, in iterator
for row in compiler.results_iter():
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 775, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 846, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py", line 366, in execute
six.reraise(utils.DatabaseError, utils.DatabaseError(*tuple(e.args)), sys.exc_info()[2])
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py", line 362, in execute
return Database.Cursor.execute(self, query, params)
DatabaseError: no such table: auth_user

sorry:
i pull the images to my machine, and run it with:
-v ~/source/docker/statsd/graphite-storage:/opt/graphite/storage \
it works just fine .
so, it's not the dockerfile's fault


FetchAuthSession error does not provide correct AuthError on refresh token expired

Describe the bug
My Backend team set up token expiration as followings

Access token: 5 min
Refersh token: 1 hr

FetchAuthSession error does not provide the correct AuthError when refresh token expired
Code I use at the moment
 func fetchToken() async throws -> AmplifyAuthTokens {
        do {
            let session = try await Amplify.Auth.fetchAuthSession(options: .forceRefresh())

            if let cognitoTokenProvider = session as? AuthCognitoTokensProvider {
                do {
                    let tokens = try cognitoTokenProvider.getCognitoTokens().get()
                    if BuildConfiguration.isDebug() {
                        print("access: \(tokens.accessToken)")
                        print("idToken: \(tokens.idToken)")
                        print("refreshToken: \(tokens.refreshToken)")
                    }
                    return tokens
                } catch AuthError.sessionExpired {
                    print("Never reach here")
                    throw SpotlikeError.unknown
                } catch {

                    if let authError = error as? AuthError {
                        switch authError {
                        case .configuration(let errorDescription, let recoverySuggestion, let error):
                            print("gggg")

                        case .service(let errorDescription, let recoverySuggestion, let error):
                            print("Reach here instead")

                        case .unknown(let errorDescription, let error):
                            print("gggg")

                        case .validation(let field, let errorDescription, let recoverySuggestion, let error):
                            print("gggg")

                        case .notAuthorized(let errorDescription, let recoverySuggestion, let error):
                            print("gggg")

                        case .invalidState(let errorDescription, let recoverySuggestion, let error):
                            print("gggg")

                        case .signedOut(let errorDescription, let recoverySuggestion, let error):
                            print("gggg")

                        case .sessionExpired(let errorDescription, let recoverySuggestion, let error):
                            print("gggg")
                        }
                    }
                    throw error
                }
            } else {
                throw AmplifyError.unkhown
            }
        } catch {
            throw error
        }
    }

Reference that does not work: https://github.com/aws-amplify/amplify-swift/issues/3288
Steps To Reproduce
Steps to reproduce the behavior:
1. Login social providers(google)
2. Wait for 1 hr
3. Try calling FetchAuthSession
4. Received Error `sessionError(AWSCognitoAuthPlugin.FetchSessionError.service(AWSCognitoAuthPlugin.HostedUIError.serviceMessage("invalid_grant ")), userPoolOnly)` instead of `.sessionExpired`

Expected behavior
FetchAuthSession should return AuthError as .sessionExpired
Amplify Framework Version
2.25.6
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5
CLI version
BE
Xcode version
15
Relevant log output
<details>
<summary>Log Messages</summary>
Successfully completed execution for Auth.fetchSessionAPI with result:
{
    awsCredentialsError = "AuthError: invalid_grant \nRecovery suggestion: Received an error message from the service";
    cognitoTokensError = "AuthError: invalid_grant \nRecovery suggestion: Received an error message from the service";
    identityIdError = "AuthError: invalid_grant \nRecovery suggestion: Received an error message from the service";
    isSignedIn = true;
    userSubError = "AuthError: invalid_grant \nRecovery suggestion: Received an error message from the service";
}
</details>

Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
15
Device
iPhone 15
Specific to simulators
No response
Additional context
No response

Thanks for fast response @harsh62
Step would be

I use socialSignInWithWebUI to invoke webview, so user can sign in.

func socialSignInWithWebUI(provider: AmplifyAuthProvider) async throws -> UserDtoLogin {
       _ = try await AmplifyManager.shared.socialSignInWithWebUI(provider: provider)
       let token = try await AmplifyManager.shared.fetchToken()
       let member = try await userRepo.getMember(payload: UserEndpoint.getMemberSelf(token: token.idToken))
       return member
   }

AmplifyManager.shared.fetchToken()
    func fetchToken() async throws -> AmplifyAuthTokens {
        do {
            let session = try await Amplify.Auth.fetchAuthSession()

            if let cognitoTokenProvider = session as? AuthCognitoTokensProvider {
                do {
                    let tokens = try cognitoTokenProvider.getCognitoTokens().get()
                    if BuildConfiguration.isDebug() {
                        print("access: \(tokens.accessToken)")
                        print("idToken: \(tokens.idToken)")
                        print("refreshToken: \(tokens.refreshToken)")
                    }
                    return tokens
                } catch {
                    throw error
                }
            } else {
                throw AmplifyError.unkhown
            }
        } catch {
            throw error
        }
    }

User succesfully login, then wait for 1 hr(current configuration for refresh token to expired)
I have networking class to get token from Amplify and attach it to every payloads that point to my BE services. If you take a look at switch case I'm trying to use AuthError to detect that session is expired. However, the .sessionExpired never get hit.

func adapt(_ urlRequest: URLRequest, for session: Alamofire.Session, completion: @escaping (Result<URLRequest, Error>) -> Void) {
        Task {
            do {
                let isLogin = await amplifyManager.isLogin()
                if isLogin {
                    var urlRequest = urlRequest
                    let accessToken = try await amplifyManager.fetchToken().idToken
                    urlRequest.setValue("Bearer \(accessToken)",
                                        forHTTPHeaderField: "Authorization")
                    if let defaultHeader = defaultHeader {
                        for (key, value) in defaultHeader {
                            urlRequest.setValue(value, forHTTPHeaderField: key)
                        }
                    }

                    completion(.success(urlRequest))
                } else {
                    var urlRequest = urlRequest
                    if let defaultHeader = defaultHeader {
                        for (key, value) in defaultHeader {
                            urlRequest.setValue(value, forHTTPHeaderField: key)
                        }
                    }
                    completion(.success(urlRequest))
                }
            } catch let error {
                guard let authError = error as? AuthError else {
                    completion(.failure(error))
                    return
                }
                switch authError {
                case .signedOut(_, _, let error), .sessionExpired(_, _, let error):
                    self.delegate?.requestRetrierDidFailToRefreshToken(self, withError: error)
                    completion(.failure(error ?? SpotlikeError.unknown))
                default:
                    completion(.failure(error))
                }

            }
        }
    }

Here is amplifyConfiguration.json
  "auth": {
    "plugins": {
      "awsCognitoAuthPlugin": {
        "IdentityManager": {
          "Default": {}
        },
        "CognitoUserPool": {
          "Default": {
            "PoolId": "ap-southeast-1_IKBJ5OIF9",
            "AppClientId": "2m8ijgabla3qjt03kpq1hvridf",
            "Region": "ap-southeast-1"
          }
        },
        "Auth": {
          "Default": {
            "authenticationFlowType": "USER_SRP_AUTH",
            "socialProviders": [],
            "OAuth": {
              "WebDomain": "yourstruly-userpool-dev.auth.ap-southeast-1.amazoncognito.com",
              "AppClientId": "2m8ijgabla3qjt03kpq1hvridf",
              "SignInRedirectURI": "spotlike://",
              "SignOutRedirectURI": "spotlike://",
              "Scopes": [
                "email",
                "openid",
                "phone",
                "profile"
              ]
            }
          }
        }
      }
    }
  }
}

Please let me know if you need more info. Thank you

Morning @harsh62, It seems to work on my end. I received the followings after changing framework to remove-refresh-hostedui-token-flow. Great work!. Btw, while planing to get the fix. Am I free to continue using this branch?
Successfully completed execution for Auth.fetchSessionAPI with result:
{
    awsCredentialsError = "AuthError: Session expired could not fetch AWS Credentials\nRecovery suggestion: Invoke Auth.signIn to re-authenticate the user\nCaused by:\nNotAuthorizedException(properties: AWSCognitoIdentityProvider.NotAuthorizedException.Properties(message: Optional(\"Refresh Token has expired\")), httpResponse: \nStatus Code: http_status_400 \n Connection: keep-alive, \nx-amzn-ErrorMessage: Refresh Token has expired, \nContent-Type: application/x-amz-json-1.1, \nContent-Length: 73, \nx-amzn-RequestId: 71982eb5-3637-4624-a3b2-fa8b700a60be, \nx-amzn-ErrorType: NotAuthorizedException:, \nDate: Tue, 06 Feb 2024 03:04:39 GMT, message: Optional(\"Refresh Token has expired\"), requestID: nil)";
    cognitoTokensError = "AuthError: Session expired could not fetch cognito tokens\nRecovery suggestion: Invoke Auth.signIn to re-authenticate the user\nCaused by:\nNotAuthorizedException(properties: AWSCognitoIdentityProvider.NotAuthorizedException.Properties(message: Optional(\"Refresh Token has expired\")), httpResponse: \nStatus Code: http_status_400 \n Connection: keep-alive, \nx-amzn-ErrorMessage: Refresh Token has expired, \nContent-Type: application/x-amz-json-1.1, \nContent-Length: 73, \nx-amzn-RequestId: 71982eb5-3637-4624-a3b2-fa8b700a60be, \nx-amzn-ErrorType: NotAuthorizedException:, \nDate: Tue, 06 Feb 2024 03:04:39 GMT, message: Optional(\"Refresh Token has expired\"), requestID: nil)";
    identityIdError = "AuthError: Session expired could not fetch identity id\nRecovery suggestion: Invoke Auth.signIn to re-authenticate the user\nCaused by:\nNotAuthorizedException(properties: AWSCognitoIdentityProvider.NotAuthorizedException.Properties(message: Optional(\"Refresh Token has expired\")), httpResponse: \nStatus Code: http_status_400 \n Connection: keep-alive, \nx-amzn-ErrorMessage: Refresh Token has expired, \nContent-Type: application/x-amz-json-1.1, \nContent-Length: 73, \nx-amzn-RequestId: 71982eb5-3637-4624-a3b2-fa8b700a60be, \nx-amzn-ErrorType: NotAuthorizedException:, \nDate: Tue, 06 Feb 2024 03:04:39 GMT, message: Optional(\"Refresh Token has expired\"), requestID: nil)";
    isSignedIn = true;
    userSubError = "AuthError: Session expired could not fetch cognito tokens\nRecovery suggestion: Invoke Auth.signIn to re-authenticate the user\nCaused by:\nNotAuthorizedException(properties: AWSCognitoIdentityProvider.NotAuthorizedException.Properties(message: Optional(\"Refresh Token has expired\")), httpResponse: \nStatus Code: http_status_400 \n Connection: keep-alive, \nx-amzn-ErrorMessage: Refresh Token has expired, \nContent-Type: application/x-amz-json-1.1, \nContent-Length: 73, \nx-amzn-RequestId: 71982eb5-3637-4624-a3b2-fa8b700a60be, \nx-amzn-ErrorType: NotAuthorizedException:, \nDate: Tue, 06 Feb 2024 03:04:39 GMT, message: Optional(\"Refresh Token has expired\"), requestID: nil)";
}


Update minicache

Context
We were erroneously not updating the MiniCache cache when updating the cache. This meant the cache_duration had no effect.
Changes proposed in this pull request
Restore previous MiniCache behaviour
Guidance to review
Set a cache duration. Make a call after the cache duration has expired. Data should be refreshed.

There are a few more places in the code where the version will still be set to 0.5.0. To a global find and you should find them.


[ODS-5381] Ensure that all PowerShell scripts use forward slashes as directory separator

IIS management only accepts paths that use backslash as directory separator, so I'm reverting a few changes that were made in https://github.com/Ed-Fi-Alliance-OSS/Ed-Fi-ODS-Implementation/pull/548.

EdFi.Suite3.Installer.WebApi.6.1.18
$parameters = @{
PackageVersion = "6.1.894"
PackageSource = "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json"
DbConnectionInfo = @{
Engine="SqlServer"
Server="localhost"
UseIntegratedSecurity=$true
}
InstallType = "Sandbox"
}
EdFi.Suite3.Installer.SwaggerUI.6.1.12
$parameters = @{
PackageVersion = "6.1.894"
PackageSource = "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json"
WebApiVersionUrl = "https://localhost/WebApi"
PrePopulatedKey = "Sh34kpFWgzVGAYOUBHLeM"
PrePopulatedSecret = "bkIuDwfaRdUN3ZQcWeiXS"
}
EdFi.Suite3.Installer.SandboxAdmin.6.1.18
$parameters = @{
PackageVersion = "6.1.894"
PackageSource = "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json"
OAuthUrl = "https://localhost/WebApi"
PrePopulatedKey = "Sh34kpFWgzVGAYOUBHLeM"
PrePopulatedSecret = "bkIuDwfaRdUN3ZQcWeiXS"
}


Path config with ~ on macOS seems to not work

Lately, I have switched from AsyncStorage to MMKV in on of the macOS test projects, and I would like to utilize the path config, but it looks like that, when path includes tilde (~) file is not saved. Not sure if this is intended to work, but I have decided to report this anyway, so feel free to close this one or convert to feature request.
Other thing which was a bit unexpected is that you cannot use the constructor with config object, but without the id field (no fallback to default?), so for example when path and encryption field are the only present, this leads to error about missing ID.
Repro

Clone: https://github.com/Simek/react-native-macos-reminders
Edit: https://github.com/Simek/react-native-macos-reminders/blob/master/src/Storage.js
Add: path: '~/.test' config option

Hey Bartosz!

I'll take a look! Maybe this issue should be reported in the original MMKV repo instead?
Yeah well ID cannot be default anymore since the default instance does not have encryption or custom path. So when you supply any of those, you have to use a different ID.


Issue while uploading ~700 files

Hi,
I am getting the following error while uploading :
Writing indices 670-678
saving config line 660-669 failed ProgramError:
at Function.parse (E:\Blockchains\Solana\Libraries\metaplex\js\node_modules@project-serum\anchor\src\error.ts:30:14)
at Object.rpc [as addConfigLines] (E:\Blockchains\Solana\Libraries\metaplex\js\node_modules@project-serum\anchor\src\program\namespace\rpc.ts:23:42)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
code: 303,
msg: 'Index greater than length!'
Can anyone help?

My cache file shows a list of arweave urls, i also did a test run for 1 file upload and then the remaining 700, i did not manually clear my cache folder. Is that a possible issue?

when i run deployment again it shows this error:
Transaction simulation failed: Error processing Instruction 0: Program failed to complete
Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ invoke [1]
Program log: libstd rust_begin_panic
Program log: panicked at 'range end index 2651 out of range for slice of length 496', nft-candy-machine/src/lib.rs:320:18

My cache file shows a list of arweave urls, i also did a test run for 1 file upload and then the remaining 700, i did not manually clear my cache folder. Is that a possible issue?

It is. You also can incrementally upload, it will throw an error. You need to either get your config id and follow the disaster handling guide or restart the process all over again from the beginning.
This is not an error from this repo, so I'm closing.

Thanks, sorry just to make sure i dont repeat this in the future, does it mean the SOL used for the first upload is gone? Disaster handling - > will this actually work in this case? My mainnet cache file was already present

If you want to get the older candy machine config ids that has your sol you can use this tool: https://aiphotos.art/find-candy-machine-configs
Then replace the config id as per the disaster handling guide from this repo using these candy machine configs.


Cancel queued and running pipeline task

https://docs.celeryproject.org/en/latest/userguide/workers.html#revoke-revoking-tasks
https://docs.celeryproject.org/en/stable/reference/celery.contrib.abortable.html
https://www.ralphlepore.net/safely-cancel-your-celery-task/

See also https://github.com/nexB/scancode.io/issues/134

https://docs.celeryproject.org/en/latest/userguide/workers.html#revoke-revoking-tasks
The app.control.revoke(task_id, terminate=True) would be the best approach but it is only supported by prefork pool while we are using the thread pool.

revoke: Revoking tasks
pool support: all, terminate only supported by prefork

@pombredanne  Note that we picked the "thread" pool instead of the default "prefork" one since we were encountering the following error when entering multiprocessing section of the code:
daemonic processes are not allowed to have children
This issue is related to a conflict between Celery that uses billard were the toolkit is using multiprocessing, if I remember correctly.
We may want to revisit this since the "thread" pool does not support several Celery features like terminate and timeouts.

@tdruez

We may want to revisit this since the "thread" pool does not support several Celery features like terminate and timeouts.

let's do it.
One thing we could do on the SCTK side is support receiving callables and pool-like objects as arguments such that it could use a SCIO-provided one when provided.

@pombredanne The problem is not only on the TK side, we have entirely based the multiprocessing code in ScanCode.io on the concurrent.futures module.

Current concurrency setup:

Celery workers with pool=thread (based on concurrent.futures.ThreadPoolExecutor)
-> Handles the parallelisation of the Pipelines executions
ScanCode.io pipes based on concurrent.futures.ProcessPoolExecutor
-> Handles the distribution of scanning processes over the multiple CPUs (multiprocessing)
ScanCode scan_resource based on multiprocessing and _thread modules
-> Handles the timeouts of scanning functions

We decided to use the thread pool for the Celery workers as the default prefork (based on billard does not work with the multiprocessing Python module that is used in ScanCode-toolkit and ScanCode.io
The issue: The thread pool does not support several Celery features like terminate and timeouts.
Possible solutions:

Keep everything as-is and implement custom methods for the terminate and timeouts on the TaskPool class.
-> There's likely good reasons why Celery does not support this though...

Switch back to pool=prefork for Celery workers, rewrite the entire code for pipes based on ProcessPoolExecutor and tweak the toolkit to replace multiprocessing dependencies
-> This will likely make the code very dependant on billard which is too specific to Celery

Simplify the whole concurrency setup to be only based on Celery, where everything down to single resource scanning would be an async task.
-> We may need to deal with multiple queues to have separation between Pipeline execution and resource scanning. Also, cancelling a Pipeline execution for which thousands of resource scan tasks have been created may get even worst to handle.


New Feature Request: Adjustable z index

The problem:
I had other stuff on my page set z-40, made the modal not appear on top.
Analysis:
I found in
vendor/wire-elements/modal/resources/views/modal.blade.php
that the z index is set via tailwind to 10
class="fixed inset-0 z-10 overflow-y-auto"
The Solution?:
Since the modal creates a curtain, I think this needs to be in a setting in the config files as adjustable on a per project basis (and/or probably defaulting to z-50).

You can already do this by publishing the modal view and making the required edits to the blade file.
php artisan vendor:publish --tag=livewire-ui-modal-views

@thermiteplasma the thing with publishing the views is that you're not getting any updates either. Might not necessarily be a problem though, just putting it out there :)


Documentation: Include brand/model of default container definitions

overview
As a user it would be really helpful to know exactly which brands and models the default container definitions are based on. Then we could say "Hey, this isn't the brand of PCR plate I'm using. I should probably double check the dimensions".
This would help us diagnose issues that were invisible on the OT-One due to bottom-of-well calibrations.

We've just released our new Labware Library site that lists all of our built-in labware along with exactly which brands/models the definitions correspond to


[Content] Upgrade Instructions guidelines

Content request
Substrate and Polkadot want to do better on releasing. A key aspect we've identified as problematic for people using our code is that it is hard to figure out what broke and what they should be doing about it – our current changelog list the breaking PRs but there is little to no information helping people fix their problem. We want to change that and enforce a CI-job that requires people to provide proper upgrade instructions on PRs marked as breaking. But "what are proper upgrade instructions".
It would be amazing if the docs team could provide a concise document outlining how to write good upgrade instructions, what should included (examples? diffs?), what should be left out as a helper and reference for devs and reviewers when writing and reviewing these instructions. Please also include a brief mention of grammar or other language aspects we usually enforce to stay consistent with the other docs (or a link to it).
Are you willing to help with this request?
Maybe (please specify)

One approach could be:

Clone upstream at your version of a template (as this is likely what you used to start, and has the lowest churn from version to version)
In a new branch based on this, do a squash merge with the target release
Inspect the diff and/or create patch files
Apply differences by hand or patch
:pray: the Substrate and rust gods smile down on your build
Anything I would be missing other than details and examples for this?

Upgrade instructions should include a brief description of what changed, why it changed, and any specific steps someone should follow to use the upgraded crate in practice. Do I need to modify a Cargo.toml file? Do I need to recompile the node-template, the front-end template, substrate itself?
I like Dan's practical approach, maybe we could add a list of the kinds of things that people have had to do in the past to fix the environment after a breaking change. Is that feasible to add?


Update chai and mocha to fix warnings on npm install

Currently I get the following on npm install:
npm WARN deprecated<EMAIL_ADDRESS>to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated<EMAIL_ADDRESS>Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

Updating chai and mocha removes this.  ESLint is more difficult to upgrade as it is a peer dependecy of eslint-config-magictoolbox which would need to be updated at the same time.  ESLint does not currently generate security warnings.

Thanks, I will update eslint


Map Updates: Playground and Crossroads

Playground:
Removed the two vacants.
Crossroads:
Increased target amount (18000 → 20000)
Rearranged spaces. Now the bank is in the middle.
Pathing changes. Players can travel through the middle with more freedom if they want to go up or down.

Found 2 issues in Crossroads:
The value of initialCash is 1800 in the yaml file but 2000 in the frb file.
The value of salaryIncrement is 150 in the yaml file but 200 in the frb file.

Playground map hasn't been modified.
Venn Diagram has.
Both the Playground and Venn Diagram yamls have improper formatting and inaccurate/missing changelogs.

プルリクエストの内容を確認し、私のリポジトリの方でこれら3つのボードの更新を適用しました。
なお、Crossroadsにおいては、変更ログがv2になっているのに、更新前のfrbがv2になっていないということが発生していました。今回の更新により、変更ログはv3にしていないのでご了承ください。
I have reviewed the pull request and applied the updates to these three boards in my repository.
Please note that in Crossroads, the change log was set to v2, but the frb was not set to v2 before the update. Please note that the change log is not v3 as a result of this update.

Merged manually in https://github.com/FortuneStreetModding/fortunestreetmodding.github.io/pull/133


Example for creating quantum circuit from unitary matrix

Summary
The pull request fixes issue https://github.com/https://github.com/Qiskit/qiskit-terra/issues/7206. I have added the suggested code chunk to the class description.
Details and comments

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[#133] feat(netty): Add Netty Utils

What changes were proposed in this pull request?
Add netty utils.
Why are the changes needed?
Add netty utils for netty replace grpc.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
UT.

@smallzhongfeng   @jerqi  can you help review plz.

cc @jerqi Why does profile=spark2.3 need to set the version of netty separately? see https://github.com/apache/incubator-uniffle/blob/master/pom.xml
<id>spark2.3</id>
      <properties>
        <scala.binary.version>2.11</scala.binary.version>
        <spark.version>2.3.4</spark.version>
        <client.type>2</client.type>
        <jackson.version>2.9.0</jackson.version>
        <netty.version>4.1.47.Final</netty.version>

The constructor of netty 4.1.47.Final's PooledByteBufAllocator is inconsistent. Can we use the same netty version? maybe there are more problems.

cc @jerqi Why does profile=spark2.3 need to set the version of netty separately? see https://github.com/apache/incubator-uniffle/blob/master/pom.xml
<id>spark2.3</id>
      <properties>
        <scala.binary.version>2.11</scala.binary.version>
        <spark.version>2.3.4</spark.version>
        <client.type>2</client.type>
        <jackson.version>2.9.0</jackson.version>
        <netty.version>4.1.47.Final</netty.version>

The constructor of netty 4.1.47.Final's PooledByteBufAllocator is inconsistent. Can we use the same netty version? maybe there are more problems.

It should be used for tests. If we change the version, the tests pass, it's ok to remove the version.

cc @jerqi Why does profile=spark2.3 need to set the version of netty separately? see https://github.com/apache/incubator-uniffle/blob/master/pom.xml
<id>spark2.3</id>
      <properties>
        <scala.binary.version>2.11</scala.binary.version>
        <spark.version>2.3.4</spark.version>
        <client.type>2</client.type>
        <jackson.version>2.9.0</jackson.version>
        <netty.version>4.1.47.Final</netty.version>

The constructor of netty 4.1.47.Final's PooledByteBufAllocator is inconsistent. Can we use the same netty version? maybe there are more problems.

It should be used for tests. If we change the version, the tests pass, it's ok to remove the version.

Ok, I got it.

cc @smallzhongfeng  can you help review plz?

I think that's a flaky test.

I think that's a flaky test.

Yes.

One more flaky test.

I will take a look, it seems that there is a class conflict problem, which was not found through UTs.

When we package shaded, the netty dependency is prefixed with "org.apache.uniffle", causing Spark to throw an NoSuchMethodError when looking for org.apache.spark.network.util.NettyUtils.createEventLoop, because the return value of this method is org.apache. uniffle.io.netty.channel.EventLoopGroup instead of io.netty.channel.EventLoopGroup. See debug image

Besides Spark 2.1, we also found this error when using Spark 2.4. Please have a look at both of the Spark versions. Thx. @leixm