Typescript does not suggest import from package.json in subfolder

🔎 Search Terms
import suggest resolve package.json subfolder paths workspace
🕗 Version & Regression Information

I tested this in multiple versions of typescript and the behavior always seems to be the same. I search google a lot. I found information about package.json imports property, and also types, typeRoots and paths property of tsconfig compilerOptions. I tried several things and nothing quite seems to fit.

⏯ Playground Link
No response
💻 Code
import React from "react"

useEffect() // ctrl-dot on this does not trigger the correct suggestion, if the relevant package.json is in a subfolder. even if the npm package exists in the root node_modules folder!

🙁 Actual behavior
pressing ctrl-dot on "useEffect" does not trigger a suggestion to import useEffect from the react package
🙂 Expected behavior
I expect the import suggestion to be shown, since npm indeed installs all package into the root folder, even if the package.json is in a subfolder. And it does compile and run OK if I write the import manually. But I am tired of writing imports manually.
Additional information about the issue

Why I need this: I have a  submodule that I include as npm workspace in each of my repositories. The dependecies are only declared in package.json in my submodule. This avoids the need to declare the same dependencies in each of my projects
if this cannot be solved any other way, may I ask if there is a way to write some sort of typescript plugin that will recognise the package.json in my submodule to determine relevant import suggestions?

Please give us a complete repo layout to better understand what you're doing here. There are lots of ways to configure this and this may or may not be the expected behavior.

Not sure how markdown works for directory structures, but anyway.. The directory structure is as follows:

package.json (this file has "my-submodule" listed in "workspaces" property, for convenience, though that may not be important for this issue)
tsconfig.json (more or less important)
example.ts (this is the file that fails at generating an import suggestion for the react package)
my-submodule
my-submodule/package.json (this is the file that has react in its dependencies)

So it fails with this setup. But if I move react into the root (!) package.json file, the import suggestion does work, but I can't do that, because I want to declare all my dependencies in my-submodule. This problem "only" exists for files outside of my-submodule, because it seems as if typescript ignores what is actually in the node_modules folder at just looks at the package.json files in the enclosing scope... which is exactly the problem why the import suggestion does not work (the problem I am trying to fix).

But even if I already imported react into the project, it won't suggest anything from react...

Subsequent imports should work. Can you post a cloneable repo that demonstrates the problem?

Here you go (it's public repository so you should be able to clone): https://github.com/arogg/bug-packagejson-import


It does not detect when I'm mutating the state directly.

There's no error (or warning) for when I mutate the state instead of using setState.
so:
this.state.foo = "bar"
should yield an error, as opposed to
this.setState({foo: "bar"});

There is no rules to detect direct state mutation.
But that would be a nice feature to have.


code coverage not available with 3.1.300

Following https://docs.microsoft.com/en-us/learn/modules/run-quality-tests-build-pipeline/6-perform-code-coverage with .NET core sdk 3.1.300 no code coverage is reported, already in coverage.cobertura.xml (see attachment) and also not on the Azure DevOps pipeline.
With sdk 3.1.100 the detailed report shows up including Azure DevOps.
For quick reference the link to the clone https://github.com/milbrandt/mslearn-tailspin-spacegame-web.git and commits:

no report on 8b48d8e3f701932b07cb36d376b1ce92e4b81038
report available 2af2da0057eb5e9fd51ba445c7dd0a5032fe5744

coverage.cobertura.zip

Same for me -- this has been a problem for months. Only the version that you get with the xUnit templates allows cover coverage to work.

Apologies for the delayed answer. 3.x is out of support now. Are you still reproing this issue in 6.0 or 7.0?

I've not seen this issue recently, no, but I also don't know if I have changed my behavior which might affect the observation of issue.


Python Unikernel stuck on '=== calling "stub" main() ==='

I'm trying to run the python unik example but, after boot, everything is stuck on the message

=== calling "stub" main() ===

Here there's the screenshot.

Any idea?

can you try increasing instance memory on unik run with --instanceMemory flag? (try 512 to 1024)

it is possible you are encountering a bug that was (supposed to be) fixed in 1ee6a52
if you haven't updated since then, try pulling the latest version of master and running make binary to rebuild unik
if it's the same bug, you will notice things run "normally" with instance memory at 1024mb, (or if you wait five minutes for instance to boot). let me know if pulling the most recent master fixes it for you (if you are not already on most recent)

Unfortunately no joy. I have fetched the latest from master and rebuilt it. It works like a charm if memory is 1024 but with the default 256 it's still stuck there for ages (sometime 1m some other waaay more).
I can go on with the 1G of memory but it would be great to have the bug fixed. All in all unikernels are all about minimal footprint and optimal server usage, innit?
Is there any way I can help? (Some hint on where to start from :)

the issue itself is caused by a very strange compatibility problem between Virtualbox and gorump (go running on rumprun). gorump has a function called findnull that searches a byte array for null bytes. it seems that, on providers other than virtualbox, if go reaches the end of the buffer, some kind of interrupt occurs and the function returns. however, Virtuablox behaves strangely and feeds go with an infinite number of 0xFF bytes.
So we put in a (hacky) solution to limit the search to a maximum buffer size, on the order of several hundred GB. This meant that when go is bootstrapping on rump, a buffer of ~200GB is being scanned before the main function gets loaded. When we noticed that this was causing very slow boot times for instances running Go code, we modified that function to halt at 200MB (a reasonable heuristic given the size of the actual buffer that code is scanning is on the order of tens of bytes, as observed on multiple iterations running in a debugger). The line we changed is visible here: https://github.com/emc-advanced-dev/unik/blob/master/containers/compilers/rump/go/fixgo.sh#L18
i think i know what the problem is - we updated our Go containers, but not our Python containers. Python uses a stub written in Go because python doesn't give us access to VM MAC Address, which we need for bootstrapping on virtualbox. Sorry about the inconvenience, I'll make sure to rebuild them and push the fix asap, and thank you for opening this issue!

try with latest version of master; let me know if this doesn't fix the issue

Yes, it did fix the issue. Thanks a lot!

No problem. Thanks for bringing this issue to our attention


Constant false spawns

Every so often, I scanned false spawns, the pokemon never been there and the livemap shows as "12 minutes reamaning" or so, my point is even pokemons with over 10 minutes left are fake flagged spawns. Anyone else having that? It's not ALL that is false but it's kinda 35% of the spots are false.... that is frustrating me because everytime is a 90%+ IV pokemon xD

The timer portion is not accurate anymore, since Niantac only sends a time if there is less than 1 minute remaining.  There are 15/30/60 minute spawns, and depending on how long they are visible for before your worker account finds it, it might only have a couple minutes left.
IE I scan an 11 radius with 10 accounts.  It takes my scanners 5 1/2 minutes to complete the loop, so theoretically the timer could tell me 15 minutes left, but really I have less than 10 minutes.
Those sightings are probably not false, but probably despawned by time you get there.

Oh, thank you for your answer. =)


automation: Use label filter for sig-compute serial over skip

What this PR does
automation: Use label filter for sig-compute serial over skip

Fixes #
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer

Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note

NONE

/test pull-kubevirt-e2e-k8s-1.31-sig-compute-serial pull-kubevirt-e2e-k8s-1.31-sig-compute

/test pull-kubevirt-e2e-k8s-1.31-sig-compute-serial pull-kubevirt-e2e-k8s-1.31-sig-compute

@brianmcarey Looks like label filtering does not work with Serial. Maybe we should enforce using [Serial] in the test description, and of course, close the gap :(

/close


fix doc problem, change 'turn of' to 'turn off'

Description
fix doc problem, change 'turn of' to 'turn off'
Target

[ ] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[ ] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I have run mvn clean install -DskipTests locally and I have committed all auto-generated changes

You need to change the java source code, do a git grep to find where in the source code

You need to change the java source code, do a git grep to find where in the source code

My git grep results show the keyword only appear in .json and .xsd,  and they are all generated.  And i find the field in org.apache.camel.processor.SendDynamicProcessor , but found no docs.

This PR is broken, do you mind start all over and from latest code from main branch

This PR is broken, do you mind start all over and from latest code from main branch

sure


Add HPA/HVPA handling to HighAvailabilityConfig webhook.

How to categorize this PR?

/area high-availability
/kind enhancement
What this PR does / why we need it:
This PR adds HPA and HVPA handling to the HighAvailabilityConfig webhook.
Which issue(s) this PR fixes:
Fixes #7105
Release note:

The `HighAvailabilityConfig` webhook now also mutates replica settings of `HPA` and `HVPA` resources. To make use of this handling, please label respective resources with the well known `high-availability-config.resource.gardener.cloud/type` label, see `docs/development/high-availability.md` for more information.

/test pull-gardener-integration

/assign

/assign

/lgtm
/test pull-gardener-e2e-kind-ha-multi-zone-upgrade

/lgtm
/approve


Check that Fortran Compiler is usable

What changes does this PR introduce?
Check that FC compiler can be used to compile and run a simple hello world program.
For now, just reports the result (no changes in resulting Makefile).
Also, at the end, reports next command to type when FC test is successful.
What is the current behaviour?
No clear message when compiler is not usable.
What is the new behaviour
improve reports; also print next command to type.
Does this PR introduce a breaking change?
no
Other information:

LGTM.  Ran a few tests too.

LGTM too - I pushed a very small tweak to the docs.

According to https://stackoverflow.com/questions/25287981/mpiexec-vs-mpirun/37133350 mpiexec is more standard, but it also sounds like the standardization happened sometime after MPI was first available - my recollection is that mpirun was all that existed in the prehistoric era.
@jm-c should @gaelforget try a PR for this - that way he can test on his system, or is it easier for you to try?


OIDC integration

Hello, I followed the Keycloak integration steps but I get the following error on skooner pod
An error occurred during the request Error: unable to get local issuer certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
    at TLSSocket.emit (events.js:200:13)
    at TLSSocket._finishInit (_tls_wrap.js:792:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12) {
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
} GET /oidc
2022-03-17T11:28:46.640Z GET /oidc 500

Any idea how to fix it?

That doesn't seem like an issue in skooner.
Also new stable was released and we fixed two pieces of documentation flaws.
Please follow through with the keycloak troubleshooting section and report any issues with a new ticket or reopen this. Thanks!


Bug on dropping card when using laneSortFunction

Describe the bug
When drag the card, rt dropping the wrong card instead of the dragged card when using laneSortFunction.
To Reproduce
Steps to reproduce the behavior:

Pass laneSortFunction={(a, b) => a.title.localeCompare(b.title)} to RT
Try drag any card from any lane that contains more than 3 cards to any other lane

Expected behavior
That the dropped card was the dragged card
Screenshots
https://giphy.com/gifs/eGmgQnA1Ju7wklFRX1
Desktop (please complete the following information):

OS: Windows 10
Firefox 70

Additional context
I don't know why, but when I remove concat() from line 54 of the Line.js file, the problem does not occur.
https://github.com/rcdexta/react-trello/blob/a797c4d20f25ed41e0d5243a31616858b294d906/src/controllers/Lane.js#L52

+1

+1

not sure if this is the same issue but I've noticed that when a sortFunction is defined and I drag a card, it's the card below it that ends up getting moved.


TypeError: forward() got an unexpected keyword argument 'gt_alignment'

I am using Pytorch 1.13.1. It seems that it does not support the argument 'gt_alignment'. However, gt_alignment seems important in your codes. How should I address this problem?
Dim Reduction - aeroplane: (28, 64) --> (18, 54)
Dim Reduction - bicycle: (36, 37) --> (30, 31)
Dim Reduction - boat: (65, 153) --> (49, 101)
Dim Reduction - bottle: (89, 57) --> (63, 41)
Dim Reduction - bus: (31, 61) --> (25, 45)
Dim Reduction - car: (27, 69) --> (19, 47)
Dim Reduction - chair: (38, 25) --> (30, 19)
Dim Reduction - diningtable: (25, 86) --> (19, 50)
Dim Reduction - motorbike: (41, 38) --> (31, 28)
Dim Reduction - sofa: (21, 55) --> (19, 35)
Dim Reduction - train: (55, 187) --> (29, 109)
Dim Reduction - tvmonitor: (45, 36) --> (25, 30)
Training Tag: 11_7_align_1g
Training...
Traceback (most recent call last):
File "train_CompNet.py", line 350, in
train(model=net, train_loader=train_loader, test_loader=test_loader, epochs=epochs, batch_size=batch_size, learning_rate=lr, savedir=checkpoint_dir, alpha=alpha, beta=beta, gamma=gamma, vc_flag=vc_flag, mix_flag=mix_flag, prior_flag=prior_flag)
File "train_CompNet.py", line 165, in train
acc, meanIoU = eval(model, test_loader, header='Initial Eval')
File "train_CompNet.py", line 96, in eval
pred_scores, pred_confidence, pred_amodal_bboxes, pred_segmentations = model(org_x=input, bboxes=input_bbox, bbox_type=input_bbox_type, input_label=None, mask_label_training=gt_labels[0].numpy(), gt_alignment=input_alighnments)
File "/home/ru/anaconda3/envs/amodal/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
TypeError: forward() got an unexpected keyword argument 'gt_alignment'

It may be a very serious academic cheating event if you don't answer the question above as I can not reproduce the results, nor can I cite a cheating paper.


expose FF_USE_FASTSEEK in menuconfig (IDFGH-3696)

Without FF_USE_FASTSEEK, seeking backwards or forwards on a FAT32 FS takes hundreds of ms.
This shows up, for example, when streaming animations from a SD card and frames need to be shown in a non-sequential way.
Enabling FF_USE_FASTSEEK costs ~64 words of memory per open file and reduces seek time by a factor of ~100.
I tested this by overriding the ff.c file with my patched version:
https://github.com/yetifrisstlama/espirgbani_pio/commit/2c957e3f77fba3410e91f84a3a8304582586eda8
See also:
http://www.elm-chan.org/fsw/ff/doc/lseek.html
I've opened the same issue for arduino-esp32:
https://github.com/espressif/arduino-esp32/issues/4097
Here is a benchmark project:
https://github.com/yetifrisstlama/fast_seek_test
Needs platform.io and an ESP32 with SD card connected.
------------------------
 without FAST_SEEK
------------------------
[I][main.cpp:34] setup(): Creating 200 MB file: /sd/test.dat ...

 We're working internally to enable this option. Our plan is to make the fast seek capabilities to be enabled using the ESP-VFS API.
The idea is to allow the application to decide when to use fast-seek or not given the limitations of this mechanism as stated in ELM-Chan documentation.
This will take some more time, but we will update the status of this feature once it is getting ready.

That's fantastic news! Looking forward to it :+1:

Thanks for reporting, fix is available at https://github.com/espressif/esp-idf/commit/6ce34a227e10108b5c457db2195dcd8346d3da38, feel free to reopen.


[backport] Fix test_helper.py for NumPy 1.18

Backport of #2883

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit 9abc8832411c195825826ed0671b9b080c87e634, target branch v7) succeeded!


Bug fix 3.7/internal issue #772

Backport fixes for:
Community  issue #13238
Internal issue #772
https://jenkins.arangodb.biz/view/PR/job/arangodb-matrix-pr/13316/

Tests blue except known failures

Rebuild with spurious wakeup fix https://jenkins.arangodb.biz/view/PR/job/arangodb-matrix-pr/13321/

Tests blue except unrelated known failure.


Adding GIV Token

We are listing GIV token (GIV) to Portal Polygon to enable bridge from Mainnet to PolygonZEVM

Thank you, really appreciate your help with this.
Currently, we are in running the qacc program and having everything ok with GIV on Polygon ZKEVM is really appreciate it.

@KENILSHAHH @mayanks1211 there anything missing moving forward? We need so badly allow to users bridge our token.,

Thank you @Groovytent !
I think is missing your review @mayanks1211

Hello @KENILSHAHH , @mayanks1211 @Groovytent, we really appreciate your help reviewing and approving this PR to list GIV in Polygon ZKEVM Portal!
Our users are really upset with this situation. They cannot bridge GIV from MAinnet to Polygon ZKEVM. It has been two weeks trying to solve this.

sirs, sorry for bugging too much, would like to get any update about it. We really appreaciate your help with this PR @Groovytent @mayanks1211 @KENILSHAHH

@mayanks1211 or any other reviewer :-) Any chance we could get this going. It's very embarrassing to not be able to bridge our token in and out of the zkEVM... it doesn't make any sense why it is blocked on the UI


NetworkedTransform is not as smooth as I expected

Describe the bug
A clear and concise description of what the bug is.
I want to increase the sensitivity of movement of networked objects, So I increase the FixedSendsPerSecond to 60, And the result is the movement of networked objects became very stutter and not as smooth as when it set at 20 times per second.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Smooth And sensitive.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS: [Windows 10]
Unity Version: [2020.2]
MLAPI Version: [12.1.7]

Additional context
Add any other context about the problem here.

I had a similar issue with movement not being smooth. In my case, I dialed the MinDegrees and MinMeters on the network transform. I suggest you set them to zero for testing purposes to see if it fixes your stutter movement. If it works, you'll want to dial the values to suit your game (balancing too many sends with smooth movement).

I had a similar issue with movement not being smooth. In my case, I dialed the MinDegrees and MinMeters on the network transform. I suggest you set them to zero for testing purposes to see if it fixes your stutter movement. If it works, you'll want to dial the values to suit your game (balancing too many sends with smooth movement).

I had a similar issue with movement not being smooth. In my case, I dialed the MinDegrees and MinMeters on the network transform. I suggest you set them to zero for testing purposes to see if it fixes your stutter movement. If it works, you'll want to dial the values to suit your game (balancing too many sends with smooth movement).

Thank you for your reply, In the end, I am not using the NetworkedTransform to sync the position instead I write my own CustomNetworkedTransform to sync the position smoothly.

I had a similar issue with movement not being smooth. In my case, I dialed the MinDegrees and MinMeters on the network transform. I suggest you set them to zero for testing purposes to see if it fixes your stutter movement. If it works, you'll want to dial the values to suit your game (balancing too many sends with smooth movement).

Thank you for your reply, In the end, I am not using the NetworkedTransform to sync the position instead I write my own CustomNetworkedTransform to sync the position smoothly.

test comment MTT-63

Hi Cdm,
Thanks for the update. In the end it looks like our NetworkTransform has room for improvements in smoothness options. We have that in the roadmap.
I'll close this issue, and we'll work on this hopefully soon after our upcoming experimental release ?
Thanks,
J.


Add LowPoly default model

Add a low poly default model as an option

This might not be needed now that the model can be disabled. I might close this issue and add it in the future if needed

This will be closed because models can be disabled


Add Pop!_OS to the list of supported Linux OSs

I'm not super familiar with Ubuntu and PPAs, but since this is a PPA it should be possible to use this on other Ubuntu distros that are not Pop!_OS by adding the PPA, right?
I feel like it might make sense to make these more general Ubuntu installation instructions and add a note that on Pop!_OS it is not required to add the PPA.

Adding the Pop!_OS PPA on an Ubuntu system will conflict with Ubuntu's packaging, as we override some of Ubuntu's packages. Unexpected things may happen upon adding it to an Ubuntu system. In the future, we may separate open source application packaging from the Pop!_OS PPA, as we do for our proprietary repository. Currently, the Pop!_OS PPA is a dumping ground for our non-proprietary packaging until we have the infrastructure in place to move things.

Thanks for the cooperation on this!

If anyone wants to create a PPA specifically for alacritty, or add it to one of their own, they can build debian packages for alacritty from our fork, which just adds the debian directory to the repository. You can run dch to modify the changelog, dpkg-buildpackage -S -d to create a source tarball, and then dput ppa:username/repo ../path_to_source.changes to upload it.


Examples on how to use it with python

Sorry to be silly here, but I dont see any example code on how I can use this project with python? I could be totally wrong, but I thought I search everywhere for it, but I dont see any HOW TO USE examples at all.

Never mind I see a whole thing of example on the first page... was just blind I guess lol


Need help debugging 05-test_rand.t

I'm having problems in 05-test_rand.t in a new threading model. I need to be able to run the code using gdb directly. Is there an easy way to run the test directly without the wrappers?

all the wrap.pl does is setup OPENSSL_* env variables to point to the right places in the build tree to test the local build.  So depending on the tests you can just set those manually within gdb.
Usually what I do is run the tests via the normal framework with V=1 and look for the wrap lines:
make TESTS=test_rand V=1 test
...
../../util/wrap.pl ../../test/rand_test
...
../../util/wrap.pl ../../test/drbgtest
...
../../util/wrap.pl ../../test/rand_status_test
...
../../util/wrap.pl ../../apps/openssl rand -engine ossltest -hex 16
...
../../util/wrap.pl ../../apps/openssl rand -hex 2K
...
../../util/wrap.pl ../../apps/openssl rand -engine dasync -hex 16

Then pick the test you want and load it into gdb, adjusting the paths in the executable accordingly:
LD_LIBRARY_PATH=/usr/lib64 gdb ./apps/openssl

Then, at the gdb prompt, enter the approriate environment  variables and arguments
set env LD_LIBRARY_PATH=/path/to/openssl/build/dir
set env OPENSSL_CONF=/path/to/openssl/build/apps/openssl.cnf
set env OPENSSL_MODULES=/path/to/openssl/build/providers
set env OPENSSL_ENGINES=/path/to/openssl/build/engines
set args rand -engine dasync -hex 16

Its a bit verbose, so I usually just dump that into a ~/.gdbinit file


Ldanzinger/offline map

@JamesMBallard please review and merge

@JamesMBallard updated. I also commented out the AuthenticationView to follow the pattern we use in other samples- now that the viewer has the authentication view built in, we don't want multiple views to get spun up per each challenge


Paymaster Link broken

https://docs.zksync.io/build/sdks/go/examples/custom-paymaster/use-paymaster.html

All of those issues are "github farming" spam following those tweets (+200k impressions) : https://twitter.com/Abrahamchase09/status/1759101213381959960

Good

It's has been fixed


Update to Gradle 6.6.1

This PR to address this issue
https://github.com/f2prateek/dart/issues/243

The spotless plugin need to update to avoid deprecated api.
check task is circular dependencies (failed after updating spotless)
Move dart-processor test to a single module, it need to add annotation processor classpath to access processor class.

https://github.com/f2prateek/dart/pull/248 moved to this pr


support for default_backend

support for setting service as default backend with new serviceDefaultBackend label.
related issue: https://github.com/vfarcic/docker-flow-proxy/issues/220

One more thing... Can you add a test to https://github.com/vfarcic/docker-flow-proxy/blob/master/integration_tests/integration_swarm_test.go?

The integration test turned out to be more complicated than I thought. My excuse is that I'm a complete newbie in golang...
To test isproperly we'd need to:

Start a service with a serviceDomain
Get the service's ip
Add the serviceDomain and a subdomain pointing to the service's ip in the hosts file
request (GET) the subdomain and receive 503.

I'm not sure how to do step 3..
Some help would be apprecieted 😄

I'd like to run past you a scenario for integration tests.

Configure proxy to serve requests on /xxx (it does not exist) and be the default backend at the same time.
Send a request to /demo/hello.
Receive 200.

If my understanding is correct, default backend should forward a request to an address so the above scenario should work. Am I correct in my assumption. If I am, I'll add the test ASAP.

Take a look at https://gist.github.com/vfarcic/c26a46defba4ff84d1ac7f918fd80c25 and let me know if you think that would be a valid test. If it is, please add it to the PR.

 Thanks for the help with the integration test...
When I change "DFP_SERVICE_DEFAULT_BACKEND" to "DFP_SERVICE_IS_DEFAULT_BACKEND" the test  "Test_GetServicesFromEnvVars_ReturnsServices" seems to fail and I'm not sure why?

I have a new issue now, when I change "DFP_SERVICE_DEFAULT_BACKEND" to "DFP_SERVICE_IS_DEFAULT_BACKEND" the test "Test_GetServicesFromEnvVars_ReturnsServices" seems to fail and I'm not sure why?

The problem is in envconfig:"default_backend" . By specifying it, you told the code to use DEFAULT_BACKEND as env. var. name. That worked before but when you renamed it to IS_DEFAULT_BACKEND, the envconfig still continued looking for DEFAULT_BACKEND.
I fixed it and merged the PR. If all the tests pass, it'll be ready for a release.

Integration tests were missing isDefaultBackend=true. Now everything works and is merged to master. Release 1.336 was created. Thanks @leostarcevic.


Planned changes to IITC - plugin interfaces

I'm working on some rewrites of the IITC internals, and a few interfaces, used by plugins, will be changing.

window.portals, window.links, window.fields
These three objects currently only contain the portals/link/fields currently displayed on the map. I plan to change it so they contain ALL portals/links/fields, independently of their display status. This includes portals on layers switched off, and portals that were eliminated due to render limits. This will give, in general, the more expected results.
beforePortalReRender hook
This will be removed. Portals will be re-rendered whenever the portal data changes (based on the timestamp in ent[1]). I don't think any existing plugins use this hook, but cannot be sure about third-party ones.

I expect there will be changes to how resonators are displayed on the map too, but can't say for certain at this time.

This can be closed now right?


Browserslist valid query is invalid according to SWC

Describe the bug
We have this in browserslist package.json
"browserslist": [
    "last 2 versions and > 1%",
    "not dead",
    "not op_mini all",
    "not ie > 0"
  ],

And because there's another bug in SWC, we have the same in .swcrc
"env": {
  "coreJS": 3,
  "mode": "usage",
  "targets": [
    "last 2 versions and > 1%",
    "not dead",
    "not op_mini all",
    "not ie > 0"
  ]
},

While yarn browserslist works as expected
and_chr 101
chrome 100
edge 100
ios_saf 15.4
ios_saf 15.2-15.3
safari 15.4
samsung 16.0
✨  Done in 0.19s.

SWC during the build fails:
ERROR in ./frontend-app/js/main.js
Module build failed (from ./node_modules/swc-loader/src/index.js):
Error: failed to handle: failed to parse targets: failed to convert target query to version data

Caused by:
    0: failed to execute query
    1: failed to resolve browserslist query: ["last 2 versions and > 1%", "not dead", "not op_mini all", "not ie > 0"]
    2: failed to parse the rest of input: ...' versions and > 1%, not dead, not op_mini all, not ie > 0'

Input code
No response
Config
No response
Playground link
No response
Expected behavior
Browserslist query should be aligned with browserslist parser.
Actual behavior
No response
Version
1.2.196
Additional context
No response

cc @g-plane
Any ideas?

It looks that there is a bug when parsing this part: last 2 versions and > 1%, but currently I'm on vacation so I can't debug further.


Vue app gets two elements having the same id

Version
2.6.10
Reproduction link
https://jsfiddle.net/gupvmj5x/
Steps to reproduce
Create
{{ info }}
 in the HTML, Create a new Vue instance by attaching the div. Add info as a data entry with a value, say 'Hello'. Run the app. To see the problem in action, pause the debugger at line 5873 in the Vue source file which is nodeOps.removeChild(parent, el);. In the Elements tab, there will be two divs with the same id.
What is expected?
The first div with the curly braces is replaced with the new div containing the info data.
What is actually happening?
The new div with the data is appended to the parent of the first div with the curly braces. Later the first div is removed which happens at line 5873.

There should a new function in nodeOps called replaceChild and should be used to perform the action which is expected. replaceChild is not present in IE8 but since Vue does not target IE8 we don't care.

your repro is incomplete but if you include two divs with the same id, Vue cannot prevent that.

Please, next time consider using the forum, the Discord server or StackOverflow for questions first. But feel free to come back and open an issue if it turns out to be a bug 🙂

The reproduction can be seen in the chrome debugger if you pause it at line 5873 in the Vue source file.

if you include two divs with the same id, Vue cannot prevent that.

Vue is adding the duplicate id div.

This is happening within a single task and won't affect the rendered result. There might be potential improvement here but switching to replaceChild isn't a drop-in replacement here but instead it need some refactoring of our current patching logic.

Thanks for the reply!


Shrink cachesize to 2048

Massively shrink our grid cache size -- our previous implementations were cycling carmen-caches but now that we're persisting them over long periods of time the cap on memory growth is very necessary.
cc @mapbox/geocoding-gang

jk -- @springmeyer pointed out that this is a runtime option ^_^ -- using that instead.


pa2 flatmap

Summary
Put a summary of the problem here
how do i implement flatmap where it updates the state while having the value constant. having problems as my flatmap returns a diff type of statem<R,S>.
Description
Describe the problem and any details if neceesary
Idea s
Describe the approach used (if applicable)
Screenshots (if any):
Insert Images here if necessary

make use of the accept() method to return urself a Pair. Then use that to gain access to your value(.first()) and state(.second())

im having issues w this line when i need to return the same value when the state is being updated

flatMap returns a StateM not a Pair

Why do you need a if else block?
Just do
return new StateM<>(s -> { Pair<T, S> initial = f.apply(s); StateM<R, S> newStateM = mappy.apply(initial.first()); return newStateM.accept(initial.second())


Post/Put data is empty in 0.25.1

When posting using body, the server returns an empty value.
Running 0.23.0 $session.Data the posted data.
My Code:
route 'Post' '/WindowsUpdate/RunUpdate' {
param($session)
Write-Host "ModulePath: $((Get-Module Pode).Path)"
Write-host "RequestBody: $($session.Data | ConvertFrom-Json)"

}
0.23.0 result:
<IP_ADDRESS>:443 already has a certificate bound
Listening on the following 1 endpoint(s) [1 thread(s)]:
- https://localhost:443/
ModulePath: C:\Program Files\WindowsPowerShell\Modules\Pode\0.23.0\Pode.psm1
RequestBody: @{Servername=MyServer; user=MyUsername}
0.25.0
<IP_ADDRESS>:443 already has a certificate bound
Listening on the following 1 endpoint(s) [1 thread(s)]:
- https://localhost:443/
ModulePath: C:\Program Files\WindowsPowerShell\Modules\Pode\0.25.1\Pode.psm1
ConvertFrom-Json : Invalid JSON primitive: System.Collections.Hashtable.
At E:\Pode\Plugins\WindowsUpdate\API\routes.ps1:48 char:48
Write-host "RequestBody: $($session.Data | ConvertFrom-Json)"
~~~~~~~~~~~~~~~~
CategoryInfo          : NotSpecified: (:) [ConvertFrom-Json], ArgumentException
FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand

Hi @LLIT,
Would you be able to try just Write-host "RequestBody: $($session.Data)"? Testing locally this should already be a hashtable. Pode will automatically attempt to convert the body from JSON for you, based on the Content-Type of the request.
As to why dropping back to 0.23.0 works is strange, when I get a moment I'll test with 0.23.0 as well.

Oh, for both, do you have an example of the requests being made? Mostly just an example of the body and the content type?

Just managed to test with 0.23.0, and for me this line throws the same error as 0.25.1:
Write-host "RequestBody: $($session.Data | ConvertFrom-Json)"

Changing to use $session.Data as a hashtable works. The call I'm using is:
Invoke-WebRequest -Method post -Uri http://localhost:8085/WindowsUpdate/RunUpdate -Body '{"name": "bob"}' -ContentType 'application/json'

Adding "ContentType 'application/json'" to my request fixed the request.
Must have been an Error 40 in my Rest client :-)


fix: #28 allows poetry add on py36 envs

fixes #28 .

Codecov Report

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

@@           Coverage Diff           @@
##           master      #29   +/-   ##
=======================================
  Coverage   92.32%   92.32%
=======================================
  Files          24       24
  Lines         521      521
=======================================
  Hits          481      481
  Misses         40       40

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 a432c64...86bfdd5. Read the comment docs.

Thanks a lot, gonna release today


order columns filled by collection-helper fails

Hi,
my table data should be ordered by a column filled by a collection helper.
This does not work, even the order is displayed in table header.
How can i solve this?

Ok, found other relevant issues. So, this remains to be a common wish, which isnt supported yet.
Going to change my db schema to support it (which is ok, because my Sub Collection isnt changing often (although needing more complicated update))


properly handle removals during recovery (#9528)

backport of https://github.com/arangodb/arangodb/pull/9528

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/5339/

Failures happened in http://jenkins01.arangodb.biz:8080/job/arangodb-matrix-pr-linux/6983/EDITION=enterprise,STORAGE_ENGINE=rocksdb,TEST_SUITE=cluster,limit=linux&&test/artifact/testfailures.txt aren't related to PR changes and indicate another shutdown-related problems:

resilience_move.zip,
arangosh_LLLDFp.zip,
resilience_move-stacktrace.zip

 [resilience_move] :
    during: shutdown timeout; instance "dbserver" forcefully KILLED after 60s - 6: Core dump written; Process facts :
    role: dbserver
    port: '12123'
    endpoint: 'tcp://<IP_ADDRESS>:12123'
    rootDir: /work/tmp/arangosh_LLLDFp/resilience_move/dbserver1
    url: 'http://<IP_ADDRESS>:12123'
    args:
      configuration: /work/ArangoDB/etc/testing/arangod-dbserver.conf
      define: TOP_DIR=/work/ArangoDB
      wal.flush-timeout: 30000
      javascript.app-path: /work/tmp/arangosh_LLLDFp/resilience_move/dbserver1/apps
      javascript.copy-installation: false
      http.trusted-origin: all
      cluster.create-waits-for-sync-replication: false
      temp.path: /work/tmp/arangosh_LLLDFp/resilience_move/dbserver1/tmp
      server.storage-engine: rocksdb
      server.endpoint: 'tcp://<IP_ADDRESS>:12123'
      database.directory: /work/tmp/arangosh_LLLDFp/resilience_move/dbserver1/data
      log.file: /work/tmp/arangosh_LLLDFp/resilience_move/dbserver1/log
      javascript.allow-external-process-control: 'true'
      javascript.allow-port-testing: 'true'
      cluster.my-address: 'tcp://<IP_ADDRESS>:12123'
      cluster.my-role: PRIMARY
      cluster.agency-endpoint: 'tcp://<IP_ADDRESS>:12175'
      javascript.enabled: 'false'
    pid: 13502
    upAndRunning: true
    exitStatus:
      pid: 13502
      status: ABORTED
      signal: 6
    marking build as crashy.

resilience_sharddist.zip,
arangosh_KfojlG.zip,
resilience_sharddist-stack.zip

[resilience_sharddist] :
    during: instance "dbserver" Shutdown - 11: Core dump written; Process facts :
    role: dbserver
    port: '13242'
    endpoint: 'tcp://<IP_ADDRESS>:13242'
    rootDir: /work/tmp/arangosh_KfojlG/resilience_sharddist/dbserver1
    url: 'http://<IP_ADDRESS>:13242'
    args:
      configuration: /work/ArangoDB/etc/testing/arangod-dbserver.conf
      define: TOP_DIR=/work/ArangoDB
      wal.flush-timeout: 30000
      javascript.app-path: /work/tmp/arangosh_KfojlG/resilience_sharddist/dbserver1/apps
      javascript.copy-installation: false
      http.trusted-origin: all
      cluster.create-waits-for-sync-replication: false
      temp.path: /work/tmp/arangosh_KfojlG/resilience_sharddist/dbserver1/tmp
      server.storage-engine: rocksdb
      server.endpoint: 'tcp://<IP_ADDRESS>:13242'
      database.directory: /work/tmp/arangosh_KfojlG/resilience_sharddist/dbserver1/data
      log.file: /work/tmp/arangosh_KfojlG/resilience_sharddist/dbserver1/log
      javascript.allow-external-process-control: 'true'
      javascript.allow-port-testing: 'true'
      cluster.my-address: 'tcp://<IP_ADDRESS>:13242'
      cluster.my-role: PRIMARY
      cluster.agency-endpoint: 'tcp://<IP_ADDRESS>:13274'
      javascript.enabled: 'false'
    pid: 30683
    upAndRunning: true
    exitStatus:
      status: ABORTED
      signal: 11
    marking build as crashy.

@jsteemann I will currently merge this and move failures description to separate issue.


Trashcan icon should always say in the right corner

When you expand a section, the trashcan disappears. When adding a new module it's unclear how to delete it if you accidentally did this because you have to minimize the section to get the trashcan to appear again.

This will be included in the updated editor


Unable to connect via Bluetooth

Hi,
I installed MyBMW app and AAI, set everything up but it will only connect and show the apps on my IDrive if I use a USB cable.
AAI just states "waiting on connection to car".
I've tried reinstalling the apps, toggling the Bluetooth on/off and have even updated the idrive via USB.
Car is a 2015 F30 LCI. Phone is a Pixel 5.
Help...!!
Cheers
Paul

According to this list, the 2015 F30 has ID4 (which only supports USB). Does your car have the Bluetooth Apps option? It should look like this:
https://github.com/BimmerGestalt/AAIdrive/blob/main/app/src/main/res-facets/tips/drawable/pic_btapp_bmw.jpg
Without this option, your car only supports USB apps connection.

Hi Hufman,
Yes, it is ID4. I thought with me having the enhanced Bluetooth option it would Bluetooth the apps..Shame....
Thanks

It seems that Enhanced Bluetooth means it has music over Bluetooth.


swc_ecma_transforms_base::TransformContext

All transform functions for compatibility and bugfixes should accept it.
This can be a bit cumbersome, but this will reduce breaking changes due to more assumption required.

pub struct TransformContext<C> {
    pub comments: C,
    pub assumptions: Assumptions,
    pub unresolved_mark: Mark.
}

I'm not sure about the extra fields

Closing due to lack of developer resources


Rebranch: Fix SingleCommandCompilationDatabase references

The SingleCommandCompilationDatabase type was removed from LLVM and the
API's that took it were changed to just take the vector of arguments
instead. This patch updates the calls to getFullDependencies to pass
in the argument vector to reflect that change and get things building
again.
It looks like apple/llvm-project commit d64d0fdea2303816700e5b2c40dc7446578ae088 broke this.
Resolves: rdar://83173673

@swift-ci please test

-- Expecting ELF-remove-autolink-section.swift to fail on Linux.

Build failed
Swift Test Linux Platform
Git Sha - e6c25be68419ad10ff15289aabc290124f59c169

Build failed
Swift Test OS X Platform
Git Sha - e6c25be68419ad10ff15289aabc290124f59c169


Active-directory - code samples and header

Fix code sample and add Client package header

@simonaco,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-services/activedirectory.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

LGTM
#sign-off

@simonaco  @johnpapa  merged

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-services/activedirectory.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Complete AWS Certified Solutions Arch Associate

Tasks

[ ] - Ryan Kroonenburg's AWS Certified Solutions Arch Associate course
[ ] - Jon Bonso's AWS Certified Solutions Architect Associate Practice Exams
[ ] - Skillcertpro's AWS Certified Solutions Architect 2019 Practice Questions

Notes Preface
I am going to focus on probable elements in the exam to streamline note taking. For example I will detail difference between a Regions and an Availability Zone but I won't take notes on current number of each as it's not as important and in constant change.

AWS Global Infrastructure
Regions
Availability Zones
A Data Center is a building in the country side or in the city that's filled with computer tech like servers, SANS, switches, firewalls, load balancers, storage. An Availability Zone could be one data center or several close together of data centers within a couple of miles of each other.

Security, Identity & Compliance
IAM (Identity Access Management)
IAM allows you to mange users and their level of access to the AWS Console. It provides

Centralized control of your AWS account
Shared Access to your AWS account
Granular Permissions
Identity Federation (including Active Directory, FaceBook, Linkedin, etc)
Multifactor Authentication
Provides temporary access for users/ devices and services where necessary
Allows you to set up your own password rotation policy
Provides PCI DSS Compliance

IAM Key Terminology

Users - End Users such as people, employees of an organization etc.
Groups - A collection of users. Each user in the group will inherit the permissions of the group.
Policies - Policies are made up of documents called Policy documents. These documents are in a format called JSON and they give permissions as to what a User/ Role is able to do.
Roles - You create roles and then assign them to AWS Resources.

Storage
S3 (Simple Storage Service) provides developers and IT teams with secure durable, highly scalable object storage. Amazon S3 is easy to use, with a simple web service interface to store and retrieve any amount of data from anywhere on the web.


change handleValidatorError to return code and error

Return status code and error instead of respond from inside of the function

Maybe would be more clear when looking at the controller, when responding from inside the function you would need to go to the function and see how it handles it.
func handleValidationError(err error) (int, *ErrorResponse) {
        // ...
	return http.StatusBadRequest, &ErrorResponse{
		Error: Error{
			Message: "Invalid request parameters",
			Details: details,
		},
	}

}

and then:
func (c *InputController) CreateInput(ctx *gin.Context) {
	var inputData model.Input
	if err := ctx.BindJSON(&inputData); err != nil {
		statusCode, errMsg := handleValidationError(err)
		ctx.JSON(statusCode, errMsg)

		return
	}
        // ...

Hello @1garo thank you for contributing to the project.
I agree with your statement. Want to contribute to the project? If positive, I will wait for your pull request, otherwise tell me so I can fix it ASAP.

I will contribute! Thank you!


Update example dependency version

to 0.2.14

Cargo seems to follow semantic versioning meaning that specifying 0.2 actually means 0.2.x Therefore there should be no need to update the documentation as 0.2 will result in the latest minor (currently 0.2.18).

Thanks @AlexGustafsson. That's right, I think we can close this one, since specifying 0.2 will fetch you the most recent version until our next breaking release.


Typo on documentation?

The documentation of keras.backend.gradients(loss, variables) said
Returns the gradients of variables w.r.t. loss.
But I think it should be
Returns the gradients of loss w.r.t. variables
right?

Seems reasonable, can you do a PR for this?

Looks like this issue should be closed, by PR #9866.

Thanks!


Nautobot Job Notification Callback

As ...
Austin - Network Automation Engineer
I want ...
Nautobot to provide the ability to send a notification on completion (success and failure) of a nautobot job
So that ...
I can have a stream of jobs and their status in email or chat or generic outbound webhook
I know this is done when...

I can configure the callback to post the notification ONLY on failure
I can configure the callback to post the notification ONLY on success
I can configure the callback to post the notification for all jobs
I can register some form of return that is sent as part of the notification (output I think could be a great option for this)

Optional - Feature groups this request pertains to.

[X] Automation
[ ] Circuits
[ ] DCIM
[ ] IPAM
[X] Misc (including Data Sources)
[ ] Organization
[X] Plugins (and other Extensibility)
[ ] Security (Secrets, etc)
[ ] Image Management
[ ] UI/UX
[X] Documentation
[ ] Other (not directly a platform feature)

Database Changes

Possible migrations

External Dependencies

possible additional extras dependencies

This could be a base included in core (generic webhook) with an app of providers for additional external integrations. Very similar to how secrets work out of the box and then enhanced with secrets providers app.

Would this be something that could be configured through the UI without having to implement in the individual job code? We currently have the celery handlers before_start, on_success, on_failure and after_return that can be used by job authors to perform actions on those events. Would webhook be sufficient if webhook was supported for JobResult models?

@gsnider2195 Hello I've just read about "Open Source Notification Management for Web-Apps" that can be self hosted and also provides integration for react, vue, ...
Maybe an integration of that can reduce time to implement a notification system in Nautobot.
https://novu.co/

Would this be something that could be configured through the UI without having to implement in the individual job code? We currently have the celery handlers before_start, on_success, on_failure and after_return that can be used by job authors to perform actions on those events. Would webhook be sufficient if webhook was supported for JobResult models?

Gary, I think the ability to add a notification via the UI of someone else's Job is the main application that I would like as well. For example, I would love to have a slack message if my scheduled Golden Config backup job failed, but I don't want to have to fork the GC app or create an app that inherits it so I can add it myself. It would be nice if a Webhook could subscribe to one or more Jobs and be able to identify the criteria (before start, on success/failure, etc) to send the hook similar to object create/update/delete.


Issue while saving variants as vcf.

Hi,
With the Cannoli CLI, while trying to save the variants using freebayes as vcf, I get the error:
java.lang.IllegalStateException: Key CIGAR found in VariantContext field INFO at chr3:75621022 but this key isn't defined in the VCFHeader.  We require all VCFs to have complete VCF headers by default.
	at htsjdk.variant.vcf.VCFEncoder.fieldIsMissingFromHeaderError(VCFEncoder.java:202)
	at htsjdk.variant.vcf.VCFEncoder.write(VCFEncoder.java:141)
	at htsjdk.variant.variantcontext.writer.VCFWriter.add(VCFWriter.java:248)
	at org.seqdoop.hadoop_bam.VCFRecordWriter.writeRecord(VCFRecordWriter.java:148)
	at org.seqdoop.hadoop_bam.KeyIgnoringVCFRecordWriter.write(KeyIgnoringVCFRecordWriter.java:60)
	at org.seqdoop.hadoop_bam.KeyIgnoringVCFRecordWriter.write(KeyIgnoringVCFRecordWriter.java:38)
	at org.apache.spark.internal.io.HadoopMapReduceWriteConfigUtil.write(SparkHadoopWriter.scala:358)
	at org.apache.spark.internal.io.SparkHadoopWriter$.$anonfun$executeTask$1(SparkHadoopWriter.scala:132)
	at org.apache.spark.util.Utils$.tryWithSafeFinallyAndFailureCallbacks(Utils.scala:1411)
	at org.apache.spark.internal.io.SparkHadoopWriter$.executeTask(SparkHadoopWriter.scala:129)
	at org.apache.spark.internal.io.SparkHadoopWriter$.$anonfun$write$1(SparkHadoopWriter.scala:83)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)
	at org.apache.spark.scheduler.Task.run(Task.scala:127)
	at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:444)
	at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1377)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:447)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

How do I go about this?

I faced the same problem. Based on my investigation the root cause of this issue is replacing default headerLines values of variantContexts  with accumulator 's values which is actually empty. Then it ends up without any stored headerLines . When it comes to saving to vcf, it is expected to have the same output headers as stored in this object, otherwise mentioned error is encountered.
val variantContexts = alignments.pipe[VariantContext, VariantContextProduct, VariantContextDataset, BAMInFormatter](
      cmd = builder.build(),
      files = builder.getFiles()
    )

    val headerLines = accumulator.value.distinct
    variantContexts.replaceHeaderLines(headerLines)

The thing is that accumulator is not updated yet because there was no action performed on given variantContexts.  It seems that should be maintained. @heuermh, could you please have a look at this?

Hello @dmaziec1, your analysis of the issue is correct.  I don't have a good idea for a fix -- accumulators are problematic for several reasons.
As a workaround, it might be possible to read in an empty freebayes VCF file and use its headerLines to replace the empty ones set from the accumulator before writing out VCF.

I posted another workaround in #273, please let me know if that works for you.

Yes, it works fine for me

Thanks @dmaziec1, for bringing this issue back to life. And thanks @heuermh, for the changes done. For some reason, I still get the same error.
I was able to work around this issue with a minor change in Adam as shown here
While this worked, the output vcf obtained was not as rich as when I use vanilla FreeBayes.
@dmaziec1, could you share some more info on the genome sequence being used?

While testing #273 I ran some performance tests, albeit only in local mode on my laptop
https://gist.github.com/heuermh/ba33a061957e99b6719ed9712a7ace67
This line from the pull request appends together freebayes-specific header lines and default header lines, which include the CIGAR VCF INFO header line apparently missing in the stack trace above.

Many thanks @heuermh. It was a mistake from my side. I was using the master branch, instead of freebayes-headers.
The changes work perfectly, on a 16 node cluster as well. Also, thanks for pointing out the performance tests. They further justify and strengthen the need for Adam and Cannoli.

Thank you, @Arun-George-Zachariah and @dmaziec1!


CON-39: Generate Django models dynamically from Google Spreadsheet CSV

Description
This implements our API spec as models in a mock application with API endpoints TBD.
We should open a real issue to track the Mock application development.
Related Issue
The closest that we have is this: https://govstack-global.atlassian.net/browse/CON-39

Everything is ready here, except actual API responses. It's better to implement this together with the tests that depend on them.


create an ISSUE TEMPLATE and a PULL REQUEST TEMPLATE

Would be great if someone could create an issue template and a PR template.
ONLY for those making their 1st contributions in open source

I'm doing it

great! Go ahead!

added ISSUE TEMPLATE

@adventuroussrv wb the PR TEMPLATE?

done


Demo problem

When I tried to upload my short video that is no more than 5 seconds,but it always show errors, cannot give me feedback.

Hello, it seems like a problem on the local machine. I have restarted the demo worker and it work fine now. Feel free to try our demo.


typo found

Small typo in readme file

@JimiC, why is this yarn.lock file added to this branch about typos?

Because I didn't wanted to open another PR just for this. And because this is a PR that fixes something I added it to it.

@robertohuertasm If my action annoyed you, please act accordingly.

@JimiC, no annoyment! 😉 Just wanted to understand your reasoning. I seemed strange to me that you did that given that you like to do things in a more structured way. Certainly, I would have preferred to have a different PR but it's not an issue at all. Don't worry. All fine! 😄

I'm not well today so I'm in "minimal" mode.

@JimiC! as I said, nothing to worry about. I hope you get better soon.


can't load package: package internal

delve 0.11.0-alpha
go1.7 windows/amd64
Windows 10
dlv debug
"can't load package: package internal: no buildable Go source files in C:\Go\src\internal" exit code 1

just wanted to add that it seems it got broken recently:
http://stackoverflow.com/questions/39458526/how-to-fix-delve-cant-load-package-package-internal-error

What are the steps for me to reproduce your problem? What did you do to install Delve? What is the program that you are debugging? Please provide full output from all commands. Thank you.
Alex

The result is the same on any program. Even the most basic
package main

func main() {
}

It was installed with go get.

ok I've tested it with the previous commit to head that @TomasB linked to, it seems this one is to blame for the error: https://github.com/derekparker/delve/commit/2fad5abe74b311c853838ae4e00d83b9232f1a8a

@huwpascoe: Thanks.

Who can give an approved review?
Merging is blocked
dlv: bugfix: Allow quoting in build flags argument by aarzilli · Pull Request #639 · derekparker/delve
https://github.com/derekparker/delve/pull/639


Fix for perisisting defaultValue attr

I have noticed that when you set defaultValue you can only set it as an actual color integer.

If you set it as hex string it crashes, as it expects integer
If you set it as reference to resources color, it persists 0 into shared preferences

Method onGetDefaultValue was modified to look for a string and if it is not null or begins with hash, to use built in method to parse hex string into color integer and return it as default. Color hex can only be used with 6 or 8 chars. If the string is null, it will look for an integer and use it.
Now default can be set as:

Color integer
Hex string (#ffffff or #ffffffff)
Resource reference will be parsed as hex string and return valid color integer

Only the last commit is relevant actually. I had to add condition for the not breaking the integer defaultValue

Please change comment for method, as it now used :)
https://github.com/daxgirl/android-ColorPickerPreference/blob/master/ColorPickerPreference/src/main/java/net/margaritov/preference/colorpicker/ColorPickerPreference.java#L256

Thank you! Done!


Add envrc.sample

If you use direnv, then you might want to copy this file to .envrc and then do direnv allow.
This will ensure that your dcos-cli always points to your dcos-vagrant cluster, when you are in this directory.
$ cd dcos-vagrant
direnv: loading .envrc
DCOS_CONFIG = /Users/abramowi/dev/git-repos/dcos-vagrant/dcos.toml
core.dcos_acs_token ********
core.dcos_url http://m1.dcos
direnv: export +DCOS_CONFIG

$ dcos node
   HOSTNAME           IP                           ID
<IP_ADDRESS>  <IP_ADDRESS>  1d6853b6-bf69-4f9a-a711-00bff66561f7-S3
<IP_ADDRESS>   <IP_ADDRESS>   1d6853b6-bf69-4f9a-a711-00bff66561f7-S2

This no longer works with the latest dcos CLI, but the new CLI supports multiple clusters you can switch between.


KHR_materials ior and specular

Already open to comments, but will be refining if tests are failing + spelling

Waiting on https://github.com/BabylonJS/Babylon.js/pull/8095 to go in first ;-)


Cosmetic: Drop down menu formatting on desktop

In addition to this issue about drop down appearing behind page content, here are some other menu related formatting issues:

There are overlapping grey lines at the top of the selected tab:

Select state border is not fully visible:

The color change on hover only appears for subpages. It does not appear for top level menu items.

Not on Safari (ignore)


Split out step resource request management

Before this change, all steps' resource requests (not limits) were
zeroed out unless that value for that metric represented the maximum
across all steps. If step 2 requested the maximum memory of all steps,
but not the max CPU, its memory request would persist but its CPU
request would be zeroed out.
After this change, the max request for each resource type (CPU, memory,
ephermeral storage) is calculated, then applied to the last step's
container. The effect is the same, unless Pods' resource requests are
updated to account for exited containers (afaik they're not), and this
is simpler to express and explain. And since all the code for this is in
its own method and file, it's easier to test in isolation.
Fixes #1605
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[y] Includes tests (if functionality changed/added)
[n] Includes docs (if user facing)
[y] Commit messages follow commit message best practices

See the contribution guide for more details.

/test pull-tekton-pipeline-integration-tests

/test pull-tekton-pipeline-integration-tests

/test pull-tekton-pipeline-integration-tests


Research: Pagination for large datatables

The current pagination design and implementation has drawbacks when used with a large dataset of 25+ pages. The intermediate pages (the ones in the overflow dropdown) can quickly pile up to a long list and there is no possibility for setting a specific page by text input. Also, the pattern is quite large as it is, with up to 9 buttons. After a discussion, we agreed that some research on paginations for large datasets is necessary before we continue.
Starting points:
https://base.uber.com/6d2425e9f/p/60dee2-pagination/b/46994b
https://carbondesignsystem.com/components/pagination/usage/
https://component.gallery/components/pagination/
### Tasks
- [ ] Create a proposal for a pagination component for large datasets

Closing as duplicate of https://github.com/swisspost/design-system/issues/2516


Stringify timestamp

When flashing a Jasco Enbrighten WFD4105 device with sudo ./tuya-cloudcutter.sh -w wlx681ca2160b50 -f OpenBK7231N_UG_1.15.547.bin -v 2>&1 | tee log.txt, I got an error reported during the flashing process. Allegedly it successfully flashed, but it probably shouldn't have this error.
I got:
Traceback (most recent call last):
  File "/src/.venv/lib/python3.9/site-packages/tornado/web.py", line 1715, in _execute
    self.finish()
  File "/src/.venv/lib/python3.9/site-packages/tornado/web.py", line 1163, in finish
    self.on_finish()
  File "/src/cloudcutter/protocol/handlers.py", line 132, in on_finish
    timestamp = datetime.datetime.now().time() + " "
TypeError: unsupported operand type(s) for +: 'datetime.time' and 'str'

So I think we need to make this a string first.

Ah, missed another one, looks like that's the last one, thanks!


Menu bar on macOS after sign out -> sign in render bug

Seeing this intermittent menu bug on macOS that happens when:

Launching for the first time
Signing out and then back in

The bug disappears if I open and close the menu a few times.
Possibly it's a race condition? I.e. favorites are not instantiated before menu is created?

Ah I should add that it appears to happen when I have at least one favorite.

Replicates here even if I sign out and back in multiple times without quitting the app. I'll take a look

Even just cycling a Resource between favorite and non-favorite, sometimes it happens when adding it as a Favorite

That blank space at the bottom makes me wonder if we're hitting some glitch in NSMenu with the way we call it.

@ReactorScram I'll have time to pair on this before standup (lunch time pacific ish). I would lean towards this being an unacceptable UX because I realized the first thing users do after signing in is open the menu to view Resources.
I have some ideas on what it could be. Will ping @conectado in case he wants to join.


app icon redesign

changing the name of this label (from consider to do...) and moving it to the next sprint.


Add Zalando to the list of companies

We have dozens of teams & hundreds of people using Scala in their daily work at Zalando, so it was inevitable to set up scala-steward for internal purposes.
As a side note, it was incredibly easy to configure it, so huge thanks!

You're welcome, and thanks for letting me know!


Lombok is throwing error in Jboss even after following all the procedure. Giving error as - Syntax error, insert “EnumBody” and “enum Identifier”

I can see getters and setters are working for @Data annotation but dont know while compiling sometimes it is throwing the above mentioned error

When does the problem occur? What tools are you using? What does JBoss got to do with it?

Closing this issue since the reporter did not respond.


[FEAT] Uniform Local/Remote Tell/Ask

Problem description
I was trying to implement a simple cluster with message passing and found my self struggling upon Tell/RemoteTell (and Ask/RemoteAsk) semantic.
On first try I created a non cluster environment, using Tell, after a while I switched to cluster and should change the code to use RemoteTell with the remote actor address found using something like actor, _, _ := p.actorSystem.ActorOf(ctx.Context(), "<actor name>").
Solution description
Why not define a cleaner interface (Send / Request, just to not break Tell/Ask) which accept the actor name and not PID (if local) or address if remote?
The two methods could be used indifferently on local only, remote and cluster deployment without changing the code.
The method could use a distributed to cache to prevent too much query for PID/address and re-query only if the first try fails (as an example).
Alternative solutions
The only alternative I see, possibly wrong, is to ask every time for actor address and use Remote* everywhere.
Additional context
Nothing here

@webfrank I will be glad if you can contribute with a PR 😏

Will try not to break something.

@webfrank I have started the work in this PR https://github.com/Tochemey/goakt/pull/454. It should take me some days to complete it. However there will be a major breaking change once completed.

I was studying the code and I thought to implement the two methods in PID interface with reference in receive context as the others.
To not break too much I was thinking to re-use Tell/RemoteTell and Ask/RemoteAsk inside the new methods.
The logic inside could be: if ActorOf returns PID use Tell/Ask otherwise RemoteTell/RemoteAsk. To not query all the times the cluster I was thinking of using Olric distributes map to cache the response of ActorOf. If Tell/Ask fails (because the Actor is no more local or at a different address) reiterate ActorOf and update cache.
Obviously this from a first analysis of the code, probably there is a better way to implement it.

@webfrank Yeah we can do that. However we will be offering too many methods to achieve the same thing. Also I don't think we should cache because Olric already offering cache under the hood.

@webfrank I am done with the implementation. Just need to add the unit tests. You can check the PR and tell me whether this looks ok. :)

@webfrank The methods are added and merged. Thanks for the suggestion. In the coming days I will look into consolidation of methods.


Create Admin Rest endpoints

Description
For our new control panel feature, we will need to create some rest endpoints that will handle our new admin model. These will need to be under the v1 endpoint schema, which may or may not be made by the time this is worked on 😉 . Endpoints should consume JSON.
Dependencies

[ ] #600

Spec
We need to create:

[ ] GET /v1/admins; Gets a list of admins

[ ] POST /v1/admins; Given a single bit of JSON, or an array of JSON, create n admin entries

[ ] PUT /v1/admins/:id; Given an id and a JSON payload, update the modified fields of the admin whose id was given

[ ] DELETE /v1/admins/:id Given an id, delete the admin entry

Each of these endpoints should also have appropriate testing!
Copilot Prompts
Help me write a(n) <insert http verb> endpoint using ExpressJS.
Explain how Express routes requests.
How can I group express endpoints with a version?
Target Date: 11/15/23 📆

@xica, pick one endpoint to focus on and you're good! This relies on the admin table which is also under development, but you can look at that issue for the schema and create a temporary db migration to test locally.

@DietBepis1 Sounds good, I'll take the Get Admins endpoint

Hi @DietBepis1, I'd like to give the PUT admins endpoint a try please.

Hi @DietBepis1 I'll work on the POST endpoints!

Hi, @DietBepis1 I'll work on the DELETE endpoint.


pull request for e2e test at 12/12/2016 05:45:03

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Histogram Widget: Polygons Colored by Value (Flat Distribution)

Data Distribution

Flat Distribution

Classification Method

Presumably Equal Interval and/or Quantile
Thinking ramp should then show high to low

Ramp

Use Sunset1 from CartoColors

CartoCSS

Styling is the same for Postiron and Dark Matter
Note that the line color of each polygon is a slightly lighter version of its fill
The default fill for the layer is #c3c3c3, and the line-color: lighten(#c3c3c3,5) which is basically meant to serve for no data

#layer {
  polygon-fill: #c3c3c3;
  polygon-opacity: 0.9;
  line-color: lighten(#c3c3c3,5);
  line-width: 0.5;
  line-opacity: 1;

   [ value <= value] {
     polygon-fill: #ca562c;
     line-color: lighten(#ca562c,5);
   }
   [ value <= value] {
      polygon-fill: #de8a5a;
      line-color: lighten(#de8a5a,5);
   }
...
}

Example
Positron

Dark Matter

cc: @andrewxhill @saleiva

@fdansv yesterday i thought that we should use the same ramps for all geometries... this ramp is different from the points > flat distribution. not super different, but a little. the one for points didn't look as good on the polygons. just wanted to let you know!


issues running example

I am trying to get the example set up in react-example, but am running into some issues.
When running the example tartiflette app, I get:
>> uvicorn server.asgi:app --reload
INFO: Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO: Started reloader process [13587]
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/main.py", line 304, in run
    loop.run_until_complete(self.serve(sockets=sockets))
  File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/main.py", line 311, in serve
    config.load()
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/config.py", line 179, in load
    self.loaded_app = import_from_string(self.app)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/importer.py", line 20, in import_from_string
    module = importlib.import_module(module_str)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./server/asgi.py", line 2, in <module>
    from .app import app
  File "./server/app.py", line 3, in <module>
    from tartiflette_starlette import TartifletteApp
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/tartiflette_starlette/__init__.py", line 1, in <module>
    from .app import TartifletteApp
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/tartiflette_starlette/app.py", line 5, in <module>
    from .graphql import GraphQLHandler
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/tartiflette_starlette/graphql.py", line 18, in <module>
    with open(os.path.join(CURDIR, "graphiql.html")) as tpl_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/csmith/git/react-example/venv/lib/python3.7/site-packages/tartiflette_starlette/graphiql.html'

I add the graphiql.html file by copying and pasting its contents.
Then I get:
>> uvicorn server.asgi:app --reload
INFO: Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO: Started reloader process [13898]
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/main.py", line 304, in run
    loop.run_until_complete(self.serve(sockets=sockets))
  File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/main.py", line 311, in serve
    config.load()
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/config.py", line 179, in load
    self.loaded_app = import_from_string(self.app)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/importer.py", line 20, in import_from_string
    module = importlib.import_module(module_str)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./server/asgi.py", line 5, in <module>
    configure(app, settings)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/bocadillo/config.py", line 102, in configure
    plugin(app)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/bocadillo/plugins.py", line 46, in use_providers
    app.on("startup", STORE.enter_session)
AttributeError: 'TartifletteApp' object has no attribute 'on'
INFO: Stopping reloader process [13898]

Output of pip freeze:
aiodine==1.2.5
bocadillo==0.15.0
certifi==2019.3.9
cffi==1.12.3
chardet==3.0.4
Click==7.0
h11==0.8.1
httptools==0.0.13
idna==2.8
Jinja2==2.10.1
lark-parser==0.6.4
MarkupSafe==1.1.1
pkg-resources==0.0.0
pycparser==2.19
python-multipart==0.0.5
pytz==2019.1
requests==2.21.0
six==1.12.0
starlette==0.12.0b3
tartiflette==0.8.9
tartiflette-starlette==0.1.0
typesystem==0.2.2
urllib3==1.24.2
uvicorn==0.7.0
uvloop==0.12.2
websockets==7.0
whitenoise==4.1.2

(For other people reading this, @cs01 is referring to https://github.com/bocadilloproject/react-example which uses Bocadillo.)
For graphiql.html, it seems to be an issue with assets not being packaged correctly. Will investigate!
For the rest, it seems to me you are exposing the naked TartifletteApp to Bocadillo — TartifletteApp isn't a Bocadillo App, and so you're getting the error with .on(), plugin configuration etc.
Did you see this section: Mount onto an ASGI application?

The docs say

As such, it [TartifletteApp] can be served on its own using any ASGI web server, or it can be mounted onto another ASGI application.

I was going for the former, which I didn't think required Bocadillo. After I got that working I was going to try to mount it onto a bocadillo app.
This is the code I'm trying to run (copied directly from the README):
# graphql.py
from tartiflette import Resolver

from tartiflette_starlette import TartifletteApp

# Create a Tartiflette resolver for the `hello` field.
@Resolver("Query.hello")
async def resolve_hello(parent, args, context, info):
    name = args["name"]
    return f"Hello, {name}!"

# Define the schema using an SDL string.
# Note: Tartiflette also has support for `.graphql` files.
# See: https://tartiflette.io/docs/api/engine
sdl = """
    type Query {
        hello(name: String): String
    }
"""

app = TartifletteApp(sdl=sdl, path="/graphql")

Hmm. The command you are running is uvicorn server.asgi:app --reload. So, I suppose in asgi.py, configure(app) is called with app being the one you listed above, correct? If so, you can't do that, because configure() only accepts Bocadillo apps.
Instead, you need to "mount" the Tartiflette app onto a Bocadillo app, i.e.:
# app.py
from bocadillo import App
from .graphql import app as graphql_app   # <- graphql.py copy-pasted from README

app = App()
app.mount("/", graphql_app)

(Here, "mounted" should really means "sub-routed", and that depends on how the framework of choice implements this mechanism. Maybe tartiflette-starlette docs should be clearer about this?)

Thanks!
Okay I was actually working on what you just described and I'm getting the following. Here is my branch https://github.com/bocadilloproject/react-example/tree/graphql.
>> uvicorn server.asgi:app --reload
INFO: Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO: Started reloader process [14900]
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/main.py", line 304, in run
    loop.run_until_complete(self.serve(sockets=sockets))
  File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/main.py", line 311, in serve
    config.load()
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/config.py", line 179, in load
    self.loaded_app = import_from_string(self.app)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/uvicorn/importer.py", line 20, in import_from_string
    module = importlib.import_module(module_str)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./server/asgi.py", line 5, in <module>
    configure(app, settings)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/bocadillo/config.py", line 102, in configure
    plugin(app)
  File "/home/csmith/git/react-example/venv/lib/python3.7/site-packages/bocadillo/plugins.py", line 46, in use_providers
    app.on("startup", STORE.enter_session)
AttributeError: 'Starlette' object has no attribute 'on'
INFO: Stopping reloader process [14900]

Ah I see what I was doing wrong now. Like you said, the uvicorn command shouldn't have had asgi in it. It works perfectly with uvicorn server.graphql:app. I need to read the instructions more carefully :smile:.
I still don't know why the Bocadillo app is reporting AttributeError: 'Starlette' object has no attribute 'on'. Am I doing something wrong there?

Cool! I moved the graphiql.html bug to a separate issue: #15. Will close this. :-)

I still don't know why the Bocadillo app is reporting AttributeError: 'Starlette' object has no attribute 'on'. Am I doing something wrong there?

Because it's not a Bocadillo app. :wink: You created a Starlette app in your app.py script, but you need a Bocadillo App — see the code in my previous answer.

Ah yes I just ran it again without the asgi and that one worked too. I was originally trying to run the Bocadillo app and switched back and forth. It's my first time running Starlette so I have a bit of muscle memory for Bocadillo. :smile: thanks!


Squiggly heredocs break homebrew on 10.12 with stock Ruby 2.0.0

Summary: I believe #3319 has broken homebrew on 10.12.x with only stock Ruby 2.0.0-p648 installed. Squiggly heredocs appear to be a Ruby 2.3 feature.
Please always follow these steps:

[X] Confirmed this is a problem with running a brew command and not brew installing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Homebrew/homebrew-core https://github.com/Homebrew/homebrew-core/issues/new
[X] Ran brew update and retried your prior step?
[X] Ran brew doctor, fixed all issues and retried your prior step?
[X] Ran brew config and brew doctor and included their output with your issue?

$ brew config
HOMEBREW_VERSION: 1.0.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 817bc2746e594761911edd78f743a640f089494f
Last commit: 1 year, 2 months ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 8c40e71a15fe779a27d059823f1d9cd00a5f70c3
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 9.0 build 900
Git: 2.14.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /Users/ccurrie/.pyenv/shims/python => /Users/ccurrie/.pyenv/versions/2.7.12/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_112, 1.8.0_92, 1.7.0_80
macOS: 10.12.6-x86_64
Xcode: 9.1
CLT: N/A
X11: 2.7.11 => /opt/X11

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
    /Users/ccurrie/.pyenv/shims/python-config
    /Users/ccurrie/.pyenv/shims/python2-config
    /Users/ccurrie/.pyenv/shims/python2.7-config
Error: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:73: syntax error, unexpected <<
  def caveats; <<~EOS
                 ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:77: syntax error, unexpected tIDENTIFIER, expecting keyword_end
    can add a "gnubin" directory to your PATH from your bashrc like:
                                ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:77: syntax error, unexpected ':', expecting keyword_end
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:79: dynamic constant assignment
        PATH="#{opt_libexec}/gnubin:$PATH"
             ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:81: dynamic constant assignment
    Additionally, you can access their man pag...
                 ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:81: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
    Additionally, you can access their man pages with ...
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:82: syntax error, unexpected tIDENTIFIER, expecting keyword_end
    the "gnuman" directory to your MANPATH from your bashrc as well:
                          ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:82: syntax error, unexpected ':', expecting keyword_end
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/coreutils.rb:84: dynamic constant assignment
        MANPATH="#{opt_libexec}/gnuman:$MANPATH"
                ^
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Homebrew/Library/Homebrew/formulary.rb:25:in `module_eval'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:25:in `load_formula'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:42:in `load_formula_from_path'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:97:in `load_file'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:88:in `klass'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:84:in `get_formula'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:222:in `factory'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1411:in `[]'
/usr/local/Homebrew/Library/Homebrew/diagnostic.rb:927:in `check_for_non_prefixed_coreutils'
/usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:42:in `block in doctor'
/usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:34:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:34:in `doctor'
/usr/local/Homebrew/Library/Homebrew/brew.rb:99:in `<main>'

To help us debug your issue please explain:

What you were trying to do (and why)
Trying to install gpg after a period of not updating homebrew

What happened (include command output)

Error: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:66: syntax error, unexpected <<
  def caveats; <<~EOS
                 ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:67: void value expression
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:68: syntax error, unexpected tIDENTIFIER, expecting '('
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:70: syntax error, unexpected tIDENTIFIER, expecting keyword_end
    creating a backup of your `~/.gnupg` prior to first use.
                                              ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:73: syntax error, unexpected keyword_in
      https://www.gnupg.org/faq/whats-new-in-2.1.html
                                            ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:79: syntax error, unexpected tLABEL
      Key-Type: RSA
               ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:80: syntax error, unexpected tLABEL
      Key-Length: 2048
                 ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:81: syntax error, unexpected tLABEL
      Subkey-Type: RSA
                  ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:82: syntax error, unexpected tLABEL
      Subkey-Length: 2048
                    ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:83: syntax error, unexpected tLABEL
      Name-Real: Testing
                ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:84: syntax error, unexpected tLABEL
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:84: syntax error, unexpected tLABEL
      Name-Email<EMAIL_ADDRESS>                 ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:85: syntax error, unexpected tLABEL
      Expire-Date: 1d
                  ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:86: unknown type of %string
      %no-protection
         ^
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Homebrew/Library/Homebrew/formulary.rb:25:in `module_eval'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:25:in `load_formula'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:42:in `load_formula_from_path'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:97:in `load_file'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:88:in `klass'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:84:in `get_formula'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:222:in `factory'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:387:in `find_with_priority'
/usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:20:in `block in formulae'
/usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:16:in `map'
/usr/local/Homebrew/Library/Homebrew/extend/ARGV.rb:16:in `formulae'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:105:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:99:in `<main>'

What you expected to happen
gpg to be installed.

Step-by-step reproduction instructions (by running brew commands)
** Run brew install gpg on a MacOS 10.12 with only stock Ruby installed.

git -C "$(brew --repo)" fetch --tags
brew update --force

I'm sorry, but those instructions do not fix the issue. Could you please reopen?

HOMEBREW_VERSION: 1.0.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 817bc2746e594761911edd78f743a640f089494f
Last commit: 1 year, 2 months ago

You need to get on the current version of Homebrew. Perhaps you're in a branch?
git -C "$(brew --repo)" status

$ git -C "$(brew --repo)" status
On branch stable
nothing to commit, working tree clean

Try
brew update-reset

$ brew update-reset
Error: Unknown command: update-reset

git -C "$(brew --repo)" rev-parse origin/master

$ git -C "$(brew --repo)" rev-parse origin/master
2225febfb396f7db3ccf0c68feae6143128d9935

git -C "$(brew --repo)" reset --hard origin/master
brew update-reset

That did it. Not sure how I got into the broken state, but thanks for the guidance.

no worries.

I'm going to clear out most of the comments here since they're not things we want people copy pasting.


[Feature] - Develop Rubric Generator

Develop Rubric Generator Tool
Description
As an educator, I want to generate rubrics for assignments using AI so that I can create detailed, structured grading criteria efficiently and consistently. This tool will help educators define grading standards in table format, allowing for clarity and customization, ensuring alignment with the assignment's objectives.
The tool should allow users to:

Select a grade level.
Define a point scale.
Provide a standard/objective for the assignment.
Describe the assignment.
Optionally, add customization for the rubric.
For the standard/objective, assignment description, and additional customization fields, users should be able to:

Either type the input directly or upload one file per prompt in the following formats:

Upload: CSV, PDF, DOCX, PPT, Plain Text
URLs: YouTube Video, Website, Google Sheets

The additional customization field is optional.

Design

Acceptance Criteria

Feature Requirements:

Input Handling:

[ ] Users can select a grade level from a dropdown menu.
[ ] Users can specify a point scale (e.g., 4, 5, etc.).
[ ] Users can input a standard/objective for the assignment via:

[ ] Direct text input.
[ ] Document attachment (one file per prompt) in the following formats:

Upload: CSV, PDF, DOCX, PPT, Plain Text
URLs: YouTube Video, Website, Google Sheets

[ ] Users can input an assignment description via:

[ ] Direct text input.
[ ] Document attachment (one file per prompt) in the following formats:

Upload: CSV, PDF, DOCX, PPT, Plain Text
URLs: YouTube Video, Website, Google Sheets

Rubric Generation Logic:

[ ] The tool generates a rubric in table format based on the provided inputs.
[ ] The rubric includes:

[ ] Categories (e.g., Clarity, Structure, Supporting Arguments).
[ ] Descriptions of what constitutes different levels of performance within each category, based on the point scale.

[ ] The tool ensures generated rubrics align with the provided standard and assignment description.

Output Format:

[ ] The output is presented in a table format.
[ ] The rubric is downloadable as a PDF or DOCX.

Technical Implementation:

[ ] Create a new folder within app/features/ named rubric_generator.
[ ] Implement the executor function in core.py with input parameters matching the tool's functionality, including type hints.
[ ] Use tools.py for abstractions and helper functions to keep core.py clean and maintainable.
[ ] Include a metadata.json file defining the input parameters for proper validation.
[ ] Utilize a prompt/ folder for AI-driven generation prompts if necessary.
[ ] Implement logging and error handling as per platform standards.

Unit Tests:

[ ] Write unit tests for all functions and classes in core.py and tools.py using PyTest.

[ ] Tests cover:

Normal operation with valid inputs.
Edge cases and invalid inputs.
Error handling and exceptions.

Code Quality and Documentation:

[ ] Ensure code follows best practices for readability and maintainability.

[ ] Use consistent naming conventions.
[ ] Include type hints for all functions and methods.
[ ] Avoid redundant or unnecessary code.

[ ] Add docstrings to all functions and classes explaining their purpose and usage.
[ ] Provide comments within the code where necessary to explain complex logic.

Integration and Testing:

[ ] Ensure the feature integrates seamlessly with the existing Marvel AI platform.

[ ] The executor function is compatible with the router.py layer for request handling.
[ ] Inputs are validated as per the platform's requirements.

[ ] Test the entire feature from input handling to output generation.

[ ] Verify that users can input their data and receive the expected outputs without errors.

Sample Output
Input:

Grade Level: 9th Grade
Point Scale: 4
Standard/Objective: Write an argumentative essay.
Assignment Description: Write a persuasive essay that convinces school heads to change a policy.
Additional Customization: Include supporting arguments as a category assessed.

Output:

Category
4 Points (Exceeds Expectations)
3 Points (Meets Expectations)
2 Points (Approaching Expectations)
1 Point (Below Expectations)

Clarity
Argument is exceptionally clear and concise, with no ambiguity.
Argument is clear and concise, with minimal ambiguity.
Argument is somewhat clear but contains occasional ambiguity.
Argument is unclear and difficult to follow.

Organization
Essay is exceptionally well-organized, with a logical flow throughout.
Essay is well-organized, with a logical flow and minor issues.
Essay shows some organization but lacks logical consistency.
Essay is poorly organized and lacks logical structure.

Supporting Evidence
All claims are thoroughly supported with highly relevant evidence.
Most claims are supported with relevant evidence.
Some claims are supported, but evidence is weak or insufficient.
Few or no claims are supported by evidence.

Grammar and Mechanics
Writing is error-free and demonstrates mastery of language conventions.
Writing has minor errors that do not interfere with meaning.
Writing contains noticeable errors that interfere with meaning.
Writing has frequent errors that make it difficult to understand.

Creativity and Style
Writing demonstrates exceptional creativity and an engaging style.
Writing shows creativity and style, though somewhat limited.
Writing has limited creativity or an inconsistent style.
Writing lacks creativity and is bland or uninspired.

Resources

Design Mockup

Please ensure that each of these criteria is fulfilled for the issue to be considered complete.

#110 needs to be checked against acceptance criteria


Xbox Gamepad Mapping Incorrect in Firefox HTML5 Export

Godot version:

Godot v3.2.1.stable.official (Steam)
OS/device including version:

Ubuntu 20.04 and Linux Mint 19.3
Microsoft Xbox One Controller (Bluetooth edition but using wired)
Firefox 76.0
Issue description:

The input mapping for the controller axis is all messed up. Left and Right on the Right stick go to Up and Down. Up and Down on the Right stick do nothing. Start and Select map to the Triggers, and more, it's all wrong.
Steps to reproduce:
Use the Joypads example project that comes with Godot. Export for HTML5 and try in Firefox, you will see what I am saying. Chromium has no problems and the controller works as normal.
Minimal reproduction project:

Joypads project that comes with Godot.

Related to #32831.

The input is similarly wrong for me using a Logitech F310 gamepad and Firefox with this site: https://myroom.davejk.me.

@kalbfled Does it work as expected in a Chromium-based browser?

Yes, it works with Chromium on Ubuntu 18.04 with Godot 3.2.3.  On Firefox and Chromium, keyboard input seems to be ignored until I mouse click on the game window.