Is it possible to visible display the direction of an edge (eg with an arrow, or a colour gradient)?

Is there somewhere a small example on how to do these...? I exported my graph from gephi using the sigma JS template , while gephi in its preview section shows the arrows, when i see the output of the exported Sigma JS , no arrows show up. What property needs to be changed in order to see the arrows .. and in which file ?
Many thanks
Angela

I am wondering the same thing. Angela did you come closer to an answer?

Hi Plul,
Still working and trying to find out to see the arrows

Hello @AngelaMRubio, @plul. You should try to fiddle with the minArrowSize\ setting to be sure your arrows are correctly displayed.

Tell me if you need more precisions and I shall find some time to guide you more thoroughly if needed.

Many thanks for your willingness to help me. I uploaded 2 maps to my website, but I didn't find how to display the direction of the edge and make the color more gradient whit the selection. Also, I am having problems with the toggle as you will see in my two pages. please find below my two links
http://angelamrubio.com/maps/leaders/leaders.html
angelamrubio.com/maps/team/team.html
Thanks

@AngelaMRubio it seems you are using a quite old version of sigma on the site you are showing me. I am afraid I don't know this version at all and how you can do that. @jacomyal might record it.


Query builder with with select inside a select statement ?

i have to build a query like " SELECT * FROM (SELECT a,b,c,d JOIN ... WHERE ... FROM abc) WHERE ... " with query builder(QB), the select statemet inside the bracket, it's ok with laravel QB, but i can not find any way to use QB to build the above query string with two select statement. My way is build the string inside bracket by query builder and assigned it to $query, after that i have to create a new string $raw = " SELECT * FROM ($query->toSql()) WHERE ...", that i need is use query builder instead of create $raw as a string and use DB::select($raw) to get the result. Anyone has an good idea?

I'm not entirely sure what you're asking, something about doing a sub-select. Please take the time to type a clear and nicely formatted question, as it'll make the job of help you much easier.
Either way, I believe this is more of a 'how-to' question rather than a framework issue, so I'm not going to go into detail.
However, do note that there are several ways to accomplish a subselect; depending upon your specific needs. You can use the query builder or raw queries as demonstrated [ here ]. It looks like you're trying to do a subselect for setting from in which case [ this topic ] may be helpful.
If you need more help, you'll probably get a better response if you post on a site such as laravel.io or Stack Overflow.

This looks like a question for the forums. :)


Caused by: com.raizlabs.android.dbflow.structure.InvalidDBConfiguration: Model object<Model.class> is not registered with a Database. Did you forget an annotation?

DBFlow Version:4.2.4
Bug or Feature Request:Bug
Description:Have upgraded the library from 4.0.0-beta1 to 4.2.4.Included the library in my gradle file as follows:-
dbFlow                   : "com.github.Raizlabs.DBFlow:dbflow:4.2.4",
dbFlowProcessor          : "com.github.Raizlabs.DBFlow:dbflow-processor:4.2.4",
dbFlowCore               : "com.github.Raizlabs.DBFlow:dbflow-core:4.2.4"

My application class is as follows;-
FlowManager.init(FlowConfig.builder(this)
                .addDatabaseConfig(DatabaseConfig.builder(TestDatabase.class)
                        .databaseName("test_database")
                        .build())
                .build());

Our TestDatabase.class is as follows:-
@Database(version = TestDatabase.VERSION)
public class TestDatabase {
    public static final int VERSION = 11;
}

Following is the stacktrace:-
Caused by: com.raizlabs.android.dbflow.structure.InvalidDBConfiguration: Model object: com.xxxx.TestMember is not registered with a Database. Did you forget an annotation?
                                                                       at com.raizlabs.android.dbflow.config.FlowManager.getDatabaseForTable(FlowManager.java:141)
                                                                       at com.raizlabs.android.dbflow.config.FlowManager.getModelAdapterOrNull(FlowManager.java:469)
                                                                       at com.raizlabs.android.dbflow.config.FlowManager.getTableName(FlowManager.java:79)
                                                                       at com.raizlabs.android.dbflow.sql.language.From.getTableAlias(From.java:43)
                                                                       at com.raizlabs.android.dbflow.sql.language.From.getQuery(From.java:211)
                                                                       at com.raizlabs.android.dbflow.sql.language.Where.getQuery(Where.java:189)
                                                                       at com.raizlabs.android.dbflow.sql.language.BaseModelQueriable.querySingle(BaseModelQueriable.java:67)
                                                                       at com.raizlabs.android.dbflow.sql.language.Where.querySingle(Where.java:249)

TestMember.class is as follows:-
@Table(database = TestDatabase.class, cachingEnabled = true)
public class TestMemberextends BaseModel implements Serializable {

    @Column
    public String name;

    @Column
    public String username;

    @Column
    public String phone;

    @PrimaryKey
    public String id;

    @Column
    public String pictureUrl;

    @Column
    public String thumb;

    @Column
    public String status;

    @Column
    public String members;

    @Column
    public String membersUsernames;

    @Column
    public String admin;

    @Column
    public String adminUsername;

    @Column
    public String presence;

    @Column
    public boolean isBlocked;

    @Column
    public boolean isMuted;

    @Column(defaultValue = "0")
    public int placeholder;

    public TestMember() {
    }

    public TestMember(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object obj) {
        TestMember testMember= (TestMember) obj;
        return this.id.equals(TestMember.id);
    }

}

Help appreciated!!

That's hilarious, I started having this issue yesterday as well, even though I have been running 4.1.2 for a couple of months now. I think some external dependency could have updated, causing the annotating to break?

Yes indeed the annotation was breaking!All I had to was rename the classes TestMember.class and TestDatabase.class and it worked!


Use A Money Package

not sure if this issue has been discussed before since I just came across this package, but rather than handling the money and the math internally, I think it would be very beneficial to integrate a money package to handle that instead. I'm sure we're all well aware of the issues you can run into with floats and handling money math.
https://github.com/moneyphp/money seems to be pulling away as the standard for money in PHP.
nothing to commit at this point, but wanted to get a conversation going and see what other people thought.

I've done this myself and I believe it solves the configuration issues and
long function calls drastically. Glad to see some attention for this.
Op ma 12 sep. 2016 16:02 schreef Andrew<EMAIL_ADDRESS>
not sure if this issue has been discussed before since I just came across
this package, but rather than handling the money and the math internally, I
think it would be very beneficial to integrate a money package to handle
that instead. I'm sure we're all well aware of the issues you can run into
with floats and handling money math.
https://github.com/moneyphp/money seems to be pulling away as the
standard for money in PHP.
nothing to commit at this point, but wanted to get a conversation going
and see what other people thought.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Crinsane/LaravelShoppingcart/issues/216, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABmDoE1b_yFoz0ahJoPRRXBWBUbaB33aks5qpVuKgaJpZM4J6nh7
.

Hi, thanks for the idea.
I actually have nothing against adding something like this to the package, might indeed clean it up quite a bit. Because truth be told, I'm not all to happy with the way it works at the moment with the number formatting...
I hope to have some time this week to play around with it a bit, so I'll definitely give it a go!
I'm also interested in other peoples opinion about this!

just an FYI, they are in the midst of a new major release (3.0).  Currently they have a beta out, so hopefully the stable is right around the corner.
money has always been the biggest PITA for me when writing cart software. PHP definitely needs a package to step in for Money just like Carbon has stepped in for Datetime.  I think integrating this package will make your code much easier to improve and maintain. You can focus on the things that make your package unique.
looking forward to contributing.

Just wondering, did this ever make it in?

does not look like it.
moneyphp now has a stable 3.0 release out, so if this package is still maintained, might be a good time to integrate it

Sadly didn't had the time for it. In a few weeks I have my holiday and hopefulky finally some time again for some OS work.
Because I still like the idea of integrating something like this.

Okay, well I'd really love something like this added, would really polish off the beautiful plugin you've already created 😄
I'll make sure to keep an eye on this thread.


update CSS for read mode, to support table

Use case: create a note with a table in it
head 1 | head 2 | head 3
---- | ---- | ----
cell 1 | cell 2 | cell 3

then change the view to read mode.
Table will not display correctly

not a bug, only occurs when the
markdown table does not have the ---- | ---- | ----


add key driver

add universal key driver and gpio key sample.

Very useful for me, can you support
SINGLE CLICK key event
DOUBLE CLICK key event
triple click key event


SupertMetric: sentence_transformers module not found

Error:
ModuleNotFoundError: No module named 'sentence_transformers'   In call to configurable 'SupertMetric' (<class 'summ_eval.supert_metric.SupertMetric'>)
Version:
0.891
Description
Tried the new summ_eval package but still getting this issue in the reference-free evaluation metric.
Code to Reproduce Error
ARTICLE = "The ex-Reading defender denied fraudulent trading charges relating to the Sodje Sports Foundation - a charity to raise money for Nigerian sport. Mr Sodje, 37, is jointly charged with elder brothers Efe, 44, Bright, 50 and Stephen, 42. Appearing at the Old Bailey earlier, all four denied the offence. The charge relates to offences that allegedly took place between 2008 and 2014. Sam, from Kent, Efe and Bright, of Greater Manchester, and Stephen, from Bexley, are due to stand trial in July. They were all released on bail."
SUM = "Former Premier League footballer Sam Sodje has appeared in court alongside three brothers accused of charity fraud."

def test_supert_single():
    metric = SupertMetric()
    score = metric.evaluate_example(SUM, ARTICLE)
    return score

print(test_supert_single())

Thanks, Alex for your response.
Yes, It asked and I did set up the PYHTONPATH.
PYTHONPATH=$PYTHONPATH: path\to\my\pc\VirtualEnvs\SummEval\lib\site-packages\summ_eval
But still getting this error.


🍒 Cherry pick PR #4774 to staging 🍒

🍒 Cherry pick https://github.com/Expensify/App/pull/4774 to staging 🍒

🚀 Cherry-picked to staging by @roryabraham in version: 1.0.86-7 🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.


MRG, MAINT: Test 3.9

Add 3.9 as the --pre job. To do this I needed to compile my own Linux VTK wheel and upload to OSF. Let's see if that works. If not I guess we can get rid of VTK there, and have a second 3.8-pre job that has VTK.
Add badges for GH-actions
Move artifacts-redirector file
Remove crufty and unreliable Xdawn test

Closes #8456

@GuillaumeFavelier feel free to merge if you're happy

Thanks @larsoner !


Division of UDA in the dataset？

Great job, but about t1_ uda、t2_ uda、t3_ uda、t4_ uda,how did you divide it? I didn't find it in/PLU/datasets/OWOD_ Imagesets/

请问解决了吗

Great job, but about t1_ uda、t2_ uda、t3_ uda、t4_ uda,how did you divide it? I didn't find it in/PLU/datasets/OWOD_ Imagesets/
请问解决了吗

Great job, but about t1_ uda、t2_ uda、t3_ uda、t4_ uda,how did you divide it? I didn't find it in/PLU/datasets/OWOD_ Imagesets/

请问解决了吗

Thanks for your questions and interest in my work. I have uploaded the required 'uda' files.
However, I have moved from this research area due to the impact of foundation models, and I am not sure whether this area is still worth falling in. Therefore, I may not be able to respond to issues or provide updates regularly, sorry for any inconvenience and latency.


DISCUSS: Release soon?

Once the website is updated (#205), it might be a good time to do a release. We have the new vector functionality, and haven't released in about 9 months.

Nobody seems opposed to it at least so I'll give this a shot after #205 lands. (Speak now or forever hold your peace!)


DMPonline not supported on Chromium and Brave

@raycarrick @briri
It has been reported that in the recent training the users were unable to join DMPonline on Chromium and Brave. Is this something we support/plan to support?

Tried chromium on linux and it looked fine. Brave doesn't support linux at the moment so we'll need to try it on something else. We may need to get more info on what is happening/ what error they are seeing etc etc.


Why child class methods cannot override superclass' methods?

I would like to use an interface but with no luck. I still cannot override the methods if used extends.
I hope it works like dart that child class could override parent class' methods.

I haven't fully tested this part of code, your problem might because of some feature is not written yet and unusable...

fixed in the latest version


Report shows wrong IPv6 SLAAC source address

The IPv6 SLAAC address displayed in the report differs from what is observed in the packet capture. This address remains consistent across all reports, indicating it may be associated with either DHCP server 1 or 2. Please refer to the accompanying screenshots, which illustrate two distinct reports featuring the same address.

This has been fixed in #131 and is now in dev. Will be released in December in full launch


Alexa Media Player - Unable to Connect to HA URL

Describe the bug
Just updated to the latest 4.1.2 after previously having the authentication issue everyone is seeing. Restarted HA and saw the box needing to re-authenticate AMP. Clicked Reconfigure / Submit and without me changing anything, I'm now getting the following error message / prompt.
AMP appears to now be looking at the external url (which is not accessible from my LAN only from WAN) instead of the internal IP address as it was previously. (Note: My duckdns url is available on port 443 if connecting from outside network)
**"Alexa Media Player - Unable to Connect to HA URL
The HA server cannot connect to the URL provided: https://myurl.duckdns.org/.
Cannot connect to host omnicygnet.duckdns.org:443 ssl:default [Connect call failed ('88.105.zzz.zzz', 443)]
To fix this, please confirm your HA server can reach https://myurl.duckdns.org/. This field is from the External Url under Configuration -> General but you can try your internal url.
If you are certain your client can reach this url, you can bypass this warning."**
Expected behavior
Expected AMP to connect to HA via the internal IP address as it was previously.
Screenshots
If applicable, add screenshots to help explain your problem.
System details

Home-assistant (version): 2022.8.7
Hassio (Yes/No): (Please note you may have to restart hassio 2-3 times to load the latest version of alexapy after an update. This looks like a HA bug).
alexa_media  (version from const.py or HA startup): 4.1.2
alexapy (version from pip show alexapy or HA startup):
Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered: yes (using Google)

Just a update...
I tried again and this time entered my internal IP where AMP asks for HA URL, this time, it opened a browser window requesting my 2fa code from Amazon. Entered it and AMP now appears to be working again! :-)


Adds screenshots to codeExamples, clean up

This PR adds codeExample screenshots to the following challenges:

2-menger-sponge
16-l-system-fractal-trees
29-smart-rockets-in-p5js
31-flappy-bird
37-diastic-machine
48-white-house-social-media-data-visualization
51-a-pathfinding-algorithm
60-butterfly-generator
62-plinko-with-matterjs
139-calculating-digits-of-pi-with-collisions

Deletes .json.bad contributions from the following:

74-clock
117-seven-segment-display
71-minesweeper

Note: the .json.bad files used to be how some of us would hide the now unavailable showcases without deleting them. But since then we have now switched to deleting these showcases. But these files were still hiding in some of the challenges, this PR deletes them all :(

Thank you for this!!!


Contribution field on website is too complicated

The description is very complicated and technical; for example the term RDF is confusing.
We should have an easier and more concise description:

Provide a link to the example yaml and to the specification
Provide a link to a tutorial + to more examples

In general, need more examples.
cc @akreshuk @vzinche

I would generally just write something like:
If you want to contribute a:

model - follow Model Tutorial
notebook - follow Notebook Tutorial
application - follow Application Tutorial

Good idea, thanks!
Contributions for improving this are welcome, I didn't have time to improve it, but only provide a rough and technical document with all the possibilities. Feel free to modify this file directly, and it will be rendered to the website.


API Key based authentication

These changes are fairly old and been tested for a long long time, so I think they could be merged.
The main feature is API key based authentication. Few other stuff have been changed in order to make uLogin more flexible or ease configuration (dynamic database settings and lazy log cleaning instead of cron). For more details see the ChangeLog.
NOTE: Along with the API key implementation we were experimenting with key statistics. The main goal was to be able to get usage information for each key and throttle the requests. Usage info works nicely, however, throttling is heavy and does not worth it. Back when we were profiling it, it seemed that used more than 50% CPU time which means that instead of trying to limit clients/keys we could double our capacity by not auditing access! This should be disabled by default.
Let me know if there questions

Hey @pylorak
How are you? I know it has been a very long time - I know... but I am thinking of picking this up again for a project of mine. Do you still maintain this repo? If not, I am willing (given time!) to merge @icanhazpython changes in my fork and take it from there...
BTW, it seems there are few other projects for authentication, have you moved to something else? - I really like this one though. Lately I had some exposure to SAML so I can try to add this as a feature (if not there already - don't remember!)
Let me know (you should also have my personal email from old comms)
Cheers,
Andreas

@urban-1 It would be great if you picked this back up! I always used ulogin for authentication, and was very satisfied with it, but It's slightly outdated now.


Amortize sha2 compression loop

Applies the tricks initially specified in the SHA1 specs for the macros sha2_choice and sha2_majority, as well as reducing u32 addition chain overhead for already reduced inputs.
Yields ~4.6% savings for SHA2 precompile.

Last commit shaves off an additional 1.95%.

@muursh You may want to review the latest changes, I've pushed some additional optimizations after your review.
Total savings are now at 16.1%.

@muursh You may want to review the latest changes, I've pushed some additional optimizations after your review. Total savings are now at 16.1%.

Will do this evening


SINGA-253 Net converter for caffe model

Convert caffe model into singa model.
It is a very basic implementation. Now it can convert feed forward net and supports pysinga.
Implementation method:

read proto file of caffe model using caffe.proto, and serialize it to string.
parse the string use singa model.proto and get the layer config.
setup each layer and add it to a feed forward net.

Update and example:

put conversion funcions into layer.py and converter.py;
add 'caffe' option in cifar example which converts alexnet from
caffe to singa.

code updated, thanks!


How does one run a scan against a current baseline?

I fail to see how this is possible given the CLI options available. I guessed  detect-secrets scan --baseline .secrets.baseline, but it does not recognise the option.
detect-secrets scan --baseline .secrets.baseline
usage: detect-secrets [-h] [-v] [--version] {scan,audit} ...
detect-secrets: error: unrecognized arguments: --baseline

This  is confirmed by detect-secrets scan --help. There is no --baseline option.
How does one run a scan against a current baseline?

Background:
I’m asking because I am required to use this tool, but since we also use husky I wanted to use the detect secrets CLI for easy integration - that does  not seem possible.
I thought the workflow for the detect-secrets CLI would be something like:
# create initial baseline
detect-secrets scan > .secrets.baseline

# mark false/true positives
detect-secrets audit .secrets.baseline

# fix issues
git add .secrets.baseline fixed_file ...
git commit -m "Fixed secrets"

# and then the following for subsequent runs
detect-secrets scan --baseline .secrets.baseline

But It seems that scan is only used for building the baseline and that there is a hard requirement on using the pre-commit hook to find new violations against the baseline. Is that assumption correct?

Hi @oschrenk, thanks for making this.
You are right that detect-secrets scan does not have a --baseline option. I don't think there is a good reason for this, we should probably add it, as it would be more intuitive as you point out.
We do install a detect-secrets-hook command in the CLI [1], which has the option, does that solve your desired use-case?
[1] https://github.com/Yelp/detect-secrets/blob/5d3e065e695f8417f99b86402d75288192de48ee/setup.py#L39

That does help. Wasn't aware of the second script. Thanks!

Hey @KevinHock! I'm running into the exact same issue (I want to integrate detect-secrets with husky) but I'm afraid detect-secrets-hook isn't working right now.
My package.json file (where husky is configured) looks like this:
...
"husky": {
    "hooks": {
      "pre-commit": "detect-secrets-hook --baseline .secrets.baseline",
      "pre-push": "npm run lint && npm run test"
    }
  },
...

However, after configuring my baseline and adding this to my repo, whenever I try to commit an obvious test secret it passes (in fact, it gives no indication that it even ran). When I run the same commit with pre-commit it fails as expected. Do you know what command I should be running?
Asides from husky, running manually, what command would I run to re-scan and fail if any new secrets are found? Thanks!

So the pre-commit framework normally passes all the file names to detect-secrets-hook, unlike detect-secrets, the hook doesn’t default to scanning “.” when given no arguments. (usage.py, if curious)

I see. Is there any chance that feature might be included? Or rather, an --all-files tag? Recursively checking the files using glob is not ideal considering the directory structure may change over time. And it's probably fair to say that most people would find it easier to opt-out of scanning a few files rather than opt-in (since most people want their whole directory scanned).

So your current command looks good except something else will need to add the file names.
Technically, we could have the hook run git diff itself, given a certain flag, but that’s not something we’ve looked into.

Right, so I could run something like this:
detect-secrets-hook -v --exclude-lines=".*integrity.*" --no-db2-scan --keyword-exclude=".*secret.*" ./**/**

which has the configurations I need, but I still need to run ./**/** which does not encompass my entire directory. I will look at ways around this in the meantime, but allowing users to automatically scan every file would be a very useful feature to have :)


Fixes #42: Move website files to root of project

Fixes #42
tested here

@redat97 when you say tested, you mean it builds but how do we make sure that it deploys correctly to the website?

@redat97 when you say tested, you mean it builds but how do we make sure that it deploys correctly to the website?

I don't understand the question, I deployed it and the website was accessible, it wasn't at first when I configured it wrong. I deployed it not just built it

@rngadam I don't understand the question, I deployed it and the website was accessible, it wasn't at first when I configured it wrong. I deployed it not just built it

that was the answer to the question I was asking.
Question: did you deploy at the same URL or at a different URL? we should have the ability to support dev, stage, prod.

@rngadam I don't understand the question, I deployed it and the website was accessible, it wasn't at first when I configured it wrong. I deployed it not just built it

that was the answer to the question I was asking.
Question: did you deploy at the same URL or at a different URL? we should have the ability to support dev, stage, prod.

same URL, I didn't know you could have multiple URLs i'll look into it

ok cool ans yeah it was the same URL, I didn't know you could have multiple URLs i'll look into it

ok, let's open a new issue then.

ok cool ans yeah it was the same URL, I didn't know you could have multiple URLs i'll look into it

ok, let's open a new issue then.

issue #51


No need to update annotationManager.originLocation ?

Once we ask the user for the current location, and we set that location to annotationManager.originLocation there is no need to keep updating the current location ?

No, and doing so will increase power consumption. However, you need to balance this with accurately positioning content, relative to the device. If you think your users will be moving a considerable distance (eg for a navigation or city information app), you should consider updating the location while the AR view is active. You should ensure that your app stops updating the location when the AR view controller is not in use, however.

Why you should stop update location when AR is running?


Drop __set_as_default_factory_for_type__

Pull Request Checklist

[x] New code has 100% test coverage

Description
Drop BaseFactory.__set_as_default_factory_for_type__ and associated _factory_type_mapping without loss of functionality: the newly introduced __base_factory_overrides__ subsumes it.

Pros: One global state attribute less
Cons: Backwards incompatible change

Since this is a breaking change, we have to shelf it until the next major version - since we follow semver.

@gsakkis If you want to pursue this, you could open a separate issue to track this.


style change

tweaked the dismiss button.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #175   +/-   ##
=======================================
  Coverage   60.16%   60.16%
=======================================
  Files          16       16
  Lines         241      241
  Branches       50       50
=======================================
  Hits          145      145
  Misses         96       96

Impacted Files
Coverage Δ

app/components/Announcements.tsx
0% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


create volume can take a size even when a snapshot is provided

Required for provisioning workflows where a filesystem is being migrated to a different size EBS volume.

Also adjusted the use of describe_* calls to enable server-side filtering. We were experiencing 503 throttling with the large describe_volume (ALL) calls, where we have hundreds of volumes.

@wormzer can you rebase against master please?
@miketheman @tas50 @sigje @thommay  can we get this going ? Currently, we have to create a volume by hand from a snapshot (while changing the size) and then re-create a snapshot with the correct size.
Thanks a lot for looking at it.

:santa:


Create translation.json  Add language Chinese

Add language Chinese

What

Why

Notes

changes merged in https://github.com/QSPFoundation/qspider/pull/127


Ci actions develop

YML Actions configuration file. Also, commented out Image reconstruction since it relies on some file still not presented in the official framework

@alekgajos  done


force synfuel imports to DE, deal with it in CO2 balance

Imported synfuels allow more to be emitted in DE, since the CO2 is assumed to be sustainably imported.
In reality the model does not distinguish right now whether synfuels are from EU or outside - this needs to be improved.
I need to think about this more, just putting it here for reference. Don't pull it.

Would it be possible to regionalize the oil buses, allow flows between them and add those to the constraints?

Yes, but this then adds lots of new variables, perhaps a separation DE versus non-DE would keep it from exploding.

This PR introduces separate DE and EU oil buses. We should use that for the CO2 limits https://github.com/PyPSA/pypsa-ariadne/pull/39

adresse by #40


Fix invoice

Fix total and subtotal price in template.
Fixes #1216

Codecov Report

Merging #1219 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1219      +/-   ##
==========================================
+ Coverage   70.22%   70.23%   +0.01%
==========================================
  Files         117      117
  Lines        6314     6317       +3
  Branches      752      752
==========================================
+ Hits         4434     4437       +3
  Misses       1716     1716
  Partials      164      164

Impacted Files
Coverage Δ

saleor/order/models.py
87.81% <100%> (+0.13%)
:arrow_up:

Continue to review full report at Codecov.

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

When discount is percent-based it should (at least I think it should) be displayed in all invoices, beacuse this type of discount is calculated from sum of all ordered products - including those in other shipment groups. At this moment it works like this:

When you do some math you can see that something is not right.

Per-shipping group invoices don't make much sense as you always pay for the entire order. If anything we should fix the scope of invoices.

Okay so we have to bring back generating invoices per order @koradon @dominik-zeglen.

@dominik-zeglen Could you fix those issues with the currency display, that we were looking at today?


fileutil: test some fallback functionality

syscall.Flock fallback and preallocExtendTrunc
via codecov:
https://codecov.io/gh/coreos/etcd/src/fb086ef13f6ef78d497c2aec6b6070781e2d0543/pkg/fileutil/preallocate.go
https://codecov.io/gh/coreos/etcd/src/fb086ef13f6ef78d497c2aec6b6070781e2d0543/pkg/fileutil/lock_flock.go

Codecov Report

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

@@            Coverage Diff            @@
##             master    #8049   +/-   ##
=========================================
  Coverage          ?   75.92%
=========================================
  Files             ?      341
  Lines             ?    26470
  Branches          ?        0
=========================================
  Hits              ?    20098
  Misses            ?     4903
  Partials          ?     1469

Continue to review full report at Codecov.

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


remove all except github

Proposed Changes

Release Note

Docs

@vaikas can you take a look?

/woof

/lgtm
/approve
thanks!


Not every code box/command box in this article required for "Try It" button

For example, all related to in-VM commands:
sudo apt-get -y install stress
sudo stress --cpu 10 --timeout 420 &

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

ID: 13e5e0df-cbd8-63d6-1c96-5da43aff04c4
Version Independent ID: d04e7ecd-f77e-16c5-f470-2f604cbd713a
Content: Tutorial - Autoscale a scale set with Azure templates
Content Source: articles/virtual-machine-scale-sets/tutorial-autoscale-template.md
Service: virtual-machine-scale-sets
GitHub Login: @cynthn
Microsoft Alias: cynthn

Thanks for the feedback! We are currently investigating and will update you shortly.

@the-grayest That's a fair point.
I will assign to the author to review.

@the-grayest Thanks for the feedback! We are working on some guidelines around when to use "Try-it" vs a block just for Bash. I'll use this feedback to help create that guidance. Thanks again :)
#please-close


Search All and Search Related

There is a need to introduce a search interface to encapsulate logic around searching resources and searching resources that are related to a primary resource.
Detail
Searching Primary Resources
The JSON API spec allows for resources to be retrieved via a GET request to the resource route. E.g. for a posts resource, the request can be to GET /posts. This route may support filtering, pagination, sorting, etc. The response may be a resource collection (or an empty resource collection) or a singular resource (or null if no matching singular resource).
Searching Related Resources
The JSON API spec allows for the retrieval of resources that are related to a primary resource. The related resources may be a has-one or has-many relationship.
For example, a posts resource with a has-one author relationship to a users resource. GET /posts/1/author gets the related users resource. GET /posts/1/relationships/author gets the resource identifier of the related users resource.
For example, a posts resource with a has-many comments relationship. GET /posts/1/comments gets the related comments resources. GET /posts/1/relationships/comments gets a resource identifier collection of the related comments resources.
For these has-many relationships the server may support filtering, pagination, sorting etc. E.g. if the comments relationship was to support a since filter, then GET /posts/1/comments?filter[since]=2017-01-01 would return all comments related to post 1 that were created since the supplied date.
Problems
It cannot be assumed that the paginating, filtering, sorting etc strategies for a resource type and its relationships are the same. For example, the filter parameters allowed for searching posts resources are likely to be different from those allowed when filtering the comments relationship for a specific post. The same may equally be true for sorting, pagination, allowed include paths etc.
At the moment, the "unit" that contains the logic as to what request parameters a server supports for a specific resource type is the RequestHandlerInterface class. At the moment this is only designed for processing requests for the primary resource (e.g. the posts resource) and does not allow variation of allowed parameters based on whether the request is for the primary resource or one of its relationships.
An additional problem is that the paging strategy is defined at the API level. However, paging strategies may vary across resource types, as well as within relationships. For instance, the posts resource collection might be paginated using page-based number and size parameters, but the comments relationship might be paginated using cursor based pagination.
The current pagination solution assumes that there are two pagination parameters, but this may not be the case. It does not allow rejection of a paging request if for instance the client asks for more than the maximum number of resources per page.
Proposed Solution
The logic for searching resources is complex and is linked directly to the resource type that owns the endpoints. To follow this package's pattern of encapsulating complex logic into isolated units, it is proposed that a SearchInterface is created, with the implementing class containing the logic for searching a specific resource type and its relationships. This would have two methods on it:

searchAll(EncodingParametersInterface $params) - to search the primary resource (e.g. posts)
searchRelated($record, $relationship, EncodingParametersInterface $params) - e.g. to search the comments relationship of a specific posts record.

The following additional changes are proposed:

The ChecksQueryParameters trait must be modified so that the request handler can validate inbound parameters based on whether the primary resource or one of its relationships is being searched.

Validation of sort, filter, page should only occur if the request is to a search endpoint, rather than on all endpoints as is the current case.

The filterValidator method on the validator provider needs an additional argument of the relationship being searched (or null if searching the primary resource) so that it can vary its rules based on whether a relationship is being searched or not.

Remove the PagingStrategyInterface and PaginatorInterface as logic around pagination can be held within the search class.

Add a pageValidator method to the validator provider, following same pattern as filterValidator. This would allow the page params to be validated, which in frameworks such as Laravel means actual validation rules could be used. Add a PageValidatorInterface along the same lines as the FilterValidatorInterface.

Closing this as develop now has a solution on which querying relationships is going to be based.


Settings / parameters

the load and speed settings dont update when clicking save in octoprint's interface, i have to restart the octoprint instance (wich is a hassle).
there are some settings not available to the user that would be really really helpful like the retraction when parking and such (i dont know exactly how it does it, maybe your plugin is not the fault) but i want 0 retraction when loading
also maybe a way to incorporate the whole sequence for us with no m600 comand? just by issuing the regular octoprint pause, Z lift, X and Y home, unload and wait for the load button to be pressed (will look into it myself to see if i can contribute to you with that)
but all around i have to say you've made a great plugin! its exactly what ive been wishing for, great work!

ill try to tinker with the code as it doesnt seem to dificult... at least i hope so
things i want:
-adding a purge (with user set parameters?)
-changing the retract (maybe also user accesible?)
-sanity check (unload total distance is the same as load total distance including retracts and purges so you dont mess up the extrusion of the print because its absolute not relative, meaning it aboslutely needs to be the same)

also adding a blocking command when starting the macro, because accidental double clicking can cause a BIG mess, just a sanity check (mainly cause my mouse is trash)

the load and speed settings dont update when clicking save in octoprint's interface, i have to restart the octoprint instance (wich is a hassle).

That's a limitation of pulling the settings the way the plugin has to. You don't need to restart the interface, just refresh the browser. I'm not sure there is a good way around that.

there are some settings not available to the user that would be really really helpful like the retraction when parking and such (i dont know exactly how it does it, maybe your plugin is not the fault) but i want 0 retraction when loading

I was just thinking about that as well. I put it in there because that's what the built-in filament swap in Marlin does and I was copying its logic. You generally do want a smidge of retraction before a move like that if you are mid-print, because otherwise it'll leave a string/blob as it drags away. Though the way I tend to use the plugin after a month or so now, I don't like it on either. I could make a checkbox/toggle to turn it on/off.

also maybe a way to incorporate the whole sequence for us with no m600 comand? just by issuing the regular octoprint pause, Z lift, X and Y home, unload and wait for the load button to be pressed (will look into it myself to see if i can contribute to you with that)

Might be possible for that, but when I was messing around with formatting, adding more buttons made it a bit more awkward, especially if I split them into multiple lines. If I can find a way to do that and not make it look bad, I'll see what I can do.

-adding a purge (with user set parameters?)

That's what load does, unless I'm not understanding what you're after there.

-sanity check (unload total distance is the same as load total distance including retracts and purges so you dont mess up the extrusion of the print because its absolute not relative, meaning it aboslutely needs to be the same. like if the print move is E206.54 and your commands are not right, when the next move ensues like E206.93 if you're not at 206.54 youll have problems, either a retract or a extrude you dont want).

The plugin issues M83 to do a relative extrude in either direction so that shouldn't really matter in the long run, I thought. The built-in M600 swap unloads way more than it loads, so I don't know that it would be different here. The presumption is that unload retracts the entire length of the bowden tube, but load extrudes only enough to purge the nozzle.

also adding a blocking command when starting the macro, because accidental double clicking can cause a BIG mess, just a sanity check (mainly cause my mouse is trash)

That's a good idea, too. Though knowing when to re-enable it is a bit trickier.
The code is very straightforward in most cases for these things. I know there are a few things on my list I need to fix, open issues here and some other problems like I didn't fix the M117 text for load so it's not putting the right text on the display. I just haven't had a chance to get back to updating this. Hopefully will very soon!

That's what load does, unless I'm not understanding what you're after there.

i have a bowden system, i load 545mm of filament at 3000mm/m and that goes right to the nozzle with about 1mm to spare, but then after that it would be a QOL thing to have it purge a set ammount automatically

That's a good idea, too. Though knowing when to re-enable it is a bit trickier.

octoprint issues a command that says "busy" and doesnt allow more commands to be used until the action is finished, i think it does it when homing or something, but blocking for 1s could be just right

Might be possible for that, but when I was messing around with formatting, adding more buttons made it a bit more awkward, especially if I split them into multiple lines. If I can find a way to do that and not make it look bad, I'll see what I can do.

on that note octoprint has a command "M0" that issues the octoprint pause, wich is very useful
you could implement that somewhere (ill try to test it out for you first then comment about it)
also i personally have to issue a home so i could implement that, i have to learn how the code works and i may be able to do some stuff like checkboxes and extra settings

The plugin issues M83 to do a relative extrude in either direction so that shouldn't really matter in the long run, I thought. The built-in M600 swap unloads way more than it loads, so I don't know that it would be different here. The presumption is that unload retracts the entire length of the bowden tube, but load extrudes only enough to purge the nozzle.

but if you say, are at E200, retract 60 (so youre at E140) and load 70 (E210) and the gcode says E201 because thats the next line, wouldnt it cause trouble? or is there a way to remember the last E position before the sequence and issue a G92 E (last position) and have it continue as if nothing happened?

Some of the issues raised here should be fixed in the latest version, but not 100% yet.


Use bash exit on error in build scripts

I've been working on changes locally for adding Heroku-20 support, and so have created a new heroku-20.Dockerfile.
I saw this error message during the bob build:
$ make buildenv-heroku-20
...
root@b4b935f73deb:/app# bob build runtimes/python-2.7.17
...
Building formula runtimes/python-2.7.17 in /tmp/bob-yc2kzlvx:
/app/builds/runtimes/python-2.7.17: line 11: sqlite3_version: command not found

However the build didn't stop.
It would be safer to enable bash exit on errors in the build scripts here:
https://github.com/heroku/heroku-buildpack-python/tree/master/builds/runtimes
See also:
http://redsymbol.net/articles/unofficial-bash-strict-mode/

Tracked at GUS-W-8818125.


[Config] - Rename ConfigProvider -> ServiceProvider

SlaxWeb\Config\ConfigProvider is weird, since it contains Config twice. All providers classes should be named ServiceProvider, they are different through the namespace anyway.

Resolved.


[Bug] import echarts from 'echarts'   echarts is undefined

Version
^4.6.0
Link to Minimal Reproduction
No response
Steps to Reproduce
import echarts from 'echarts'
echarts is undefined.
Current Behavior
import echarts from 'echarts'
echarts is undefined.
Expected Behavior
import echarts from 'echarts'
echarts is undefined.
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
No response

If you are using v5, please use named import instead of default import. See also v5-upgrade-guide#importing-echarts

V4.6.0
import echarts from 'echarts'    =====> cannot work
import echarts from 'echarts/lib/echarts' =====> works


Add screenschot

fixed https://github.com/katopz/actionhero-client-swift/commit/81ce814d9e41be890993b0539278baea2a02cbbf


elastalert-create-index shards

Is there any ways to specify the number of primary and replicate shards with elastalert-create-index?  It seems to just use the default 5 and 1.

@PMDubuc can you reopen this? There's no way to configure the number of shards/replicas

@treaz this issue #596 is open.  I made a reference to it on #622 which is closed.

PR is already available in #1201


Multi-select and edit tickets

Another enhancement (possibly more difficult) is to allow staff to multi-select different tickets to resolve/delete etc.  Right now, you can only group and help/delete all, which doesn't allow for fine-grain editing.

Hi, I'd like to take this on

This should not be a feature. We don't want anyone to accidentally delete 100 tickets from the Queue with no way of getting them back.


Dev container for terraform development

A simple development environment for terraform. Terraform commands can be executed from within VS Code terminal

Thanks for opening this @Shashindran. We do have a Terraform definition: https://github.com/microsoft/vscode-dev-containers/tree/main/containers/azure-terraform; would that meet your needs for Terraform development?


static path after building should be 'static' instead of '/static'

GET file:///E:/static/app.a941263badf7da004771.js net::ERR_FILE_NOT_FOUND

Changing it to ./static or static will fix.

Root-relative paths like this will work if you're visiting the page in the context of a real web server. For example, try this from your project folder:
npm install -g live-server
live-server dist


Getting Testnet BCD

Hi,
I would like to receive BCD on testnet, does someone know if there is a friendbot to get some ?
Thank you in advance for your response

Hi,
http://faucet.test.btcd.io/

@heyconnor thanks !


Timer

I have a page on which a lot of widgets. All widgets frequently polls the server. And one of these widgets is the timer that simply shows the time and it has no any business logic. Timer ticks every second and every second WHOLE view is rerendered! But I want to make this a timer ticking, and only changed his view. Is there any do it or I in all cases is to use the state?

Can you try using a separate model for the timer widget with its own namespace?  Maybe that could fix it?  I think the name of this issue should be renamed though to "whole page is rendering when only a few items changed" or something like that.  Also it might be helpful if we can see your code so we can view the implementation.

@MattMcFarland I originally did so, but every view in my project updated with every tick.
Here example of my model
module.exports = {
  namespace: 'timer',
  state: {
    time: new Date()
  },
  reducers: {
    setTime: (data, state) => ({ time: data })
  },
  effects: {
    updateTime: (data, state, send, done) => {
      send('timer:setTime', data, done)
    }
  },
  subscriptions: [
    (send, done) => {
      setInterval(() => {
        send('timer:updateTime', new Date(), done)
      }, 1000)
    }
  ]
}

@kwoon ah yeah, that's what happens with virtual-dom renders; to change a single element the whole page is re-computed and the minimal amount of changes are performed on the actual DOM.
A way to improve the rendering speed is to use thunking for individual components on the page. Given the same input, the same output is returned. The vdom-thunk package should be helpful for that.
Does this answer your question?

Ahhh, this must be what caused codemirror to lose focus.

@yoshuawuyts Thanks! It is even better than i expected! Just like shouldComponentUpdate in React.

@yoshuawuyts  wait, but choo use yo-yo which uses morphdom which is not virtual dom right? So the view should update properly if yo-yo#update is used? or I'm confused :question:

@YerkoPalma I think this is not the best name for the package. The functionality of this package is much wider.

@kwoon what package?

@YerkoPalma vdom-thunk

@YerkoPalma I agree, I'm not sure how vdom-thunk is going to work with morphdom?

@kwoon  can you share an example when you get it working?

related issue https://github.com/shama/bel/issues/40

Well I understand the thing about the thunk function, My only doubt is why does a vdom library fits with a non vdom library?

@YerkoPalma I think this is not the best name for the package. The functionality of this package is much wider

Is that why? the vdom thunk is also compatible with native dom?

So yeah, the vdom-thunk package is compatible with bel components - from the source all code is pretty much only about copying function parameters.
The implementation does feel a bit too complicated for my taste though; it does some stuff with objects and keys that feels off. For bel components we could def create a simpler version of this package

Ok, I'm starting to understand :smile: but from the related issue there is this comment

Initially it feels like this should be in the diffing library or yo-yo as bel doesn't know about previous elements.

I agree with that, I feel like choo should enforce or recommend the use of the yoyo update function, and update that function if necesary, I don't know why the thunk function should be in bel library

I don't know why the thunk function should be in bel library

I feel the goal of bel is to create standalone components that work anywhere.
Like onload and onunload provide hooks into any DOM abstraction, thunk
would provide a way to optimize those components.
The way I view a typical element in bel would be along these lines:
const thunk = require('bel/html')
const assert = require('assert')
const html = require('bel')

module.exports = thunk(createMyButton)

// create a button that has a color, a value inside it
// and does a thing when clicked
// (str, str, fn(clickEvent)) -> str
function createMyButton (opts, onclick) {
  opts = opts || {}

  assert.equal(typeof opts, 'object')
  assert.equal(typeof onclick, 'function')

  const color = opts.color || 'blue'
  const name = opts.name || 'click'

  return html`
    <button onclick=${onclick} style="background-color: ${color}">
      ${name}
    </button>
  `
}

Using this component would be the same for pretty much any framework, but now
it's optimized for re-rendering / vdom trees. Using it in choo would look
like this:
const html = require('choo/html')
const Button = require('../elements/my-button')

// model bound to this particular view
const model = {
  namespace: 'button',
  state: {
    color: purple,
    name: 'click me!'
  },
  effects: {
    hey: () => console.log('hey!')
  }
}

module.exports = sectionView
sectionView.model = model

// A button with a button in it
// (obj, obj, fn) -> str
function sectionView (state, prev, send) {
  const button = Button(state.button, (e) => send('section:hey'))

  return html`

Hello y'all

      ${button}

  `
}

I feel like thunk is an integral part to creating components in such a way, I
can't think of a time where it wouldn't make sense to thunk an element. Does
this clarify it a little?

Pretty clear now, thanks. :)

Man I had to make sure codemirror was fully rendered first and that was not easy to figure out.
https://github.com/trainyard/choo-codemirror
would be nice if there was a way to completely ignore parts of the dom.  like special portals or something.

Oops, found a bug in my code. In order to prevent multiple instances of the same element conflicting on the page, the export should be wrapped in a function. E.g.
// oops
module.exports = thunk(createMyButton)

// phewwww
module.exports = function () {
  return thunk(createMyButton)
}

would be nice if there was a way to completely ignore parts of the dom. like special portals or something.

@MattMcFarland not sure that's possible in a DOM-compliant way using the current version of morphdom :/ - maybe if we enumerate the issues we're currently facing with creating new components we might be able to come up with a better way to do this


fix: lint:stylelint and test:lint scripts

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Create .stylelintignore file.
Update stylelint version to "14.5.3"

What is the current behavior? (You can also link to an open issue here)
The same current behavior.

What is the new behavior (if this is a feature change)?
No new behavior.

Other information:

Thank you 😊

You are welcome 😄


May Connectathon 2023 Pre-Release Build

Pre-Release Build as-of the May Connectathon 2023

Release/Tag with semver, with "pre-release" box checked. 🙏

@cosmycx added initial changelog
https://github.com/CDCgov/data-exchange-fhir/blob/9b85c4868d1c12148c030f972f473bb3116939dc/CHANGELOG.md?plain=1#L1-L14


Can't build project

https://travis-ci.org/mgattozzi/alchemist/jobs/205057554#L632
We have to install diesel_cli as part of install in order to run database migrations. However because of this when building the project, it errors because diesel is already installed.

This is actually an error in our build script, sorry about opening this issue.


How to differentiate movable macros and from fixed macros in the file adaptec3.nodes?

As decribed in our paper, most fixed macros in ISPD-2005 dataset are exchanged to movable ones for the agent to organize. We also filter out some macros by preprocessing, especially those smaller and isolated ones.


after quantization aware training and convert to tflite, when running the converted tflite model, ERROR: tensorflow/lite/kernels/pooling.cc:104 input->params.scale != output->params.scale (0 !=<PHONE_NUMBER>)

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: Android 8.1
TensorFlow installed from (source or binary):binary
TensorFlow version (use command below):1.14
Python version:3.6
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:10.0
GPU model and memory:

You can collect some of this information using our environment capture script
You can also obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the current behavior
when run tflite model using tflite benchmark tool, following error happened:
ERROR: tensorflow/lite/kernels/pooling.cc:104 input->params.scale != output->params.scale (0 !=<PHONE_NUMBER>)
ERROR: Node number 92 (AVERAGE_POOL_2D) failed to prepare.
Describe the expected behavior
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

any ideas to solve this problem?

In order to expedite the trouble-shooting process, Please provide a code snippet to reproduce the issue reported here. Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


marathon bump 1.5.8

High-level description
Marathon bump 1.5.8
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:

DCOS_OSS-2352 Bump Marathon to 1.5.8
MARATHON-7609 Send Instance health changed event when the overall status changed
MARATHON-8104 SlidingAverageSnapshot fix for metrics
MARATHON_EE-1884 SystemConfig is the Correct Security Constraint

Checklist for all PRs

[x] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Change log from the last version integrated (this should be a link to commits for easy verification and review): https://github.com/mesosphere/marathon/compare/v1.5.7...v1.5.8
[x] Test Results: https://jenkins.mesosphere.com/service/jenkins/view/Marathon/job/marathon-team-releases/job/marathon-community-release-1.5/57/console
[x] Code Coverage (if available): N/A

@mesosphere-mergebot label ready for review

@mesosphere-mergebot bump-ee

@mesosphere-mergebot merge-it


Uncaught TypeError: webpack_require(...).context is not a function

Bug report

What is the current behavior?
Uncaught TypeError: webpack_require(...).context is not a function
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
相同的webpack版本js版的，可以使用这个require.context。转为typescript版本的requie.context 报错 Uncaught TypeError: webpack_require(...).context is not a function

Other relevant information:
webpack version:  4.41.6
Node.js version: v12.11.1
Operating System: mac
Additional tools: vscode

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template and reopen, or open a new issue.
Please fill If the current behavior is a bug, please provide the steps to reproduce.


Split only the schemas

Is your feature request related to a problem? Please describe.
It would be beneficial to have a capability that allows us to isolate only the schemas from the source openApi.yaml file, leaving the paths intact
Describe the solution you'd like
Perhaps we could implement a flag or configuration option to facilitate splitting only the schemas located within the 'components' section, effectively replacing the references in the openapi.yaml file.

We're unlikely to add another configuration option because it's so easy to end up with a huge and bewildering number of them, but I'm curious to hear more about your use case. Could you say something about why either splitting the API description, or maintaining a schema with an alternative manual structure, aren't working well for you?

Hi @lornajane
First, let me thank you for your prompt response.
Initially, our development process involved using the OpenAPI spec without organizing it into multiple files. This approach was followed across more than 25 services. Essentially, we utilized the open-api-generator Maven plugin to generate server code and model classes. However, we've now recognized the need to separate schemas for easier maintenance. I experimented with Redocly Split, which effectively splits schemas and paths. However, upon splitting, the OpenAPI generator fails to generate server code and models correctly. It attempts to create a separate model class for one of the properties, which is incorrect. Therefore, I aim to split only the schemas, not the paths, across all services without manual intervention. In my search for a solution, I came across your tool and identified it as potentially aiding in this schema-splitting task."

I think I understand. It's a common use case to split the OpenAPI descriptions to make easier maintanance, but as you have already discovered, not all tools support that structure. I suggest that you use the split structure as the source of truth, but try bundling the API description back to a single file before passing it to the code generator tools.

Closing since it's unlikely that we'd implement additional options for partial splitting. My recommendation is to split the files to make them easier to work on, but if needed then run a bundle command before passing the API description to other tools.


[Feature] Add a little hover effect on the icons of the navbar, logo, footer and social media handles.

Description
On bringing the arrow to the icons and headings of the navbar, it would look good if there was a little animation and a hover effect.
Tasks:
I'm a GSSOC'24 contributor
Screenshots

Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

Assign me this issue.

Please assign me this issue.

Pls provide the supporting screenshot that what kind of hover effect you want to add @karishmaaa101


State timeouts?

It's a very interesting project with a lot of rich functionality. One of the the things I was looking for in an FSM was the ability to automatically transition to a specified state after a period of time in the current state. For example, the FMS is in "tank-filling" state, waiting for an external sensor to tell me the tank is full and move on to "tank-full" state, but if that external event doesn't happen within 30 seconds, I instead want to move to "tank-fill-error" state. Of course I could implement something like this with an external timer that fires after 30 seconds and triggers a transition from "tank-filling" to "tank-fill-error", but it seems like the use-case for this sort of thing is common enough to be built in--essentially, for any state transition, the ability to pass an optional "timeout state" and timeout value. I'd love to hear your thoughts on this.

Hi @Eric24,
I also use timeouts in my projects but in my oppinion this should be handled by the model or the specific state. Let's see if others may have another view on this.
Until then, a straight forward way to do it in the model could look like this:
from threading import Thread
import time
from transitions import Machine

class Timeout(Thread):

    def __init__(self, func, timeout):
        super(Timeout, self).__init__()
        self.func = func
        self.timeout = timeout
        self.canceled = False
        self.start()

    def run(self):
        time.sleep(self.timeout/1000.0)
        if not self.canceled:
            self.func()

class Model:

    def __init__(self):
        self.timer = None

    def on_enter_B(self):
        self.timer = Timeout(self.timeout, 1000)

    def on_exit_B(self):
        self.timer.canceled = True

model = Model()

transitions = [['timeout', 'B', 'C']]
machine = Machine(model, states=['A', 'B', 'C'], transitions=transitions, initial='A')
model.to_B()
print(model.state)  # >>> B
time.sleep(1.1)
print(model.state)  # >>> C

or as part of a subclassed State which allows easier individual timeout handling:
class TimeoutState(State):

    def __init__(self, timeout):
        self.timeout = timeout

b = TimeoutState('B', enter='set_timeout')
m = Machine(model, states=['A', b, 'C']) ...

Yes, that's essentially my current approach. I'm curious as to why you feel that this shouldn't be part of the state machine "internals"? To me, it seems like "core functionality", and as such, why trouble the developer to handle their own timeouts explicitly? For my purposes, having 30 or more states, most with timeouts, it seems like a lot of unnecessary boilerplate.

For my purposes, having 30 or more states ... it seems like a lot of unnecessary boilerplate.

If you subclass Machine, the extra lines of code scale quite well for many states:
class TimeoutState(State):

    def __init__(self, timeout=None, *args, **kwargs):
        self.timeout = timeout
        super(TimeoutState, self).__init__(*args, **kwargs)

    def enter(self, event_data):
        # initialise timeout here

class TimeoutMachine(Machine):

    def _create_state(self, *args, **kwargs):
        return TimeoutState(*args, **kwargs)

states = [{'name': 'A', 'timeout': 1000},
          {'name': 'B', 'timeout': 2000'},...]

machine = TimeoutMachine(states=states)

I'm curious as to why you feel that this shouldn't be part of the state machine "internals"?

I do not consider timeouts as a core functionality. However, I do think this might be a valuable addition to transitions as part of a model/state extension. We collect ideas in #146 for that module. I will definitely add your suggestion there and in case it receives support/feedback by the community, we will discuss how it can be added to transitions.

Very good idea! -> upvote

Me again guys :)
Can't get run the above code.
Please take a look at http://stackoverflow.com/questions/43275092
What the ... ;)
Thanks!

My next try to implement default timouts using def _create_state(self, *args, **kwargs) fails permanently on exiting the states.
Please see the issue on stack http://stackoverflow.com/questions/43937365/setting-and-canceling-of-predefined-timeouts-for-hierarchical-state-machine-fail
Thnx!

I got here looking for the same thing. Built-in support for timeouts would make for less overall LOC in the client apps.
Great idea

Just to add my $.02, I ended up just using threading.Timers:
    def timer_poll_start(self, event):
        self.timer_poll = Timer(poll_interval, self.timer_poll)
        self.timer_poll.start()

    def timer_poll_cancel(self, event):
        self.timer_poll.cancel()

We plan to ship timeouts with transitions 0.6.0. See #229 or the whole dev-state-extension branch for further info.

What restrictions does this place on code that uses timeouts? Presumably it needs threads, which precludes the ability to use joblib in the same process (with python 2.x only anyway)
I've already solved this problem by separating my concurrent code in a different process, but I'm curious if the implementation has the same restrictions as I ran into.

Presumably it needs threads

Correct. It actually uses Timer similar to your code snippet above.

but I'm curious if the implementation has the same restrictions as I ran into

Yeah, it does. I am not aware of any convenient solution which allows timeouts without threads 🤔.
I could think of two threadless solutions but both have major issues:
a) Using async forces the event loop on the user
b) Using polls/ticks allows synchronised execution but is not really convenient to use. This way the user has more or less to implement his/her own event loop and poll the machine/model regularly or the event won't trigger in time.
@bedge: What's your lesson learned for timeouts/threading? Should transitions Timeout may support both approaches? Threads and polling? Or do you know about a better third way?

I believe that the threading restrictions are mainly python <3 only and that >3 has fixed many of the threading problems and inconsistencies.
That said, I've been stuck in a 2.7 world so my experience with 3.x is limited to lusting while window shopping.  However, I will be attempting a 3.x migration in the near future so I'll keep this in mind during that process.
In short, I found the addition of timers to the model to be of sufficient benefit to outweigh the threading impact drawback.
The only thing I would suggest is that if a user isn't using transitions timers, the timer support should not interfere with using joblib of other threading APIs.

The only thing I would suggest is that if a user isn't using transitions timers, the timer support should not interfere with using joblib of other threading APIs.

well, that should not be the case except joblib already complains when the threading module is imported. Timers are only created when Timeout is explicitly used.

While it's unfortunate, it's not really transitions' fault that the python 2.x threading has issues.
It's probably good practice to keep the state machine in a separate executable anyway. Anything that needs massive concurrency should be popened as a new process. (IMO)

It's probably good practice to keep the state machine in a separate executable anyway

agree, from what I heard in my department so far, one should use a single threaded state machine where ever possible. Closing this issue now since 0.6.0 has been merged with master and also pushed to pypi.


cvc4: 1.5pre-smtcomp2016 -> 1.5pre-20170514

Motivation for this change
Error on  build
@vbgl @thoughtpolice @vcunat
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[x] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

This update broke maude, which is a package I very much depend on.

@peti Do you require the SMT support in maude?  Otherwise we can just add --with-cvc4=no to maude's configure flags.

Yes, I need SMT support.


Unknown node - add help for the user

Please describe the feature that you want to propose
Based on feedback from @GuilhermeCamposo :
... We should explain what is the question mark node and that the user needs to fix it or work on the yaml file.

From Jenn:

If you use an inline alert, one option that might work well is the expandable alert: https://www.patternfly.org/components/alert#expandable-alerts
This lets you have a brief title that describes the situation, and hide the additional details that explain the situation.

For example:
Node is not a known type
Configuration properties are not available when the node is not a known type.


Audit for delete-before-recreate

I suspect there are several places we should be using delete-before-recreate now that we can.
For instance, I just ran into an issue with ElastiCache SubnetGroups, where I couldn't change the subnets to which one was attached, because it claimed they were in use.  I suspect this is a case where we need to first tear down the ElastiCache ReplicationGroup that references it.
I was going to file an issue just for that case, but then realized we probably ought to do a broader audit.

I think we should instead focus on https://github.com/pulumi/pulumi/issues/1620 so that users can opt-in to this which would unblock this broadly (plus additional cases).
Other than actually hitting the need for this, it's difficult to idenitfy from an audit - so I'm inclined to wait on switching the default until we hear specific feedback (or based on identifying opt-in usage via https://github.com/pulumi/pulumi/issues/1620).


Update Centos-7.3 to Centos 7.4.

Upgrade Centos to 7.4.
PS - only tested with builder=virtualbox, as I do not have vmware or qemu installed.

It works for me with both vmware and qemu as well. Thank you!


Upgrader from 0.6.2 to 0.7.0 accidentally applies the "latest" helm chart

Environment

Client OS (e.g., Linux, OSX, Windows): Linux
Keptn Version (keptn version): 0.6.2 (and 0.7.0)
Kubernetes Cloud Provider (e.g., GKE, AKS): GKE
Kubernetes version (kubectl version): 1.15

Affected Component

[x] Docs
[x] CLI
[x] Kubernetes Integration
[x] upgrader

Describe the bug

I tried to ugprade from 0.6.2 to 0.7.0 according to the docs here: https://keptn.sh/docs/0.7.x/operate/upgrade/#upgrade-from-keptn-0-6-2-to-0-7
The result was that my Keptn installation was upgraded to 0.7.1 instead of 0.7.0
To Reproduce

Install Keptn 0.6.2
Upgrade to Keptn 0.7.0

Expected behavior
Keptn 0.7.0 is installed
Current behavior
Keptn 0.7.1 is installed
Analysis
The problem lies here:
https://github.com/keptn/keptn/blob/0.7.0/upgrader/upgrade-062-070/upgrade-job.yaml specifies HELM_CHART_URL as https://storage.googleapis.com/keptn-installer, while the upgrader would have used the manifest with version 0.7.0:
https://github.com/keptn/keptn/blob/0.7.0/upgrader/upgrade-062-070/scripts/upgradeKeptn.sh#L31-L32
This leads to the "latest" version being installed, which currently is 0.7.1
Fix
We need to re-release the upgrader for 0.7.0 to ensure that 0.7.0 is installed, not latest.

We will fix this issue with a re-release of Keptn 0.7 on GitHub.


CMS icon shows shopping cart (which is of shop) in dashboard app left menu when cms is clicked

CMS icon shows shopping cart (which is of shop) in dashboard app left menu when cms is clicked

Working on it.

Fixed.


GeoJSON has 'renderer' property, but is not documented

Checklist

[X] I've searched through the current issues to make sure this change hasn't been suggested already.
[X] I agree to follow the Code of Conduct that this project adheres to.

Which documents need updating?
https://leafletjs.com/reference.html#geojson-option
Motivation
The GeoJSON options have an option renderer. Are they unique for the GeoJSON class or do they inherit from Path. This is inclear to me.
Also @types/leaflet is missing this option.
Suggested changes
Add renderer option to GeoJSON options interface. Or have Geosjon inherit from Path if this is the case.

The GeoJSON options have an option renderer.

No, they don't. L.GeoJSON inherits from FeatureGroup and LayerGroup, which are not L.Paths. L.GeoJSON does not take a renderer option at instantiation time.
If you mean "The L.Paths spawned by a L.GeoJSON have a renderer option because they're L.Paths", then that's already covered by https://leafletjs.com/reference#geojson-pointtolayer and https://leafletjs.com/reference#geojson-style .
Also: It's OK if you're not a native english speaker... but please, please, use the interrogation mark (?) key on your keyboard when you're writing a question.

Excuse me for the missing question mark!
About L.GeoJSON not taking a renderer option at instantation time... I am defining this at instantation time to allow the tolerance to be defined.
When defining tolerance only on the L.map instance this has no effect on the Geojson drawn paths.
This CodeSandbox makes this clear.
If you uncomment the tolerance defined in the customPaneRenderer, tolerance is changed to 10.


B 21533 int HQ role with Safety Move privs

B-21533
Summary
Previously code was added to prevent HQ role from being able to have Safety Move privileges, but it was decided that HQ should now have access to see Safety Moves. This PR removes the checks preventing the HQ role from selecting the Safety Move priv in the admin console.
Verification Steps for the Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

[ ] Has the branch been pulled in and checked out?
[ ] Have the BL acceptance criteria been met for this change?
[ ] Was the CircleCI build successful?
[ ] Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

Instructions for starting storybook
Instructions for starting the MilMove application
Instructions for running tests

How to test
To be able to select Safety Moves you need to first add the Super permissions for the admin account. This can be done by changing the flag in the DB for super to true in the admin_users table.

Now you can either edit and existing Office User and give them Headquarters Role and Safety Move privileges or create a new Office User with the HQ role and Safety Move priv.
NOTE: If creating a new Office User you first must select the HQ role and save and then you can add the Safety Move privilege. This is because the checkbox for Safety Move is only currently available on the edit Office User page and not create page (known issue).

With an admin who has super powers (DB flag see above) access the admin app
Create or Edit an existing Office User and give them at least the Service Counselor and Headquarters Role and Safety Move privileges. Make sure to remember which GBLOC you gave the Office User.
Login to the Office App as the Service Counselor, go to the Customer Search and type in any and perform the search
Click the Add Customer button
When creating the customer you will be asked if this is a Safety Move, select Yes
Finish filling out the fields and create a new move
Go through and create an HHG shipment, make sure you set it up so that your shipment falls under the same GBLOC as your Office User so you will see the move in your Queue
Make sure you enter all the Order information but don't submit the shipment yet, copy your move code
Change your user role to Headquarters and go to the Counseling Queue
Verify you can see your Safety Move (should have a ${\color{red}Safety}$ label and move code starts with SM)
Select the Safety Move and verify you can view the shipment
Switch the role back to Service Counselor and Submit the shipment
Change back to the Headquarters role and verify you can see the shipment in the  TOO queue
Select the shipment and verify you can view it

Frontend

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
[ ] There are no new console errors in the browser devtools.
[ ] There are no new console errors in the test output.
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
[ ] This change meets the standards for Section 508 compliance.

Warnings

:warning:

Files located in legacy directories (src/shared or src/scenes) have
been edited. Are you sure you don’t want to also relocate them to the new file structure?
View the frontend file org ADR for more information

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against 74680a32ffcc4336af1dadb53342a51a0e979c26

Test coverage on server failed.
Last run: Wed 11 Dec 2024 06:02:53 PM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

Looks good. Could improve on the styling of the SAFETY label in the details page and listing; but, thats outside the scope of this BL. See screenshot of possible styling enhancement for the label.

I like that a LOT better, can run it by Wendy and Dre and maybe just slip in the change somewhere 😄

Test coverage on server failed.
Last run: Thu 12 Dec 2024 04:14:52 PM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

Test coverage on server failed.
Last run: Fri 13 Dec 2024 04:59:52 PM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

I was unable to apply the Safety Moves privilege when Customer, Prime Sim, Contracting Officer, or GSR were selected. I was unable to apply the Customer, Prime Sim, Contracting Officer, or GSR roles when Safety Moves were selected. Encountered no limitations with other combinations in either order for that privilege.
Code changes look good after a couple comments outside of Github.
In the next BL for this feature it might be good to add a playwright flow to check these limitations since we can't test the admin app with normal React tests.

I looked into this some and due to the lack of being able to actually set an admin user to "Super admin" via the admin app I am not sure how we would set it via DB when an admin account is created to do the playwright tests. The Safety Moves priv checkbox will not show up to test unless you are an admin with super privileges. We certainly can easily check the Supervisor priv via playwright tests in the downstream.

Test coverage on server failed.
Last run: Sat 14 Dec 2024 12:19:26 AM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.

I was unable to apply the Safety Moves privilege when Customer, Prime Sim, Contracting Officer, or GSR were selected. I was unable to apply the Customer, Prime Sim, Contracting Officer, or GSR roles when Safety Moves were selected. Encountered no limitations with other combinations in either order for that privilege.
Code changes look good after a couple comments outside of Github.
In the next BL for this feature it might be good to add a playwright flow to check these limitations since we can't test the admin app with normal React tests.

I looked into this some and due to the lack of being able to actually set an admin user to "Super admin" via the admin app I am not sure how we would set it via DB when an admin account is created to do the playwright tests. The Safety Moves priv checkbox will not show up to test unless you are an admin with super privileges. We certainly can easily check the Supervisor priv via playwright tests in the downstream.

You can create an admin user via factory with Super privileges prior to running the test?

I was unable to apply the Safety Moves privilege when Customer, Prime Sim, Contracting Officer, or GSR were selected. I was unable to apply the Customer, Prime Sim, Contracting Officer, or GSR roles when Safety Moves were selected. Encountered no limitations with other combinations in either order for that privilege.
Code changes look good after a couple comments outside of Github.
In the next BL for this feature it might be good to add a playwright flow to check these limitations since we can't test the admin app with normal React tests.

I looked into this some and due to the lack of being able to actually set an admin user to "Super admin" via the admin app I am not sure how we would set it via DB when an admin account is created to do the playwright tests. The Safety Moves priv checkbox will not show up to test unless you are an admin with super privileges. We certainly can easily check the Supervisor priv via playwright tests in the downstream.

You can create an admin user via factory with Super privileges prior to running the test?

I figured out a way to add in the creation of a user with super privileges and added a few tests.


[QST] shuffle read time is missing from spark UI

What is your question?
We have metrics for "shuffle read time" at : https://github.com/NVIDIA/spark-rapids/blob/branch-24.02/sql-plugin/src/main/scala/org/apache/spark/sql/rapids/execution/GpuShuffleExchangeExecBase.scala#L211-L212,
but it doesn't appear on the web UI:

Any missing configs?

Reasons it's missing: user doesn't set shuffle manager to the rapids one.


DateTime categories not working properly

If I take the example posted in your single page visuals tutorial, change the countries to Date objects, and change the column type as well as category identity from text to dateTime, the last category label doesn't display, although its values do.

Can you share your datetime values so I can attempt to repro the issue?

Replace the categoryValues with this array:
[new Date('2015-09-01T00:00:00'), new Date('2015-09-02T00:00:00'), new Date('2015-09-03T00:00:00'), new Date('2015-09-04T00:00:00'), new Date('2015-09-05T00:00:00'), new Date('2015-09-06T00:00:00')]

Change the SQExprBuilder from .text to .dateTime

Change the column metadata fromDescriptor from text to dateTime

You'll notice the entry for 9/6 is missing. I realize this may be an artifact of having continuous vs discrete values for the categories, but it feels strange that 6 country labels can fit, while 6 short date strings cannot.

You can change the axis type using metadata objects:
var objects: DataViewObjects = {
categoryAxis: {
axisType: 'Categorical',
}
};
dataView.metadata.objects = objects;
DateTime category values will default to 'Scalar' axisType for column/bar and line charts.
That said, we have received a fair amount of feedback on Scalar vs. Categorical axis tick value behavior, and we are working on a new design to improve things.
There also appears to be about a 12-hour offset between the center of your columns and the tick values, this should not happen when you send in 00:00:00 for the time portion, I'll look into this.

Forgot to use markdown, sorry for the ugly formatting above:
            var objects: DataViewObjects = {
                categoryAxis: {
                    axisType: 'Categorical',
                }
            };
            dataView.metadata.objects = objects;