The handle_cache_operation_on_forward_server_response function doesn't handle proper range operations for mismatched server and cache responses

handle_cache_operation_on_forward_server_response sets RANGE_NOT_TRANSFORM_REQUESTED even if the server returns a response that doesn't match with the cached response. This causes ATS to send incorrect client responses.
For example, while revalidating the cached 200 response, if ATS receives a 404 response, ATS transforms the 404 response to a 206 response and sends it to the client

The question is whether the 404 should invalidate the cached object. Is the behavior you expect is that an error response from the upstream should invalidate the cached object? The PR consensus was this seems reasonable but we wanted clarity on the desired behavior.

What are the corner cases to consider? If the origin says that an object no longer exists during revalidation, when would we want to keep serving old content in cache?

The question is whether the 404 should invalidate the cached object. Is the behavior you expect is that an error response from the upstream should invalidate the cached object? The PR consensus was this seems reasonable but we wanted clarity on the desired behavior.

The 404 response already invalidates the cache, but ATS serves a 206 response for the request that triggers cache invalidation. Subsequent responses are then served from the cache as 404.


removing hideIfOffline prop[nfc]

removing hideIfOffline prop will show a grey box for the offline users
Fixes: #4575

@abhi0504 I don't see how this is a complete solution for #4575 based on its description. Could you help me with that?

Thanks @chrisbobbe for review

It basically tells us about the user (offline or online) I accept the fact that it doesn't not resolves #4575 completely its just can be a enhancement 😊
I have resolved all the CI failures

I accept the fact that it doesn't not resolves #4575 completely its just can be a enhancement 😊

Ah, OK! Enhancements are nice. 🙂 But let's be sure not to say Fixes: #4575, either here on GitHub or in the commit message, then, since it's not true. 😉

It basically tells us about the user (offline or online)

Could you talk more about the "why" for this change? It looks like the prop was set to true in #2545; do you think that was a mistake, or is there anything else that stands out from reading the history?

I accept the fact that it doesn't not resolves #4575 completely its just can be a enhancement 😊

Ah, OK! Enhancements are nice. 🙂 But let's be sure not to say Fixes: #4575, either here on GitHub or in the commit message, then, since it's not true. 😉

Sure just removing that  Fixes: #4575 tag

It basically tells us about the user (offline or online)

Could you talk more about the "why" for this change? It looks like the prop was set to true in #2545; do you think that was a mistake, or is there anything else that stands out from reading the history?

I think in my opinion there must be the statusIndiactor dot in offline cases

Possibly there's something we want to do here, but it's not at all clear to me; some more explanation and evidence might have helped make this a viable PR. But some things naturally have to be closed to keep the workload manageable, and this is one of those times.
If someone wants to resume something like this in the future, I'd recommend looking at the history I mention above in https://github.com/zulip/zulip-mobile/pull/4597#issuecomment-814384746.


Remove unused 'ifind' routine from setupt.f90

Somehow the 'ifind' routine keeps coming back - let's eliminate it once and for all.  It was used for MERRA2 aircraft BC but is not used for anything now.  I think I've asked to have it deleted more than once but maybe it is brought back with merges from NCEP or something.

@gmao-msienkie After discussion with @rtodling yesterday, I enable "required labels" on this repository. What this means that all PRs will now require a label between "0 diff", "0 diff structural", "0 diff trivial", and "non 0 diff". So, if you have a chance, can you add the appropriate label. Thanks :)
(Note: I toggled the bugfix label on and off to 'turn it on' since this PR was here before the check came in.)

It -should- be zero diff but I will actually have to run a test to verify this.  I will apply the label after I have done this.
I'm just running a static analysis to verify I get the same results as my last 5_27 run.  Is there a process (yet) for verifying zero diff from 'develop' branch of the analyisis?

Running the analysis with and without the routine produced zero diffs.

This is being merge into feature/rtodling/GEOSadas-5_28_0

Already on develop - rt-GEOSadas-5_28_0_p1


Issue 1356

Describe your changes :
see #1356

Type of change :

[x] Improvement

Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have performed a self-review of my own.
[ ] I have tagged my reviewers below.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

@sureshms Need your review on this. Made few changes
ElasticSearch index needs full body of the event when the entity is created. Example Table, we need its description, columns, followers, owners, usageSummary, database, databaseService
On updates we can use changeevents to get the updates we require to index

Added createFields in EntityRepository to return fields we need upon creation of new entity
added databaseService to Table Entity. This would make life easier on the creation of the table entity in ES index as we support filtering tables based on databaseService type.  This feels like logical extension to database so added databaseService as additional field.

Let me know if this makes sense, I'll add few more tests to cover new changes.

@sureshms

For Table  we can handle the databaseService and that should be good enough
In case of dashboard, we are returning charts but it doesn't contain name, displayName and description populated.

If I keep the changes I made this works. But if there is a better way to handle this let me know.

@sureshms
prepare is wrong place to populate these dependendant fields

prepare is getting called before we do update or create
database for a table will not be loaded as the relation is not created yet. So trying to populate databaseService for the table will results in database not found

The diff I've is following the putFields, patchFields. Added createFields and calls the setFields post creation of the entity.
Let me know if I am missing something and if there is a better way to do this.

@darth-coder00 @Sachin-chaurasiya @ayush-shah @sureshms
This PR handles the indexing of Table, Topic, Pipeline, Dashboard etc..

If the elastic search is not started, while ingestion is extracting entities and ingesting into OM, then these will not available in search
If the elastic search is not available or having stability issues during the ingestion of new entities into OM , the events will be missed
Event Handlers will run a Aysnc call and doesn't wait for success or failure and doesn't retry. As these are responses going back to the user. So any errors here means a missed update to ES index.

To resolve such issues, Users still need to run the metadata_to_es pipeline as a way of reconciling the overall index in case of any errors this pipeline will help fix the issues.


Form-Field input and label DOM order issue

Bug, feature request, or proposal:
According to WCAG H44: Using label elements to associate text labels with form controls

Check that there is a label element that identifies the purpose of the control before the input, textarea, or select element

In the Material form-field component, the label is after the input
What is the expected behavior?
The Material form-field renders the label before the input in the DOM according the the WCAG.
What is the current behavior?
The form field component renders the label after the input in the DOM. Accessibility tests are failing because of this, and it is likely why JAWS and NVDA weren't reading the labels. IE, aria-owns is likely unneeded if the DOM order were corrected.
What are the steps to reproduce?

Use a form-field component in your project

What is the use-case or motivation for changing an existing behavior?
Accessibility and WCAG compliance. You will likely be able to remove the superfluous aria-owns attribute as a result, as well.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
All of them, I believe... At least 5.X and up.
Is there anything else we should know?
That is all. Thank you!

That's a great suggestion. Thanks!
The MDC-based form-field has the label before the projected content (e.g. the <input> element) in the filled variant. In the outline appearance, the label is also before, but hierarchically higher.

Confirmed that MDC outline appearance text field has label before input

There seems to have been a PR opened for this, but it wasn't merged for some reason #7507.

The MDC based form field (which is now available in v15) has the correct order.


[Outlook] (module) Move and archive module add-in sample

Q
A

Bug fix?
no

New feature?
no

New sample?
no

Related issues?
N/A

What's in this Pull Request?
Transfers the module extension add-in sample from https://github.com/OfficeDev/Outlook-Add-in-JavaScript-ModuleExtension for archiving and updates the sample structure to allow users to run the sample. Changes were not made to the code/logic itself.
Related PR: https://github.com/OfficeDev/office-js-docs-pr/pull/4335
Guidance
See above.

Closing PR. Changes will be made to the sample in the original repo and will no longer be moved.


Facilitate unaware threshold signature endorsement

This commit contains the following two seemingly unrelated changes, each on its own preserving current Fabric behavior:

Deduplicate endorsements in createTx
This commit makes createTx de-duplicate endorsers according to their identity.
Meaning, when multiple but identical endorsements (same identity) are passed to
the createTx function, it returns a transaction with unique endorsements, and without repeated endorsers.
Since at validation, endorsers are anyway de-duplicated, this commit preserves current system behavior.

Support identity based endorsement policy in discovery
Currently, whenever a chaincode's endorsement policy contains an identity principal, discovery rejects the policy,
saying that it contains a principal it does not support. This commit simply makes discovery classify the principal.

Making clients and gateways unaware of a threshold signature scheme
This commit enables advanced use cases, in which case the endorsements collected for transaction
submission contain identical identities that represent a threshold or aggregation signature scheme.
In such a case, peers can be deployed with custom endorsement plugins and generate a threshold/aggregation signature,
but the flow of service discovery, the client, and peer gateway remains the same.
The endorsement policy can to be an OR over two mutually exclusive cases:

An AND over a set of organizational principals (such as Org1.Peer and Org2.Peer)
An OR over one or more identities (which can only be signed in collaboration among the peers)

Discovery will always return only combinations of the former kind since no peer can identify with an identity of the latter kind.
The flow will then be as follows:

The client and the gateway interact as usual, and the gateway collects endorsements from several peers.
The peers, using the endorsement plugin, engage in a protocol at which end they all return the same endorsement.
The gateway submits the transaction (this time, with a single endorsement) to the orderer.
Upon transaction validation we validate a single endorsement instead of several.

Change-Id: I9193187ae6b08791f8762a9d325442d156c4f828
Signed-off-by: Yacov Manevich<EMAIL_ADDRESS>

@yacovm Could you clarify the description with more background/motivation?

What is the ultimate goal? I assume faster validation due to a single endorsement check is one goal. Are there others?
How would threshold/aggregate signatures work? Wouldn't the gateway have to be enhanced to combine the individual endorsements before submitting the transaction?
The part about "The endorsement policy can to be an OR over two mutually exclusive cases" confuses me... how is that related to the overall motivation?

* What is the ultimate goal? I assume faster validation due to a single endorsement check is one goal. Are there others?

Not just faster validation but reduction in transaction size, by only having a single identity.

* How would threshold/aggregate signatures work? Wouldn't the gateway have to be enhanced to combine the individual endorsements before submitting the transaction?

That's the idea behind (1) - the gateway will get from each endorser the same identical certificate and it will then de-duplicate it.

* The part about "The endorsement policy can to be an OR over two mutually exclusive cases" confuses me... how is that related to the overall motivation?

You see, the gateway, or other clients - use discovery, right? But there is no way to make discovery convey information about a threshold signature. So we do a trick - we make an endorsement policy that can be satisfied in two disjoint ways:
(a) An AND over the peers that the threshold signature is composed of, to make discovery choose these peers for the client/gateway.
(b) A threshold signature which is going to be used at validation.

Ok, I'm getting closer...
But with threshold signatures I thought each party (each peer) would sign with a partial signature that then gets aggregated. How can each peer return the same endorsement? I guess you are suggesting that the peers coordinate and aggregate the signatures prior to returning endorsement response? How would the peers realistically do this when they don't know which peers the gateway picked for endorsement (assuming there are multiple orgs to choose from and multiple peers per org).
Wouldn't it be more feasible to have each peer return their partial signature to the gateway, and the gateway then aggregates them into a single endorsement? Yes, that would require more changes than you are proposing, but first class support of threshold signatures would be a nice feature wouldn't it? Or maybe not entirely first class but at least expose some patterns to make it easier for users.
We should probably get some consensus on the overall approach before proceeding with a PR. I realize that you were attempting the path with least Fabric changes, but let's make sure we have some consensus on that path.

But with threshold signatures I thought each party (each peer) would sign with a partial signature that then gets aggregated.

Usually when you say "threshold" you mean t out of n where t < n.
You can also aggregate signatures but then it's always n out of n.
Let me give you an example to demonstrate. Suppose you have a private key sk=sk1+sk2+sk3 and you can aggregate its public keys pk1, pk2, pk3 by adding them into a single public key. This is easy, but the downside is that if one of the private keys is lost, no one can sign anymore.
In a threshold scheme, you have a protocol which generates t<n private keys (and corresponding public keys) and then if one of the private keys is lost, then it's fine because you still have some private keys left (unless you end up with less than t of them). The downside here, is that the threshold public key (and corresponding private keys for all parties) generation algorithm is very complex and in the aggregation case, it is very simple.
Now, some threshold schemes allow you to easily "glue" signatures together, some require you to put some effort (communication rounds), and some require you to put a lot of effort (communication rounds, and all kinds of crypto sprinkled on top).

How can each peer return the same endorsement? I guess you are suggesting that the peers coordinate and aggregate the signatures prior to returning endorsement response?

Exactly. The endorsement plugin will trigger a protocol in which end it will output a uniform endorser certificate according to the membership of the peers who were involved in the protocol.

How would the peers realistically do this when they don't know which peers the gateway picked for endorsement (assuming there are multiple orgs to choose from and multiple peers per org).

That's a good question. The peers that are selected, have the same transaction ID. All that is needed is some sort of "distributed barrier".

Wouldn't it be more feasible to have each peer return their partial signature to the gateway, and the gateway then aggregates them into a single endorsement?

Easier said than done. First of all, Fabric always signs over the identity of the peer as well, so we already have a mismatch.
Even if that wasn't the case, then among Elliptic Curve based signatures, only BLS is that friendly. ed25519 which exists in Go, requires some communication rounds among the endorsers either directly or indirectly. ECDSA is the worst and it requires a complex full-blown MPC protocol.

Yes, that would require more changes than you are proposing, but first class support of threshold signatures would be a nice feature wouldn't it? Or maybe not entirely first class but at least expose some patterns to make it easier for users.

Both ed25519 and BLS require changes to Fabric validation. The only scheme that Fabric supports today, as you know, is ECDSA.

I realize that you were attempting the path with least Fabric changes, but let's make sure we have some consensus on that path.

Precisely, I am working with what I have, because I know that somehow, in the last few years, feature development takes a decade.
I don't understand why you're opposed to this. These two changes do not influence anyone and make sense individually.
I will achieve what I need with this change or without it.
If you don't merge this, I will just use Fabric Smart Client nodes as endorsers.
I thought that it can be nice if I can show how you can do threshold signatures in Fabric vanilla, using service discovery and gateway. I guess even this tiny change is too much.

Thanks @yacovm for submitting a very simple change that can enable so much.
Threshold has many benefits and also complexities to be handled with care.
This PR goes in the direction of minimal changes to Fabric to enable a larger eco-system around it.
It looks good to me. Thanks.

I don't understand why you're opposed to this.

I'm not opposed to this. It just didn't seem like the approach would be very obvious or consumable for users deploying Fabric, so I was poking on whether there may be a more obvious and more consumable approach possible. It sounds like there is not, so I'm fine with it as is, as I agree threshold signature support is a valuable addition.
Could I ask that you extend the https://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html doc topic with an Advanced section that provides some hints as to how more advanced deployments may leverage the new capability?

Could I ask that you extend the https://hyperledger-fabric.readthedocs.io/en/latest/endorsement-policies.html doc topic with an Advanced section that provides some hints as to how more advanced deployments may leverage the new capability?

No, because the so called new capability hasn't been implemented yet and is entirely based on future implementation of an endorsement plugin.
After I implement and test an end to end scenario I can then update the bespoken documentation, but in order for the former to happen I need this PR merged.

Thanks @adecaro and @ale-linux ! I'll go ahead and merge.


SAK-45766 - Calendar: Unable to set a default view for the Calendar V…

…iew other than by week

This is broken and needs a rebase, I'll make it

Rebased!

This PR needs rebase since we merged #9495, I'll work on that.

@adrianfish Could you please review my latest commit?
https://github.com/sakaiproject/sakai/pull/9446/commits/2e314bd7702382602ab90d5fd5afa1b7ac5e1ec5

New commit with more requested changes:
https://github.com/sakaiproject/sakai/pull/9446/commits/75aeb597f26190bb7d3d7aba5dfb8d1dc3902c29

Addressed some cocady complains, now all of them are minor:
https://github.com/sakaiproject/sakai/pull/9446/commits/908648d59f86be5394d0c6484cf074a1d204f129

Thanks to you @adrianfish , definitely better implementation!


Error on docker-compose run example

$ docker-compose run example
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 670, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1255, in request
File "http/client.py", line 1301, in _send_request
File "http/client.py", line 1250, in endheaders
File "http/client.py", line 1010, in _send_output
File "http/client.py", line 950, in send
File "docker/transport/unixconn.py", line 43, in connect
FileNotFoundError: [Errno 2] No such file or directory

Couldn't reproduce.


Unable to run the application

I ran the command ./deepstream_test5 -c configs/test5_config_file_src_infer_tlt.txt
I got: bash: ./deepstream_test5: No such file or directory
How can we resolve the above? Thanks

Did you follow the commands and build the executable?

Resolved. Thanks

Update: It correct command is ./deepstream_test5 -c config/test5_config_file_src_infer_tlt.txt not ./deepstream_test5 -c configs/test5_config_file_src_infer_tlt.txt

Thank you for pointing that out. I have updated the command.


VSSDK workload recently removed from the Hosted VS2017 agent?

Agent version and platform
Latest Hosted VS2017
Windows
VSTS type and version
VisualStudio.com
What's not working?
Starting from Oct. 6 Friday, our Visual Studio extension project stopped producing VSIX.  I tried a sample VSIX project and it failed to build with the following error
VSIXProject1\VSIXProject1.csproj(132,11): Error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\VSSDK\Microsoft.VsSDK.targets" was not found. Also, tried to find "VSSDK\Microsoft.VsSDK.targets" in the fallback search path(s) for $(VSToolsPath) - "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.

@TingluoHuang Where's the issue tracked?
I tried adding Microsoft.VisualStudio.Sdk.BuildTasks.14.0 nupkg to my project but it gave a build error:
3>C:\Users\yumeng\.nuget\packages\microsoft.visualstudio.sdk.buildtasks.14.0\14.0.215\tools\VSSDK\Microsoft.VsSDK.targets(104,5): error VSSDK1047: There was a problem opening the VSIXManifest Schema. Could not find file 'C:\Users\yumeng\.nuget\packages\microsoft.visualstudio.sdk.buildtasks.14.0\14.0.215\tools\VSSDK\schemas\PackageManifestSchema.xsd'.

@jeremymeng have you try add all 3 packages prefix with Microsoft.VisualStudio.Sdk

@TingluoHuang I didn't think the other two packages matter from their descriptions so I didn't add them.
After I add the other two packages, still getting an error

My project is a little customized though, not like the ones created from the extension templates.

Not an agent (this app) bug.  That's a hosted image update and follow on issue with pulling via nuget.
If you email me at bryanmac and that's at microsoft dot com, I'll put you in contact with VSSSDK folks.


More WORKER instruction types

The current pheromone TRAILs are very simple and just pull WORKERs towards them.
It might be interesting to add more instructions to pheromones. The main useful behaviour would be instructing WORKERs to drag something with them, similar to how they push tiles when moving randomly.
When instructed to move something other than self, it might make sense for WORKERs to only be affected if they are able to comply. Alternatively, maybe these WORKERs should seek out tiles in range and move to them, but this could get complicated unless WORKERs reserve targets and the searching may cause lag.
Some easy/obvious ones to enhance current gameplay:

MOVE_SELF (current TRAIL behaviour)
MOVE_PLANT
MOVE_FUNGUS
MOVE_EGG
MOVE_CORPSE

Some possible changes to game mechanics:

MOVE_SAND
MOVE_SOIL
MOVE_WATER (maybe the WORKER gets temporary immunity/resistance?)

For moving SAND or SOIL it might be good to have some way of designating what SAND or SOIL to move. This could be done by having functionally identical SAND_DIG and SOIL_DIG tiles that the player can paint over SAND and SOIL respectively, and vise versa (to undesignate it).

This could be a great alternative to digging the ant caves yourself. If you could signpost out a path in the dirt for the worker ants to dig and have them get on with it that could be very cool. I picture a "move dirt" pheromone trail persisting for much longer than the current pheromone system, maybe even until a worker ant has moved that piece of dirt.


what should be done to bind functions that are not in rtklib.h?

fucnctions like rescode, valsol are not declared in rtklib.h
Now I am trying to bind them, however it seems a linker problem occurred:
ImportError: /home/<user>/miniconda3/envs/py39/lib/python3.9/site-packages/pyrtklib-0.2.5-py3.9-linux-x86_64.egg/pyrtklib/pyrtklib.so: undefined symbol: _Z7rescodeiPK6obsd_tiPKdS3_S3_PKiPK5nav_tS3_PK8prcopt_tPdSC_SC_SC_PiSC_SD_

I have those modification:
in pyrtklib.cpp:
m.def("rescode", static_cast<int (*)(int iter, const obsd_t *obs, int n, Arr1D<double> Srs,
                   Arr1D<double> Sdts, Arr1D<double> Svare, Arr1D<int> Ssvh,
                   const nav_t *nav, Arr1D<double> Sx, const prcopt_t *opt,
                   Arr1D<double> Sv, Arr1D<double> SH, Arr1D<double> Svar, Arr1D<double> Sazel, Arr1D<int> Svsat,
                   Arr1D<double> Sresp, int *ns)>(&rescode), "rtklib rescode");

extern int rescode(int iter, const obsd_t *obs, int n, Arr1D<double> Srs,
                   Arr1D<double> Sdts, Arr1D<double> Svare, Arr1D<int> Ssvh,
                   const nav_t *nav, Arr1D<double> Sx, const prcopt_t *opt,
                   Arr1D<double> Sv, Arr1D<double> SH, Arr1D<double> Svar, Arr1D<double> Sazel, Arr1D<int> Svsat,
                   Arr1D<double> Sresp, int *ns)
{
    const double *rs = Srs.src;
    const double *dts = Sdts.src;
    const double *vare = Svare.src;
    const int *svh = Ssvh.src;
    const double *x = Sx.src;
    double *v = Sv.src;
    double *H = SH.src;
    double *var = Svar.src;
    double *azel = Sazel.src;
    int *vsat = Svsat.src;
    double *resp = Sresp.src;
    auto tmp = rescode(iter, obs, n, rs, dts, vare, svh, nav, x, opt, v, H, var, azel, vsat, resp, ns);
    return tmp;
}

in rtklib.h
EXPORT int rescode(int iter, const obsd_t *obs, int n, const double *rs,
                   const double *dts, const double *vare, const int *svh,
                   const nav_t *nav, const double *x, const prcopt_t *opt,
                   double *v, double *H, double *var, double *azel, int *vsat,
                   double *resp, int *ns);

in pntpos.c
static -> extern

Hi, sorry for the late reply. I copied your code, but it seems work well.

Theoretically, if there's something wrong with the linking process, the compile should not pass, unless you use the dynamic library mode. So, do you switch on the LIBRARY option in CMakeLists.txt? Could you provide more details?

Thanks! I don't exactly know the reason but now it seems work well after re-buiding.
Anyway, thanks for your reply

Good job. If you have any more questions, feel free to contact me.


Weather Station - Rain Sensor

Objective
As part of my weather station project #13 I wanted to include a sensor to detect if it is currently raining. While I appreciate the best sensor I have is my eyes and the nearest window I wanted to use a sensor so I could track the data and automate things based on the state of the sensor.
I considered how I would achieve this and much like my other projects I wanted to exploit a Zigbee based sensor as they're fast, the units are relatively cheap and low maintenance. It might well be that I connect the sensor to an ESP board down the road when I have additional sensors and consolidate my approach but for now, this is just perfect.

[x] Zigbee based rain sensor
[ ] 3D printed housing to mount/fit with a Stevenson screen
[x] Home Assistant (inverted template sensor)

Ingredients

Zigbee door/window contact sensor
Rain sensor

With a little care you can break open the Aqara window/door sensor. Once open you can remove the reed sensor and attach wires in replacement of it. I removed the button and used side cutters to cut the plastic on the case where the hole for the button  was. This allowed the cables out to leave the sensor whilst still being able to place the sensor back into the case.

The sensor remains always open so to counter that I created a template binary sensor. This inverts the sensor state and allowed me to change the device class.

Shared on Twitter.


[LIBCLOUD-938] New compute driver for UpCloud

New compute driver for UpCloud
Description
UpCloud compute driver. Will be done against Upcloud's 1.2.4 api version
UpCloud's api documentation can be found from:
https://www.upcloud.com/api/1.2.4/
Status
done, ready for review
Checklist (tick everything that applies)

[x] Code linting (required, can be done after the PR checks)
[x] Documentation
[x] Tests
[x] ICLA (required for bigger changes)

Coverage increased (+0.04%) to 89.019% when pulling f0169d787b9c5f0baade3cbaff5e04d5aec6f0d4 on UpCloudLtd:LIBCLOUD-938_Upcloud_compute_driver into 84735c8924f75394426e37106ed7db5070dd0071 on apache:trunk.

cool, ok thanks for the contribution! there's a lot to review here so it might take a couple of days for this to get reviewed.

Hi @tonybaloney, any progress with this? :)

Hi @tonybaloney, yeah sorry for such a big commit. Is there anything I can do to help the review?

hi just a couple of things to edit. please also add a doc page

Codecov Report

:exclamation: No coverage uploaded for pull request base (trunk@84735c8). Click here to learn what that means.
The diff coverage is 94.2%.

@@           Coverage Diff           @@
##             trunk   #1102   +/-   ##
=======================================
  Coverage         ?   85.4%
=======================================
  Files            ?     346
  Lines            ?   66124
  Branches         ?    5879
=======================================
  Hits             ?   56476
  Misses           ?    7256
  Partials         ?    2392

Impacted Files
Coverage Δ

libcloud/compute/types.py
100% <100%> (ø)

libcloud/test/common/test_upcloud.py
100% <100%> (ø)

libcloud/common/upcloud.py
90.47% <90.47%> (ø)

libcloud/test/compute/test_upcloud.py
92.02% <92.02%> (ø)

libcloud/compute/drivers/upcloud.py
95.95% <95.95%> (ø)

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 84735c8...322a34e. Read the comment docs.

Will merge tomorrow morning, thanks.

@pquentin Do I follow this instruction from here https://libcloud.readthedocs.io/en/latest/development.html. So I need to squash the commits and make a patch?

@mlackman The PR has been merged in trunk, see https://github.com/apache/libcloud/commits. Since the GitHub repository is only a mirror, I pushed in into the Apache repository, which is why the PR is shown as closed.
I'm a new libcloud committer. I guess I should have squashed the commits, but I... forgot about it. Too late now, awnyways.


Configuration file format is newer than the current version config-version='3.34'

Updated to 1.93.2 and now see this on startup:
syslog-ng-config: [2021-09-29T20:55:16.357143] WARNING: Configuration file format is newer than the current version, please specify the current version number (3.32) in the @version directive. syslog-ng will operate at its highest supported version in this mode; config-version='3.34'
Appears to be working fine so far.
[meta sequenceId="2"] syslog-ng starting up; version='3.32.1'

fixed in next release


Support for ssh git repos

Description
the current code only supports git repos with urls that start with "http" as you can see here
my proposal is to also add support for urls of ssh form, e.g. git@github.com:owner/repo, git@gitlab.com:owner/repo and substitute them with a https url, https://github.com/owner/repo (and the same for gitlab).
(I'm not a Rust expert so I don't really know the best way to implement it)
Additional information
No response

Implemented in #34. Thanks!


Persisting "Nearby Accessories"

So today I have finally started fiddling with HomeKit (at first with Node-RED and than purely with HAP-NodeJS) and I have run into a quite infuriating thing.
After turning off all processes connected with HomeKit (I have event turned off my computer) some of accessories still appear in a "Nearby Accessories" and I have no idea how to get rid of them.

You need call “unpublish” on accessory object on exit.
Sent from my iPhone

On Aug 22, 2018, at 7:36 AM, Bartosz Legięć<EMAIL_ADDRESS>wrote:
So today I have finally started fiddling with HomeKit (at first with Node-RED and than purely with HAP-NodeJS) and I have run into a quite infuriating thing.
After turning off all processes connected with HomeKit (I have event turned off my computer) some of accessories still appear in a "Nearby Accessories" and I have no idea how to get rid of them.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Actually I thought about that but how do I do it now when the server is no longer running and I don't really remember settings I started them prviously?

And still, when I run default Core.js or Bridge.js and I even added logging to unpublish method to ensure the unpublishing and still... the don't disappear.

Interesting, in those situation, when you use Bonjour browser to look around, does the accessory still show up there? Unpublish should trigger a Bonjour remove event, resulting the accessory no longer appear in accessory list.

That's all

In this situation HAP server is not even advertising… try reboot your iOS device?

Done that multiple times

And the interesting thing is also that they appear on other devices and they didn't even have the Home app installed long after I turned off the server

In the evening I'll try to make a clean install on my iPhone

Nope still they are there 😢

@KhaosT maybe I don't know how to set up Bonjour Browser or smth but even if I have the server running nothing shows up in the Browser

I see the same: Bonjour Browser (on macOS) doesn't show _hap._tcp. advertisements, even though dns-sd -B _hap._tcp on the same mac does show these advertisements.  It doesn't seem to be related to homebridge - the advertisements of my v2 Hue bridge are missing just as well.  Same for iStumbler on mac and Discovery on iOS: they don't show _hap._tcp.
On Raspbian Stretch, avahi-browse -a doesn't show any _hap._tcp. advertisements either, but avahi-browse _hap._tcp. does show them.
I'm not sure why this is happening.  I distinctly remember having seen _hap._tcp announcements in Bonjour Browser in the past; I don't know what has changed.

Erik,
Keep in mind that during the Spring we switched from using the mdns package to Bonjour package to resolve challenges with the mdns installation.  But with that said, I have not seen any issues with advertisements in my ecosystem except my AirPort Extreme occasional not passing around advertisements and needing a reboot.
I have also seen some of the same flakiness in some of the various “bonjour” browsers as well, but I have noticed any operational impact as a result.

On Aug 30, 2018, at 9:11 AM, Erik Baauw<EMAIL_ADDRESS>wrote:
I see the same: Bonjour Browser (on macOS) doesn't show _hap._tcp. advertisements, even though dns-sd -B _hap._tcp on the same mac does show these advertisements. It doesn't seem to be related to homebridge - the advertisements of my v2 Hue bridge are missing just as well. Same for iStumbler on mac and Discovery on iOS: they don't show _hap._tcp.
On Raspbian Stretch, avahi-browse -a doesn't show any _hap._tcp. advertisements either, but avahi-browse _hap._tcp. does show them.
I'm not sure why this is happening. I distinctly remember having seen _hap._tcp announcements in Bonjour Browser in the past; I don't know what has changed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks, Sean.  I don’t think it’s related to the different Bonjour im0lementation.  As I mentioned, I’m seeing the same for my Hue bridge’s native HomeKit function.

Just figured out, if you add the _hap._tcp. service in Preferences, then Bonjour Browser does show the announcements:

Well, now suddenly everything disappeared and guess what. Now I can't find any accessory even though it is in a Bonjour Browser (thanks @ebaauw for a solution to BB)

And now... It appears that if I stop the server it doesn't unpublish, even though it logs that it does (I have added logging here
Accessory.prototype.unpublish = function() {
  debug("[%s] Unpublishing", this.displayName);
  if (this._server) {
    this._server.stop();
    this._server = undefined;
  }

)


Uncaught Error: Cannot read property 'object' of undefinedTypeError: Cannot read property 'objec...

[Enter steps to reproduce below:]

Just opened Atom

Atom Version: 1.10.2
Electron Version: 0.37.8
System: Mac OS X 10.11.6
Thrown From: Atom Core
Stack Trace
Uncaught Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
at ObjectsRegistry.get (/Applications/Atom.app/Contents/Resources/electron.asar/browser/objects-registry.js:44:28)
at EventEmitter. (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:309:31)
at emitMany (events.js:121:13)
at EventEmitter.emit (events.js:195:7)
at EventEmitter. (/Applications/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:141:25)
at emitTwo (events.js:100:13)
at EventEmitter.emit (events.js:185:7)
At /Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:178

Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
    at ObjectsRegistry.get (/Applications/Atom.app/Contents/Resources/electron.asar/browser/objects-registry.js:44:28)
    at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/electron.asar/browser/rpc-server.js:309:31)
    at emitMany (events.js:121:13)
    at EventEmitter.emit (events.js:195:7)
    at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/electron.asar/browser/api/web-contents.js:141:25)
    at emitTwo (events.js:100:13)
    at EventEmitter.emit (events.js:185:7)
    at metaToValue (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:178:13)
    at undefined.remoteMemberFunction (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/api/remote.js:112:18)
    at AtomEnvironment.module.exports.AtomEnvironment.getWindowDimensions (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:636:29)
    at AtomEnvironment.module.exports.AtomEnvironment.storeWindowDimensions (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:670:36)
    at WindowEventHandler.module.exports.WindowEventHandler.handleWindowBlur (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:182:35)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61

Commands

Config
{
  "core": {
    "customFileTypes": {
      "source.ini": [
        ".buckconfig",
        ".flowconfig"
      ],
      "source.json": [
        ".arcconfig",
        "BUCK.autodeps"
      ],
      "source.python": [
        "BUCK"
      ]
    },
    "disabledPackages": [
      "synced-sidebar",
      "project-sidebar"
    ]
  }
}

Installed Packages
# User
angularjs, v0.3.5 (inactive)
emmet, v2.4.3 (active)
file-icons, v1.7.19 (active)
haskell-grammar, v0.4.0 (inactive)
highlight-selected, v0.11.2 (active)
language-babel, v2.38.0 (inactive)
language-ini, v1.16.0 (inactive)
language-ocaml, v1.1.2 (inactive)
language-swift, v0.4.0 (inactive)
language-thrift, v1.0.2 (inactive)
merge-conflicts, v1.4.4 (active)
minimap, v4.25.0 (active)
nuclide, v0.168.0 (active)
project-sidebar, v1.3.0 (inactive)
react-native-snippets, v0.3.0 (active)
Remote-FTP, v0.8.9 (active)
sort-lines, v0.14.0 (inactive)
synced-sidebar, v0.4.3 (inactive)
tool-bar, v1.0.1 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.5.0 (active)
one-light-ui, v1.5.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.3 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
find-and-replace, v0.201.0 (inactive)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.2 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (active)
notifications, v0.65.0 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.100.2 (active)
timecop, v0.33.2 (active)
tree-view, v0.208.2 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

This is a duplicate of #11692 - feel free to subscribe there for updates.


[Admin Portal]: Add resource ID param in the URL

Which issue this PR addresses:
ADO Card: SRE Portal v2 resourceid as a parameter

Fixes
What this PR does / why we need it:
The PR contains changes  to the SRE portal so that it accepts Resource ID as a URI parameter which opens the detailed of the desired cluster directly.

Test plan for issue:

E2E tests have been added as part of the changes
Is there any documentation that needs to be updated for this PR?

We have this now (unless I'm misunderstanding ResourceId in this context??)
Happy to close this?

This has been implemented here AFAIK: https://github.com/Azure/ARO-RP/pull/2640.
Closing for now but do re-open if I've misunderstood


Type-indexed sharing in stable serialization

With #1483 we alias mutable values (which, thanks to invariance, can only occur at a single type).  For immutable values, this doesn’t quite work, as alias’ed values might be serialized at different types.
We can keep track of sharing for each type, using the type hash (#1493). This way we can preserve some sharing (although not all).

Solved with enhanced orthogonal persistence


Catalogue Matching

The green line should not go up.
The green line does go up.
F500_completeness_n_clust_for_clumpr_full_erass_new_dz.pdf
:(

I have fixed this, there was a simple error in my code with an inequality the wrong way around 🙃
Green line no longer goes up.
F500_completeness_n_clust_for_clumpr_full_erass_ineeq_fix_new_dz.pdf

Classic! Glad you were able to resolve it!


Verify physical file is linked and exactly 1 created in lakefs create test

Code change unrelated to Nessie test failure, so pulling by administrative force.


Test suite overhaul

The current test suite does not scale. It takes ~1 minute to run tests on a powerful machine, and more on a less powerful machine, which includes the CI machines which might have 2-4 vCPUs at best.
Performance
~- [ ] Large amount of time is spent in invoking maven commands, although most of the time the dependencies are in the local folder. dart-lang/native#742 should fix this.~
~- [ ] javac is invoked in a few test cases, this can be cached transparently too.~
Update: These seem to take some time during binding generation, but do not occupy large part of our testsuite.

[ ] More tests should be able to be run from same summary. Probably we should implement dart-lang/native#678 .

~Overall, not running any Java based tool in the fast path should be the goal.~
Testing summary

[ ] Summary golden file tests: This can be moved from JUnit/Java to dart, since we are using git diff --no-index anyway to compare. This should also enable us to add more summary tests.

[ ] Summary characteristic tests: Pattern match known details on summary, since most details will be common between asm and doclet summaries.

Examples
Unfortunately some examples are rather android-specific and cannot be frequently run in usual dev workflow.
But pdfbox standalone test can be probably run.

[ ] Create a program which creates a minimal PDF using PDFBox, and run the other (currently existing example) on the same PDF file.

CI
I believe CI shouldn't take 10+ minutes and there should not be 17 CI jobs. (Except those which eg: upload the results).
The worst offender seems to be the android build jobs.

[ ] Explore adding more caches to long-running CI jobs.

?? No idea if this handles SDK updates well. ??

~- [ ] Some long running Android builds install multiple versions of the NDK. Remove as many NDK constraints as possible. (Shouldn't everything build with same NDK?).~

[X] check_java_format and test_summarizer should not be different jobs.

~- [ ] test_jni can run in 20s, it's better to merge this and analyze_jni.~
~- [ ] Is there a technical reason why collect coverage is run separately once all tests pass? I think coverage can be collected during first time itself?~
(Error reporting)

Once doclet is removed (#1079), a lot of the tests will be simplified. Closing this.


TestAPI: debuggable and runnable as options

Now I can see the debug button on every node. I would like to control the debuggable and runnable buttons just like in case of test explorer.
cc: @connor4312

Check out the test tags API for this purpose.


Implement forecast decomposition for ARIMA-like models

Before submitting (must do checklist)

[x] Did you read the contribution guide?
[x] Did you update the docs? We use Numpy format for all the methods and classes.
[x] Did you write any new necessary tests?
[x] Did you update the CHANGELOG?

Proposed Changes

Closing issues

closes #1149

Codecov Report

Merging #1174 (f577ed0) into master (a8da110) will decrease coverage by 78.92%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master   #1174       +/-   ##
==========================================
- Coverage   86.93%   8.02%   -78.92%
==========================================
  Files         177     177
  Lines       10063   10122       +59
==========================================
- Hits         8748     812     -7936
- Misses       1315    9310     +7995

Impacted Files
Coverage Δ

etna/models/sarimax.py
0.00% <0.00%> (-95.00%)
:arrow_down:

... and 160 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Job controller

Allow the user the execute jobs from the GUI editor.

Closing. We can revisit a GUI tool if the need comes up in the future, but for now it's not in scope.


forceObject when defineConfig

Is your feature request related to a problem? Please describe.
I want to forceObject: true when defineConfig, I don't find a way to do this https://mikro-orm.io/docs/serializing#explicit-serialization . seems forceUndefined = skipNull, maybe can add some extra serialize options when defineConfig ?
Describe the solution you'd like
global forceObject config
Describe alternatives you've considered
property level option ?
Additional context

That is a static method, it cannot respect any configuration, it does not have a way to read it.

I guess we could store the config reference on the entity prototype during discovery, and replace that with the right instance once the entity gets managed, that should cover most of the use cases.

I guess we could store the config reference on the entity prototype during discovery, and replace that with the right instance once the entity gets managed, that should cover most of the use cases.

Dose this affect the multi em instance ?

That is a static method, it cannot respect any configuration, it does not have a way to read it.

How about use the context hook ? the static methdo try to read the config from context that match the current managed em  ?

Dose this affect the multi em instance ?

Well, yes, but don't tell me you would like to have different serialization configs for those.

How about use the context hook ?

What's that? You mean the request context? That's an optional feature, I need a universal solution (and yet again, the callback to obtain a context is described in the config).

the static methdo try to read the config from context that match the current managed em ?

If an entity is managed, it already has the right EM link attached on it, and that is what would be always preferred. The problem is really just with not managed entities (and I think its safe to say those are not really serialized for most of the times).

Implemented in v6 via 9a4de460b40d04c83f03d66556f5e1efb5d5fdb0


KYLIN-4108 Show slow query hit cube info

Codecov Report

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

@@            Coverage Diff            @@
##             master     #787   +/-   ##
=========================================
  Coverage          ?   25.75%
  Complexity        ?     6048
=========================================
  Files             ?     1394
  Lines             ?    83016
  Branches          ?    11610
=========================================
  Hits              ?    21381
  Misses            ?    59581
  Partials          ?     2054

Impacted Files
Coverage Δ
Complexity Δ

...va/org/apache/kylin/rest/service/QueryService.java
0% <0%> (ø)
0 <0> (?)

...kylin/query/relnode/OLAPToEnumerableConverter.java
0% <0%> (ø)
0 <0> (?)

...rg/apache/kylin/query/util/QueryInfoCollector.java
0% <0%> (ø)
0 <0> (?)

...rg/apache/kylin/rest/service/BadQueryDetector.java
0% <0%> (ø)
0 <0> (?)

.../apache/kylin/metadata/badquery/BadQueryEntry.java
45.61% <40%> (ø)
12 <1> (?)

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 d2c3cd3...0425e56. Read the comment docs.

I am creating a tool to aid developers by partially automating unit testing.
Could you speak to the validity of these generated assert statement for the given test method?
All test methods come from the file: server/src/test/java/org/apache/kylin/rest/service/BadQueryDetectorTest.java
Test Method: test
Assert Statement(s):
org . junit . Assert . assertNotNull ( adj )
org . junit . Assert . assertNotNull ( QueryInfoCollector )
Test Method: testSlowQuery
Assert Statement(s):
org . junit . Assert . assertEquals ( alertMB , result . getAdj ( ) )
Thank you for your time.


Hide tab icons?

Housekeeping

[X] I'm sure this issue is not a duplicate

Information:
There is a an old issue related for this that looks like this option should be somewhere but I can't find it
So, how to hide icons on the editor tabs (not hide tabs completely, just the icons)?

You’re looking for the setting workbench.editor.showIcons.


Migration from BBloggsbott/Profile Server

Good use of various Java Features, with proper exceptions. Keep up the good work @BBloggsbott  :1st_place_medal: :+1:


Cannot use Insomnia Tags

Hello. First of all, Thanks For So Best App!!!)))
When i use Insomnia Tags for fill response body or query params (with JsonPath from another request),  I get a tag flag as string
like a
### Пример ответ
<!-- RESPONSE -->
    ```
{% response 'raw', 'req_6f556f2bae314b9591e79fdcbce9754c', '', 'always', 60 %}
    ```
<!-- ENDRESPONSE -->

Is it possible to fix this???

Functions-to-perform are not supported (and will likely not be, since they're meant to be used from within Insomnia). Insomnia doesn't evaluate functions when exporting to JSON, and making the documenter evaluate them on runtime is not something I want to do, for design reasons.
Related issues #14 #21

Functions-to-perform are not supported (and will likely not be, since they're meant to be used from within Insomnia). Insomnia doesn't evaluate functions when exporting to JSON, and making the documenter evaluate them on runtime is not something I want to do, for design reasons.
Related issues #14 #21

I have opened an issue on the repo since that time. hopefully, they would attend to it ASAP.
https://github.com/Kong/insomnia/issues/2688

I've found a workaround for outputting aliases instead of the flag.
This is not really useful for your case, where you'd like the tag contents on the documentation. However, in case you only need a nice placeholder for the tag, you could do this:

Define environment variables. Make sure to place the Template Tag between double quotes.

Use those variables as you would use the tags.

Export the documentation. You should have the environment variable names as expected.


single coordinate is overwritten with dimension by set_index

Code Sample
import xarray as xr
d = xr.DataArray([0], coords={'coord': ('dim', [0])}, dims=['dim'])
d.set_index(append=True, inplace=True, dim=['coord'])
d.sel(dim=0)  # works
d.sel(coord=0)  # doesn't work, coord does not exist anymore
print(d)

<xarray.DataArray (dim: 1)>
array([0])
Coordinates:
  * dim      (dim) int64 0

Problem description
when a DataArray is initialized with a dimension containing only one coordinate, selection on the coordinate is not directly possible. As a workaround, we can set_index but if there is only one coordinate on a dimension, the coordinate vanishes and its values are attached to the dimension directly.
The DataArrays in my use case are generic, in some cases there are multiple coordinates and sometimes there is only one. If the one consistent coordinate is discarded for some cases, follow-up code becomes tedious.
Having a single-coordinate MultiIndex would be much more intuitive so that one can still .sel over the coordinate.
Expected Output
<xarray.DataArray (dim: 1)>
array([0])
Coordinates:
  * dim      MultiIndex
    coord   (dim) int64 0

For more than one coordinate on the dimension, the dimension becomes a MultiIndex with all the coordinates. With only a single coordinate however, this does not happen.

I would expect that providing dimensions to coordinates in the constructor would lead to the same outcome as attaching them via stack:
d1 = xr.DataArray([0], coords={'coord_a': ('coord_a', [0])}, dims=['coord_a']).stack(dim=['coord_a'])
d2 = xr.DataArray([0], coords={'coord_a': ('dim', [0])}, dims=['dim'])

But d1.sel(coord_a=0) works while d2.sel(coord_a=0) does not. Does stack build a MultiIndex and the constructor does not?

Thanks @mschrimpf
What's you clarify what's the intended output?

I would expect the dimension to become a MultiIndex with a single coordinate:
<xarray.DataArray (dim: 1)>
array([0])
Coordinates:
  * dim      MultiIndex
    coord   (dim) int64 0

When there is more than one coordinate that is what happens, but not when there is only a single coordinate.

Thanks!
I agree. For a comparable case when a list of length 2 is passed:

d = xr.DataArray([0], coords={'coord1': ('dim', [0]), 'coord2': ('dim', [1])}, dims=['dim'])

In [22]: d
Out[22]:
<xarray.DataArray (dim: 1)>
array([0])
Coordinates:
    coord2   (dim) int64 1
    coord1   (dim) int64 0
Dimensions without coordinates: dim

In [23]: d.set_index(append=True,  dim=['coord1','coord2'])
Out[23]:
<xarray.DataArray (dim: 1)>
array([0])
Coordinates:
  * dim      (dim) MultiIndex
  - coord1   (dim) int64 0
  - coord2   (dim) int64 1

I think the rule should be that if a list is passed, it's a multi-index, as per the doc-string.

I think the issue stems from this line of code. Removing it leads to the desired MultiIndex.
But I'm not sure if it leads to downstream issues, e.g selecting over coord1 then seems to also squeeze that dimension.

still relevant


[google_maps_flutter] java.lang.SecurityException: GoogleCertificatesRslt: not allowed exception: pkg={package_name}

Flutter Doctor
[✓] Flutter (Channel stable, 3.0.1, on Arch Linux 5.18.12-arch1-1, locale en_US.UTF-8)
    • Flutter version 3.0.1 at /home/cybex/.flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (3 months ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
    • Android SDK at /home/cybex/Android/Sdk
    • Platform android-33, build-tools 33.0.0-rc1
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /usr/bin/google-chrome-stable

[✓] Linux toolchain - develop for Linux desktop
    • clang version 14.0.6
    • cmake version 3.23.2
    • ninja version 1.11.0
    • pkg-config version 1.8.0

[✓] Android Studio (version 2021.2)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 69.0.2
    • Dart plugin version 212.5744
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3)
    • IntelliJ at /home/cybex/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/213.6777.52
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] Connected device (3 available)
    • SM N975U1 (mobile) • RF8MC02F23L • android-arm64  • Android 12 (API 31)
    • Linux (desktop)    • linux       • linux-x64      • Arch Linux 5.18.12-arch1-1
    • Chrome (web)       • chrome      • web-javascript • Google Chrome 103.0.5060.114

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Problem:
There does not appear to be much information about this java.lang.SecurityException: GoogleCertificatesRslt: not allowed: exception nor resolutions for it and it appears to be unique to this package.
Following steps to setup/configure Google Maps integration into Flutter results in an exception. The maps object still show tiles and is usable, however this exception should be addressed.
Project Setup:

Add to pubspec (https://pub.dev/packages/google_maps_flutter#getting-started)

pubspec.yaml
environment:
  sdk: ">=2.17.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  ...

  google_maps_flutter: ^2.1.10

Enable & Generate API keys from Google Maps SDK (restrict with SHA256 from signingTool & playstore [android] or bundleId [iOS)

Note: SHA256 & SHA1 hashes are used for Firebase login (with phone) which work as intended.

Set minSdkVersion

android/app/build.gradle
android {
    defaultConfig {
            applicationId "my.awesome.app"
            minSdkVersion 20
            targetSdkVersion flutter.targetSdkVersion
            ...
    }
}

Add API_KEY (android)

AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="my.awesome.app">

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="{restricted Android Maps API key}" />

    <application
        android:name="${applicationName}"
        android:icon="@mipmap/ic_launcher"
        android:label="My Awesome App">

        <activity.../>

       ...

    </application>
</manifest>

Implementation (Android)
class _Maps extends StatelessWidget {
  const _Maps({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
   final googleMapController = Completer<GoogleMapController>();

    return GoogleMap(
      mapType: MapType.hybrid,
      initialCameraPosition: _kGooglePlex,
      onMapCreated: (GoogleMapController controller) => googleMapController.complete(controller),
    );
  }
}

Results in the following error/exception.
Exception:
W/DynamiteModule( 9849): Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule( 9849): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
I/DynamiteModule( 9849): Selected remote version of com.google.android.gms.googlecertificates, version >= 7
I/SnapshotHandler( 9849): Unable to retrieve flag snapshot for com.google.android.libraries.consentverifier#my.awesome.app, using defaults.
W/MobStoreFlagStore( 9849): Unable to update local snapshot for com.google.android.libraries.consentverifier#my.awesome.app, may result in stale flags.
W/MobStoreFlagStore( 9849): java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=my.awesome.app, sha256=[valid-sha256-hash], atk=false, ver=222615044.true (go/gsrlt)
W/MobStoreFlagStore( 9849): 	at ahv.s(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):3)
W/MobStoreFlagStore( 9849): 	at ahv.get(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):2)
W/MobStoreFlagStore( 9849): 	at ajf.g(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):2)
W/MobStoreFlagStore( 9849): 	at xx.d(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):1)
W/MobStoreFlagStore( 9849): 	at xz.run(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):0)
W/MobStoreFlagStore( 9849): 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/MobStoreFlagStore( 9849): 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/MobStoreFlagStore( 9849): 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
W/MobStoreFlagStore( 9849): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/MobStoreFlagStore( 9849): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/MobStoreFlagStore( 9849): 	at java.lang.Thread.run(Thread.java:920)
W/MobStoreFlagStore( 9849): Caused by: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=my.awesome.app, sha256=[valid-sha256-hash], atk=false, ver=222615044.true (go/gsrlt)
W/MobStoreFlagStore( 9849): 	at android.os.Parcel.createExceptionOrNull(Parcel.java:2437)
W/MobStoreFlagStore( 9849): 	at android.os.Parcel.createException(Parcel.java:2421)
W/MobStoreFlagStore( 9849): 	at android.os.Parcel.readException(Parcel.java:2404)
W/MobStoreFlagStore( 9849): 	at android.os.Parcel.readException(Parcel.java:2346)
W/MobStoreFlagStore( 9849): 	at em.bc(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):2)
W/MobStoreFlagStore( 9849): 	at rj.a(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):4)
W/MobStoreFlagStore( 9849): 	at it.e(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):2)
W/MobStoreFlagStore( 9849): 	at js.t(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):2)
W/MobStoreFlagStore( 9849): 	at js.u(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):3)
W/MobStoreFlagStore( 9849): 	at js.e(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):2)
W/MobStoreFlagStore( 9849): 	at jw.handleMessage(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190400-0):69)
W/MobStoreFlagStore( 9849): 	at android.os.Handler.dispatchMessage(Handler.java:102)
W/MobStoreFlagStore( 9849): 	at android.os.Looper.loopOnce(Looper.java:226)
W/MobStoreFlagStore( 9849): 	at android.os.Looper.loop(Looper.java:313)
W/MobStoreFlagStore( 9849): 	at android.os.HandlerThread.run(HandlerThread.java:67)

I am also facing this problem. anyone please share solution for the same.

Hi @cybex-dev, Thanks for filing the issue. I am able to reproduce the issue on the latest stable and the master channel. Upon quick search I landed on this issue tracker https://issuetracker.google.com/issues/228091313?pli=1, So I think this issue doesn't seem to be from the plugin, But from the Google services, But I may be wrong, Labeling this issue for further insights from the team.

logs
Could not load custom device from config index 0: Expected enabled to be a boolean.
Running "flutter pub get" in sample...
Launching lib/main.dart on Redmi K20 Pro in debug mode...
Note: /Users/mahesh/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-2.1.10/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Connecting to VM Service at ws://<IP_ADDRESS>:65195/ljMiJj27KfY=/ws
W/BpBinder(25028): PerfMonitor binderTransact :  time=326ms interface=android.view.IWindowSession code=5
W/Looper  (25028): PerfMonitor doFrame : time=333ms vsyncFrame=2338631 latency=1ms procState=2
D/MapsInitializer(25028): preferredRenderer: null
D/zzca    (25028): preferredRenderer: null
I/zzca    (25028): Making Creator dynamically
I/DynamiteModule(25028): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:203115000
I/DynamiteModule(25028): Selected remote version of com.google.android.gms.maps_dynamite, version >= 203115000
V/DynamiteModule(25028): Dynamite loader version >= 2, using loadModule2NoCrashUtils
W/System  (25028): ClassLoader referenced unknown path:
W/.example.sampl(25028): ClassLoaderContext classpath size mismatch. expected=4, found=1 (DLC[];PCL[/data/app/~~L5DUgCsiqN801GzjXtNE5g==/com.whatsapp-7750a_c4Qkt-Yu9TCV-gCA==/base.apk*1325529428:/data/app/~~L5DUgCsiqN801GzjXtNE5g==/com.whatsapp-7750a_c4Qkt-Yu9TCV-gCA==/base.apk!classes2.dex*2747456886:/data/app/~~L5DUgCsiqN801GzjXtNE5g==/com.whatsapp-7750a_c4Qkt-Yu9TCV-gCA==/base.apk!classes3.dex*3233097562:/data/app/~~L5DUgCsiqN801GzjXtNE5g==/com.whatsapp-7750a_c4Qkt-Yu9TCV-gCA==/base.apk!classes4.dex*2860009861]{PCL[/system/framework/org.apache.http.legacy.jar*1721227950]} | DLC[];PCL[/data/app/~~fX7E1TsanF4r86EXL8gz8A==/com.example.sample-p0cvUytg_b-nLwqm32BK7Q==/base.apk*981096004]{PCL[/system/framework/org.apache.http.legacy.jar*1721227950]})
W/.example.sampl(25028): Found duplicate classes, falling back to extracting from APK : /data/user_de/0/com.google.android.gms/app_chimera/m/0000032c/MapsDynamite.apk
W/.example.sampl(25028): NOTE: This wastes RAM and hurts startup performance.
W/.example.sampl(25028): Found duplicated class when checking oat files: 'Landroid/support/v4/app/RemoteActionCompatParcelizer;' in /data/app/~~fX7E1TsanF4r86EXL8gz8A==/com.example.sample-p0cvUytg_b-nLwqm32BK7Q==/base.apk and /data/user_de/0/com.google.android.gms/app_chimera/m/0000032c/MapsDynamite.apk
I/Google Maps Android API(25028): Google Play services client version: 12451000
I/SnapshotHandler(25028): Unable to retrieve flag snapshot for com.google.android.gms.maps#com.example.sample, using defaults.
I/Google Maps Android API(25028): Google Play services package version: 222615037
I/Google Maps Android API(25028): Google Play services maps renderer version(legacy): 203115000
D/MapsInitializer(25028): loadedRenderer: LEGACY
D/zzca    (25028): preferredRenderer: null
I/Google Maps Android API(25028): Google Play services package version: 222615037
I/Google Maps Android API(25028): Google Play services maps renderer version(legacy): 203115000
I/TetheringManager(25028): registerTetheringEventCallback:com.example.sample
W/Google Maps Android API(25028): Deprecation notice: In a future release, indoor will no longer be supported on satellite, hybrid or terrain type maps. Even where indoor is not supported, isIndoorEnabled() will continue to return the value that has been set via setIndoorEnabled(), as it does now. By default, setIndoorEnabled is 'true'. The API release notes (https://developers.google.com/maps/documentation/android-api/releases) will let you know when indoor support becomes unavailable on those map types.
I/PlatformViewsController(25028): Hosting view in a virtual display for platform view: 0
I/Choreographer(25028): Skipped 30 frames!  The application may be doing too much work on its main thread.
I/.example.sampl(25028): ProcessProfilingInfo new_methods=1380 is saved saved_to_disk=1 resolve_classes_delay=8000
D/SurfaceView(25028): UPDATE null, mIsCastMode = false
W/Looper  (25028): PerfMonitor doFrame : time=80ms vsyncFrame=2338741 latency=502ms procState=2 historyMsgCount=1 (msgIndex=1 wall=516ms seq=113 running=323ms runnable=29ms io=41ms binder=121ms h=android.os.Handler c=io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0)
E/GoogleMapController(25028): Cannot enable MyLocation layer as location permissions are not granted
I/ba      (25028): Successfully registered with Phenotype.
W/BpBinder(25028): PerfMonitor binderTransact :  time=562ms interface=com.google.android.gms.maps.auth.IApiTokenService code=1
E/libc    (25028): Access denied finding property "ro.vendor.df.effect.conflict"
E/libc    (25028): Access denied finding property "ro.vendor.knock.type"
W/Thread-6(25028): type=1400 audit(0.0:289830): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=29893 scontext=u:r:untrusted_app:s0:c112,c260,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 app=com.example.sample
W/DynamiteModule(25028): Local module descriptor class for com.google.android.gms.googlecertificates not found.
I/DynamiteModule(25028): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
I/DynamiteModule(25028): Selected remote version of com.google.android.gms.googlecertificates, version >= 7
I/SnapshotHandler(25028): Unable to retrieve flag snapshot for com.google.android.libraries.consentverifier#com.example.sample, using defaults.
W/MobStoreFlagStore(25028): Unable to update local snapshot for com.google.android.libraries.consentverifier#com.example.sample, may result in stale flags.
W/MobStoreFlagStore(25028): java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.example.sample, sha256=[7977edf4787b8f62b4ba85af96f3c847404ee6ed8f93f9b1b92080dc7a8fcba7], atk=false, ver=222615037.true (go/gsrlt)
W/MobStoreFlagStore(25028): 	at ahv.s(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):3)
W/MobStoreFlagStore(25028): 	at ahv.get(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):2)
W/MobStoreFlagStore(25028): 	at ajf.g(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):2)
W/MobStoreFlagStore(25028): 	at xx.d(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):1)
W/MobStoreFlagStore(25028): 	at xz.run(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):0)
W/MobStoreFlagStore(25028): 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/MobStoreFlagStore(25028): 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/MobStoreFlagStore(25028): 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
W/MobStoreFlagStore(25028): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/MobStoreFlagStore(25028): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/MobStoreFlagStore(25028): 	at java.lang.Thread.run(Thread.java:923)
W/MobStoreFlagStore(25028): Caused by: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.example.sample, sha256=[7977edf4787b8f62b4ba85af96f3c847404ee6ed8f93f9b1b92080dc7a8fcba7], atk=false, ver=222615037.true (go/gsrlt)
W/MobStoreFlagStore(25028): 	at android.os.Parcel.createExceptionOrNull(Parcel.java:2376)
W/MobStoreFlagStore(25028): 	at android.os.Parcel.createException(Parcel.java:2360)
W/MobStoreFlagStore(25028): 	at android.os.Parcel.readException(Parcel.java:2343)
W/MobStoreFlagStore(25028): 	at android.os.Parcel.readException(Parcel.java:2285)
W/MobStoreFlagStore(25028): 	at em.bc(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):2)
W/MobStoreFlagStore(25028): 	at rj.a(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):4)
W/MobStoreFlagStore(25028): 	at it.e(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):2)
W/MobStoreFlagStore(25028): 	at js.t(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):2)
W/MobStoreFlagStore(25028): 	at js.u(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):3)
W/MobStoreFlagStore(25028): 	at js.e(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):2)
W/MobStoreFlagStore(25028): 	at jw.handleMessage(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(150400-0):69)
W/MobStoreFlagStore(25028): 	at android.os.Handler.dispatchMessage(Handler.java:102)
W/MobStoreFlagStore(25028): 	at android.os.Looper.loop(Looper.java:236)
W/MobStoreFlagStore(25028): 	at android.os.HandlerThread.run(HandlerThread.java:67)
I/Counters(25028): exceeded sample count in FrameTime
I/Counters(25028): exceeded sample count in FrameTime
I/chatty  (25028): uid=11136(com.example.sample) androidmapsapi- identical 3 lines
I/Counters(25028): exceeded sample count in FrameTime
I/Counters(25028): exceeded sample count in FrameTime
I/chatty  (25028): uid=11136(com.example.sample) androidmapsapi- identical 6 lines
I/Counters(25028): exceeded sample count in FrameTime
I/Counters(25028): exceeded sample count in FrameTime
I/chatty  (25028): uid=11136(com.example.sample) androidmapsapi- identical 8 lines
I/Counters(25028): exceeded sample count in FrameTime
I/Counters(25028): exceeded sample count in FrameTime
I/chatty  (25028): uid=11136(com.example.sample) androidmapsapi- identical 8 lines
I/Counters(25028): exceeded sample count in FrameTime
I/Counters(25028): exceeded sample count in FrameTime
I/Counters(25028): exceeded sample count in FrameTime
I/chatty  (25028): uid=11136(com.example.sample) androidmapsapi- identical 7 lines
I/Counters(25028): exceeded sample count in FrameTime
I/Counters(25028): exceeded sample count in FrameTime
I/chatty  (25028): uid=11136(com.example.sample) androidmapsapi- identical 6 lines
I/Counters(25028): exceeded sample count in FrameTime

flutter doctor -v (mac)
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale en-IN)
    • Flutter version 3.0.5 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (5 days ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 103.0.5060.114

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[✓] Flutter (Channel master, 3.1.0-0.0.pre.2009, on macOS 12.4 21F79 darwin-arm, locale en-IN)
    • Flutter version 3.1.0-0.0.pre.2009 on channel master at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9d96c7b8be (3 days ago), 2022-08-01 00:39:06 -0400
    • Engine revision cf0db3e546
    • Dart version 2.19.0 (build 2.19.0-49.0.dev)
    • DevTools version 2.16.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-32, build-tools 33.0.0-rc4
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 104.0.5112.79

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hi @cybex-dev , I really don't know if this is related but let me tell you how I reached this issue, and maybe It can help us to understand what is happening.
I'm trying to intercept traffic using an TLS/SSL proxy. I'm using Frida to bypass security controls like certificate pinning (Its for cybersecurity research purposes). I've been able to "resolve" most of pinning issues, but the application is using Recaptcha (google service) to combat possible brute-force on a specific endpoint... and I'm thinking this is the only pinning/certificate transparency or something related issue that I can't handle.
I didn't receive any call on my TLS proxy, but the application suddenly closes the Recaptcha and show an generic communication error to the user.
In logcat I received this message:
08-11 13:10:07.543 13327 13407 E bgqz    : GoogleCertificatesRslt: not allowed: pkg=[my package], sha256=[], atk=false, ver=222615030.true (go/gsrlt): null [CONTEXT service_id=247 ]

Same for me. My map cannot be dragged. any update?

Same error, still not working.  - GoogleCertificatesRslt: not allowed: pkg=...

Same error, I am using google maps in my app and I have to publish it, but due to this issue I am unable to publish my app, the app crashes when I open the google maps page.
java.lang.SecurityException: GoogleCertificatesRslt:
@maheshmnj

I have the same error despite i have setup correctly my API key restrictions

Same error, any news on this please?

Same error

The map feels significantly more jittery when dragging

sam error, but map is working

same error
any fix yet

same here

same error

Same error!

Same error here.

Same issue here, any solution yet?

sam error, but map is working

map working in old devices or older versions of android. I have a physical device of android 9, and map is working in it but in a second device of Android 12, it is not working

It's work for me
implementation 'com.google.android.gms:play-services-location:19.0.1'

@cybex-dev did you find any workaround for this?

same error..bu i am using ionic capacitor

same error here

Are there any workarounds here someone can share?

java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.g4flex.flex4company, sha256=[MY-SHA256-HERE], atk=false, ver=224113044.true (go/gsrlt)
that was the error i've got.
so i added the provided SHA256 key to the firebase SDK config.
it worked

Where is the Firebase SDK config @ArlysthonFeitosa ? Can you be more specific, as its an ongoing issue that hasn't been resolved.

i thought that it was solved, but no :(

any update???

Any update?

Same problem

Same problem here

Same problem here, but with native Android, latest Play Services, maps and location lib. Map working fine but logcat prints the error

Same problem

same problem

same problem

Any update on this?

Same error but with ionic capacitor, Any updates?

Facing the same issue.

up

same here

I got the same issue in android only and after researching on google i found out that after enabling
Maps SDK for Android API on https://console.cloud.google.com/google/maps-apis/ issue was resolved and maps started loading without any code change.

I got the same issue in ANDROID ONLY after researching on google i found out that after enabling
'Maps SDK for Android API' on https://console.cloud.google.com/google/maps-apis/ issue was resolved and maps started loading without any code change.

same problem
Facing the same issue ...

Please avoid comments like these, They do not provide any value to the issue, But instead, just ping everyone unnecessarily in the thread.

I can still reproduce this issue on Master (3.7.0-3.0.pre.37). I have restricted the API with my SHA-1 debug key.

Code Sample
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Center(
        child: _Maps(),
      ),
    );
  }
}

class _Maps extends StatelessWidget {
  const _Maps({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final googleMapController = Completer<GoogleMapController>();

    return GoogleMap(
      mapType: MapType.hybrid,
      initialCameraPosition: const CameraPosition(target: LatLng(0, 0)),
      onMapCreated: (GoogleMapController controller) =>
          googleMapController.complete(controller),
    );
  }
}

Error logs
W/MobStoreFlagStore( 5422): Caused by: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.example.issue_109115, sha256=[43fe49f69c6fc547842cf70697e5e03513610ff9c4ff3590a4dfc15c47e6f44c], atk=true, ver=221821047.true (go/gsrlt)
W/MobStoreFlagStore( 5422): 	at android.os.Parcel.createExceptionOrNull(Parcel.java:3011)
W/MobStoreFlagStore( 5422): 	at android.os.Parcel.createException(Parcel.java:2995)
W/MobStoreFlagStore( 5422): 	at android.os.Parcel.readException(Parcel.java:2978)
W/MobStoreFlagStore( 5422): 	at android.os.Parcel.readException(Parcel.java:2920)
W/MobStoreFlagStore( 5422): 	at ei.ba(:com.google.android.gms.dynamite_mapsdynamite<EMAIL_ADDRESS>(190800-0):2)

This appears to be solved now https://github.com/flutter/plugins/pull/6619
Available in google_maps_flutter 2.2.2

i am also having the same problem. what should I do?

check permissions app, this work's for me

I have the same error here !
Any update please

Same here 😞

Hello guys. Instead of commenting "Same", please upvote the original comment with a thumbs up emoji. The team uses this as a metric to prioritize issues. Thank you

It happened to me trying in the Android Emulator.
As soon as I tried in a real device, the error was not showing up.
It looks to be, at least on my case, to the missing Google Play SDK, and probably a Google account configured in the device, to access APIs like Google Maps.

any update?

Closing as out of scope; per https://issuetracker.google.com/issues/228091313#comment19 this is an issue in the Google Maps SDK itself, not with the Flutter plugin, and thus isn't something the Flutter team can fix.
The comments there indicate that the new renderer does not have this logging issue; see https://pub.dev/packages/google_maps_flutter_android#map-renderer for instructions on enabling it in Flutter.

Actually I realized that the problem is related to API keys. I was getting the same error in a Flutter project using Firebase.
After running the application with the key on the Google Cloud Console for the solution, I saw a change when I downloaded the google-services.json file in Firebase again.
The problem is now fixed for me.


RDP doesn't work through Azure Firewall

I have a simple setup of Azure Firewall in a single subnet "firewall subnet'. I have a VM deployed into a subnet on the same VNET as the firewall 'vm-subnet'.
I have a default route 'to-firewall' of <IP_ADDRESS>/0 to point to the private IP of the firewall. The problem is, as soon as I associate the 'vm-subnet' with the route of 'to-firewall' then I cannot RDP any longer. I am trying to RDP over the internet (i know a security no-no but I'm just trying to do a quick test)
I suspect the firewall is denying outbound RDP traffic but I don't know how to fix this. I added a network collection rule to all port 3389 on * but it didn't help

@liamfoneill Thank you for the question. We need to know the URL of the Azure doc that you are having issues with in order to further assist you. We look forward to your reply.

@liamfoneill Since we have not heard back from you 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 reopen the issue and continue the discussion.


Custom Templates are not loading, backdrop is retained and app locks out

I was trying to create a different template for the search modal, but it didn't seem to be working at all for me. So I copied the default template into its own html file and tried to run it using template-url but the app just retains the backdrop, and the template doesn't load up.
The issue can be seen in this plnkr

Hi Khaled,
in your template you use this this as the first line:

But there the problem is the randomCssClass which need to be set correctly. So when you add this as the first line the example works properly:

You can read more here how to set it properly: https://github.com/guylabs/ion-autocomplete#template-url
Thanks and regards,
Guy

Whoa! :worried: idk how I missed that.. :+1: Thank you!


[BUG] Server crash when player wins with knife

Since the latest CS2 update, now when a player wins (by knifing) it crashes.
Metamod:Source: 2.0.0-1282
CounterStrikeSharp: 163
GunGame: 1.0.7

Log:
Feb  9 09:15:58 cs2-server: Gh0stye killed Kus with glock
Feb  9 09:16:08 cs2-server: Kus killed Gh0stye with knife_karambit
Feb  9 09:16:08 cs2-server: 09:16:08 [INFO] (plugin:CS2_GunGame) Winner Kus
Feb  9 09:16:08 cs2-server: 09:16:08 [INFO] (plugin:CS2_GunGame) Kus won, wins was 0
Feb  9 09:16:09 cs2-server: [GunGame_Stats] Saved player wins for Kus - 1
Feb  9 09:16:09 cs2-server: Call EndMultiplayerGame in 5 seconds
Feb  9 09:16:09 cs2-server kernel: [  717.955421] show_signal_msg: 33 callbacks suppressed
Feb  9 09:16:09 cs2-server kernel: [  717.955424] cs2[1875]: segfault at 10 ip 00007fd99a4a88e1 sp 00007fff18160e40 error 4 in libserver.so[7fd99a04b000+47d000]
Feb  9 09:16:09 cs2-server kernel: [  717.955435] Code: 41 54 49 89 d4 48 89 f2 53 4c 89 c3 48 83 ec 18 48 8d 05 92 f1 6c 00 48 8b 30 e8 0a 7e 01 00 48 8b 45 c0 48 8d 75 c8 45 89 f1 <49> 8b 7f 10 49 89 d8 4c 89 e9 4c 89 e2 48 89 45 c8 e8 19 c1 ff ff

@kus we should wait for the latest update of CounterStrikeSharp or you can update your gamedata yourself from here
https://pastebin.com/MEsUt0mu
This specific part is responsible for this crash:
"LegacyGameEventListener": {     "signatures": {       "library": "server",       "windows": "\\x48\\x8B\\x15\\x2A\\x2A\\x2A\\x2A\\x48\\x85\\xD2\\x74\\x2A\\x85\\xC9\\x74",       "linux": "\\x48\\x8B\\x05\\x2A\\x2A\\x2A\\x2A\\x48\\x85\\xC0\\x74\\x2A\\x83\\xFF\\x3F\\x76\\x2A\\x31\\xC0"     }   },
But some other parts are important too.

@kus we should wait for the latest update of CounterStrikeSharp or you can update your gamedata yourself from here https://pastebin.com/MEsUt0mu
This specific part is responsible for this crash: "LegacyGameEventListener": { "signatures": { "library": "server", "windows": "\\x48\\x8B\\x15\\x2A\\x2A\\x2A\\x2A\\x48\\x85\\xD2\\x74\\x2A\\x85\\xC9\\x74", "linux": "\\x48\\x8B\\x05\\x2A\\x2A\\x2A\\x2A\\x48\\x85\\xC0\\x74\\x2A\\x83\\xFF\\x3F\\x76\\x2A\\x31\\xC0" } },
But some other parts are important too.

@ssypchenko thanks, confirming that has fixed it.


Confusing behavior for datashade and redim

If I call redim.range on a plot before specifying the datashader operator, it works as expected:
import pandas as pd
import numpy as np
import datashader as ds
import datashader.transfer_functions as tf
import holoviews as hv
import holoviews.operation.datashader as hvd

hvd.shade.cmap=["lightblue", "darkblue"]
hv.extension("bokeh")
np.random.seed(1)

df = pd.DataFrame.from_items([('x',np.random.normal(0,2,10000)),
                              ('y',np.random.normal(0,2,10000))])

cvs = ds.Canvas(plot_width=300, plot_height=300, x_range=(-5,5), y_range=(-5,5))
agg = cvs.points(df, 'x', 'y')
tf.shade(agg)

plot = hvd.datashade(hv.Points(df).redim.range(x=(-5,5),y=(-5,5)))
plot.opts(plot=dict(height=300,width=300))

But if I call it afterwards, the first plot shown is at a bogus low resolution, presumably because it has been snipped out of a datashader rendering of the entire available plot range:
plot = hvd.datashade(hv.Points(df))
plot.opts(plot=dict(height=300,width=300)).redim.range(x=(-5,5),y=(-5,5))

The plot still updates correctly when zooming in at this point, but it would be nice if the plot could automatically update after rendering to respect the provided range, just as it already does to respect the plot size.

@jbednar I believe this is another instance of the issue I have run into,
I have been trying to programmatically write out multiple plots that contain datashader layers and trying to avoid rendering them in a notebook first (there is quite a few of them).
My data are best viewed with a long x-axis relative to y-axis so I scale the components with .opts(plot=dict(width=1200, height=300)) but the  datashader layer(s) seem to be initially rendered at the default dimensions (a square) and not redrawn before they are scaled so the resulting image is low resolution and stretched:

If I render the plot in the notebook before I save it to disk then the datashader layer is updated and renders correctly in the output, but this is not the ideal method:

Example code:
points = hv.Points(dataframe,
                   kdims=['position', 'score'])

plot = datashade(points,
                 y_range=(-1, 1),
                 color_key=pallet,
                 aggregator=ds.count_cat('group')).opts(plot=dict(width=1200, height=300))

renderer = hv.renderer('bokeh')
renderer.save(plot, 'example')

Is there another way to force the datashader layer to redraw without rendering it in the notebook?

@timothymillar No, the PlotSize stream waits on bokeh to display the plot to figure out the appropriate width and height for it. I'd suggest setting a higher default width and height:
plot = datashade(points,
                 y_range=(-1, 1),
                 width=1200, height=300,
                 color_key=pallet,
                 aggregator=ds.count_cat('group')).opts(plot=dict(width=1200, height=300))

@philippjfr thanks for the quick response (and for holoviews)!
That works perfectly, don't know how I missed it...


Monitor Trusted Advisor checks using EventBridge

See https://docs.aws.amazon.com/awssupport/latest/user/cloudwatch-ta.html

Oops...

Amazon Web Services Premium Support Subscription is required to use this service.

Oh nevermind, that error only occurs if you want to filter the event by specific services, right CloudFormation?


Hope you like my cooltribuition 😝

Pull Request Requirements

[x] I have followed the directions and format under contributing.md and readme.md
[x] Arrange your username in alphabetical order based on the first letter, then the second letter, and so on. (For example, if your username is "JohnDoe", it should         be grouped under the "J" category and placed in alphabetical order based on the next letter "o" and so on.
[x] I added my github link
[x] I added a personal goal for this year

Congrats and Thank you!

looks great thanks!


regular timestamps calculated

https://github.com/catalystneuro/datta-lab-to-nwb/blob/7540d94f152fcee2707131872d5410cd2e5f2d45/src/datta_lab_to_nwb/markowitz_gillis_nature_2023_keypoint/keypointinterface.py#L53
@pauladkisson why are we computing the timestamps here? Seems like we should be using starting time and sampling rate

Also, more importantly, is this the first stream? I couldn't find any logic to synchronize this with other streams in the conversion code.

Yes, this should be using starting time and sampling rate -- looks like a mistake made in all the confusion of temporal alignment.
We ended up adding the raw fiber photometry response data without temporal alignment, but with a comment warning that the raw data was not aligned. This is because the datta lab was unable to come up with the alignment information that we needed. All the other data streams (processed photometry, keypoints, moseq-extract output, etc.) are already aligned.

ok got it, thanks!

@pauladkisson did you want to regenerate the files with starting time + rate or just accept the less efficient timestamps and close the issue?

I can go ahead and regenerate the files, it should be an easy fix.


Output variation on the basis of Initialization

Check the variation in output if we replace the initialization of parameters on the basis of 1 day worth of data (first 288 records for all patients) compared to the current approach of using the entire training dataset for initialization (for both the quantile method and the naive approach).

Completed
No significant difference found in the trained model parameters using the quantile method


suspend should cancel bolus[wizard][carbs]

I canceled a bolus (while offline) and redid it, and the carbs register twice.

Some note taking... suspend affects bolus, and basal both.

@bewest @jasoncalabrese any suggestions on what we should do here?

Sounds like this is related to #387