Data not updated

Somehow the data isn't updated anymore. Last sync was almost a month ago: https://github.com/fluttertools/fvm/commit/c9e2fd0e8f54bccf502b461d894d067de8429955

Thanks @provokateurin that has been fixed, it had to do with write permissions on the branch.


Update page title and badge on website

Codecov Report

Merging #19 (878f42a) into master (381d529) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #19   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

Continue to review full report at Codecov.

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


Manual notify exception

This PR aims to implement the ability to manually send an exception. It's a first try so feel free to discuss / suggest whatever you want. Actually, there are a few things to discuss to set a direction to go.
To do / discuss

The manual exceptions are always sending an empty stacktrace for now
I added an extra check to see if we are on the router when defining handle_errors. I don't like it too much but I think it covers most of the cases (it doesn't cover if the user defines a module ending in .Router)
I changed the configuration so that it is read from the application environment, since now we can do use BoomNotifier anywhere and with the current implementation it would be necessary to always write it

But maybe the user wants different settings in different places or am I crazy?
Update tests if we keep this change
Update readme if we keep this change

Do we want to always send the conn object or do we want to be more open to any elixir code and just send the exception without much more information?
I defined a new manual_notify_error callback, but maybe it is better to have only one notify_error that handles all cases?

The manual exceptions are always sending an empty stacktrace for now

I think we can send (or teach the user to send) the stacktrace from the rescue block, using STACKTRACE/0.

I changed the configuration so that it is read from the application environment, since now we can do use BoomNotifier anywhere and with the current implementation it would be necessary to always write it

But maybe the user wants different settings in different places or am I crazy?

I think it is fair to have a unique global configuration, so we have no other choice :)


Missing Dataverse upload schema

Expected Behavior
It should be possible to create an Dataverse object from a JSON file, such as this example file.
Current Behavior
The following error is thrown:

FileNotFoundError: [Errno 2] No such file or directory: 'schemas/json/dataverse_upload_schema.json'

Possible Solution
Include Dataverse schema
Steps to Reproduce
napi = NativeApi(base_url=url, api_token=token)
dv = Dataverse()

with open('dataverse.json') as dataverse:
    data = json.load(dataverse)
    dv.set(data)
    try:
        napi.create_dataverse(identifier=dv.alias, metadata=dv.to_json())

        # Uploading the file directly works, though
        #napi.create_dataverse(identifier=dv.alias, metadata=data)
    except OperationFailedError:
        print("Dataverse already created")

Context (Environment
Branch - develop
Commit hash -  3b040ff23b665ec2650bebcf4bd5478de6881af0
Environment  - macOS using Pipenv

This also seems to be a probem with Dataset objects. I tried to create a new Dataset with the demo file dataset-finch1-json and upload it. Same setup and context as before.
ds1 = Dataset()

with open(dataset1) as df:
    ds1.from_json(df.read())
    resp = napi.create_dataset(dataverse=alias, metadata=ds1.to_json())
    print(resp.text)

The error thrown is:

FileNotFoundError: [Errno 2] No such file or directory: 'schemas/json/dataset_upload_default_schema.json'

Facing this issue, any workaround?

@memetics19 yes, if you deactivate validation, the missing schema file is not called. e.g. .to_json(validate=False).
@dmelichar do you know, how you installed pyDataverse? I have checked, and the file is in the respective place inside the repo, but it is in the repo root directory. So my first guess is, cause the path is relative, that it must be inside the pydataverse folder src/pyDataverse/. So depending on how you install the package, it maybe is not using the repo root as the current working directory or it looks for it inside the src/pyDataverse directory, which only holds the Python files.

Fix: 6c53b0f


Hotrod ui doesn't launch correctly when using go get

The hotrod UI 404s with the following
go get github.com/uber/jaeger/examples/hotrod && hotrod all

This is not how we're recommending launching it. See README in there.


[improve][doc] Use Text Blocks to improve JSON text

Motivation
The JSON text has a lot of escape characters, we can use Text Blocks to improve it.
Modifications
Use Text Blocks to improve JSON text
Need to update docs?

[ ] doc-required
(Your PR needs to update docs and you will update later)

[ ] doc-not-needed
(Please explain why)

[x] doc
(Your PR contains doc changes)

[ ] doc-complete
(Docs have been already added)

Could you use " instead of '?

Could you use " instead of '?

OK.

@nodece PTAL

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

Overall job is optional, so you don't need to rerun the failure job.

This is a good start, but we may need to note that this change does not benefit the cherry-pick operations, the old version doesn't support this syntax.

/pulsarbot run-failure-checks

Overall job is optional, so you don't need to rerun the failure job.

It seems "Pulsar CI / Pulsar CI checks completed" be dependent on other tasks.

@momo-jun PTAL

@momo-jun PTAL

I just notice this is for example shown on the doc. It can be a concern that leading whitespace may cause margin error. But fortunately Java text block detect margin by the close """ and these changes should be fine. See also https://docs.oracle.com/en/java/javase/15/text-blocks/index.html.

Cool! Glad to see we gradually use new features beyond JDK11.
Out of the topic, we may be careful about using some new features like var - they will cause significant style inconsistency.

@tisonkun Another PR(#17296) also uses Text Blocks to improve doc annotation, please take a look, thanks!


Add document data generator

This feature needs some new packages. So I added some dependencies in pyproject.toml and generated poetry.lock file as well.


support brush at 3.x

G2 Version:
Platform:
Mini Showcase(like screenshots):
CodePen Link:

Done.
More details: https://github.com/antvis/g2-brush


Available CRDs check feature

Changes

Update the storageCluster controller to react whenever a create/delete event has been enqueued for a specific CRD that's become newly available.
Exit the ocs-operator process with a specific exit code whenever a new card of interest is being created or deleted
Catch the exit code with a bash script and restart the ocs-operator process
Conditionally watch the ClusterClaim CRD from the ocsinit controller

/retest-required

/retest-required

/lgtm


chore: use jsuri in favor of window.url to support older browsers

I remade #42. I could not figure out that error. This one works.
Fixes #41
(there are other issues in ie 11, mostly around img elements having a default width and height, which breaks the tests where the image should fill its container. I will write up sep ticket)
Tests pass in Safari 9 (which was the original reason I wrote this up)

Great stuff @Duder-onomy, merge when you're ready


System.UriFormatException when running on Linux

I have attempted to upgrade an existing Azure Functions application to use this new isolated model.
It runs fine on my Windows development machine. But when I deploy it to the Function Application in Azure, it fails during startup with this exception:
Unhandled exception. System.UriFormatException: Invalid URI: The hostname could not be parsed.
The App Service Plan in question is Linux based.
Stack trace:
2021-04-20T19:28:35.412 [Information] Unhandled exception. System.UriFormatException: Invalid URI: The hostname could not be parsed.
2021-04-20T19:28:35.418 [Information] at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
2021-04-20T19:28:35.418 [Information] at System.Uri..ctor(String uriString)
2021-04-20T19:28:35.418 [Information] at Grpc.Net.Client.GrpcChannel.ForAddress(String address, GrpcChannelOptions channelOptions)
2021-04-20T19:28:35.418 [Information] at Microsoft.Extensions.DependencyInjection.GrpcServiceCollectionExtensions.<>c.<AddGrpc>b__1_1(IServiceProvider p) in D:\a\1\s\src\DotNetWorker.Grpc\GrpcServiceCollectionExtensions.cs:line 58
2021-04-20T19:28:35.419 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
2021-04-20T19:28:35.419 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2021-04-20T19:28:35.419 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2021-04-20T19:28:35.419 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2021-04-20T19:28:35.419 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2021-04-20T19:28:35.419 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2021-04-20T19:28:35.419 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2021-04-20T19:28:35.419 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2021-04-20T19:28:35.420 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2021-04-20T19:28:35.420 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2021-04-20T19:28:35.421 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2021-04-20T19:28:35.421 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2021-04-20T19:28:35.421 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
2021-04-20T19:28:35.457 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
2021-04-20T19:28:35.457 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2021-04-20T19:28:35.457 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
2021-04-20T19:28:35.457 [Information] at Microsoft.ExtensioneScope scope)
2021-04-20T19:28:35.457 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
2021-04-20T19:28:35.457 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
2021-04-20T19:28:35.457 [Information] at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
2021-04-20T19:28:35.458 [Information] at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
2021-04-20T19:28:35.458 [Information] at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
2021-04-20T19:28:35.458 [Information] at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
2021-04-20T19:28:35.458 [Information] at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
2021-04-20T19:28:35.458 [Information] at MyApp.Functions.Program.Main() in /home/vsts/work/1/s/MyApp.Functions/Program.cs:line 20cyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
2021-04-20T19:28:35.457 [Information] at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
2021-04-20T19:28:35.457 [Information] at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
2021-04-20T19:28:35.458 [Information] at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
2021-04-20T19:28:35.458 [Information] at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
2021-04-20T19:28:35.458 [Information] at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
2021-04-20T19:28:35.458 [Information] at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
2021-04-20T19:28:35.458 [Information] at MyApp.Functions.Program.Main() in /home/vsts/work/1/s/MyApp.Functions/Program.cs:line 20

Is there a way to work around this? 🙂

This seems to be caused by me deploying via an Azure DevOps release pipeline. It works when deploying with the SDK. I guess it's just a matter of waiting for the tools to be updated?

What is / is there the fix for this?
I have a function deployed in a container to AKS and it's getting the same error.
This is deployed via pulumi (IaC), not by func kubernetes deploy.


Create  with headLink() helper

Is there the possiblity to use headLink method for build a <link rel='preload'...> tag?  I've been trying use it but it didn't add the proprieties as=font and crossorigin.
More information about preload: https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content

Hello @tcelestino
Are you using the last release (2.10.0)?
Using as is allowed since this release with PR #138.
Can you provide an example on how you are trying to use it?

@thomasvargiu, the project doesn't use the last release because that is old project. 😢
<?php headLink({'rel': 'preload', 'href': 'urlfont', 'as': 'font', 'crossorigin': 'true', 'type': 'font/woff'}); ?>

Thank for you help.


Alias resetting after reboot

Using the latest version of mvc, mvp, and mvi; I noticed that when I am configuring prefixes and aliases with mv config and mvm set respectively and then go to restart my server the alias gets deleted and the prefix goes back to the world name.
This is what I'm doing so far:
/mvm set alias HUB
/mvm set style bold
/mvm set color lightpurple
/mv config prefixchatformat [%world%]%chat% (default)
Whereafter I confirm by typing in chat that it is indeed working showing in purple [HUB], but then as I go and restart my server and relog the alias and colors are gone. Returning to normal white text
Could someone help me with this? I tried searching before but have found no one with this issue.

Can you try and change the alias while server is off, under world.yml file alias: <name>.
Also make sure you are using a multiverse version compatible with your server version.

Closing this as no one seems to be able to reproduce the issue. If you still face issues, you can open a new issue or come to our discord at https://discord.gg/NZtfKky


Demonstrate usage of FirebaseFirestore.runBatch() method

Starting in version 18.2.0, the Cloud Firestore Android SDK includes a FirebaseFirestore.runBatch() method which executes a batchFunction on a new WriteBatch and then commits all of the writes made by that batchFunction.

@samtstern I agree the old one was cleaner. That's actually the reason why I committed the java code separately. :)
Thanks!


[Tooltip] title prop doesn't render HTML

When a Tooltip's title prop contains HTML tags, shouldn't those tags be respected?
This:
title = "

Special Characters: At least 1 of the following:  ! @ ~ % + = $ ^ # |
Numbers: At least 1
Lower Case Letters: At least 1
Password Length: At least 8 characters
Upper Case Letters: At least 1

"
      <Tooltip         title={title}       >
Results in this:

Password *
<input aria-invalid="true" class="MuiInputBase-input MuiInput-input MuiInputBase-inputAdornedEnd" name="password" placeholder="Password" required="" type="password" data-testid="password" value="">
<button class="MuiButtonBase-root MuiIconButton-root" tabindex="0" type="button" aria-label="Toggle password visibility"><svg class="MuiSvgIcon-root" focusable="false" viewBox="0 0 24 24" aria-hidden="true" role="presentation"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path></svg></button>

Need 1 special character(s): ! @ ~ % + = $ ^ # |

Tip: check the HTML demo of https://material-ui.com/components/tooltips/#customized-tooltips

Il y a toujours un moyen :). Merci, Olivier.

This didn't work. https://codesandbox.io/s/material-demo-forked-333l5
When we embed the entire HTML in title it works fine but when we embed a variable containing string html content it doesn't work. Any help would be appretiated.
title={<React.Fragment>{msg}</React.Fragment>}>

@IndranilBasu See https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml, if you need more details, please ask on StackOverflow.

This didn't work.
You need to put your html string in a div like:

<Tooltip title={
}>
  <Button>HTML</Button>
</Tooltip>

This didn't work.

You need to put your html string in a div like:
<Tooltip title={
}>
  <Button>HTML</Button>
</Tooltip>

This worked for me. But it removed all the styling


rename configuration of securityToken

Description
rename configuration of tokenRequired to RequireHTTPBasicAuth and token to HTTPBasicAuthBase64Credential

That would be misleading because we are not using http basic authentication, it is just string matching the Authorization: field value as-is

removed by #37


use jquery with witchcraft?

I'm loving witchcraft so far!
I'd like to use jquery in my witchcraft js files. Is this possible?

EDIT: Dang! Another classic RTFM blunder on my part...! :p
Found the answer at: https://github.com/luciopaiva/witchcraft/pull/9/files
Sorry: I can't figure out how to delete my question here... so I've just updated it to include the answer.
~Jeff.

Hey @johnJeff55, no problem!
Sorry I took so long to answer back, it's been a bit busier than usual here these past weeks.
Great that you solved it :-)

Btw @johnJeff55, I noticed the blunder was actually on my part, since that documentation you found is buried in an old commit. I have just rewritten part of the home page to include more information on how to use Witchcraft and also added your question to the FAQ. Thanks for pointing that out!

Thanks @luciopaiva. Glad I could help! :) I’m very keen on Witchcraft –
especially as a tool to give visually-impaired people fine-grained,
site-by-site control of their browser displays. (Please see my Witchcraft
review on your Chrome-Store page. :)
I’d be happy to help move the Witchcraft project forward – with additional
documentation, demo’s, promo, ‘help-desk’ functions & other such
donkey-work… and I’d be downright ecstatic if it turned out that the
possibility of a deeper (project) dive into Witchcraft's ‘visually-impaired
use-case’ potentials captured your imagination! :)
(Both my family situation, and my previous experience as a project/grant
development consultant to ngo’s in Canada strongly suggest that you’re
really onto something here... I mean, something that might really matter to
real people in their day-to-day lives!)
Anyway, thanks again for your ‘Btw’ response, and please let me know if
you’d like to explore some of the possibilities here.
Best regards,
Jeff.
On Sat, May 4, 2019 at 7:52 AM Lucio Paiva<EMAIL_ADDRESS>wrote:

Btw @johnJeff55 https://github.com/johnJeff55, I noticed the blunder
was actually on my part, since that documentation you found is buried in an
old commit. I have just rewritten part of the home page to include more
information on how to use Witchcraft and also added your question to the
FAQ. Thanks for pointing that out!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/luciopaiva/witchcraft/issues/16#issuecomment-489333836,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKFPOD37YBS3HMGAEBMQL3DPTWPMFANCNFSM4HHMHAKA
.


RTS/DTR toggling during -s serial session

Add support for toggling the RTS and the DTR signals passed to the FDTI card either directly of via TCP. Perhaps r and d could be used. This would offer the ability to halt the running code by placing the LPC into reset.

The ability to connect to the LPC without triggering a reset would also be very useful.

Could be done similar to PicoCom - ctrl-p pulses DTR and ctrl-t toggles it. Perhaps with ctrl-r to pulse RTS for a reset (no need for a toggle, I think).

Toggle for RTS would I guess allow us to told the processor in reset - not executing code.
Best Regards, John.

On 27 Mar 2015, at 19:30, Jean-Claude Wippler<EMAIL_ADDRESS>wrote:
Could be done similar to PicoCom - ctrl-p pulses DTR and ctrl-t toggles it. Perhaps with ctrl-r to pulse RTS for a reset (no need for a toggle, I think).
—
Reply to this email directly or view it on GitHub.

Ok, that suggests ctrl-o (off). Could indeed be of use.


Fixes #9705: Forgot to change reference version in paren-pom for 4.1

https://www.rudder-project.org/redmine/issues/9705

PR rebased

OK, merging this PR


SQL String generation for put and save can fail

This is because of the bad conversion from object to string. None object will not be recognised.

With this code:
record = self.relational_table.get(self.first_relational)
record['height'] = None
self.relational_table.save(record)
record = self.relational_table.get(self.first_relational)
self.assertEqual(None, record['height'])

This can happen:
Error
Traceback (most recent call last):
  File "/Users/cansik/Projects/pg2nosql/test/PostgresNoSQLTableTest.py", line 89, in test_save_relational_with_none
    self.relational_table.save(record)
  File "/Users/cansik/Projects/pg2nosql/pg4nosql/PostgresNoSQLTable.py", line 55, in save
    json.dumps(data), AsIs(relational_data_sql), object_id))
  File "/Library/Python/2.7/site-packages/psycopg2/extras.py", line 223, in execute
    return super(RealDictCursor, self).execute(query, vars)
DataError: invalid input syntax for type real: "None"
LINE 1: ...{"color": "blue", "items": 3}' , age='24', height='None', na...


[Question] optional fields in openapi body from dataclass vs validate

Description
Not sure if it's related to sanic-ext at all or just missing understanding of dataclasses on my side ;)
I'm trying to describe and validate a json body w/ optional parameters.
from dataclasses import dataclass
from typing import List, Optional
from sanic import Sanic
from sanic.response import json
from sanic_ext import openapi, validate

app = Sanic("Test")

@dataclass
class Test:
    foo: str
    bar: int
    foobar: Optional[List[str]]

@app.post("/")
@openapi.body({"application/json": Test})
@validate(Test)
async def test(request, body: Test):
    return json({"message": "Hello world!"})

This renders as request body describing foobar as object or nullable.

Validation now fails when foobar is omitted (correct so far)
$ curl -d '{"foo": "string", "bar": 1337}' http://<IP_ADDRESS>:8000/
{"description":"Bad Request","status":400,"message":"Invalid request body: Test. Error: missing a required argument: 'foobar'"}

Now, if i set a default for foobar like

@dataclass
class Test:
    foo: str
    bar: int
    foobar: Optional[List[str]] = None

the request works as expected:
$ curl -d '{"foo": "string", "bar": 1337}' http://<IP_ADDRESS>:8000/
{"message":"Hello world!"}

But now API docs renders as object without nullable:

Question
How can i combine the two? Show foobar as nullable in docs and pass validation w/ parameter omitted?
Do i need 2 seperate dataclasses?
Also, is it possible to show foobar as list of strings in the docs instead of object (derives from Optional, i guess).
Versions

sanic 21.12.0
sanic-ext 21.12.3

I think it ultimately is a bug in need of fixing to properly read more information from the dataclass if it is available.

:partying_face: It works, thank you!
I do have another corner case where a request does have only one optional parameter.
Example:
from dataclasses import dataclass, field
from typing import Optional
from sanic import Sanic
from sanic.log import logger
from sanic.response import json
from sanic_ext import openapi, validate

app = Sanic("Test")

@dataclass
class Test:
    bar: Optional[str] = field(default_factory=str)

@app.post("/")
@openapi.body({"application/json": Test})
@validate(Test)
async def test(request, body: Test):
    return json({"message": "Hello world!"})

If i omit the body completely, the validation fails again due to the request does not have a body (None):
$ curl -X POST http://<IP_ADDRESS>:8000/
{"description":"Bad Request","status":400,"message":"Invalid request body: Test. Error: Value 'None' is not a dict"}

Stacktrace:
[2022-01-21 13:33:53 +0100] [30740] [ERROR] Exception occurred while handling uri: 'http://<IP_ADDRESS>:8000/'
Traceback (most recent call last):
  File "/home/morph/python3/lib/python3.10/site-packages/sanic_ext/extras/validation/validators.py", line 24, in validate_body
    return validator(model, body)
  File "/home/morph/python3/lib/python3.10/site-packages/sanic_ext/extras/validation/validators.py", line 36, in _validate_annotations
    return check_data(model, body, schema, allow_multiple, allow_coerce)
  File "/home/morph/python3/lib/python3.10/site-packages/sanic_ext/extras/validation/check.py", line 83, in check_data
    raise TypeError(f"Value '{data}' is not a dict")
TypeError: Value 'None' is not a dict

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    )
  File "/home/morph/python3/lib/python3.10/site-packages/sanic_ext/extensions/openapi/openapi.py", line 213, in handler
    retval = await retval
  File "/home/morph/python3/lib/python3.10/site-packages/sanic_ext/extras/validation/decorator.py", line 37, in decorated_function
    await do_validation(
  File "/home/morph/python3/lib/python3.10/site-packages/sanic_ext/extras/validation/setup.py", line 41, in do_validation
    validation = validate_body(validator, model, data)
  File "/home/morph/python3/lib/python3.10/site-packages/sanic_ext/extras/validation/validators.py", line 26, in validate_body
    raise ValidationError(
sanic_ext.exceptions.ValidationError: Invalid request body: Test. Error: Value 'None' is not a dict

Passing an empty body works:
$ curl -X POST -d '{}' http://<IP_ADDRESS>:8000/
{"message":"Hello world!"}

Any way to specify a fallback for a None body?

Ah, nevermind, read through the docs again and found a convenient way to create a dummy body using a middleware.
from dataclasses import dataclass, field
from typing import Optional

from sanic import Sanic
from sanic.response import json
from sanic_ext import openapi, validate

app = Sanic("Test")

@dataclass
class Test:
    bar: Optional[str] = field(default_factory=str)

@app.middleware("request")
async def dummy_body_if_empty(request):
    if not request.body:
        request.body = b'{}'

@app.post("/")
@openapi.body({"application/json": Test})
@validate(Test)
async def test(request, body: Test):
    return json({"message": "Hello world!"})


Cannot enable variations

I see a variations tab, and can add items here, but when saving a variation, the item always says "You can choose variation attributes after saving for the first time, if they exist."  Saving doesn't allow for attributes to be added.  It simply doesn't appear that variations has been properly enabled.  Please advise how to do this.
Thanks

You have to set up some attribute types (e.g. Color, Size, etc) under Catalog > Attributes first, then you need to enable on or more of those attributes to the product you're creating, THEN you'll be able to set them up for a particular variation.

Updated the user documentation. It can be found here: https://github.com/silvershop/silvershop-core/blob/2.0/docs_user/en/ProductVariations.md


Request: Handle captured-request-headers passed to wrap-server-span even when create-span? is false

Currently steffan-westcott.clj-otel.api.trace.http/wrap-server-span only uses captured-request-headers when create-span? is passed:
   (cond-> handler
     :always            (wrap-bound-context)
     create-span?       (wrap-new-server-span create-span-opts)
     create-span?       (wrap-server-request-attrs create-span-opts)
     (not create-span?) (wrap-existing-server-span))

It would be nice if wrap-server-span / steffan-westcott.clj-otel.api.trace.http/wrap-server-request-attrs would capture the request headers either way. Maybe through some variant of steffan-westcott.clj-otel.api.trace.http/server-request-attrs that does not set all attributes, but do only this last part of it:
(cond-> ,,,
      captured-request-headers
      (merge-headers-attrs "http.request.header." captured-request-headers headers))

The alternative is setting the system property otel.instrumentation.http.server.capture-request-headers or environment variable OTEL_INSTRUMENTATION_HTTP_SERVER_CAPTURE_REQUEST_HEADERS that the OpenTelemetry Java Agent understands: https://opentelemetry.io/docs/languages/java/automatic/configuration/#capturing-http-request-and-response-headers

When using the middleware wrap-server-span, the appropriate setting for create-span? is dictated by the presence of the OpenTelemetry instrumentation agent:

If the application is run with the agent, create-span? should be set to false
If the application is run without the agent, create-span? should be set to true

When using the agent, it should be configured as described in the documentation. The operation and configuration of the agent is outside the scope of clj-otel, as it is not part of the OpenTelemetry API. The agent is responsible for creating server spans for supported HTTP servers. As you have noted, part of this configuration specifies which request headers are captured as attributes on the server span. When using the agent, it creates the server span with the desired header attributes, clj-otel has no control over this.
In your scenario, create-span? is false and (for correct operation) the application is run with the agent. The agent will create server spans, and the agent configuration specifies which headers are added. clj-otel has no influence on agent operation.


Error when adding option (aka Trigger in Tradingview)

Trying to add the option Once Per Bar to the alerts. However, I am met with the following error message:
ERROR  No fire rate 'option' available, but one was specified in alert configuration: Once Per Bar
Confirmed that I am running version 3.0.0. Likely an update that Tradingview made to the trigger section. It is no longer a dropdown menu.

hi there, thanks for the report - should be fixed in 3.0.1


[web] Getting error in javascript to parse arguments sent during Navigation.push

When I try to push a new route with some complex arguments object , i get error only when running as a web app . On running it as a normal app , it works fine. :/
NavigationService.instance.pushNamed(
      "/myRoute",
      arguments: OtpScreenArgs(
        mobileNumber: mobile,
        categoryId: 23,
        onValidated: (
            {@required String sessionToken,
            @required String validationToken}) async {
          FlutterLogger.instance.d(
              'Validating OTP :  Vendor input =  ${user.toString()} , sessionToken = $sessionToken , validation token = $validationToken');
          CreditScoreNativeBridge.instance
              .initCartReview(
              validationToken: validationToken,
              sessionToken: sessionToken,
              vendorInput: user)
              .then((e) {
              NavigationService.instance.popNativeAware();
          });
        },
      ),
    );

This is the error i get when the above statement executes :
dart_sdk.js:5355 Uncaught (in promise) Error: Converting object to an encodable object failed: Instance of 'OtpScreenArgs'
    at Object.throw_ [as throw] (dart_sdk.js:4070)
    at convert._JsonStringStringifier.new.writeObject (dart_sdk.js:49453)
    at Function.printOn (dart_sdk.js:49685)
    at Function.stringify (dart_sdk.js:49675)
    at JsonEncoder.convert (dart_sdk.js:49108)
    at JsonCodec.encode (dart_sdk.js:49053)
    at app.WidgetsApp.new.generateRoute (core_router.dart:23)
    at app._WidgetsAppState.new.[_onGenerateRoute] (app.dart:999)
    at navigator$.NavigatorState.new.[_routeNamed] (navigator.dart:2169)
    at navigator$.NavigatorState.new.pushNamed (navigator.dart:2221)
    at pushNamed (navigation_service.dart:30)
    at pushNamed.next (<anonymous>)
    at runBody (dart_sdk.js:41566)
    at Object._async [as async] (dart_sdk.js:41594)
    at navigation_service.NavigationService.__.pushNamed (navigation_service.dart:22)
    at form_submitter.LandingFormSubmitter.new.submitForm (form_submitter.dart:47)
    at ink_well.InkWell.new.<anonymous> (landing_screen_form.dart:153)
    at _InkResponseState.new.[_handleTap] (ink_well.dart:779)
    at ink_well.dart:862
    at tap.TapGestureRecognizer.new.invokeCallback (recognizer.dart:182)
    at tap.TapGestureRecognizer.new.handleTapUp (tap.dart:486)
    at tap.TapGestureRecognizer.new.[_checkUp] (tap.dart:264)
    at tap.TapGestureRecognizer.new.acceptGesture (tap.dart:236)
    at arena.GestureArenaManager.new.sweep (arena.dart:156)
    at binding$5.WidgetsFlutterBinding.new.handleEvent (binding.dart:222)
    at binding$5.WidgetsFlutterBinding.new.dispatchEvent (binding.dart:198)
    at binding$5.WidgetsFlutterBinding.new.[_handlePointerEvent] (binding.dart:156)
    at binding$5.WidgetsFlutterBinding.new.[_flushPointerEventQueue] (binding.dart:102)
    at binding$5.WidgetsFlutterBinding.new.[_handlePointerDataPacket] (binding.dart:86)
    at _engine.PointerBinding.__.[_onPointerData] (dart_sdk.js:142635)
    at dart_sdk.js:142972
    at dart_sdk.js:142937
    at HTMLElement.<anonymous> (dart_sdk.js:142715)

This is my NavigationService class :
class NavigationService {
  static final GlobalKey<NavigatorState> _navigatorKey =new GlobalKey<NavigatorState>();

  NavigationService._();

  static NavigationService _instance;

  static NavigationService get instance {
    if (_instance == null) {
      _instance = NavigationService._();
    }
    return _instance;
  }

  static GlobalKey<NavigatorState> get navigatorKey => _navigatorKey;

  Future<void> pushNamed(String routeName,
      {dynamic arguments, bool fromNative = false}) async {
    NucleiNavigator.instance.push(routeName, fromNative: fromNative);
    if (_navigatorKey.currentState == null) {
      WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
        _navigatorKey.currentState.pushNamed(routeName, arguments: arguments);
      });
    } else {
      await _navigatorKey.currentState.pushNamed(
          routeName, arguments: arguments);
    }
  }
}

Hi @nateshmbhat
could you provide your flutter doctor -v?

❯ flutter doctor -v
[✓] Flutter (Channel beta, v1.15.17, on Mac OS X 10.15.2 19C57, locale en-GB)
• Flutter version 1.15.17 at /Users/nateshmbhat/Apps/flutter
• Framework revision 2294d75bfa (3 weeks ago), 2020-03-07 00:28:38 +0900
• Engine revision 5aff311948
• Dart version 2.8.0 (build 2.8.0-dev.12.0 9983424a3c)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/nateshmbhat/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install:
sudo gem install cocoapods
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[!] IntelliJ IDEA Community Edition (version 2019.3.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.43.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.8.1
[✓] Connected device (3 available)
• GM1901     • <IP_ADDRESS>:5555 • android-arm64  • Android 10 (API 29)
• Chrome     • chrome             • web-javascript • Google Chrome 80.0.3987.149
• Web Server • web-server         • web-javascript • Flutter Tools
! Doctor found issues in 2 categories.

@nateshmbhat
Also, to better address the issue, would be helpful
if you could post a complete minimal code sample to reproduce the problem
Thank you

Ok here it is :
void submitForm(VendorInput user) {
    trimAllFields(user);
    String mobile = user.inputFields
        .where((field) => field.id == FieldId.MOBILE)
        .toList()
        .first
        .inputValue;

    NavigationService.instance.pushNamed(
      CoreRoutes.otp,
      arguments: OtpScreenArgs(
        mobileNumber: mobile,
        categoryId: 23,
        onValidated: ({@required String sessionToken, @required String validationToken}) async {
          FlutterLogger.instance.d(
              'Validating OTP :  Vendor input =  ${user.toString()} , sessionToken = $sessionToken , validation token = $validationToken');
          CreditScoreNativeBridge.instance
              .initCartReview(
              validationToken: validationToken,
              sessionToken: sessionToken,
              vendorInput: user)
              .then((e) {
              NavigationService.instance.popNativeAware();
          });
        },
      ),
    );
  }

This is the OtpScreenArgs class :
class OtpScreenArgs {
  final String mobileNumber;
  final int categoryId;

  final Function(
      {@required String sessionToken,
      @required String validationToken}) onValidated;

  OtpScreenArgs(
      {@required this.mobileNumber,
      @required this.categoryId,
      @required this.onValidated});
}

Now , here's the NavigationService code that actually pushes the Route :
class NavigationService {
  static final GlobalKey<NavigatorState> _navigatorKey =
  new GlobalKey<NavigatorState>();

  NavigationService._();

  static NavigationService _instance;

  static NavigationService get instance {
    if (_instance == null) {
      _instance = NavigationService._();
    }
    return _instance;
  }

  static GlobalKey<NavigatorState> get navigatorKey => _navigatorKey;

  Future<void> pushNamed(String routeName,
      {dynamic arguments, bool fromNative = false}) async {
    NucleiNavigator.instance.push(routeName, fromNative: fromNative);
    if (_navigatorKey.currentState == null) {
      WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
        _navigatorKey.currentState.pushNamed(routeName, arguments: arguments);
      });
    } else {
      await _navigatorKey.currentState.pushNamed(
          routeName, arguments: arguments);
    }
  }
}

The error occurs when sending the arguments object to the NavigationService.push method.

@VladyslavBondarenko is it not appropriate for severe:crash label ? . This is a crashing error which fails to push the new screen.

@nateshmbhat there are still missing pieces in the code you provided. The stack trace refers to WidgetsApp.onGenerateRoute. Could you share what you are passing as onGenerateRoute callback to WidgetsApp?
It looks like somewhere in the code you are trying to json-encode an OtpScreenArgs instance, and that's throwing an exception. I'm still puzzled to why this is only failing on web. It should be failing in native too.

Aaaaaahhhh , I see why this might be happening : I am doing a json.encode on the settings.arguments which might be causing the issue. But why doesn't it happen only in the web app ? 🤔
My generateRoute method looks like this :
static Route generateRoute(RouteSettings settings) {
FlutterLogger.instance.d("Got Route : ${settings.name} , args : ${json.encode(settings.arguments)}");

switch (settings.name) {
  case CoreRoutes.baseLoading :
    FlutterLogger.instance.i("Opening Base Loading Screen");
    return PageRouteBuilder(
      pageBuilder: (context, animation, secondaryAnimation) =>
          BaseLoadingScreen(),
      transitionsBuilder: (context, animation, secondaryAnimation, child) {
        return child;
      },
    );

  case CoreRoutes.otp:
    var data = settings.arguments as OtpScreenArgs;
    return MaterialPageRoute(
      builder: (_) => NetworkAwareWidget(
        onConnection: OtpScreen(
          categoryId: data.categoryId,
          mobileNumber: data.mobileNumber,
          onValidated: data.onValidated,
        ),
      ),
    );
}

}

That was indeed the issue : removing the json.encode fixed the issue.

Thanks for your suggestion :D

But please do intestigate about why its giving error in only web.


Server tags being escaped and moved, worked in Angular 5 (from angular/angular)

source: https://github.com/angular/angular/issues/23751

I'm submitting a...

[X] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

In my index.html I had server preprocessing tags for Rails in the head. When I do ng build --prod my server tags are being escaped (<> -> <>) and moved to the body tag.
Expected behavior

In Angular 5 this did not happen.
Minimal reproduction of the problem with instructions

ng new
open index.html
add <%= csrf_meta_tags %> to head tag
run ng build --prod
open index.html in dist/

What is the motivation / use case for changing the behavior?

If this was intentional is there away to tell Angular not to escape these server tags in index.html?
Environment

Angular version: 6.0.0

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: 10
- Platform: Mac

Others:

@NebulaFox


Rebuild to fix gstreamer and gst-plugins pins

Somehow the latest build is pinned against gstreamer 1.18 and gst-plugins-base 1.14 - those packages come from the same recipe so this is broken:
$ conda search --info qt=5.12.9=*_2
Loading channels: done
qt 5.12.9 h9d6b050_2
--------------------
file name   : qt-5.12.9-h9d6b050_2.tar.bz2
name        : qt
version     : 5.12.9
build       : h9d6b050_2
build number: 2
size        : 99.5 MB
license     : LGPL-3.0-only
subdir      : linux-64
url         : https://conda.anaconda.org/conda-forge/linux-64/qt-5.12.9-h9d6b050_2.tar.bz2
md5         : 2f7c14748e3d98ff1ff27cadffb34d97
timestamp   : 2020-12-22 07:35:15 UTC
dependencies:
  - dbus >=1.13.6,<2.0a0
  - expat >=2.2.9,<2.3.0a0
  - fontconfig >=2.13.1,<3.0a0
  - freetype >=2.10.4,<3.0a0
  - gst-plugins-base >=1.14.4,<1.15.0a0
  - gstreamer >=1.18.2,<1.19.0a0
  - icu >=68.1,<69.0a0
  - jpeg >=9d,<10a
  - libclang >=11.0.0,<12.0a0
  - libevent >=2.1.10,<<IP_ADDRESS>a0
  - libgcc-ng >=9.3.0
  - libglib >=2.66.4,<3.0a0
  - libpng >=1.6.37,<1.7.0a0
  - libpq >=12.3,<13.0a0
  - libstdcxx-ng >=9.3.0
  - libxcb
  - libxkbcommon >=1.0.3,<2.0a0
  - libxml2 >=2.9.10,<2.10.0a0
  - mysql-libs >=8.0.22,<<IP_ADDRESS>a0
  - nspr >=4.29,<5.0a0
  - nss >=3.60,<4.0a0
  - openssl >=1.1.1i,<1.1.2a
  - sqlite >=3.34.0,<4.0a0
  - zlib >=1.2.11,<1.3.0a0

So, this PR just regenerates the feedstock, which fixes the pinnings.
Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

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) and found it was in an excellent condition.

@conda-forge/qt, this is an annoying issue for me, the following currently fails:
$ conda create -n __test gstreamer=1.18.3 gst-plugins-base=1.18.3 qt
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package gstreamer conflicts for:
gstreamer=1.18.3
qt -> gstreamer[version='>=1.12.4,<1.13.0a0|>=1.12.5,<1.13.0a0|>=1.14.4,<1.15.0a0|>=1.18.2,<1.19.0a0|>=1.14.0,<1.15.0a0']
qt -> gst-plugins-base[version='>=1.14.4,<1.15.0a0'] -> gstreamer[version='>=1.12.2,<1.13.0a0|>=1.14.0,<2.0a0|>=1.14.1,<2.0a0|>=1.14.4,<2.0a0|>=1.14.5,<2.0a0']

Package gst-plugins-base conflicts for:
gst-plugins-base=1.18.3
qt -> gst-plugins-base[version='>=1.12.2,<1.13.0a0|>=1.12.4,<1.13.0a0|>=1.12.5,<1.13.0a0|>=1.14.4,<1.15.0a0|>=1.14.0,<1.15.0a0']

The CI seems to fail all the time, and it fails for me locally. Is someone able to review this and help me get it merged?

@conda-forge/core, is someone able to (a) confirm that this is real problem, and (b) coax the CI to pass so this can be merged? Thanks.

coax the CI to pass so this can be merged? Thanks.

We end up building this locally and uploading using the procedure in CFEP-03. If someone who maintains this recipe can take a look and merge I can take care of building macOS and Linux. Someone else will have to look at Windows as I don't have access to a suitable machine.

Someone else will have to look at Windows as I don't have access to a suitable machine.

I have a windows machine, I have no idea if 'any windows machine' is what you're after, but please let me know if I can help get this through.
Thanks @chrisburr!

If someone who maintains this recipe can take a look and merge I can take care of building macOS and Linux

@conda-forge/qt, can someone please review and merge this trivial change, please?

Can you please add yourself as a maintainer?

Can you please add yourself as a maintainer?

I was afraid someone might ask that, I'll do it now. I know nothing about qt...

@isuruf, done, what happens now?

I've started the Linux build and I'll do the macOS one overnight.
@isuruf Will you take care of the Windows build or would you rather I guide @duncanmmacleod with it?

I see @isuruf already built the Windows binaries, thanks! 🍰
Logs for the unix builds are (compressed with zstd):

linux_64_.zst.log
osx_64_.zst.log

Just to confirm, this has resolved my environment issue. Many thanks to @isuruf and @chrisburr!


CREATE_FAILED [HostedUICustomResourceInputs, HostedUIProvidersCustomResourceInputs]

These message keep happen every time when I try to amplify push after adding or updating auth.
Version: @amplify/cli 1.6.11

@phlinhng We found out the root-cause for this issue in #1513
Closing this, since it's a duplicate of #1513


Add permission callback

Add callback to authorization status request.
Useful to display a "warning" / "explanation" widget when user denied authorization.
May be related to : https://github.com/juliansteenbakker/mobile_scanner/issues/67

+1

A possible other solution would be, if MobileScannerController would not autostart anymore, we could invoke the start function manually and catch the PlatformException when state transitions to MobileScannerState.denied.

Running "flutter pub get" in flutter_tools...                       4.0s
Changed lib/src/mobile_scanner.dart
Changed lib/src/mobile_scanner_controller.dart
Formatted 16 files (2 changed) in 0.45 seconds.
Formatting failed: 1

And 2 merge conflicts to solve


⚠ Jenkins Plugins Artifactory has degraded performance

In 50ffcda, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1151 ms

Resolved: Jenkins Plugins Artifactory performance has improved in d20b3d9 after 16 minutes.


Remove .placeholder file generated after operator-sdk init command

Bug Report
.placeholder file gets generated after init command.
What did you do?
I created memcached operator using init command.
What did you expect to see?
.placeholder file is not expected.
What did you see instead? Under which circumstances?

Environment
Operator type:

Kubernetes cluster type:
 Minikube
$ operator-sdk version
v1.13
$ java -version (if language is Java)
16.0.2
$ kubectl version
1.22.2
Possible Solution
Delete this file in next steps. Maybe in Create API command.

Updated the code and it will make directory structure like /src/main/java during init command.


[WIP] Nested DataType compatibility in Arrow-optimized Python UDF and Pandas UDF

What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

cc @haiyangsun-db FYI

After double thoughts, we'd better not touch Pandas UDF to preserve backward compatibility. Let me close the PR and have a new prototype.


⚠ SceneTime has degraded performance

In e021f15, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 3241 ms

Resolved: SceneTime performance has improved in 13da15c after 8 minutes.


Improve formatting of DistributionAggregation's Javadocs and check invariants.

The first commit is from #293.

Codecov Report

Merging #294 into master will decrease coverage by 0.27%.
The diff coverage is 66.66%.

@@             Coverage Diff              @@
##             master     #294      +/-   ##
============================================
- Coverage     93.94%   93.67%   -0.28%
+ Complexity      462      457       -5
============================================
  Files            79       79
  Lines          1768     1754      -14
  Branches        110      112       +2
============================================
- Hits           1661     1643      -18
  Misses           77       77
- Partials         30       34       +4

Impacted Files
Coverage Δ
Complexity Δ

...instrumentation/stats/DistributionAggregation.java
70% <66.66%> (-30%)
4 <4> (-5)

...oogle/instrumentation/trace/TraceExporterImpl.java
91.3% <0%> (-1.45%)
8% <0%> (ø)

Continue to review full report at Codecov.

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


SCSI PR Commands?

I am new to Azure Shared Disks.
I'm trying to create one and mount it to multiple VM's.
This document all makes perfect sense and is easy to follow until you get to the section titled "supported scsi pr commands".
This section lists a bunch of commands but with absolutely no indication as to where they are meant to be issued or how.
I know I may sound very stupid, but perhaps its assumed that the reader should know what these commands are and where to enter them - however that assumption is not made in 99% of any other docs page, where commands and scripts are provided with an indication of how to run them - for example, powershell or bash commands etc.
[Enter feedback here]

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

ID: 4adcc7c9-6709-7f9e-4ec8-63dec6d78293
Version Independent ID: 151f998f-898f-6b49-dfeb-ae29040d1af1
Content: Enable shared disks for Azure managed disks - Azure Virtual Machines
Content Source: articles/virtual-machines/disks-shared-enable.md
Service: storage
Sub-service: disks
GitHub Login: @roygara
Microsoft Alias: rogarana

@dazinator
Thanks for reporting this. I have assigned the issue to the content author to investigate further and update the document as appropriate.

I too found this documentation confusing. I was troubleshooting an issue with Microsoft support and they sent me this link and said I need follow the instructions. I found this github page that confirms the failover cluster software will do this for me.

@Tangie661 - just curious as to what your scenario is and what "failover cluster software" you are looking at using? In my scenario I am using glusterfs to create the replicated volume that can be read from / written to by multiple VM's at the same time that are the "manager" nodes of a docker swarm cluster.

Any news? When can we expect an answer? @DerekHerman-MSFT

Thank you for your dedication to our documentation.
We sincerely apologize for the delayed response. After a careful review, we are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


Adding a Movie Class

The default is displayed as Class.cs and the instructions are:
"Right click the Models folder. Select Add > Class. Name the class Movie."
I'm assuming the class should be named: Movie.cs not just 'Movie' .

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

ID: 6719f08e-3bd7-dc1a-71df-f2ef9fbca9d8
Version Independent ID: 7096fdb3-612e-9e00-bd0b-8ea4886a09ce
Content: Add a model to a Razor Pages app in ASP.NET Core
Content Source: aspnetcore/tutorials/razor-pages/model.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

No, the class name is Movie. The file name is Movie.cs.


rocks.canonical.com:5000/kubeflow/examples/mnist-test:latest

It is difficult for me to pull rocks.canonical.com:5000/kubeflow/examples/mnist-test:latest while running pipeline example.
May I have the Docerfile to build it by myself?
Thanks

Is it the following one?
https://github.com/canonical/bundle-kubeflow/blob/main/tests/Dockerfile.mnist

Hi Tian, could you give us more information on what you are trying to do exactly and in what context do you try to pull the image? Note that in case you are trying to run the experiments from our tests directory, these are not up to date at the moment. You could however try this fix.

Hi Tian, could you give us more information on what you are trying to do exactly and in what context do you try to pull the image? Note that in case you are trying to run the experiments from our tests directory, these are not up to date at the moment. You could however try this fix.

Hi,
Google domains are blocked by the GFW.

GFW?

Great Firewall

Is it the following one?
https://github.com/canonical/bundle-kubeflow/blob/main/tests/Dockerfile.mnist

@tiansiyuan Yes, you can use that Dockefile to build your own container and push it to registry that will be accessible for you.
Please let us know, if you were successful with this.

I believe that @tiansiyuan's original question was resolved. Closing this issue, but please feel free to re-open if needed.


Marathon 1.2.0-rc Docker Images Broken

The docker images for both mesosphere/marathon:v1.2.0-rc1 and mesosphere/marathon:v1.2.0-rc2 are broken. mesosphere/marathon:latest-dev as well.
rc1 and latest-dev fail when launching an application with the message: java.lang.UnsatisfiedLinkError: Mesos JAR version 1.0.0-rc1 is not backwards compatible with Mesos native library version 0.28.2
rc2 fails on start with the message: Failed to load native Mesos library from /usr/lib/libmesos.so [2016-06-23 17:01:26,306] ERROR Fatal error while trying to take over leadership. Exit now. (mesosphere.marathon.core.election.impl.CuratorElectionService:ForkJoinPool-2-worker-13-EventThread) java.lang.UnsatisfiedLinkError: /usr/lib/libmesos-1.0.0.so: libevent_openssl-2.0.so.5: cannot open shared object file: No such file or directory

Reason is likely that 0.28.0 is installed in the Dockerfile: https://github.com/mesosphere/marathon/blob/master/Dockerfile#L18
Are you folks waiting for an official cut of 1.0.0? Or should I open up a PR to make the Dockerfile match Dockerfile.development which uses mesos=1.0.0-1.0.52.rc1.debian81

rc1 and rc2 were "soft" releases (unannounced) as we transition to Mesos 1.0.   It requires the latest version of mesos.  You can find details here: https://github.com/mesosphere/marathon/issues/4015
We are waiting on the Mesos release... which should be shortly.

@kensipe does "soft" mean "definitely not working"? I don't see why not change base image to RC mesos for RC marathon.

mesosphere/marathon:v1.2.0-rc3 pushed on docker-hub yesterday. Looks like this version fix your issue.

Yeah, I updated mesos-compose a few hours ago: https://github.com/bobrik/mesos-compose/pull/14


add tests

Manul is public now, so we can add integrate it with Travis and Appveyor.

Required the following tests:
Travis:
1. Test with AFL's instrumented binary
2. Test in DBI mode
3. Test for network-based fuzzing
AppVeyor
1. Test in DBI mode
2. Test in dump mode
3. Test for network-based fuzzing


[PONC-128] Add PONT properties to chain config

Now balances are using PONT, not Unit

Pull Request Test Coverage Report for Build 852644644

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 66.667%

Totals

Change from base Build 832366680:
0.0%

Covered Lines:
73

Relevant Lines:
79

💛  - Coveralls


Add MirrorInterval to the API

This should address #11605. Allows you to create a migration setting the value, and edit it after the fact.

Codecov Report

Merging #14163 (a3f9e2b) into master (cf9d471) will decrease coverage by 0.33%.
The diff coverage is 7.64%.

@@            Coverage Diff             @@
##           master   #14163      +/-   ##
==========================================
- Coverage   42.36%   42.02%   -0.34%
==========================================
  Files         728      733       +5
  Lines       78015    78727     +712
==========================================
+ Hits        33049    33083      +34
- Misses      39540    40214     +674
- Partials     5426     5430       +4

Impacted Files
Coverage Δ

cmd/dump_repo.go
0.00% <0.00%> (ø)

cmd/restore_repo.go
0.00% <0.00%> (ø)

models/action.go
50.93% <0.00%> (-1.98%)
:arrow_down:

models/admin.go
60.31% <0.00%> (-8.78%)
:arrow_down:

models/repo.go
51.76% <0.00%> (-0.14%)
:arrow_down:

models/repo_list.go
78.76% <0.00%> (-0.71%)
:arrow_down:

models/task.go
34.95% <ø> (+0.04%)
:arrow_up:

modules/auth/repo_form.go
39.83% <ø> (ø)

modules/migrations/base/downloader.go
17.51% <ø> (ø)

modules/migrations/base/pullrequest.go
0.00% <ø> (ø)

... and 34 more

Continue to review full report at Codecov.

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

@6543 Please could you re-review.

@6543 Please could you re-review.

🚀

🚀


Use get_char_size(' ') to calculate space width.

Fixes regressing form Text Server implementation (get_char_size('m') was accidentally used.)

Thanks!

Ah, I attempted a different fix here in #45923 which I believe is more correct. Spaces are generally inconsistent between fonts and not a good indication of size, which is why sometimes I used 'x' instead. This is specially a problem with mono-spaced fonts.
This PR also does not fix the scale problem, which I fixed in mine.

Spaces are generally inconsistent between fonts and not a good indication of size, which is why sometimes I used 'x' instead.

Feel free to revert in, spaces were used before Text Server (and still used in 3.2) and change was not intentional, but they are quite inconsistent indeed.
I would use capital 'N' or 'M' (En/Em space which are standard typographic units) instead of 'm' or 'x'.

@bruvzg Yeah I know, this was an issue before too. I will change it to M then, thanks!

@bruvzg your changes for tab size are good though, so keeping those


iOS production build fails on Mac Mini M1 -- 'does not contain bitcode'

Hi,
First of all, thanks for the amazing package 🔥
I've first encountered this two days ago, but I didn't pay much attention to it until last night when I took a look & noticed that CobrowseIO is the culprit for the build fails 😁
In debug mode the app builds & runs fine.
To reproduce:
flutter pub get
flutter build ipa

Xcode output:
Showing Recent Issues
'Developer/Xcode/DerivedData/Runner-cmtxnobnlmvnhxdykohesxukkfmf/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/CobrowseIO/XCFramework/CobrowseIO.framework/CobrowseIO'
does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE),
obtain an updated library from the vendor, or disable bitcode for this target.
file 'Developer/Xcode/DerivedData/Runner-cmtxnobnlmvnhxdykohesxukkfmf/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/CobrowseIO/XCFramework/CobrowseIO.framework/CobrowseIO' for architecture arm64

Thanks!

It might be that it's because of Xcode 14?
link


Fix InvalidInstanceID.Malformed regex pattern bug

Should have made it match all characters
@sbaogang @yujunglo

r+

Thanks r+!!


Quota Limiter: limit the cpu and bandwidth to provide stable QPS

Signed-off-by: zhangjinpeng1987<EMAIL_ADDRESS>
What is changed and how it works?
Close #11855
What's Changed:
Related changes

PR to update pingcap/docs/pingcap/docs-cn:

Check List
Tests

Unit test

Manual testing
We can gain stable write QPS when we run sysbench oltp_insert with 128 threads, btw, we modify the row size from 200B to 1KB.

[quota]
cpu = 2000
write-bandwidth = "10MB"

Side effects

no

Release note
Quota Limiter
TiKV has the ability to limit the CPU usage and the write bandwidth by set quota in the config file to gain predictable stable write QPS.

/release

https://github.com/tikv/tikv/pull/12151 merged

@choleraehyq @zhangjinpeng1987 https://github.com/tikv/tikv/pull/12151 merged


plotmafSummary 'warning messages'

I am using maftools to generate the maf file summary and I am encountering several issues.
First I wanted to ask what the x-axis of these plots interpret (as I was confused)?
Secondly, I wanted to ask how I could resolve the issues where all my top 10% genes show 100%. (I have attached an image)
Would it be possible to help me out with this?
My command was:
plotmafSummary(maf = maf, rmOutlier = TRUE, addStat = 'median', dashboard = TRUE, titvRaw = TRUE)
However, I receive the following warning message:
Warning message: In titv(maf = maf, useSyn = TRUE, plot = FALSE) Non standard Ti/Tv class: 167TRUE

Hi @amandah-w ,
Sorry for the delay. Somehow I overlooked the issue.

X-axis is number of variants summarized by variat type, classification, and TiTv.
Something is fishy with your plot. How many samples do you have? Also what do you see in getGeneSummary output for your maf?
It means there are some variants which can not be classified into any of the 6 Transition/Transversion classes. Could be NAs or anything else. Please do check how these were generated.

Thank you for your reply @PoisonAlien,
I have basically converted the vcf files to maf. I have 335 samples I'm working with simultaneously.
I have observed that I may need to filter out mutations that do not meet the PASS criteria.
Would it be possible to give guidance on how to filter out variants (including the germline mutations) that do not meet the PASS criteria in the maf files?

I thought so.. Well for starters this is recommended:

Get rid of germline variants (those present in control samples)
If your maf file has dbSNP annotations, remove those which have AF > 0.01 in general population (you can research more and decide which threshold to use but 0.01 seems to be fine)
If you have gnomAD annotations, do the same and get rid of those with AF > 0.01
Make sure you retain those variants present in clinivar and annotated in COSMIC
You can remove variants with VAF and not supported by good number of reads


SASS-3123 - Update bootstrap-BE/FE-play-28 dependencies

Description
Please include a brief summary of the change you've made and the issue that it fixes.
Add a link to the relevant story in Jira
SASS-3123
Checklist PR Reviewer
Before Reviewing

[x]  Have you pulled the branch down?
[x]  Have you assigned yourself to the PR?
[x]  Have you moved the task to “in review” on JIRA?
[ ]  Have you checked to ensure all dependencies are up to date?
[ ]  Have you checked to ensure its been rebased against the current version of main?

Whilst Reviewing

[ ]  Have you run the tests?
[ ]  Have you run the journey tests?
[ ]  Have you looked at the JIRA story to make sure all Acceptance Criteria has been met?

After Reviewing

[ ]  Have you checked for merge conflicts or any changes in the current main that may affect the current pull request? i.e. does it need another rebase?
[ ]  Have you checked to make sure there are no builds in the pipeline before you merge?
[ ]  Have you moved the task to “in pipeline” on Jira?

[x]  Have you rebased against the current version of main?
[x]  Have you checked code coverage isn’t lower than previously?

After PRs been raised

[x]  Have you checked the PR Builder passes?

Please remove adding authToken where  not needed. Please also address warnings in the files you work on.


Require address when creating new org as invoice expense payee

Describe the bug
The system is allowing you to submit an invoice expense from a newly created org profile without filling out the address. We need addresses for all invoice expenses.
To Reproduce
Steps to reproduce the behavior:

Create a new expense
Select invoice
Select 'create new organization' under 'pay to'
Fill out the required info
Submit the expense
End up with an invoice expense with no address

Interesting, if you then try to edit the expense, it will require the address before you can save it again.
Expected behavior
You should be required to fill in the address for the new org profile.
P2 low frequency, high impact

Another example: https://opencollective.com/ehf-community/projects/ehf-scholarships/expenses/69424


Add touchpad settings to demo config

since version 0.7.0 1:1 gestures have been added to hyprland but I cannot get them to work I get the error
Errror setting value <1> for field <input:touchpad:natural_scroll>: No such field

So I looked at the demo config and the option is not set so I don't know how to set it properly (also could natural scrolling be the default)

(also could natural scrolling be the default)

no cuz it stinks.
Done in 92d1d21a3d2c5027cb8702274006c24f70df13c6


how can I get that data from matchColumnsStepHook

@masiulis , how can I get that data from matchColumnsStepHook, it would more helpful if you refer any example
Originally posted by @raomohan499 in https://github.com/UgnisSoftware/react-spreadsheet-import/issues/181#issuecomment-1817551652

const [columns, setColumns]= useState(null)
...
     <ReactSpreadsheetImport
       {...mockRsiValues}
       isOpen={isOpen}
       onClose={onClose}
       onSubmit={setData}
       matchColumnsStepHook={(table, rawData, columns) => {
         setColumns(columns)
         return table;
       }}
     />
     ```


[Feature]: Cooking Measurement Calculator

Description
A calculator that pretty much converts between different cooking measurements (e.g., cups to grams, tablespoons to milliliters).
Screenshots
No response
Checklist

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

Code of Conduct

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

Will you be doing for pounds as well?

Any update on this @codercake

Why did you create a pull request directly without being assigned to the issue? You should have first answered the question asked by the mentor above @codercake


Update PR pipeline with ciliume2e

Reason for Change:

Issue Fixed:

Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests

Notes:

splitting swfte2e and ciliume2e into separate templates in the pipeline for future kube-proxy/non kube-proxy cluster scenarios


Review PR 257

I reworked a few lines and implmented the changes I suggested in the review.

I added another commit with an approach that uses explicit addresses within the ICO header. Do you consider this one more readable?

I added another commit with an approach that uses explicit addresses within the ICO header. Do you consider this one more readable?

Yes, although in my head the ordering in the command AssociatedGroupIconDirectoryEntry!.WBitCount.LittleEndianBytes().CopyTo(directory, 6); is still strange.


[Bug]: PDFs from Google Docs Fail to Process for RAG Due to Null Bytes

What happened?
PDF documents exported from Google Docs and uploaded through the RAG API are not processed correctly for later use within the system. Although the upload process completes without immediate errors, these PDFs contain null byte (0x00) characters that prevent them from being properly loaded into the PostgreSQL database. This results in the system's inability to utilize these documents for RAG operations, despite their successful upload.
Steps to Reproduce

Export a document from Google Docs as a PDF.
Upload this PDF through the RAG API interface.
Notice that, despite a successful upload, the document cannot be used for RAG operations due to an issue related to null byte characters.

What browsers are you seeing the problem on?
Chrome
Relevant log output
A string literal cannot contain NUL (0x00) characters.

Screenshots

Code of Conduct

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

Thanks, do you ahve rag_api logs for when this happens?


updated signature URL to freecodecamp CDN

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
x ] None of my changes are plagiarized from another source without proper attribution.
x ] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #34834

@raisedadead It seems strange to say this but yes - I sign off on my signature 😄

Thanks @QuincyLarson 😄 !
@caglarturali and @saranshkataria thanks for working on this issue and raising the pull request.
Happy contributing!


Wrong interpretation of user-agent?

Description
How to reproduce

b = Browser.new("Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-G935F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/6.2 Chrome/56.0.2924.87 Mobile Safari/537.36")
=> #<Browser::Chrome:0x00007fe4a0df3068 @ua="Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-G935F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/6.2 Chrome/56.0.2924.87 Mobile Safari/537.36", @accept_language=[]>
b.chrome?
=> true
b.version
=> "56"
b.platform.android_webview?
=> nil

What do you expect
Was not expecting b.chrome? to be true. Because this is a webview. But this can be new behaviour. (We recently updated from 2.3.0)
If b.chrome? returns correctly true I would expect b.platform.android_webview? at least to be true. So I can distinguish between normal chrome and webview chrome.
What happened instead
Software:

Rails version: 4.2.x
Browser gem version: 2.5.2

Full backtrace
Report

There's no easy way of making this happen. According to the existing test case, Android webview adds a wv to the user agent, which I can't see it on your user agent. Which app is making the request without the wv?


Fix copyCompatibility bug in copy method for checkbox column data

When the option copyCompatibility: true, there is currently a bug where it copies the innerHTML rather than value of TRUE/FALSE.
The fix is to check the column type, and modify the treatment of the text that is copied into the clipboard.
In the case of checkbox, we should NOT do the previous default behavior of copying the innerHTML, instead, we should copy the value of TRUE or FALSE. However, if the default innerHTML has been override pragmatically by the user, then we should revert to default treatment of copying the innerHTML, as the value can no longer be relied on being the intended copy source.
This patch maintains backwards compatibility, while adding a new fork in the control flow to better handle different column data-types, such as: image, color bar, etc. The intent is to improve ease of copy/pasting data into ASCII that can be understood by most spreadsheet apps when the data is pasted into them. At the moment, this patch is only proposing a solution to handling the checkbox. Future patches can be easily coded to handle other cases noted above.

Diff is all messed up. It shows entire file being changed rather than just the couple of lines I changed. Will retry.


Minor figure improvements

@grfrederic I'm adding the updates to the figures you have proposed :slightly_smiling_face:

Ah, we have already put these changes on main! My fault, apologies. Closing the PR...


Fix back button on manage channels at product details

I want to merge this change because it adds intermediate channel variant selection data state to channel availability dialog.
PR intended to be tested with API branch: 3.0
Screenshots

Pull Request Checklist

[ ] This code contains UI changes
[ ] All visible strings are translated with proper context including data-formatting
[ ] Attributes [data-test-id] are added for new elements
[ ] Changes are mentioned in the changelog
[ ] The changes are tested in different browsers and in light/dark mode

Test environment config

API_URI=https://master.staging.saleor.cloud/graphql/

Task linked: SALEOR-4354 Back button on manage channels at product details view doesn't work


Automated cherry pick of #2717: fix: bucket list access accessUrl nil pointer panic

Cherry pick of #2717 on release/2.12.
#2717: fix: bucket list access accessUrl nil pointer panic

AccessUrls

/approve
/lgtm

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.12@ae47edc). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.12   #2719   +/-   ##
==============================================
  Coverage                ?   7.23%
==============================================
  Files                   ?     472
  Lines                   ?   74403
  Branches                ?       0
==============================================
  Hits                    ?    5384
  Misses                  ?   68567
  Partials                ?     452

Flag
Coverage Δ

#aFlag
7.23% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/buckets.go
1.44% <0%> (ø)

Continue to review full report at Codecov.

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


[FEATURE]

Is your feature request related to a problem? Please describe.
Adding a second or third hub
Describe the solution you'd like
Was wondering if there was a way to use an "Add Accessory" button in HOOBS or Homebridge UI like some other plugins I've seen, rather than having to add the other platforms manually.  I think it would greatly enhance and simplify that process.
Describe alternatives you've considered
N/A
Additional context
Either way, this project is awesome - please dont view my suggestion as critique!

TV are external accessories, it is not possible if I correctly understand. But through configUI in homebridge you can add other platforms in the config.


Customize shm size in postgres pod

By default shm size is 64MB, dashboard usage page uses around 100MB.
I can reproduce the error described in packit/packit-service#2385 locally using podman compose and I can fix it by setting shm_size: 128Mi in docker-compose.yml.
I tried deploying these openshift changes on my local openshift cluster but even though the new volume is created and mapped the size didn't change.
df -h /dev/shm is always 64MB
I would like to test this on stg, to be sure the problem is not related with my local openshift cluster.
But, as far as I can understand it, does exist a SizeMemoryBackedVolumes k8s feature gate, which is not enabled in the cluster by default (probably because this is a  dangerous feature https://github.com/kubernetes/kubernetes/issues/119611).
If this is not enabled in the cluster, resizing can not occur.
If this PR will not work on stg I think we have 2 solutions:

ask to the cluster's maintainers if they have a way to increase shared memory for our pod
redesign db queries in usage page

I would probably recommend backup of the stage database and dumping the production one in its place, cause I have doubts about reproducibility of this issue on the “small-scale” contents of the stage's database.

Luckily it is really easy to check. I just need to enter the postgres pod with rsh and run df -h /dev/shm.
If the size is 64MB then we still have the problem and the PR is useless and we should decide for one of the other two solutions.

I would say that one of the options would be increasing the memory (though we don't have much left… and we're just running 2/2 workers; we have one more worker than usual for short-running, but it's still less than what I set up for the redis upgrade a month ago or so).

The problem seems not to be related with memory in general. My local pods had plenty of memory and until the shared memory was 64MB the exception occurred. If we are not able to increase the shared memory we can not solve it, I fear.

redesign db queries in usage page

that would be probably ideal as it is the only API endpoint causing issues; IMO it would be probably for better to go with raw SQL queries instead of ORM which adds complexity because of the abstractions present…

I remember having already worked on the raw queries once, at the time we decided to stay with the ORM. But if we have no other solutions, probably this will be the easiest way. And probably for the usage pages we can also use views...

This PR was not working because the deploy target is not mounting the created volume. If you mount manually the volume then the shm is resized.


MVP Rewrite

See https://github.com/ecurtin/spark-bench/projects/1 for more details.
MVP essentially encompassed setting up the bare bones new structure and porting the KMeans data generation and workload.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@84106d4). Click here to learn what that means.
The diff coverage is 51.42%.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   51.42%
=========================================
  Files             ?       12
  Lines             ?      140
  Branches          ?        0
=========================================
  Hits              ?       72
  Misses            ?       68
  Partials          ?        0

Impacted Files
Coverage Δ

.../sparktc/sparkbench/workload/WorkloadKickoff.scala
0% <0%> (ø)

...la/com/ibm/sparktc/sparkbench/cli/CLIKickoff.scala
0% <0%> (ø)

...rkbench/datageneration/DataGenerationKickoff.scala
0% <0%> (ø)

...com/ibm/sparktc/sparkbench/workload/Workload.scala
0% <0%> (ø)

...rktc/sparkbench/datageneration/DataGenerator.scala
100% <100%> (ø)

...a/com/ibm/sparktc/sparkbench/cli/ScallopArgs.scala
100% <100%> (ø)

...nch/datageneration/mlgenerator/KMeansDataGen.scala
100% <100%> (ø)

...la/com/ibm/sparktc/sparkbench/utils/Defaults.scala
100% <100%> (ø)

...arkbench/workload/mlworkloads/KMeansWorkload.scala
21.05% <21.05%> (ø)

.../com/ibm/sparktc/sparkbench/utils/SparkFuncs.scala
40% <40%> (ø)

... and 2 more

Continue to review full report at Codecov.

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


Changes in Defination

Chnaged the answer of What is the difference between state and props?

@iamaritra01  Please resolve the conflicts

yes

@iamaritra01 setState is a function from class components. Please answer the question with function components instead


Apply RSM root node transform

The root RSM node transform must be applied (zeroed) so we can use the transforms cleanly during RSW import.

@all-contributors please add @cmbasnett for code


Improved validation constraints for API signatures

Description
Added size constraints to API signatures validation

Changelog entry

How Has This Been Tested?

manually
all the test suits

References

PR Quality Checklist

[ ] I added tests to new or existing code
[ ] I removed hardcoded strings and used our i18n solution instead (see here)
[x] I made sure no sensitive info gets logged at any time in the codebase (see here) (e.g. no user info or details, no stacktraces, etc.)
[ ] I checked that infrastructure/update_infrastructure.sh runs without any error
[x] I checked that npm run build builds without any error
[x] I checked that clusters are listed correctly
[x] I checked that a new cluster can be created (config is produced and dry run passes)
[x] I checked that login and logout work as expected

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

question: shouldn't the test reflect the newly introduced constraints somehow?

I'd say no since validators are part of the third library so since we have tests proving our mechanism (that relies on Marshmallow) works, then it's ok to assume they did their job also

question: shouldn't the test reflect the newly introduced constraints somehow?

I'd say no since validators are part of the third library so since we have tests proving our mechanism (that relies on Marshmallow) works, then it's ok to assume they did their job also

You are right. I'm ok with these changes.


PDS unzip problems

Situation
While testing PR #696 when starting a gosec scan and using latest sechub-cli client  and using sechub OSS root folder for source uploads, the PDS server cannot unzip the sources and the scan fails.
The scan was done via DAUI and the triggering there the scan via local built sechub client (develop branch) from toolbar.
The SecHub server was started local in IntegrationTestMode and a local postgres installation. Used shared volume storage.
The GoSec PDS server was start with 01-... script (single) and the PDS adapter was configured to NOT reuse SecHub storage.
java.io.FileNotFoundException: /workspace/workspace/cf0526f5-de35-4937-93af-440f3b6fd24b/upload/unzipped/sourcecode/docs/latest/sechub-architecture.html (No such file or directory)
...
at com.daimler.sechub.pds.util.PDSFileUnzipSupport.copy(PDSFileUnzipSupport.java:84)

(the full log can be found below)
Wanted

Even when such a problem happens (a zip does NOT contain the file listed inside it's headers)
we just want a warn message and the process/scan shall continue
We must inspect if the sechub client does accidently add filtered files to zip header but does not add them as content only

Solution

Inspect problem on client side / zipped content
Change error handling in PDSFileUnzipSupport to warn those problems but keep on with remaining parts

Details
pds-gosec-ubuntu    | 2021-09-02 12:57:54.628  INFO 8 --- [0.0-8444-exec-5] c.d.sechub.pds.job.PDSCreateJobService   : Job cf0526f5-de35-4937-93af-440f3b6fd24b has been created
pds-gosec-ubuntu    | 2021-09-02 12:57:55.979  INFO 8 --- [0.0-8444-exec-6] c.d.s.pds.job.PDSFileUploadJobService    : Upload file sourcecode.zip for job cf0526f5-de35-4937-93af-440f3b6fd24b to storage
pds-gosec-ubuntu    | 2021-09-02 12:57:55.981  INFO 8 --- [0.0-8444-exec-6] c.d.s.s.s.spring.SharedVolumeJobStorage  : job:cf0526f5-de35-4937-93af-440f3b6fd24b: storing sourcecode.zip in path pds/GOSEC_CLUSTER
pds-gosec-ubuntu    | 2021-09-02 12:57:55.988  INFO 8 --- [0.0-8444-exec-6] c.d.s.s.s.spring.SharedVolumeJobStorage  : job:cf0526f5-de35-4937-93af-440f3b6fd24b: storing sourcecode.zip.checksum in path pds/GOSEC_CLUSTER
pds-gosec-ubuntu    | 2021-09-02 12:57:56.386  INFO 8 --- [0.0-8444-exec-7] c.d.s.pds.job.PDSJobTransactionService   : Mark job cf0526f5-de35-4937-93af-440f3b6fd24b as ready to start
pds-gosec-ubuntu    | 2021-09-02 12:57:56.772  INFO 8 --- [pool-2-thread-1] c.d.s.p.execution.PDSExecutionCallable   : Prepare execution of job cf0526f5-de35-4937-93af-440f3b6fd24b
pds-gosec-ubuntu    | 2021-09-02 12:57:56.796 ERROR 8 --- [pool-2-thread-1] c.d.s.p.execution.PDSExecutionCallable   : Execution of job uuid:cf0526f5-de35-4937-93af-440f3b6fd24b failed
pds-gosec-ubuntu    |
pds-gosec-ubuntu    | java.io.FileNotFoundException: /workspace/workspace/cf0526f5-de35-4937-93af-440f3b6fd24b/upload/unzipped/sourcecode/docs/latest/sechub-architecture.html (No such file or directory)
pds-gosec-ubuntu    | 	at java.base/java.io.FileOutputStream.open0(Native Method)
pds-gosec-ubuntu    | 	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
pds-gosec-ubuntu    | 	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:237)
pds-gosec-ubuntu    | 	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:187)
pds-gosec-ubuntu    | 	at com.daimler.sechub.pds.util.PDSFileUnzipSupport.copy(PDSFileUnzipSupport.java:84)
pds-gosec-ubuntu    | 	at com.daimler.sechub.pds.util.PDSFileUnzipSupport.unzipArchive(PDSFileUnzipSupport.java:66)
pds-gosec-ubuntu    | 	at com.daimler.sechub.pds.job.PDSWorkspaceService.unzipUploads(PDSWorkspaceService.java:186)
pds-gosec-ubuntu    | 	at com.daimler.sechub.pds.job.PDSWorkspaceService.unzipUploadsWhenConfigured(PDSWorkspaceService.java:165)
pds-gosec-ubuntu    | 	at com.daimler.sechub.pds.execution.PDSExecutionCallable.call(PDSExecutionCallable.java:78)
pds-gosec-ubuntu    | 	at com.daimler.sechub.pds.execution.PDSExecutionCallable.call(PDSExecutionCallable.java:34)
pds-gosec-ubuntu    | 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
pds-gosec-ubuntu    | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
pds-gosec-ubuntu    | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
pds-gosec-ubuntu    | 	at java.base/java.lang.Thread.run(Thread.java:829)
pds-gosec-ubuntu    |
pds-gosec-ubuntu    | 2021-09-02 12:57:56.798  INFO 8 --- [pool-2-thread-1] c.d.sechub.pds.job.PDSWorkspaceService   : Removed workspace folder for job cf0526f5-de35-4937-93af-440f3b6fd24b
pds-gosec-ubuntu    | 2021-09-02 12:57:56.802  INFO 8 --- [pool-2-thread-1] c.d.s.s.s.spring.SharedVolumeJobStorage  : deleted all inside /shared_volumes/uploads/pds/GOSEC_CLUSTER/cf0526f5-de35-4937-93af-440f3b6fd24b
pds-gosec-ubuntu    | 2021-09-02 12:57:56.802  INFO 8 --- [pool-2-thread-1] c.d.sechub.pds.job.PDSWorkspaceService   : Removed storage for job cf0526f5-de35-4937-93af-440f3b6fd24b
pds-gosec-ubuntu    | 2021-09-02 12:57:56.802  INFO 8 --- [pool-2-thread-1] c.d.s.p.execution.PDSExecutionCallable   : Finished execution of job cf0526f5-de35-4937-93af-440f3b6fd24b with exitCode=0, failed=true

This is not a client problem - we tested and the created ZIP file was correct.

Maybe the problem is because of the different storages.
SecHub: storage : shared volume on local macine
PDS gosec: storage: shared volume inside docker container

The issue occurs in Kubernetes with object storage (s3) as well. Regardless of whether the storage is shared between SecHub or not (pds.config.use.sechub.storage=false or true).


How to deploy image as web app by using azure sdk?

Do we have any sample code of using azure sdk to deploy the image as web app, something like https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-azure-container-instance ?

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

ID: c1e5bcc3-fc34-72d4-f708-773009ff3efd
Version Independent ID: 94ef632e-6443-689b-c533-876259e68600
Content: Deploy ml models to Azure App Service (preview) - Azure Machine Learning
Content Source: articles/machine-learning/how-to-deploy-app-service.md
Service: machine-learning
Sub-service: core
GitHub Login: @aashishb
Microsoft Alias: aashishb

@gary918 Thanks for the question. We are investigating the issue and will update you shortly.

@gary918 Please follow the below sample model deployed as a web service endpoint on Azure Container Instances.
https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.webservice.aciwebservice?view=azure-ml-py#deploy-configuration-cpu-cores-none--memory-gb-none--tags-none--properties-none--description-none--location-none--auth-enabled-none--ssl-enabled-none--enable-app-insights-none--ssl-cert-pem-file-none--ssl-key-pem-file-none--ssl-cname-none--dns-name-label-none-
https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/deployment/deploy-to-cloud/model-register-and-deploy.ipynb

@gary918 We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@ram-msft Thanks. ACI webservice is different from Azure App Service. Do you have a solution for using azure sdk to implement https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-app-service ?


Change "Big Aims" label to "UF Health Big Aims" and update values

Expected values: Zero Harm, Reduce Variation, Increase Value, Transform Our Culture, Enhance the Patient Experience
Question: Are these the only allowed values?

This may be addressed when the page is styled

This is done

Solved in #108


Feature/ada updates 2

Changes based on accessibility issues flagged in Lighthouse audit performed 5/23. I also tried to gitignore _site files, but seemingly was unsuccessful.
https://www.pivotaltracker.com/n/projects/2137050/stories/185233337

Woah, this Netlify deploy preview thing is pretty cool!


Fix app_id/app_key Basic HTTP auth

The way how app_id+HTTP-auth works required also change in credentials.

updated accordingly ready again


Memory: Use triomphe::Arc for SharedReference

Description

Testing Instructions

#8622  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bgw and the rest of your teammates on  Graphite


Linting and installing charts on PR

#46
What this PR does / why we need it:

This github workflow is linting and installing our chart in a test cluster, validating the correctness of the provided templates.
Uses https://github.com/marketplace/actions/helm-chart-testing
Special notes for your reviewer:
Checklist:

[ ] squashed commits into logical changes
[ ] includes documentation
[ ] adds unit tests
[x] adds or updates e2e tests

Thanks for working on this! I like the idea of testing helm chart but what is the reason for moving chart out of hack/chart? We don't provide a functional chart in the repo, the chart can be compiled with make release-chart and consumed in the workflow.

The desired packaging tool for the repo is helm, it seems weird to have first class feature to live in a hack folder.


Adding tests for animationStatus

Adds tests for AnimationController.status.
Minor change to how AnimationStatus is reported for animateTo for consistency.
Adds docs about the expected AnimationStatus for certain operations.


Add Tectonic to compiler list

Additions

Added Tectonic to compiler list: https://tectonic-typesetting.github.io

[Edit]

[x] The Tectonic developer gave me this list of command line arguments, we should support the relevant ones https://github.com/tectonic-typesetting/tectonic/blob/master/src/bin/tectonic.rs#L158

@stenwessel Good point, of course we should (same for latexmk).
About that I have a more general question: because not only the bibliography but other things like output format support are different per compiler, do you think we should make components on the run configuration view appear/disappear whenever the user selects a different compiler?

I think that is a great idea and the best approach to take. If however you think that this is too much for this PR, I am fine with extracting this to a separate issue. I think disabling bibtex should at least be done now (as it really blows up compilation time otherwise). Adapting the other UI elements introduces extra features, but these can already be forced manually by utilizing the custom command arguments field.

@stenwessel @RubenSchellekens Made changes so the existing UI elements  (bibtex and output format) should at least be more correct now, see edits above. But there's still one problem: I don't see a way to change other UI components immediately when a user hits Apply or when a user selects a different compiler. At least this PR is an improvement anyway, I hope.

Cool. Then we're waiting for Sten so it can get merged.


Eclipse: import “Project from Git” no longer works

Hi,
Trying to directly import the finmath library as a project from git in Eclipse 2020-12 does not work. The structure of the project is not correcly recognized, see the following snapshot:

The issue has been reported by some students of mine and replicated on my environment.
Best,
Alessandro

I see, then I suggest updating the following page
https://www.finmath.net/finmath-lib/gettingstarted.html
In particular I suggest deleting the part "Alternatively you can import the project as “Project from Git” (this works, because an Eclipse .project file is part of the repository):"


fix: perform out of bounds check when writing to slice

Description
Problem*
Resolves
Summary*
Additional Context
Documentation*
Check one:

[ ] No documentation needed.
[ ] Documentation included in this PR.
[ ] [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

[ ] I have tested the changes locally.
[ ] I have formatted the changes with Prettier and/or cargo fmt on default settings.

I'll close this and create a new PR with just the relevant commits.


Regent: Missing type error in image

This program should generate a type error:
import "regent"

task main()
  var r = region(ispace(int2d, {4, 4}), int1d)
  fill(r, 0)
  var p = partition(equal, r, ispace(int1d, 4))
  var i = image(r, p, r) -- type error: int1d vs int2d
end
regentlib.start(main)

But currently it runs and fails with:
[0 - 70000de44000]    0.034596 {5}{runtime}: ERROR: Field size of field 101 does not match the size of the destination index space elements for 'partition_by_image' call in task main (UID 1)

This code behaves differently for me. I get the following type error:
type mismatch in argument 2: expected ispace with 2 dimensions but got ispace(int1d)
  var p = partition(equal, r, ispace(int1d, 4))

corresponding to this rule.

I think this is just the Gitlab -> Github mirror being slow. I added a commit that removes this check:
https://gitlab.com/StanfordLegion/legion/-/commit/bf1f978ddd8017b08a553e4b8eeb7eb9507c4edb
The runtime can handle any arbitrary N to M partition, so there wasn't really a reason to keep it.

Fixed in f761c78abc046e06fb258575b928ac3d8332c78b.