Add search pipeline documentation

Fixes #2560
Fixes #4155
Checklist

[ x] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@msfroh I've addressed the feedback. Could you please review again and approve if everything looks good? Thanks!


Dragging in and out of nested items

I have an interface very similar to the nested example and would like to be able to drag items between layers. I'm imagining creating a dnd widget over an iterator that returns a flattened version of the tree, but there would need to be a way to indicate which elements fall inside a nested a container.
Are there any existing ideas or plans to add this functionality? I might take a swing at it but would have to familiarize myself with the crate internals.

That would be really cool. If we support that, we should also be able to support dragging between different lists.
I imagine there would need to be some sort of global / parent drag drop context where the different DragDropUis register themselves and then when dragging an item it checks in which DragDropUi it should be dropped.
I think ideally this would be a separate module without having to make many changes to state.rs but that might not be possible. Feel free to take a swing at it, let me know if you need anything!


⚠ Bofrost.lu has degraded performance

In 5387ba4, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1958 ms

Resolved: Bofrost.lu performance has improved in ae1757f after 16 minutes.


Steps to compile.. settings to change in Xcode would be highly appreciated

Yes, definitely a priority. Going to keep this in #7.

Not sure if you'll see this but I'm going to post somewhere else too but just wanted to comment on this post. I'm having trouble installing due to settings n parameters that need changing. More steps in the walkthrough guide would be appreciated.


added search to home page, closes #6

extended homepage to add search.html and add simple css to move search bar to the top right of the page instead of left

probably don't want to push commits from inside the container


IAM - create_policy returns bad tags

Hi, Thank you for this great library!
I just noticed a small bug in IAM implementation. Using latest moto version with python mocks.
The function create_policy returns the policy tags with this format:
[{"tag_key": {"tag_key": "tag_value"}},...] instead of [{"tag_key": "tag_value"}]
I took a quick look at the code and seems like the function policy.get_tag() that does the conversion is never called and instead the response template use the tags attribute from the Policy class which is in the wrong format.
So an easy fix would be to do like get_policy response template and use get_tags() (in create_policy response template). Replacing:
{% for tag_key, tag_value in policy.tags.items() %}

by
{% for tag_key, tag_value in policy.get_tags().items() %}

There might be more like this in IAM looking at the templates but I did not dig further.

Hi @thomas-desforges, thank you for raising this! I've opened a PR with a fix.


Use of Deprecated utcnow() or utcfromtimestamp() APIs

Hi there! 👋
I noticed that the codebase uses datetime.utcnow() or datetime.utcfromtimestamp(). These are deprecated and won't work with Python 3.12. They also handle naïve datetimes, which can lead to bugs. Could we switch to timezone-aware alternatives?
CodeQL Alerts
Here are the specific instances CodeQL flagged:

Location: https://github.com/GoogleCloudPlatform/cortex-data-foundation/blob/33d4c978101ecd90d83f45aab3f6f9a19a916288/src/k9/src/catgap/catgap_pipeline/pipeline_job/matches_writer.py#L97

Explanation
Issue:

datetime.utcnow() and datetime.utcfromtimestamp() return naïve datetimes (without timezone info).
In Python 3, naïve datetimes are interpreted as system-local times, causing inconsistencies.
These methods are deprecated and no longer work in Python 3.12.

Example Problem:
from datetime import datetime
ts =<PHONE_NUMBER>.0
x = datetime.utcfromtimestamp(ts)
x_ts = x.timestamp()
assert ts == x_ts, f"{ts} != {x_ts}" # Can fail in non-UTC locales

Recommended Solution:
Switch to time zone-aware methods:
from datetime import datetime, timezone
# Replace utcnow()
dt_now = datetime.now(tz=timezone.utc)
# Replace utcfromtimestamp()
ts =<PHONE_NUMBER>.0
x = datetime.fromtimestamp(ts, tz=timezone.utc)
x_ts = x.timestamp()
assert ts == x_ts, f"{ts} != {x_ts}" # This succeeds

Action Required:

Replace all instances of datetime.utcnow() with datetime.now(tz=timezone.utc).
Replace all instances of datetime.utcfromtimestamp() with datetime.fromtimestamp(ts, tz=timezone.utc).

References:
For more details, see:

Stop using utcnow and utcfromtimestamp
Python Documentation

Thank you so much for your time and effort in maintaining this project! 🌟
Best,
Shrey

Thank you for your input, we very much appreciate it. We will be looking at this for a future roadmap item.


MNT: rerender

Hi! This is the friendly automated conda-forge-webservice.
I've started rerendering the recipe as instructed in #10.
If I find any needed changes to the recipe, I'll push them to this PR shortly. Thank you for waiting!
Here's a checklist to do before merging.

[ ] Bump the build number if needed

Fixes #10

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/meta.yaml:

ℹ The recipe is not parsable by parser conda-souschef (grayskull). Your recipe may not receive automatic updates and/or may not be compatible with conda-forge's infrastructure. Please check the logs for more information and ensure your recipe can be parsed.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12195471623. Examine the logs at this URL for more detail.


[cluster-test] Increase deadline to 600 and reduce test dur to 120

Summary
With the new tx params, the 10% down test times out because the validators take longer to recover. Fixing the timeout.
Test Plan
Experiment Result: 10% down : 938 TPS, 2995.8 ms latency, no expired txns

@bors-libra r+

:pushpin: Commit 0f835c1 has been approved by sausagee

:hourglass: Testing commit 0f835c11b4c06824120514ff6040b1b7ee6e851e with merge b78bb08ce93c3d5fc5dbcd48595af00c1202aa3b...

@bors-libra r+

:bulb: This pull request was already approved, no need to approve it again.

This pull request is currently being tested. If there's no response from the continuous integration service, you may use retry to trigger a build again.

:pushpin: Commit 0f835c1 has been approved by andll

:hourglass: Testing commit 0f835c11b4c06824120514ff6040b1b7ee6e851e with merge 5fe7945dbf60e07670b613b56efb69d32bef1378...

:sunny: Test successful - checks-circle_commit_workflow
Approved by: andll
Pushing 5fe7945dbf60e07670b613b56efb69d32bef1378 to master...


Any way to limit bandwidth usage?

Summary
Limit bandwidth usage
What is the feature request for?
The core library
The Problem
2 bots have already used 2GB of bandwidth in 5 days. It adds up if you use proxies. Is there a way to only subscribe to channels that interest me? It looks like the on_message[_edit] is called for every channel the bot is in. Can we limit it to only 1 channel/dm?
The Ideal Solution

Limit on_message subscriptions to only 1 channel/dm
Maybe even a feature to manually start listening for messages, and then stop listening. I have some state managment and I'm only interested in messages while I'm in a particular state (say 'active' out of 'starting', 'idle', 'active', 'stopping', 'stopped'), so most of the bandwidth is wasted

The Current Solution
No response
Additional Context
No response

im on mobile right now but i attempted to write a sample, its untested but should work
def restrictchannelEvent(channelID):
    def decorator(func):
        async def predicate(*args, **kwargs):
            message = args[0]
            if message.channel.id != channelID:
                return
            await func(*args, **kwargs)
        return predicate
    return decorator

@restrictchannelEvent(1234)
@client.event
async def on_message(message):

if you do end up testing, let me know what happens

thanks, is there an alternative for when subclassing discord.Client?
and does this actually prevent the message from being received, thus saving bandwidth? at a closer look, it seems it just prevents on_message from being called, but the data it is indeed received by the machine, since you have access to message.channel.id (and thus to other fields from it)

Check out the brand new guild subscription docs!

Check out the brand new guild subscription docs!

nice! is this a new api from discord or an optimization in this library? sounds good, anyway.
so if I get it right: once I have a reference to a guild object (a DM in my case), I'd use Guild.subscribe() and on_message and on_edit_message will only get fired by members of that guild?

nice! is this a new api from discord or an optimization in this library? sounds good, anyway.

It's kind of both. They recently updated the guild subscriptions API so I decided to properly implement it in the library and expose it for power users!

so if I get it right: once I have a reference to a guild object (a DM in my case), I'd use Guild.subscribe() and on_message and on_edit_message will only get fired by members of that guild?

on_message() will always fire for DMs and guilds with less than 75k members, but yes you would use Guild.subscribe() to subscribe to guilds with more than 75k members.

nice! is this a new api from discord or an optimization in this library? sounds good, anyway.

It's kind of both. They recently updated the guild subscriptions API so I decided to properly implement it in the library and expose it for power users!

so if I get it right: once I have a reference to a guild object (a DM in my case), I'd use Guild.subscribe() and on_message and on_edit_message will only get fired by members of that guild?

on_message() will always fire for DMs and guilds with less than 75k members, but yes you would use Guild.subscribe() to subscribe to guilds with more than 75k members.

oh, I see.. so basically there's no difference for cases like mine, i.e. it's not a bandwidth saving feature. it's pretty odd decision by te guys from Discord to allow people pull all their channels at once, while most of the time you just want 1 channel

nice! is this a new api from discord or an optimization in this library? sounds good, anyway.

It's kind of both. They recently updated the guild subscriptions API so I decided to properly implement it in the library and expose it for power users!

so if I get it right: once I have a reference to a guild object (a DM in my case), I'd use Guild.subscribe() and on_message and on_edit_message will only get fired by members of that guild?

on_message() will always fire for DMs and guilds with less than 75k members, but yes you would use Guild.subscribe() to subscribe to guilds with more than 75k members.

oh, I see.. so basically there's no difference for cases like mine, i.e. it's not a bandwidth saving feature. it's pretty odd decision by te guys from Discord to allow people pull all their channels at once, while most of the time you just want 1 channel

The difference is you don't get member events for guilds you're not subscribed to, which is a pretty big bandwidth save

this really confused me now, since you said "on_message() will always fire [...]"
can you kindly clarify what should I call to minimize bandwidth as much as possible while only receiving the messages from a single DM?
subscribe/subscribe_to?

@pizzaserved I would recommend to look at the documentation which explains it in detail. To save the most bandwidth set guild_subscriptions to False when creating a Client then subscribe to whatever servers you want to listen to (taken from here. I don't know if dms work in the same way but thats the basics. It also helped reduce lag a lot for me especially on accounts with many high member count servers.


[ldd-img] High_Dynamic_Range_Exposure cardinality

High_Dynamic_Range_Exposure needs maxOccurs of any.  It's supposed to be an array.

updated to unbounded. @rgdeen  new dev. build here:
https://github.com/pds-data-dictionaries/ldd-img/tree/master/build/development/7924c5b6c226309ab03895768adf0c55112b8033/<IP_ADDRESS>


[Feature Request]: make data connection for S3 model sources AWS-unspecific

Feature description
Currently, at least the Workbench creation Data Connection GUI for model servers (to get model files from) is highly AWS S3 specific. I don't know whether that is intended, as models could also live in S3 compatible object storage on a company-internal server in a bucket, e.g. IBM Cloud Object Storage.
Certificate trust is also an issue when, there are ways with trusted-ca-bundle configmap to get all trusted certs and use them as trusted when making https requests.
Describe alternatives you've considered
No response
Anything else?

@Joohoo Unclear whether there is a connection with model-mesh as well, as dashboard is just the GUI side of things.
Pep Turró Mauri @codificat of Red Hat once created an issue for that, too, I think, not related to the GUI, but still
https://issues.redhat.com/browse/RHODS-8813

cc @andrewballantyne

I think I found it.
UX ticket

https://github.com/opendatahub-io/sig-ml-developer-experience/issues/6

We'll treat this ticket as our side of the effort to follow through with what we need to do to achieve that across the board with our data connections.

Technical background... @shalberd
We did this originally in this design as a first stage for DS Projects. We used those keys at that name for injecting into Notebooks as it was a suggested naming structure. Technically we do not need to do that today I believe. We'll just need to understand the flows for the JupyterLab notebooks and how they use it before we make any stance. I'll try to bring this up at our Thursdays UX meeting. Might be able to get information on any internal workings that might be impacted by this change.

The solution here will be to:

Reword all the Data Connection fields

AWS_ACCESS_KEY_ID => Access key
AWS_SECRET_ACCESS_KEY => Secret key
AWS_S3_ENDPOINT => Endpoint
AWS_DEFAULT_REGION => Region
AWS_S3_BUCKET => Bucket

Remove the default values

Make Endpoint and Region required fields since they lose their defaults

This should be done to the following areas:

Data Connections modals
Model Serving modals
Pipeline Server Create modal (will become partially obsolete with https://github.com/opendatahub-io/odh-dashboard/issues/1214)

The underlying values that get injected into the Notebook and are passed to Model Serving will remain the same (prefixed with AWS). This is something we cannot change at this time. This is purely a visual set of changes.

@andrewballantyne @guimou There might not always be a region field required, at least not when using on-prem IBM Cloud object storage, or a mini-solution like Ceph or Minio. Whether the region field makes a diffference at all when not actually needed I don't know, it does not look like it though in existing code behind

Good point -- let's not my region required -- I recall that being the case when using Minio now that you mention it.

in pipelines, by design secrets are used to read access key id and access key from an Openshift secret, context Elyra pipeline defs
Here is model-serving, are the values put into the env var directly or via an Openshift secret? That is, is an Openshift secret created with the info from the fields?

in pipelines, by design secrets are used to read access key id and access key from an Openshift secret, context Elyra pipeline defs

That's a different secret -- look at Create Pipeline Server Modal (the DSPA creation)

Here is model-serving, are the values put into the env var directly or via an Openshift secret? That is, is an Openshift secret created with the info from the fields, especially access key id and access key, to be used later?

Data Connection values are the same throughout our UI forms (model serving or not) and should be updated at the same time (with the solution I noted here). They all create a secret under the hood, something like aws-connection-something. This content will be not impacted by this change, as we are just improving the visual representation of making a data connection.

Would like to raise the priority for this. Have received feedback on this from multiple sources.


Update README commands for the models to use --sdp_on_bf16

What does this PR do?
As PR https://github.com/huggingface/optimum-habana/pull/1514, updated model run commands which need to use --sdp_on_bf16 parameter.

Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Get more node, trigger

I have installed n8n on heroku but It missing many Node like Gmail,....
How to fix it

@churongcon maybe updating n8n get's you more nodes.

@churongcon maybe updating n8n get's you more nodes.

#18 should fix this

#18 should fix this


add singleElement() to ObjectEnumerableAssert

Summary
singleElement() has been added to Iterable assertions but not in AbstractObjectArrayAssert or AtomicReferenceArrayAssert

Hi, can I take this one?

Sure and thanks, @Syemon.

@Syemon if you don't have time to work on this one, it's not a big deal I'll take over.

@joel-costigliola Thanks, I completely miscalculated how long it would take me. I got totally stuck in this task. I was not able to make it work with strongly typed assertion variant.

Don't worry @Syemon, thanks for the effort, we will take it from there.


Web site features for GemBrow

Jotting down some required features/improvements/tasks
n.b.: GemBrow is just an internal name!
Reiterating the two big use cases:

User wants to see what we have in Gemma.
User wants to identify specific data sets for downstream use.

These have to motivate our development approach.

[ ] Integration with the current web site. This should be linked from the Gemma home page and match the style to the extent possible (this means changes to the header, footer, fonts). The old search can still be provided (and it covers searches of genes etc. that GemBrow doesn't)
[ ] Add "what's new" (see #1)
[ ] Screening of non-useful terms from the side display. Examples: "Wild type genotype" "reference subject role".  These can be programmatically identified at least in part using BaselineSelection.isBaselineCondition, and Ogan also has been developing a list of stopterms for GemmaDE that might be useful.
[ ] "Study design" should not be shown as a category as this is only used for "Subset" which we don't need to expose here. Nor should "Dose" which by itself is meaningless.
[ ] Eliminate the ontobee links associated with the ontology terms. Instead, consider a (?) tooltip that gives the ontology definition of the term.
[ ] Add a title to the experiment characteristics section, it is not clearly separate from "Platform"
[ ] The ordering of categories should be kept constant. Currently, when you check a box to filter, the order can change so "organism part" is now above "genotype" or vice vera. This is confusing.
[ ] The number of entries shown for each category seems limited right now? The smallest count is 50. We should just show "everything" (until performance becomes an issue)
[ ] Experiment table: rows should be expandable (like the old browser) or there could be a pane at the bottom to show details for the selected experiment like here - in any case some way to show some more detail.
[ ] Clicking on an experiment name in the table currently replaces the browser. I am not sure this is the best behaviour, though it's a bit of a toss-up. To discuss.
[ ] Experiment table: Allow this to be downloaded as TSV
[ ] Experiment table: show status and presence of DEA like on the old browser. Possibly allow filtering by this.
[ ] Experiment table: default sort should be by most recently updated, currently it is by ID.
[ ] Generate R code to load the data sets and display this in a pop-up perhaps (i.e. on user request). Some thought might need to be put into this - we wouldn't want it for hundreds of experiments! I'm thinking if they locate 5 or 10 that would be fine, so this feature would be disabled otherwise or trigger an error message if they try it for too many data sets.
[x] Cosmetic: the word "Search" is clipped at the top of the page at least on my browser.
[x] Type-ahead searches might not be a good idea if it triggers a lot of searching. The "There's already pending search" message must be eliminated in any case
[ ] Searching should result in the reason for the positive hits being shown, like in the current search page. For example, show a clip of the text that matched, or describe the association (e.g. via FactorValue). Users should be able to tell why the hit was retrieved.
[ ] Give a clearer visual indication that the view is filtered by a search term. One way to do this is to display "Showing 123 experiments" at the top of the table. It currently only has this as small text under the table.

I've added a debounce of 1 second when the user is actively typing and removed the check for pending requests. We might have a few queued requests, but it's not perceivable since the site is reply quickly.

Terms are sorted by entropy (the closest they are to split 50:50 the total number of datasets, the best) and category by taking the term with maximal entropy. Terms that are selected always appear first.
If not using the best term, what should be the ordering? A predefined one? or alphabetic?

Terms are sorted by entropy (the closest they are to split 50:50 the total number of datasets, the best) and category by taking the term with maximal entropy. Terms that are selected always appear first.
If not using the best term, what should be the ordering? A predefined one? or alphabetic?

Are you referring to the "The ordering of categories should be kept constant" point?
I would suggest a fixed ordering. We can debate what ordering is most aesthetically pleasing but that's what it comes down to.
A heuristic would be to go off how many relevant datasets we have for each category in total - not for the current query/filter,  but in Gemma. So Disease might be first, OrganismPart second or whatever. My intuition is that will align with what people are most likely to be looking for on average.

Ok, that might require some kind of configuration for the default order of categories.
For Gemma integration, the Vue router can pass parameter from the URL fragment to the browser:

This way we can generate links from the main Gemma website to perform a specific search on GemBrow.

Having a search field elsewhere on the site that goes to the browser would be nice, but minimally we just need links to the browser, and the browser should have the same or at least similar chrome (header, footer ... menus? etc) as the rest of the site. That's what I mean by integration. Of course I don't mean to make that into a major job.

The number of entries shown for each category seems limited right now? The smallest count is 50. We should just show "everything" (until performance becomes an issue)

Past 2000 terms, it's challenging to handle from the browser because of the rendering. We might need some kind of lazy-loading strategy to query sub-trees.

Experiment table: show status and presence of DEA like on the old browser. Possibly allow filtering by this.

I'll see if this is covered by the filters. From what I recall, this is filled in the detailed EE VO.


FOM deployment failed on pulling image from Github

Describe the Bug
When pr merge to main, the deployment failed on OpenShift (TEST) to roll out the api component due to timeout on image pulling.
Error log: https://github.com/bcgov/nr-fom/actions/runs/12361160867/job/34497714190
Screenshots for error

Additional context

Currently, at the same day, but different repo (FAM), the deployment is also failing due to Github runner issue at this ticket: https://github.com/bcgov/nr-forests-access-management/issues/1700. Not sure if this is related Github issue that causes the problem.

Derek, Basil and Criag investigated this morning.
In short, the "tag" for the images in all Github package for (test, prod) were somehow being removed, or image might be deleted due to it GH only retain 50 (if I understand correctly).
We didn't notice because FOM was stable for a while and there were not many deployments in the past months.
Derek helped to fixed deployment templates on "TAG" to be able to retagging for the images.
Production and test are fixed today including batch jobs.


Unable to install azurenextgen plugin for Windows

Issue description
Staring today 10/16/2020 I am unable to install azurenextgen plugin anymore.
pulumi plugin install  or pulumi plugin install resource azurenextgen 0.2.2 fails with error HTTP 403
>pulumi plugin install resource azurenextgen 0.2.2
[resource plugin azurenextgen-0.2.2] installing
error: [resource plugin azurenextgen-0.2.2] downloading from : 403 HTTP error fetching plugin from https://get.pulumi.com/releases/plugins/pulumi-resource-azurenextgen-v0.2.2-windows-amd64.tar.gz

The same behavior with other plugin versions:

0.2.1
0.2.0
0.1.0

Steps to reproduce

Install Pulumi CLI v2.12.0 for Windows
Run pulumi plugin install resource azurenextgen 0.2.2

Try azure-nextgen with a dash

I can replicate the behavior with:
$ pulumi plugin install
running 'dotnet build -nologo .'
Determining projects to restore...
All projects are up-to-date for restore.
temp3temp3 -> ../temp3/bin/Debug/netcoreapp3.1/temp3temp3.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.84
'dotnet build -nologo .' completed successfully
[resource plugin azurenextgen-0.2.2] installing
error: [resource plugin azurenextgen-0.2.2] downloading from : 403 HTTP error fetching plugin from https://get.pulumi.com/releases/plugins/pulumi-resource-azurenextgen-v0.2.2-darwin-amd64.tar.g
When I run
$ pulumi plugin install resource azure-nextgen 0.2.2
[resource plugin azure-nextgen-0.2.2] installing

@tusharshahrs Thanks for the repro, I can also see this now. It looks like our .NET plugin discovery is broken here.

@tusharshahrs can you also include the pulumi program you used to repro?

@jaxxstorm Here you go:
$ mkdir ~/temp/temp4
$ cd ~/temp/temp4
$ pulumi new azure-nextgen-csharp
~/temp/temp4 $ pulumi plugin install resource azure-nextgen 0.2.2
[resource plugin azure-nextgen-0.2.2] installing
tusharshah@Tushars-MBP ~/temp/temp4 $ pulumi plugin install
running 'dotnet build -nologo .'
Determining projects to restore...
All projects are up-to-date for restore.
temp4 -> ...temp/temp4/bin/Debug/netcoreapp3.1/temp4.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.80
'dotnet build -nologo .' completed successfully
[resource plugin azurenextgen-0.2.2] installing
_error: [resource plugin azurenextgen-0.2.2] downloading from : 403 HTTP error fetching plugin from https://get.pulumi.com/releases/plugins/pulumi-resource-azurenextgen-v0.2.2-darwin-amd64.tar.gz_
These are the files that are generated:
MyStack.cs  Program.cs  Pulumi.yaml  bin  obj  temp4.csproj
pulumi version
v2.12.0


Support indexed latlon

Awesome. Looks like with this change the name of the dimension does not need to match the name of the coordinate variable anymore. Is that right?

Awesome. Looks like with this change the name of the dimension does not need to match the name of the coordinate variable anymore. Is that right?

Yeah that's correct -- if dimension names aren't specified it'll default to using the coordinate variable names, otherwise they don't need to match

Do you have a JIRA ticket for it? Can you add it to the PR name


update decorator to not create decorated functions per request

While the existing implementation is simple it: creates a decorated function per request, calls it, and then will discard it. Since the
functionality is straightforward and also encapsulated fairly well in Django, this PR modifies the decorator to copy the original Django decorator, and calls the same helper functions where possible.
Because the functionality is no longer simply wrapping Django's internal implementation, but is still mostly the same, there have been tests added to compare the requests generated by Django vs requests generated by Django Request Framework/this library.
Finally, in order to be less confusing to library writers the call signature of etag_func and last_modified_func has been updated to match Django Request Framework and will pass a DRF Request object instead
of Django's native Request object:
# from the original signature
def original_etag_func(wsgi_request, *args, **kwargs): pass

# to the updated signature
def updated_etag_func(drf_self, drf_request, *args, **kwargs): pass

In order to ease the transition between the two signatures, there has been a flag "use_self" added to the decorators, and a warning will be emitted if use_self has not been set to True.

@jozo not sure if you have time to look over this PR?

Thank you for your PR @terencehonles . I'm wondering what is the benefit of this PR. Is it performance? If so, how much it improves it? Does it outweigh simplicity of the current implementation?

Well the bigger/biggest benefit is if you need to use the request object that DRF provides you can actually use it. From there you can use request.parser_context to get the view or other things that are passed via the context. This allows conditions that look at what type of API request is being made and makes more sense as this is condition support for DRF not just Django.
As far as performance I figured this was likely just overlooked, but I don't expect Django's conditions expected to be used this way.


Extension compiling error

I have the next issue when compiling cpu extension
 % ./make.sh
running build_ext
skipping 'nms/cpu_nms.c' Cython extension (up-to-date)
building 'nms.cpu_nms' extension
{'gcc': ['-Wno-cpp', '-Wno-unused-function']}
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.7/dist-packages/numpy/core/include -I/usr/include/python3.7m -c nms/cpu_nms.c -o build/temp.linux-x86_64-3.7/nms/cpu_nms.o -Wno-cpp -Wno-unused-function
nms/cpu_nms.c: In function ‘__Pyx_PyCFunction_FastCall’:
nms/cpu_nms.c:8431:13: error: too many arguments to function ‘(PyObject * (*)(PyObject *, PyObject * const*, Py_ssize_t))meth’
     return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
            ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nms/cpu_nms.c: In function ‘__Pyx__ExceptionSave’:
nms/cpu_nms.c:8892:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
     *type = tstate->exc_type;
                     ^~~~~~~~
                     curexc_type
nms/cpu_nms.c:8893:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
     *value = tstate->exc_value;
                      ^~~~~~~~~
                      curexc_value
nms/cpu_nms.c:8894:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
     *tb = tstate->exc_traceback;
                   ^~~~~~~~~~~~~
                   curexc_traceback
nms/cpu_nms.c: In function ‘__Pyx__ExceptionReset’:
nms/cpu_nms.c:8901:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
     tmp_type = tstate->exc_type;
                        ^~~~~~~~
                        curexc_type
nms/cpu_nms.c:8902:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
     tmp_value = tstate->exc_value;
                         ^~~~~~~~~
                         curexc_value
nms/cpu_nms.c:8903:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
     tmp_tb = tstate->exc_traceback;
                      ^~~~~~~~~~~~~
                      curexc_traceback
nms/cpu_nms.c:8904:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
     tstate->exc_type = type;
             ^~~~~~~~
             curexc_type
nms/cpu_nms.c:8905:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
     tstate->exc_value = value;
             ^~~~~~~~~
             curexc_value
nms/cpu_nms.c:8906:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
     tstate->exc_traceback = tb;
             ^~~~~~~~~~~~~
             curexc_traceback
nms/cpu_nms.c: In function ‘__Pyx__GetException’:
nms/cpu_nms.c:8961:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
     tmp_type = tstate->exc_type;
                        ^~~~~~~~
                        curexc_type
nms/cpu_nms.c:8962:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
     tmp_value = tstate->exc_value;
                         ^~~~~~~~~
                         curexc_value
nms/cpu_nms.c:8963:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
     tmp_tb = tstate->exc_traceback;
                      ^~~~~~~~~~~~~
                      curexc_traceback
nms/cpu_nms.c:8964:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
     tstate->exc_type = local_type;
             ^~~~~~~~
             curexc_type
nms/cpu_nms.c:8965:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
     tstate->exc_value = local_value;
             ^~~~~~~~~
             curexc_value
nms/cpu_nms.c:8966:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
     tstate->exc_traceback = local_tb;
             ^~~~~~~~~~~~~
             curexc_traceback
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Python version: 3.7
Cython version: 0.29.2
GCC version: 8.3.0

I also have the same problem.
Ubuntu 16.04
Python 3.7
Cython 0.29.13
GCC 7.40


[webview_flutter] Third party calls by javascript sdk not working in iOS 17.5.1

Steps to reproduce
For some reason, since iOS 17.5.1 came out, the WebView that I used to communicate dart with a payment provider through the javascript sdk started to fail most of the time the call is made.
The strange thing is that the WebView works perfectly for any other distribution from 17.5 onwards.
I have done tests using: webview_flutter: ^3.0.0, webview_flutter: ^4.8.0 and flutter_webview_pro: ^3.0.1+4 with the same result for all.
The problem is found when executing the javascript function, in which the call cannot be executed, remaining in a kind of cache. After several attempts, there are times it works and other times it finishes processing. (Confirmed since I implemented the Sentry library to monitor what happens inside the javascript)
Expected results
Make calls synchronously to the payment provider through the javascript SDK and respond in case of success or failure
Actual results
I had to implement a handmade timeout to throw an error in case the javascript method (called from controller.runJavascript) never calls the JavascriptChannel and be able to end the process. This error is thrown most of the time when communication is attempted.
Code sample
WebViewController creation
class KushkiScriptWebView extends ConsumerStatefulWidget {
  const KushkiScriptWebView({Key? key}) : super(key: key);

  @override
  _KushkiScriptWebViewState createState() => _KushkiScriptWebViewState();
}

class _KushkiScriptWebViewState extends ConsumerState<KushkiScriptWebView> {
  late final WebViewController _webViewController;

  @override
  void initState() {
    super.initState();

    late final PlatformWebViewControllerCreationParams params;
    if (WebViewPlatform.instance is WebKitWebViewPlatform) {
      params = WebKitWebViewControllerCreationParams(
        allowsInlineMediaPlayback: true,
        mediaTypesRequiringUserAction: const <PlaybackMediaTypes>{},
      );
    } else {
      params = const PlatformWebViewControllerCreationParams();
    }

    final WebViewController controller =
        WebViewController.fromPlatformCreationParams(params);

    controller
      ..setJavaScriptMode(JavaScriptMode.unrestricted)
      ..addJavaScriptChannel(
        'CardSubscriptionSuccess',
        onMessageReceived: (message) {
          var jsonResponse =
              Map<String, dynamic>.from(json.decode(message.message));
          var token = jsonResponse['token'];
          ref.read(kushkiService).setCardSubscriptionToken(token);
        },
      )
      ..addJavaScriptChannel(
        'CardSubscriptionFailure',
        onMessageReceived: (message) {
          var jsonError = json.decode(message.message);
          var error = TokenGenerationError.fromKushkiTokenGenerationErrorJson(
            jsonError,
            TokenGenerationErrorTypes.cardSubscription,
          );
          var cardInformation =
              CardErrorCardInformation.fromKushkiTokenGenerationErrorJson(
            jsonError,
            SubscriptionFlowProvider.kushki,
          );
          ref
              .read(kushkiService)
              .setCardSubscriptionError(cardInformation, error);
        },
      );
    _webViewController = controller;
    _loadKushkiScript();
  }

  Future<void> _loadKushkiScript() async {
    await _webViewController.loadFlutterAsset(kushkiScriptUrl);
    ref.read(kushkiService).controller = _webViewController;
  }

  @override
  Widget build(BuildContext context) => Visibility(
        visible: false,
        maintainState: true,
        child: SizedBox(
          width: 1,
          height: 1,
          child: WebViewWidget(controller: _webViewController),
        ),
      );
}

Javascript Call from Dart
class KushkiService {
  KushkiService(
    this._httpClient,
    this.maxComunicationMilliseconds,
  );

  final Dio _httpClient;
  late final WebViewController controller;
  String? _chargeToken;
  ChargeTokenGenerationErrorNotification? _chargeTokenError;
  bool _loadingChargeToken = false;
  int currentComunicationMilliseconds = 0;
  int maxComunicationMilliseconds;

  Future<PaymentProviderData> getPaymentProviderData(Card card) async {
    var paymentToken = await _getSubscriptionChargeToken(card.cardToken);
    return PaymentProviderData(
      providerName: PaymentProvider.kushki,
      providerCardToken: card.cardToken,
      paymentToken: paymentToken,
      subscriptionMethod: card.subscriptionMethod,
    );
  }

  Future<String> _getSubscriptionChargeToken(String subscriptionId) async {
    try {
      currentComunicationMilliseconds = 0;
      _loadingChargeToken = true;
      await controller.runJavaScript(
          '''requestSubscriptionDeviceToken("$subscriptionId")''');
      var token = await _loadChargeToken();
      _chargeToken = null;
      return token;
    } on Exception catch (exception) {
      log('''[KushkiService]: Couldn't get card subscription token - $exception.''');
      _loadingChargeToken = false;
      rethrow;
    }
  }

  void setChargeToken(String token) {
    _chargeToken = token;
    _loadingChargeToken = false;
  }

  void setChargeTokenError(TokenGenerationError error) {
    var tokenGenerationErrorRequest =
        TokenGenerationErrorRequest(card: null, error: error);
    _chargeTokenError = ChargeTokenGenerationErrorNotification.fromProviderCode(
        tokenGenerationErrorRequest.error.providerCode);
    _loadingChargeToken = false;
  }

  Future<String> _loadChargeToken() async {
    if (_loadingChargeToken == true &&
        currentComunicationMilliseconds < maxComunicationMilliseconds) {
      currentComunicationMilliseconds++;
      return Future.delayed(
          const Duration(milliseconds: 100), _loadChargeToken);
    } else if (_loadingChargeToken == true &&
        currentComunicationMilliseconds >= maxComunicationMilliseconds) {
      throw createSubscriptionChargeTokenTimeoutError;
    }

    if (_chargeToken == null) {
      throw _chargeTokenError!;
    }
    return _chargeToken!;
  }

Javascript Method
function requestSubscriptionDeviceToken(subscriptionId) {
  if (!kushki) return;
  kushki.requestDeviceToken({
    subscriptionId,
  }, (response) => {

    if (response.token) {
      const resJsonString = `{ "token": "${response.token}", "random" : "${random}" }`;
      SubscriptionChargeSuccess.postMessage(resJsonString);
    } else {
      const errorJsonString = `{ "code": "${response.code}", "error": "${response.error}", "message": "${response.message}", "random" : "${random}" }`;
      SubscriptionChargeFailure.postMessage(errorJsonString);
    }
  });
}

HTML Code
<!doctype html>
<html>

  <head>
    <title>Kushki JS Library (DEV)</title>
  </head>

  <body>
    <script
      src="https://js.sentry-cdn.com/47d13eede4805340d79b91e97050847a.min.js"
      crossorigin="anonymous"></script>
    <script src="kushki_script_handler.js"></script>
    <script src="https://cdn.kushkipagos.com/kushki.min.js"
      onload="handleSuccess(true)" onerror="handleError()"></script>
    <script src="kushki_token_generator.js"></script>
  </body>

</html>

Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.3.1 23D60 darwin-arm64, locale es-CL)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.90.0)
[✓] Connected device (6 available)
[✓] Network resources

• No issues found!

Hi @jdvalenzuela1, do you face this issue with javascript channels in general or just when you use the thirdy-party sdk? Is this an issue with this specific sdk? Can you confirm if this works as expected in a native iOS application?
Given that this works with previous iOS versions but not 17.5.1, it seems like this might be more a bug in iOS that the webview_flutter plugin.

They are good questions. I'm going to check if I can communicate with other third-party SDKs since at least for all the methods of this particular one they present the same problem. We are currently developing communication using swift, so I might have that answer soon.
From your comment that it may be a problem with version 17.5.1, I think it is the theory that best fits the problem, but I have not found any github or stackoverflow threads that talk about this, in fact that is why i report it. (This is my first issue report)

Please keep us updated with your findings.
Thank you

hello @danagbemava-nc
As I told you above, the problem was that the javascript call to the provider's sdk remained queued without being able to be made until several attempts calling the same javascript.
To solve it, only the user's first attempt called the javascript code that connected to the provider's sdk and then every 100 milliseconds called a javascript method that only called a JavascriptChannel that does nothing in order to wake it up and release the previously cached call.
It will not be the most elegant solution but it is surely a problem with this package with the new version of iOS

Hi @jdvalenzuela1, could you provide a complete minimal reproducible code sample with the js portion as well in a repository that we can clone so that we can properly investigate this issue? Ideally, this would not be your project source, just enough code that we can reproduce the issue and properly investigate it.
Thank you

Sorry for the delay in my response. I share a repository that reproduces this error in iOS version 17.5.1
https://github.com/jdvalenzuela1/javascriptChannelExample

Hi @jdvalenzuela1, please update your sample to use the latest version of the webview plugin. Were you able to test with the native iOS sample to confirm if this is specific to only flutter? Have you reached out to the kushki team for further assistance?

Hello @danagbemava-nc, i updated the repository to use the latest version of webview_flutter but unfortunately I still have the same problem when testing with a device with iOS 17.5.1.
Regarding the idea of testing natively on iOS, you will have to excuse me but I do not have knowledge of Swift so I have not taken that path.
As for whether I have contacted the Kushki team, I have indeed done so and they are convinced that it is not their fault. It is true that they always generate the DeviceToken on their own from the cardToken hardcoded in the code<PHONE_NUMBER>053000), even though a timeout is triggered from the app, but I do not rule out that there is a problem in their javascript library that does not support such a version of iOS. But they insist that everything is fine on their side.

Reproducible using the code sample provided in https://github.com/jdvalenzuela1/javascriptChannelExample. I tested on an iPhone running iOS 17.5.1. I don't have an iOS device with an older version of iOS so I can't confirm the report fully.
Labeling for further investigation.

iOS
android

flutter doctor -v
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.4.1 23E224 darwin-arm64, locale en-GB)
    • Flutter version 3.22.3 on channel stable at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (2 days ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode-15.3.0.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 77.2.2
    • Dart plugin version 232.10286

[✓] VS Code (version 1.91.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.92.0

[✓] Connected device (5 available)
    • Pixel 7 (mobile)                • 28291FDH2001SA            • android-arm64  • Android 14 (API 34)
    • Nexus (mobile)                  • 00008020-001875E83A38002E • ios            • iOS 17.5.1 21F90
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 126.0.6478.183
    ! Error: Dean’s Apple Watch has not finished loading development services. Please select a different device, or wait for the device to load development services and try again. (code 8)
    ! Error: Browsing on the local area network for Dean’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.24.0-1.0.pre.197, on macOS 14.4.1 23E224 darwin-arm64, locale en-GB)
    • Flutter version 3.24.0-1.0.pre.197 on channel master at /Users/nexus/dev/sdks/flutters
    ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0bac2be379 (3 hours ago), 2024-07-19 00:15:26 -0400
    • Engine revision ea1e53a4e8
    • Dart version 3.6.0 (build 3.6.0-55.0.dev)
    • DevTools version 2.37.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode-15.3.0.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 77.2.2
    • Dart plugin version 232.10286

[✓] VS Code (version 1.91.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.92.0

[✓] Connected device (5 available)
    • Pixel 7 (mobile)                • 28291FDH2001SA            • android-arm64  • Android 14 (API 34)
    • Nexus (mobile)                  • 00008020-001875E83A38002E • ios            • iOS 17.5.1 21F90
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 126.0.6478.183
    ! Error: Dean’s Apple Watch has not finished loading development services. Please select a different device, or wait for the device to load development services and try again. (code 8)
    ! Error: Browsing on the local area network for Dean’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Sounds like the first step in someone investigating this would be to make a non-Flutter version of the repro case, to see if it's just a WKWebView issue.

Is this issue since 17.5.1 and does it also happen in the new 17.6.1?

I just updated my cellphone to version 17.6.1 and I see that the problem is fixed


How can I use the content generated by dolphin_llama3_omost in WebUI?

I find the use of ComfyUI nodes too difficult. I would like to ask the author if I can directly use the dolphin_llama3_omost model and copy the results generated by Ollama into the prompt. After testing it myself, I found that SD Forge did generate an image, but I'm not sure if this approach is correct. Should I avoid copying all of the content generated by Ollama, and instead extract a specific part of it?
ollama run impactframes/dolphin_llama3_omost

draw a girl

# Initialize the canvas
canvas = canvas()

# Set a global description for the image
canvas.set_global_description('A cute girl in a summer dress with a hat, standing by a window on an overcast
day.')

# Add the girl wearing a summer dress and a hat.
canvas.add(
    location=1,
    area=0.3,
    offset=0.05,
    distance_to_viewer=1.5,
    description='The girl wearing a summer dress and a hat.',
    detailed_descriptions=[
        'A cute young girl is standing by a window on an overcast day, dressed in a light summer dress with floral
patterns.',
        "She has a bright smile on her face as she gazes out the window.",
        'Her hair is neatly tied back into a ponytail, and she wears a wide-brimmed sun hat that shields her from
the soft sunlight filtering through the curtains.',
    ],
    tags='girl, summer dress, hat, smiling, by window, overcast day, floral patterns, ponytail, cute girl, young
girl, bright smile, windowpane, light fabric, cheerful expression',
)

# Add a potted plant next to the girl.
canvas.add(
    location=2,
    area=0.15,
    offset=0.08,
    distance_to_viewer=1.5,
    description='A potted plant next to the girl.',
    detailed_descriptions=[
        'Beside the girl is a small, potted plant in a simple white pot.',
        "The plant's leaves are lush and green, adding a touch of nature to the scene.",
        'It stands on a small wooden table with a smooth surface.',
        "The plant seems healthy and vibrant, complementing the girl's cheerful appearance.",
    ],
    tags='potted plant, green leaves, white pot, small table, wooden table, nature element, lush plant, indoor
plant, complementary colors, healthy plant',
)

# Add a window frame with curtains.
canvas.add(
    location=3,
    area=0.2,
    offset=0.1,
    distance_to_viewer=1.5,
    description='A window frame with curtains.',
    detailed_descriptions=[
        'The window the girl is standing by has an old-fashioned wooden frame, painted in a soft cream color.',
        'The windowsill is lined with white lace curtains that gently sway as if there's a light breeze coming
through.',
        "These curtains filter the natural light, casting a gentle glow over the girl and her surroundings.",
    ],
    tags='window frame, wooden frame, old-fashioned window, cream paint, windowsill, white lace curtains, swaying
curtains, natural light, gentle glow',
)

# Add a small table with a cup of tea.
canvas.add(
    location=4,
    area=0.1,
    offset=0.12,
    distance_to_viewer=1.5,
    description='A small table with a cup of tea.',
    detailed_descriptions=[
        "In front of the girl, on the wooden floor next to her, there is a small round table with a delicate
porcelain teacup and saucer resting on top.",
        'The teacup holds freshly brewed tea that gives off steam, suggesting warmth and comfort.',
        'The cup has elegant floral designs around its rim, matching the summer dress worn by the girl.',
    ],
    tags='small table, wooden floor, round table, porcelain teacup, delicate saucer, freshly brewed tea, steam
rising, floral design, elegant cup',
)

# Add a bookshelf with books and a small picture frame.
canvas.add(
    location=5,
    area=0.2,
    offset=0.15,
    distance_to_viewer=1.8,
    description='A bookshelf with books and a small picture frame.',
    detailed_descriptions=[
        'To the right of the girl is an elegant wooden bookshelf filled with various books, neatly arranged in
descending order by size.',
        "There's also a small picture frame hanging on one of the shelves, featuring a photograph of the girl's
family.",
        'The bookshelf adds a touch of sophistication to the room, making it feel cozy and lived-in.',
    ],
    tags='bookshelf, wooden shelf, books arranged, descending order, small picture frame, family photo, elegant
bookshelf, sophistication, cozy atmosphere',
)

No is not correct because what the model does is generate regions and assign prompts to it with it then there are a couple of subsequent steps where a script takes the code defining the masks, regions colors etc.. and drives the conditioning on those areas. The guy that made forge is the same that made Omost so I am surprised if there is no way to use it already in forge?

Yes, I also regret that I couldn't find an extension to use omost in Forge. However, after sending the content I wanted to paint to dolphin_llama3_omost, the results it provided were better than what I could generate with the prompt I sent.

Eventually I want to bring this same tools to IFPromptMkr my extension for A1111 & Forge but the work here is too much and I can't do that until I least finish some of the features for IF_AI_tools

It would be best if you could provide a basic workflow of dolphin_llama3_omost and flux. I’m unfamiliar with the nodes of comfyui and can‘t make my own workflow.


Mistake regarding visual representation

Cardinality of macrostepExpansions should be 1

As well as cardinality of EntryStep (1..*) and ExitStep (1).


Update to egui v0.26

Updated to egui v0.26 and checked the multiple_variants example, which looked fine.

I'd also like to get this upgrade. Shouldn't version bump be dropped from 041ff40?

At the very least it should bump to 0.4.0 instead of 0.3.2. Bumping just the patch is violating semver: doing cargo update will break everyone's build unless they also (manually!) bump their egui dependency.

I followed the scheme of the egui update v0.24 to v0.25, where the version of egui-phosphor was bumped from 0.3.1 to 0.3.2.
egui update: https://github.com/amPerl/egui-phosphor/commit/c44a0c6bf9893515019f517a5ba1265057149949
version bump: https://github.com/amPerl/egui-phosphor/commit/1ca1953314cc7cbd446f63fa8f8106e8eceb40ae

At the very least it should bump to 0.4.0 instead of 0.3.2. Bumping just the patch is violating semver: doing cargo update will break everyone's build unless they also (manually!) bump their egui dependency.

I'll major bump it on top of this. thanks


variables set during auth_on_register is not accessible from hooks LUA Plugins

Environment

VerneMQ Version: 1.5.0-127-ge130553
OS: ubuntu linux 16.04
Erlang/OTP version (if building from source): erts-<IP_ADDRESS>@OTP 19

Expected behavior
Having access to the variable stored during auth_on_register
Actual behaviour
When variable stored during auth_on_register it is not accessible from any other hook, and, actually vmq throws errors when trying to access them.
What we try to achieve
We have an HTTP service who is responsible for managing authentications, which supports different auth types. (eventually as of now: apikey and oauth).
We then receive "type=token" as password parameter during auth_on_register, parse it to store in session variable (?) (plugin scope local auth_data), and authenticate access using external HTTP service.
Later on, in one(!) of the cases during publish, we need to re-translate the received message to HTTP in additional to publishing to topic, in all other cases - message only delivered to topic.
We then arrive at on_publish hook, which have to evaluate whether the message should be retranslated, and one of rules says "user need to be authenticated using OAuth" and so we try to check if auth_data.type is actually OAuth -> here we get an error always.
We can not print the parsed "password" which is stored in auth_data.
Questions

Is it expected behavior for "hidding" variables set during auth_on_register ?
is plugin-wide variable only a session var ? (auth_data in our case)
any suggestion as how to overcome the above described limitations ?

Thanks for raising those questions.
It is possible if all your hooks are defined in the same Lua script, by configuring
num_states = 1
keep_state = true

As a consequence, all requests are made to the same Lua state (encapsulated in an Erlang process) which could become a bottleneck if you have many simultaneous requests. In my opinion a better solution would be to use 'external' state instead of Lua variables. The external state could be based on Erlang term storage using our Lua ETS library (see https://github.com/erlio/vernemq/blob/master/apps/vmq_diversity/test/ets_test.lua). That way you could set num_states to the number of workers you like and don't have to keep_state.
Hope this makes sense.


Host Containment and Uncontainment

Resolves #103

This works, but I'm not super happy right now with the CLI syntax.
Valid syntax:
$ falcon containment -f Hostname=a,b,c contain

Invalid syntax:
$ falcon containment contain -f Hostname=a,b,c

The latter will try to contain all systems in the CID. We have a check for this to get confirmation, but it's still too easy to do something bad with a simple syntax difference. Once I figure out a graceful way to handle this, I'll get the PR merged in.


WIP - Update to Documentation - Bert

Proposed changes:

Add a new part to the documentation page that explains how to use Bert.

Status (please check what you already did):

[x] added some tests for the functionality
[x] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

@dakshvar22 This is what it looks like on my side.

But somehow that link is not showing up when you're on another page. Any idea where to set that?

@amn41 @dakshvar22 I think I've included all your comments. Is this now good to go?


fix(kubernetes installation docs) numbering on getting started with kubernetes docs

Signed-off-by: jameskim0987<EMAIL_ADDRESS>SUMMARY
Currently, the numbering of the initial 4 steps on https://superset.apache.org/docs/installation/running-on-kubernetes are all numbered 1. This PR will fix the number from 1,1,1,1 to 1,2,3,4
TESTING INSTRUCTIONS
Check manually
ADDITIONAL INFORMATION
N/A

Could I get a maintainer to approve running workflows?


Move badge & star cron to Thursday

Summary
Changing badge & star batch cron to Thursday in order to have the result of check batch cron from Tuesday morning.
Details and comments

[x] update badge and star batch action

Closes #553

@frankharkins ready for your review :)
just a little update in order to not have the both batch at the same time to avoid conflict and to have the full database update in 1 week (and not 2 anymore)


Aws ses

Status
READY/IN DEVELOPMENT/HOLD
Description
A few sentences describing the overall goals of the pull request's commits.
Related PRs
List related PRs against other branches:

branch
PR

other_pr_production
link

other_pr_master
link

Todos

[ ] Tests
[ ] Documentation

Deploy Notes
Notes regarding deployment the contained body of work.  These should note any
db migrations, etc.
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.
git pull --prune
git checkout <feature-branch>

Impacted Areas in Application
List general components of the application that this PR will affect:

@kUSHAL0601 don't forget send pr about this document into user guide

@all-contributors add @kUSHAL0601  for code


English course image links to spannish website

On GitHub the image with the English text ("Creating and distributing python packages") links to the Spanish website. The Spanish text links to the same website

Should be replaced by https://twoscoopspress.thinkific.com/courses/creating-and-distributing-python-packages

There appears to be a PR  #452  already, but it has not been merged into the repository.

It's done. You can check them.


How to load the CSS of adminlte template correctly

Am trying to load the css files for the adminlte jeroennoten package but I have failed. It only loads the html files in the blade .
.
Help me resolve the css link possibly

Where is the css file located? Normally you would use the asset helper for this.

I am having the same problem. Can anyone find a way to load the css of adminlte?

Did you resolve it ? i got the same issue here.

Publish the public assets:
php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=assets

Hi!, I need, change the background's body only to home page, but I don't know. Somebody knows like?
thank's, for advance.

I copied the vendor folder to public folder - it fixed it


transaction count updated to 5000 as per change on 01/09/2020

Coverage remained the same at 94.747% when pulling b0b626505b31cbfa7d3320e87e81cdeb5d27870c on release/2.8.0 into a639787bee11e0cbd135bf0e7bfeb171217f78d7 on master.


statusCode is uninitialized in handleAccessory in PHKAccessory.cpp

Hi,
I've gotten much farther with your new drop. I had a problem with statusCode being used in the while loop in handleAccessory before it was initialized. I just changed the declaration to
int statusCode = 0;
and now I'm getting events processed.
Thanks,
Steve

Duly noted, and the code has been updated.
What kind of compiler did you use? Because I thought int init to 0 is a part of C99
Thanks

MacBook Pro. This was keeping me from going through the loop once. All running now.
thanks
Steve


multiple colorcodes

Hey, i have see...
multiple colorcodes in one line doesnt work and the &r code doesnt work too.
&r Problem:
https://i.imgur.com/eYJnv2k.png
https://i.imgur.com/6OcaKad.png
multple color codes:
https://i.imgur.com/sZHYgJw.png
https://i.imgur.com/lBmd6v5.png
and sry but the useable line length is to small....

What exactly are you expecting &r to do? No color or style has &r as a code.
To use different colors/styles on the same line, create multiple sections using ; as a separator. Use only one color and one style per section:
&dWillkommen ;&c$player_displayname%

Sorry, I don't know why this is happening. When the PlaceholderAPI plugin is installed, the text should be replaced accordingly. Are you sure, that the rank prefix is short enough to fit the 38 character limit? Is there anything in server indicating another problem with the plugin?

Solution:
Since I use LuckPerms, like most people, it didn't work with Papi %rank_prefix%.
I have now installed LuckHolders2 and it finally works.


controller: Refactor to use httprouter instead of martini

I'm not a fan of the nested functions. Can we start moving to struct methods instead?

@titanous updated to use a struct instead of nested functions.

Update: All routes now refactored to use httprouter

See #780 for request logging, it seems httprouter doesn't have this built in

Please vendor context in a standalone commit

I think doing the app lookups in a wrapper that puts it in the context would remove a lot of boilerplate.

@titanous comments addressed

LGTM pending comment / CI :tada:


what is the difference between fire_and_forget and IAsyncAction?

IAsyncAction is the simplest of the WinRT async types that you can use to both wait on or return to another language projection. fire_and_forget is an even simpler coroutine type that does not have a WinRT representation and, as its name suggests, is used when you just want to start an async operation and don't intend to wait for its completion directly. You might have some other way to coordinate its completion and don't need the overhead of an actual coroutine type with blocking and cooperative wait support.


Bumps documentation and adds new flags

documents issue #38 solved with #40
bumps documentation to 0.3.0

Codecov Report
Base: 73.25% // Head: 73.25% // No change to project coverage :thumbsup:

Coverage data is based on head (7750285) compared to base (5591d4b).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #41   +/-   ##
=======================================
  Coverage   73.25%   73.25%
=======================================
  Files           7        7
  Lines         516      516
=======================================
  Hits          378      378
  Misses        104      104
  Partials       34       34

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Questions about mel params  and training

In your experience, what are the things that you look out for when deciding for melspectrogram amplitude? Specifically I'm asking on why did you decide on not normalising the melspectrogram in your experiment.

In the paper you mentioned that in your experiment you trained the network with a batch size of 24 for 580.000 iterations. I would like to confirm that this is also the case for the checkpoint provided?

With the GPU that I have at the moment (K80 and P100) and using a single GPU for each experiment, I can only manage a batch size of around 3 to 5, depending on the parameter for the WN network. In your opinion, would I be able to achieve similar results with lower batch size?

If not for Question 3, is there a way for me to get better results without having to use multi-gpus?

WaveGlow is an extremely large and non-linear function that should be able to learn the map from audio to z and vice-versa regardless of the spectrogram amplitude being normalized. Normalizing the amplitude probably makes it easier for the model to learn the map.

Yes, the checkpoint provided is at ~580k iterations, if not exactly.

In expectation you should be able to achieve similar results by using proper learning rate and waiting longer.

@rafaelvalle Thanks for your answer. Recently I was able to train a model with less ringing, simply by replacing the upsampling method with a nearest neighbour upsampling.
I found that the upsampling method used in this repo is somewhat a bit arbitrary, where the conv transpose for upsampling outputs some "residual" samples at the end. Was there any reason for using conv transpose?

Can you share samples with us from your upsampling and nearest neighbor samples?

Closing due to inactivity.


Can't bind to 'shouldPlaceholderFloat' since it isn't a known property of 'input'

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Using shouldPlaceholderFloat should work
What is the current behavior?
Trying to use shouldPlaceholderFloat causes crash
What are the steps to reproduce?
https://embed.plnkr.co/hAZ8DQW1n7j4vnIUphAi/
All relevant code is in input-overview-example.html
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
All / latest

shouldPlaceholderFloat is actually a property of the control (either matInput or mat-select), and not the form-field.

Still doesn't work https://plnkr.co/edit/O9GZPM50vjGWdpgdrftM?p=preview

@jelbourn The Form Field docs uses floatPlaceholder while the Input API doc uses shouldPlaceholderFloat so I'm a little confused on which one is correct.  I tried both and neither work. I'm still using 2.0.0-beta.11 as upgrading to 5.0.0 caused some errors, not sure if that matters.

I managed to get it to work if you put floatPlaceholder on the form field and set it to one of 'always', 'auto', or 'never' it will work, doing the same with matInput does not work and either way the docs are incorrect and contradictory, I was only able to find this solution after looking at the floating placeholder plunkr.

@chriskinzel https://material.angular.io/components/form-field/overview#floating-placeholder

@finalxcode the docs are correct for the form field but it's confusing if you're reading the mat-input API https://material.angular.io/components/input/api because shouldPlaceholderFloat is listed as an input of mat-input.


Create prow jobs for release-* branches

/kind cleanup
Currently we have prow jobs only for the main branch, lets have prow jobs for the release-* branches as well.

/assign

Prow jobs are already configured for the release branch here: https://github.com/kubernetes/test-infra/blob/8039a827978835b6cc57fcd7b4bbfa3bd35c6d05/config/jobs/image-pushing/k8s-staging-cloud-provider-ibm.yaml
Test PR: https://github.com/kubernetes-sigs/ibm-powervs-block-csi-driver/pull/293

Prow jobs are already configured for the release branch here: https://github.com/kubernetes/test-infra/blob/8039a827978835b6cc57fcd7b4bbfa3bd35c6d05/config/jobs/image-pushing/k8s-staging-cloud-provider-ibm.yaml
Test PR: #293

oops, I mentioned the wrong links there, here is the right link - https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/ibm-powervs-block-csi-driver/ibm-powervs-block-csi-driver.yaml

Rightnow it is using the gcr.io/k8s-staging-test-infra/kubekins-e2e:v20221107-33c989e684-master which needs to be modified to the released k8s version which branch is using.
golang needs to be updated to 1.19 here

These jobs are applicable to all the branches in the repository.
This image gcr.io/k8s-staging-test-infra/kubekins-e2e:v20221107-33c989e684-master  will be periodically updated by the bot and this particular image was updated yesterday
Created PR to update the Golang version: https://github.com/kubernetes/test-infra/pull/27923

These jobs are applicable to all the branches in the repository (There is an option to skip branches, but currently we are not using)
This image gcr.io/k8s-staging-test-infra/kubekins-e2e:v20221107-33c989e684-master will be periodically updated by the bot and this particular image was updated yesterday
Created PR to update the Golang version: Update golang to 1.19 kubernetes/test-infra#27923

But there are other tags for older releases like 1.25, 1.24 etc.. we should have the same version mapped for the released branches and not the master one.

Prow job added for the release branches: https://github.com/kubernetes/test-infra/pull/27942

closing this as the prow jobs are added.

/close


source control providers from create react app

Is this a bug report?
YES

Did you try recovering your dependencies?

(Write your answer here.)
Which terms did you search for in User Guide?

(Write your answer here if relevant.)
Environment

System:
OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Binaries:
Node: 8.12.0 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 69.0.3497.100
Safari: 12.0
npmPackages:
react: ^16.5.2 => 16.5.2
react-dom: ^16.5.2 => 16.5.2
react-scripts: 2.0.4 => 2.0.4
npmGlobalPackages:
create-react-app: 2.0.3
Steps to Reproduce

(Write your steps here:)

create a create-react-app client
on the root create a server with (node and express)
git init on the root.
make changes on the client folder
on the root run normal git add -A git commit -m 'msg here' git push origin master
the client wont be get push to master (this is the problem)

Expected Behavior

when doing a git command on my root folder i expect my client folder to also be pushed in github.
Actual Behavior

On previous versions when i create a react app project git has no issue. i even opened my previous project. but on version 2 im having a git issue. I have a client folder inside is my create-react-app, and client folder has a siblings of server files. when i try to make changes on my server and client (react files) and do a git command. only the server files are being pushed to github i noticed this because of vscode has a notification on left side.

on this photo they have 2 different source control but theres only one origin. i even check the client if theres a .git folder so i can delete it but theres none. i dont know if this is a bug but ive been googling for hours now.
Reproducible Demo

https://github.com/artoodeeto/krookroo

When you have removed .git in the client/  dir you need to git add client in your root repo.

@andriijas but theres no .git folder in client sir thats the weird part.


I did alot on this one.

Added SQLite support.
Cleaned up config.
Added a alias for Slay (Kill)
Added a dedicated Admin Chat Function.
Added better Print/Chat Messages. The new ones are way easier to use, and are alot more consistent.
Went through every command single file and changed the messages, allowed for consoles to execute commands properly, and generally just cleaned it up to look nicer.
Probably missed a few minor things I forgot about. Oh well.

Jesus thats alot.

Going to just close this since alot of it is conflicting now with recent commits.


CachedAudioAddQuery.java:46-46: Write tests for this class.

The puzzle 5-24e55ea2 in src/main/java/com/driver733/vkmusicuploader/wallpost/attachment/CachedAudioAddQuery.java (lines 46-46) has to be resolved: "Write tests for this class."
The puzzle was created by Mikhail Yakushin on 23-Jun-17.
Estimate: 0 minutes, role: IMP.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 5-24e55ea2 has disappeared from the source code, that's why I closed this issue.


npm run build failed with

System information

Linux Ubuntu 18.04
Python 3.6

Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug or a feature request.
Source code / logs
When running the command npm run build, the following error message appears:
ERROR in ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve 'vue-chartjs/es/BaseCharts/Doughnut' in '/home/frank/Desktop/phac_project/doccano/app/server/static/components'
 @ ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&) 36:0-58 76:11-19
 @ ./components/stats.vue?vue&type=script&lang=js&
 @ ./components/stats.vue
 @ ./pages/stats.js

ERROR in ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve 'vue-chartjs/es/BaseCharts/HorizontalBar' in '/home/frank/Desktop/phac_project/doccano/app/server/static/components'
 @ ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&) 35:0-68 41:11-24
 @ ./components/stats.vue?vue&type=script&lang=js&
 @ ./components/stats.vue
 @ ./pages/stats.js

ERROR in ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve 'vue-chartjs/es/mixins/reactiveProp' in '/home/frank/Desktop/phac_project/doccano/app/server/static/components'
 @ ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&) 37:0-62 43:11-23 78:11-23
 @ ./components/stats.vue?vue&type=script&lang=js&
 @ ./components/stats.vue
 @ ./pages/stats.js

npm ERR! Linux 4.15.0-51-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs server
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls server
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/frank/Desktop/phac_project/doccano/app/server/static/npm-debug.log

Problem fixed when reverting to commit 0c1414348f856efc1631de7bb24e51160704ebc2

Building docker-compose services with a fresh clone reproduces the same issue.

@frankniujc Please update Node and npm version.

@mapx The docker-compose issue may be linked to an outdated volume (we cache pip dependencies and node modules in a volume to make subsequent restarts faster). Could you try clearing the volumes (e.g. with docker-compose down --volumes) and try starting the stack again?

@Hironsan My node version is 8.10.0 and my npm version is 3.5.2

@frankniujc Yes. I know your node and npm version from your stack trace. I think the version is somewhat outdated. So I want you to update their version.
FYI:

https://nodejs.org/en/download/releases/

@mapx The docker-compose issue may be linked to an outdated volume (we cache pip dependencies and node modules in a volume to make subsequent restarts faster). Could you try clearing the volumes (e.g. with docker-compose down --volumes) and try starting the stack again?

We met with the issue yesterday. There wasn't any cache volume before our first attempt, and we did remove all of them before we tried different configurations.

@mapx I can't reproduce the behavior you describe locally: everything works fine for me with doccano at ed2791ee with docker on Windows 10 + WSL. Could you share a stacktrace and/or repro steps?

@frankniujc Did you solve the problem?

@Hironsan Yes. Upgrade npm to 6.9.1 and the problem is solved.

I am having the same issue although I have latest stable version of npm and node:
npm run build
><EMAIL_ADDRESS>build /home/dcruzado/Documents/Programming/SBD/doccano/app/server/static
> webpack

Hash: 3f3cb212d08a02937088
Version: webpack 4.39.2
Time: 2564ms
Built at: 08/14/2019 8:24:26 PM
                          Asset      Size                        Chunks             Chunk Names
                     dataset.js   147 KiB                       dataset  [emitted]  dataset
           demo_named_entity.js  1.51 MiB             demo_named_entity  [emitted]  demo_named_entity
    demo_text_classification.js  1.49 MiB      demo_text_classification  [emitted]  demo_text_classification
            demo_translation.js  1.47 MiB              demo_translation  [emitted]  demo_translation
     document_classification.js   1.4 MiB       document_classification  [emitted]  document_classification
            download_seq2seq.js  1.13 MiB              download_seq2seq  [emitted]  download_seq2seq
  download_sequence_labeling.js  1.13 MiB    download_sequence_labeling  [emitted]  download_sequence_labeling
download_text_classification.js  1.13 MiB  download_text_classification  [emitted]  download_text_classification
                   guideline.js  1.18 MiB                     guideline  [emitted]  guideline
                       index.js   723 KiB                         index  [emitted]  index
                       label.js  1.21 MiB                         label  [emitted]  label
                    projects.js  1.08 MiB                      projects  [emitted]  projects
                     seq2seq.js  1.39 MiB                       seq2seq  [emitted]  seq2seq
           sequence_labeling.js  1.43 MiB             sequence_labeling  [emitted]  sequence_labeling
                       stats.js  1.03 MiB                         stats  [emitted]  stats
              upload_seq2seq.js  1.14 MiB                upload_seq2seq  [emitted]  upload_seq2seq
    upload_sequence_labeling.js  1.14 MiB      upload_sequence_labeling  [emitted]  upload_sequence_labeling
  upload_text_classification.js  1.14 MiB    upload_text_classification  [emitted]  upload_text_classification
Entrypoint dataset = dataset.js
Entrypoint demo_named_entity = demo_named_entity.js
Entrypoint demo_text_classification = demo_text_classification.js
Entrypoint demo_translation = demo_translation.js
Entrypoint document_classification = document_classification.js
Entrypoint download_seq2seq = download_seq2seq.js
Entrypoint download_sequence_labeling = download_sequence_labeling.js
Entrypoint download_text_classification = download_text_classification.js
Entrypoint guideline = guideline.js
Entrypoint index = index.js
Entrypoint label = label.js
Entrypoint projects = projects.js
Entrypoint seq2seq = seq2seq.js
Entrypoint sequence_labeling = sequence_labeling.js
Entrypoint stats = stats.js
Entrypoint upload_seq2seq = upload_seq2seq.js
Entrypoint upload_sequence_labeling = upload_sequence_labeling.js
Entrypoint upload_text_classification = upload_text_classification.js
[./pages/dataset.js] 333 bytes {dataset} [built]
[./pages/demo_named_entity.js] 540 bytes {demo_named_entity} [built]
[./pages/demo_text_classification.js] 564 bytes {demo_text_classification} [built]
[./pages/demo_translation.js] 456 bytes {demo_translation} [built]
[./pages/document_classification.js] 297 bytes {document_classification} [built]
[./pages/download_seq2seq.js] 195 bytes {download_seq2seq} [built]
[./pages/download_sequence_labeling.js] 232 bytes {download_sequence_labeling} [built]
[./pages/download_text_classification.js] 240 bytes {download_text_classification} [built]
[./pages/guideline.js] 233 bytes {guideline} [built]
[./pages/index.js] 744 bytes {index} [built]
[./pages/label.js] 157 bytes {label} [built]
[./pages/projects.js] 171 bytes {projects} [built]
[./pages/seq2seq.js] 197 bytes {seq2seq} [built]
[./pages/sequence_labeling.js] 273 bytes {sequence_labeling} [built]
[./pages/stats.js] 154 bytes {stats} [built]
    + 162 hidden modules

ERROR in ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve 'vue-chartjs/es/BaseCharts/Doughnut' in '/home/dcruzado/Documents/Programming/SBD/doccano/app/server/static/components'
 @ ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&) 36:0-58 76:11-19
 @ ./components/stats.vue?vue&type=script&lang=js&
 @ ./components/stats.vue
 @ ./pages/stats.js

ERROR in ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve 'vue-chartjs/es/BaseCharts/HorizontalBar' in '/home/dcruzado/Documents/Programming/SBD/doccano/app/server/static/components'
 @ ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&) 35:0-68 41:11-24
 @ ./components/stats.vue?vue&type=script&lang=js&
 @ ./components/stats.vue
 @ ./pages/stats.js

ERROR in ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve 'vue-chartjs/es/mixins/reactiveProp' in '/home/dcruzado/Documents/Programming/SBD/doccano/app/server/static/components'
 @ ./components/stats.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./components/stats.vue?vue&type=script&lang=js&) 37:0-62 43:11-23 78:11-23
 @ ./components/stats.vue?vue&type=script&lang=js&
 @ ./components/stats.vue
 @ ./pages/stats.js
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR<EMAIL_ADDRESS>build: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


Filter that changes tag

Rather than problem, I have a question. Is there a way to modify event's tag without re-issuing it to the whole processing pipeline as rewrite_tag_filter does?
I have a pipeline where at the end I need to change tag to certain value from record itself so that influxdb plugin stores it into given measurement (it uses tag for this). This value is variable, so I cannot use it for routing. Influxdb plugin for fluentd claims it supports remove_tag_prefix, which would suffice, but that seems to be not working.

Influxdb plugin for fluentd claims it supports remove_tag_prefix, which would suffice, but that seems to be not working.

Umm, fluent-plugin-influxdb's document is outdated.
And don't use github issue for quesiton. Please follow guideline.
Please consider to send your question slack or ML first.


WalletConnect is not working in the 3.34(417)

Scan QR
QR disappear without confirming on mobile
wallet is not connected
later wallet asks to scan again

@zhangzhongnan928 I have seen this a few times but can't reproduce. When this happens, can you try this:

Scan a new WalletConnect QR code. Does it work?
If it doesn't, kill the app and try to scan a new WalletConnect QR code again. Does it work?

this is different, I have never experienced it before.
QR disappear without confirming on mobile previously QR code won't disappear
The same sites work well with the app store version.

Closing. Should work now


Move the QGB module constants to a specific consts package

Move the QGB module constants to a specific consts package as discussed in https://github.com/celestiaorg/celestia-app/pull/257#discussion_r838303008

Can I work on this @SweeXordious ?

per sync discussion, this issue can be closed since most of these constants have been removed from the state machine


Resolve errno to meaningful string

This fixes santigimeno/node-ioctl#5

@cstruct Hi! thanks for the contribution.
I understand your reasoning, but I'm not too sure if this is the correct approach. I think having the exact code errno value can be very useful from a logical point of view: you can perform some actions when certain errno is returned, whilst using a string for this can be more tricky. Maybe returning an error object with the typical nodejs format is a better option. Something like this:
{
  code: 'EIVALDO',
  msg: 'Invalid domain',
  errno: 148
}

What do you think?

I think that's a much better solution. Although when thinking about this I think it would be better to do a more major API change. This since this would be a breaking change either way.
If one looks at synchronous core APIs they never return a code or a Error. I think this should have no return value but throw on Error, return Nan::ThrowError(Nan::ErrnoException(errno, NULL, NULL, NULL));.
Or would this be too major of a change?

Change the first NULL to the string "ioctl", then that will show up under the syscall property of the error...

The change itself LGTM. I'm on the fence on this though. IMHO, returning the error would not be as a breaking change as just throwing. I'm going to ping the known dependents for their input.
FWIW I'm +1 on this change.
/cc @denghongcai @joeferner @omeryagmurlu @brghena @abresas

I forgot. Modifications in the README and examples would be needed

When reading up a bit more on ioctl I can see my approach here is a bit naive.

Decent ioctls return 0 on success and -1 on error, while any output
value is stored via the argument.  However, quite a few ioctls in
fact return an output value.
— IOCTL_LIST(2)

The current approach I take ignores the case of actual return values from ioctl. I will take another stab at this.

@santigimeno: Care to re-review?

I no longer ignore ioctl return value.
API is a lot closer to the current (Almost identical to the old except for resolved errno message?)
Added a basic API documentation

LGTM. Could you squash it into a single commit? Thanks!!!

Landed in https://github.com/santigimeno/node-ioctl/commit/349a9bca704021039e5c46f57fe988ba0e9baa78.
Published as 2.0.0. Thanks @cstruct !


Documentation: how to call hooks

https://github.com/freebsd/poudriere/wiki/hooks
This page suggests that the top that the hook file should be named HOOKNAME.sh when in fact it should be lowercase.
Also, it does not explain that the event is sent as the first parameter ($1) to the script. Perhaps an example would make everything clear.

Also it should be noted that putting
#!/usr/local/bin/bash

at the top of the hook doesn't cause it to be run by bash. poudriere isn't running the hook as an executable but rather hardcoding it to run only from sh.


Add hoomd2 support, with tutorials

Just want to get this started. I'm sure there is some code cleanup that needs to be done.

Looks like it's coming along. Just make sure to tidy up all the stray comments and polish up code to be PEP8 compliant.


Lie tensor conversion

Hey there, I run the following test:
twist_a = torch.tensor([1, 2, 3, 4, 5, 6]).float()
twist_b = torch.tensor([1, 2, 4, 4, 5, 6]).float()
twist_c = torch.tensor([1, 2, 3, 4, 5, 8]).float()

the difference between twist a and b is the third coordinate in the "rotation" part of the twist, and the difference between twist a and c is in the 6th coordinate of the "translation" part of the twist.
However, when I call:
pp.LieTensor(twist_a, ltype=pp.se3_type).matrix()
pp.LieTensor(twist_b, ltype=pp.se3_type).matrix()

the difference between matrices is not only in rotation but also in translation.
When I call:
pp.LieTensor(twist_a, ltype=pp.se3_type).matrix()
pp.LieTensor(twist_c, ltype=pp.se3_type).matrix()

the difference between matrices is not only in translation but also in rotation.
I was wondering, why when I convert a twist to a transformation matrix, the rotation and translation components are not independent?
Another question is for quaternions, what is the format that you use? From lietensor.py I see that it's (t, q), but for q what's the order: (qx qy qz qw) or (qw qx qy qz)?

Hi, you called se3 not SE3. You can refer to Log and Exp to see the relation between Lie Algebra and Lie Group. I guess you want Lie Group (SE3).
If you want to covert Euler angles to SO3, you may need euler2SO3.
The documentation for quaternions is here.
Here is a sample code:
import torch, pypose as pp

euler = torch.tensor([4, 5, 6], dtype=torch.float32)
SO3 = pp.euler2SO3(euler)
trans = torch.tensor([1, 2, 3], dtype=torch.float32)
SE3 = pp.SE3(torch.cat([trans, SO3]))
print(SE3)

SE3Type LieTensor:
LieTensor([ 1.0000,  2.0000,  3.0000,  0.7563,  0.1438,  0.5858, -0.2533])

The short answer is that the rotation and translation are independent in the representation of Lie Group, and look not independent in Lie Algebra because their relationship is (y is Lie Group)


Create tool to ingest NDJSON assets representation into the Elide API

The goal is to have a tool which can accomplish thin - we will need to re-write identifiers, and preserve relationships among the PASS entities. Initially this will be applied to the minimal assets test data, but the same process should work with the prod data.

This is complete, pending any issues which may arise during testing with the demo


Implement a native transfer workflow for GCS to Snowflake

Please describe the feature you'd like to see

Implement the logic for native transfer for SnowflakeDataProvider.
Add -native transfer implementation for GCS to Snowflake
Add example DAG
Add tests with 90% coverage

Acceptance Criteria

[ ] All checks and tests in the CI should pass
[ ] Unit tests (90% code coverage or more, once available)
[ ] Integration tests (if the feature relates to a new database or external service)
[ ] Example DAG
[ ] Docstrings in reStructuredText for each of  methods, classes, functions and module-level attributes (including Example DAG on how it should be used)
[ ] Exception handling in case of errors
[ ] Logging (are we exposing useful information to the user? e.g. source and destination)
[ ] Improve the documentation (README, Sphinx, and any other relevant)
[ ] How to use Guide for the feature (example)

Closing since the PR https://github.com/astronomer/apache-airflow-provider-transfers/pull/42 implements the feature.