WIP: Load controllers asynchronously using NewUnmanaged

Trying to find a way to make the secret controller work independently of the certificate based controller,
without having to start two managers and without having to have two shared informer caches.
Fixes: https://github.com/jetstack/cert-manager/issues/3251
NONE

We decided to make  #3254 to revert the changes to fix the issue, we should look at an improved way to fix this where this is a start of however it presents some issues which we need time for to look into. Keeping this PR open to look into those.

This is my attempt to use the controller.NewUnmanaged function from https://github.com/kubernetes-sigs/controller-runtime/pull/863 but I'm stuck on how to set up a custom Indexer for an unmanaged controller.
You can see the problem in the output below:
richard   3251-cainjector  ~  projects  cert-manager  cert-manager  SIGINT  go run ./cmd/cainjector --leader-elect=false --v=5
I0904 16:36:23.523573  532078 start.go:91] "starting" version="canary" revision=""
I0904 16:36:23.626541  532078 request.go:581] Throttling request took 70.927261ms, request: GET:https://<IP_ADDRESS>:35999/apis/networking.k8s.io/v1?timeout=32s
I0904 16:36:23.676516  532078 request.go:581] Throttling request took 116.746553ms, request: GET:https://<IP_ADDRESS>:35999/apis/cert-manager.io/v1beta1?timeout=32s
I0904 16:36:23.726505  532078 request.go:581] Throttling request took 166.713875ms, request: GET:https://<IP_ADDRESS>:35999/apis/cert-manager.io/v1alpha3?timeout=32s
I0904 16:36:23.776488  532078 request.go:581] Throttling request took 216.674967ms, request: GET:https://<IP_ADDRESS>:35999/apis/acme.cert-manager.io/v1alpha3?timeout=32s
I0904 16:36:23.826544  532078 request.go:581] Throttling request took 266.626811ms, request: GET:https://<IP_ADDRESS>:35999/apis/autoscaling/v2beta1?timeout=32s
I0904 16:36:23.876605  532078 request.go:581] Throttling request took 316.639039ms, request: GET:https://<IP_ADDRESS>:35999/apis/autoscaling/v2beta2?timeout=32s
I0904 16:36:23.926519  532078 request.go:581] Throttling request took 366.599458ms, request: GET:https://<IP_ADDRESS>:35999/apis/batch/v1?timeout=32s
I0904 16:36:23.976496  532078 request.go:581] Throttling request took 416.553636ms, request: GET:https://<IP_ADDRESS>:35999/apis/batch/v1beta1?timeout=32s
I0904 16:36:24.026575  532078 request.go:581] Throttling request took 466.562167ms, request: GET:https://<IP_ADDRESS>:35999/apis/acme.cert-manager.io/v1alpha2?timeout=32s
I0904 16:36:24.076508  532078 request.go:581] Throttling request took 516.389227ms, request: GET:https://<IP_ADDRESS>:35999/apis/coordination.k8s.io/v1?timeout=32s
I0904 16:36:24.126676  532078 request.go:581] Throttling request took 566.409649ms, request: GET:https://<IP_ADDRESS>:35999/apis/policy/v1beta1?timeout=32s
I0904 16:36:24.176517  532078 request.go:581] Throttling request took 616.256737ms, request: GET:https://<IP_ADDRESS>:35999/apis/rbac.authorization.k8s.io/v1?timeout=32s
I0904 16:36:24.180702  532078 shared_informer.go:270] caches populated
I0904 16:36:24.180931  532078 reflector.go:207] Starting reflector *v1beta1.MutatingWebhookConfiguration (10h32m12.487383418s) from pkg/mod/k8s.io/client-go@v0.19.0/tools/cache/reflector.go:156
I0904 16:36:24.180968  532078 reflector.go:243] Listing and watching *v1beta1.MutatingWebhookConfiguration from pkg/mod/k8s.io/client-go@v0.19.0/tools/cache/reflector.go:156
I0904 16:36:24.280995  532078 shared_informer.go:270] caches populated
I0904 16:36:24.281058  532078 shared_informer.go:270] caches populated
E0904 16:36:24.281265  532078 start.go:127] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:24.281304  532078 start.go:136] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:29.281587  532078 start.go:136] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:29.281595  532078 start.go:127] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:34.281871  532078 start.go:127] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:34.281870  532078 start.go:136] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:39.282141  532078 start.go:127] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:39.282205  532078 start.go:136] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:44.282480  532078 start.go:127] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"
E0904 16:36:44.282475  532078 start.go:136] cert-manager/ca-injector "msg"="error registering controllers" "error"="error from ApplyTo: error from GetFieldIndexer: informer has already started"

Replaced by https://github.com/jetstack/cert-manager/pull/3275


Added explicit exception when reading

The error is not understood otherwise and user is forced to look inside code to find what is going on.
Instead this is the displayed error: "UnboundLocalError: local variable 'image' referenced before assignment" because none of the conditions in if-statements where true so 'image' variable wouldn't have been defined hence this error, which is misleading since the real error resides at the input that shouldn't make the 'read' operation fail: raise an Exception that clearly shows that.

Closing due to inactivity.


Support for iOS 8.0 - 8.4

Hello,
I was testing jailbreak tools and recently came to my attention that the jailbreak tools for iOS 8 except for 8.4.1 no longer works. Is it possible to add untethered jailbreak support for other iOS 8 firmwares as well?
sincerely,

Zsign technical support:
Apple signature tool iPA supporting ios15 and ios16
Support the removal of dylib dynamic library
Support Windows Mobile mac
It can help solve the problems that IOS cannot be installed and verified
https://urlzs.com/44zCx

Same here, I have a iPhone5,3 which has 8.1 on it. I'd like to have an alternate jailbreak as there's no possible way to jailbreak with Pangu8 and TaiG. I have to default to 3uTools which installs the ppjailbreak, which unfortunately does not have tfp0 enabled. I can test if you happen to add iOS 8.x support. I just need a jailbreak for 8.1 that enables tfp0 because I need to dump the kernel to get offsets a project I'm working on.


[Review] Sprint 9

Review

Issues:

https://waffle.io/CERNDocumentServer/cds-books?milestone=Sprint 9

Timeline: https://cernbox.cern.ch/index.php/s/sWuZHrXKHkC7Hfc

UI

Force checkout for the user

added query builder helper

added facets for the documents (document type and language)
filtering by available items

Migrator kit

Migration rule for the related links: https://github.com/CERNDocumentServer/cds-dojson/issues/200

Q&A

Review
Home page, show only books (no proceeding, etc...):

ok the ones currently on loan
last 5-10 imported and more recent (publication year)
last 5-10 most recent e-books


Crystal 0.7.1 support

This PR fixes the code so that it compiles and works with Crystal 0.7.1 (but most likely breaks it in Crystal < 0.7.0).

:+1:


[CMSP-899] Remove our global for the upload_dir infinite loop

Per https://github.com/WordPress/gutenberg/pull/58839 the issue causing the infinite loop when upload_dir is used inside font_dir should be addressed.
This change removes our workaround for that issue and uses wp_get_upload_dir directly in the font_dir folder.
Note: While these changes have been merged into Gutenberg, they have not yet been merged into core or made part of the latest Gutenberg release. This should not be merged until this can be tested and confirmed working (PHP Unit tests are not sufficient).
Todo:

[x] Testing against latest core/Gutenberg

Tracked here
https://getpantheon.atlassian.net/browse/CMSP-899

this PR is confirmed working with WP 6.5-beta3-57756 & Gutenberg 17.8.2 (active and deactivated).


[EAGLE-724]Fix eagle-common checkstyle problem

Fix eagle-common checkstyle problem
https://issues.apache.org/jira/browse/EAGLE-724

@haoch  could you please merge this commit ASAP, otherwise I believe it could cause much conflicts.


Create basic Redeem page

This commit introduces the structure for the redeem page where users
will be able to retrieve their deposit from the course.
Included are a number of new contract functions used to check the status
of a user's stake, the block in which they registered, the course length
and finally send a transaction to retrieve their deposit.
Still needed is the ability for a user to select whether or not they'd
like to retrieve their deposit or mint $LEARN instead.

This is a wonderful start, thank you :heart: Great to see more web3 components being abstracted out.
Let me know if you have further thoughts about a simple toast-like notification provider to let learners know where they are in the course and when they can redeem - I should be around in Slack most of the day.


FakeYou API Token

Hi, how do i get the fakeyou api token?

Is it really needed for this to work?

Is it really needed for this to work?

No, it's not necessary. But without one, your commands will be put in a queue. There may be other limitations as well.

Hi. I'm lost as to how to get one voice set up in discord. Could you maybe specify the steps. Also the Client step doesn't work or I don't know if I'm doing it wrong. Is it Application ID?

Hi. I'm lost as to how to get one voice set up in discord. Could you maybe specify the steps. Also the Client step doesn't work or I don't know if I'm doing it wrong. Is it Application ID?

And how do I find my bot apps on the Discord app? Thank you.


Read Only Admin Role for Public Cloud

Describe the issue:
Comment from Olena from Oct 10, 2023:

Creating a Ministry admin role in the Registry for private and public projects. This role will allow the user to see and edit all projects belonging to their Ministry. This role will be used by people such as Ryan Louiselle and Justin Hewitt that look after the abandoned apps that belong to their Ministry.

Definition of Done:
GIVEN a user has been granted read-only admin role
WHEN they login to the Projects home page (public or private)
THEN they should be able to see all ministry projects for public cloud as well

Hey team! Please add your planning poker estimate with Zenhub @okanji @Kolezhanchik @funtigr @Amritpal-Nijjar @junminahn

@funtigr , Amritpal and I went over this ticket and this functionality seems to exist in production already. Can you please re-verify this for us?

@okanji
Yes, I confirm that on Prod, with read-only-admin role I can see Public Cloud products of my ministry only.
Private Zenhub Image
At Private Cloud tab i see products of all ministries:
Private Zenhub Image

@okanji
Actually I remember that when Prabhu gave us the Public Cloud products they all had CITZ ministry.
We have Public Cloud products of different ministries in the Test Env. The Prod Env has older code than the Test one so it cannot have the fix if it's not on Test.
And on Test Env having read-only-admin role only I see Public Cloud products for different ministries:
Private Zenhub Image


Add tab completions for fish shell

This is a change to the documentation that enables tab completion for Rush CLI in Fish Shell

@microsoft-github-policy-service agree

@iamelevich please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

Contributor License Agreement

@microsoft-github-policy-service agree

@microsoft-github-policy-service agree


Do not output on stdout when outputting to a file

It seems to me that the convention is to output on stdout when a CLI parameter states to output into a file.

There is no good reason for it and tee can be used for users who need both.
Thanks for the PR.


udc_train.py-- Error with metricSpec.. @k=10

Could not create metric ops for MetricSpec(metric_fn=streaming_sparse_recall_at_k, prediction_key=None, label_key=None, weight_key=None), input must have last dimension >= k = 10 but is 1 for 'recall_at_10/TopKV2' (op: 'TopKV2') with input shapes: [?,1], [] and withcomputed input tensors: input[1]
What am i Doing wrong? I have run it for 2 hours.. and ended up having errors. please suggest

I have the same problem and I cannot fix it......

@thatsvenki038 have you finished the problem? Could you tell me the solution?o(╥﹏╥)o


The network is not good or set the bad situation, the interface will be stuck

Could you provide more details? I haven't been able to reproduce that bug

AFSoundItem *soundItem = [[AFSoundItem alloc] initWithStreamingURL:[NSURL URLWithString:@"**"]];
[self.soundQueue playItem:audioMedia.soundItem];
The network is not good, the interface will be stuck, can not drag or click


Control Wheel speed

Hello everyone!
Sorry if my question is silly or doesn't make sense. I'm new to Carla.
I'm trying to use the simulator in my undergraduate thesis, to validate a control law that I've developed. The problem is that the outputs of the control law are the wheels' angular speeds, since it was originally developed for robots with two wheels.
Reading the documentation for Carla, I found out that the parameters for vehiclecontrol are throttle, break, steer, .... Is there a way in which I can directly input the the wheel speed? I'm aware that this is not entirely realistic for a real application, but I would like to validate the control law that I developed.
Thanks in advance for the help!

Hi,
I think that this might help you. Make sure to also check the carla.VehiclePhysicsControl and carla.WheelPhysicsControl. Let me know if this helps you!

Hi jackbart94,
Thanks for the answer. I read the link that you posted and the pages for both controls you mentioned. I'm not sure they let me control the angular speed for each wheel.

Hi,
I think that this might help you. Make sure to also check the carla.VehiclePhysicsControl and carla.WheelPhysicsControl. Let me know if this helps you!

Hi @LuccaFaro ,
Even I am trying to do the same. I am not able to get the control of vehicle using speed. I donot need throttle. I am not sure how can we control the car by speed or wheels speed. Let me know if you have got a way to do this.
Hi @jackbart94 ,
I would really appreciate if you can advise/help on this.  carla.VehiclePhysicsControl and carla.WheelPhysicsControl are not helpful. I need to deal directly with speed/ wheel speed.
I also have checked set_velocity() but I am not sure how do i implement this.

Hi @surendrasah ,
I was having some trouble using Carla, so I'm trying another software, which seems to allow this more easily. Since I'm not very familiar with this kind of simulation, I'm having some trouble setting it up, so I cannot confirm it works yet.
I'm not sure I can share content about another software in this forum, but if you would like to know more about it, let me know!

Hi @LuccaFaro
Please share me the details of another software. I hope it might help me.

Please also share the details of the software you are referring to with me at:
<EMAIL_ADDRESS>Thank you in advance.

I was wondering why are they so unclear about direct control via modifying wheel speed, is that something not inside cover and deep under Unreal engine?


pause for XXXXms - not working?

I need to use pauses in my test and glad to find pause, added:
And I pause for 3000ms
When I look at the test through VNC, there is no 3 sec pause what so ever.
That is why my test fails.

There is a test ensures it works and it passes:
Scenario: pause
        Given I open the url "http://webdriverjs.christian-bromann.com/"
        And   there is no element ".lateElem" on the page
        When  I pause for 3000ms
        Then  I expect that element ".lateElem" is displayed

Make sure you use it correctly.


Publish the utility functions as a separate package

The utility functions I have written for setup-cpp are general, and they can be published as a separate package on npm to allow others to use them.
https://github.com/aminya/setup-cpp/tree/master/src/utils

We can start with a mono-repository for now. Then later we can move the utils to a separate repository if needed.


Nad default network

fixes for nad in default network.
Since we don't do the intelligent diff the NAD is presented with interfaces for which it does not have to do anything. This PR handles this case.

check in the NAD function -> default network
the sdk need to handle return of nil object from updateFn because of this.

Nice - can you fix the linter error?

/approve
/lgtm


Fixed leaderboard not showing users with 0 lifetime points

Bug fix for #135 . Fix was to change if u.points to if u.points is not None

Awesome work!


CosmosDb client throwing timeout Exception

We are using "Microsoft.Azure.Cosmos" Version="3.23.0" in Net Core application.
After migrating to the newer client SDK, we are seeing intermittent failures from Cosmos. To Create CosmosClient and container we are using default values for the time out and not specifying any custom value to override it. here is the stack trace of Exception
`

The operation was canceled.CosmosDiagnostics: {"Summary":{"DirectCalls":{"(200, 0)":1,"(204, 0)":20},"RegionsContacted":1},"name":"ReplaceItemAsync","id":"fcafa2a7-6c50-4de5-86e4-a89ea4e0d0aa","caller info":{"member":"OperationHelperWithRootTraceAsync","file":"ClientContextCore.cs","line":244},"start time":"01:03:27:626","duration in milliseconds":1907.6462,"data":{"Client Configuration":{"Client Created Time Utc":"2022-02-02T03:37:50.3122530Z","NumberOfClientsCreated":1,"User Agent":"cosmos-netstandard-sdk/3.23.0|3.23.1|1|X64|Linux 5.4.0-1064-azure 67 18.|.NET Core 3.1.22|L|","ConnectionConfig":{"gw":"(cps:50, urto:10, p:False, httpf: False)","rntbd":"(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: True, pr: ReuseUnicastPort)","other":"(ed:False, be:False)"},"ConsistencyConfig":"(consistency: NotSet, prgns:[westus])"},"Operation Cancelled Exception":"System.OperationCanceledException: The operation was canceled.\n at System.Threading.CancellationToken.ThrowOperationCanceledException()\n at Microsoft.Azure.Documents.TimeoutHelper.ThrowGoneIfElapsed()\n at Microsoft.Azure.Documents.StoreReader.ReadMultipleReplicaAsync(DocumentServiceRequest entity, Boolean includePrimary, Int32 replicaCountToRead, Boolean requiresValidLsn, Boolean useSessionToken, ReadMode readMode, Boolean checkMinLSN, Boolean forceReadAll)\n at Microsoft.Azure.Documents.ConsistencyWriter.WaitForWriteBarrierAsync(DocumentServiceRequest barrierRequest, Int64 selectedGlobalCommittedLsn)\n at Microsoft.Azure.Documents.ConsistencyWriter.WritePrivateAsync(DocumentServiceRequest request, TimeoutHelper timeout, Boolean forceRefresh)\n at Microsoft.Azure.Documents.BackoffRetryUtility1.ExecuteRetryAsync(Func1 callbackMethod, Func3 callShouldRetry, Func1 inBackoffAlternateCallbackMethod, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action1 preRetryCallback)\n at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)\n at Microsoft.Azure.Documents.BackoffRetryUtility1.ExecuteRetryAsync(Func1 callbackMethod, Func3 callShouldRetry, Func1 inBackoffAlternateCallbackMethod, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action1 preRetryCallback)\n at Microsoft.Azure.Documents.ConsistencyWriter.WriteAsync(DocumentServiceRequest entity, TimeoutHelper timeout, Boolean forceRefresh, CancellationToken cancellationToken)\n at Microsoft.Azure.Documents.ReplicatedResourceClient.<>c__DisplayClass31_0.<b__0>d.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](Func1 executeAsync, Func1 prepareRequest, IRequestRetryPolicy2 policy, CancellationToken cancellationToken, Func1 inBackoffAlternateCallbackMethod, Nullable1 minBackoffForInBackoffCallback)\n at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)\n at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](Func1 executeAsync, Func1 prepareRequest, IRequestRetryPolicy2 policy, CancellationToken cancellationToken, Func1 inBackoffAlternateCallbackMethod, Nullable1 minBackoffForInBackoffCallback)\n at Microsoft.Azure.Documents.StoreClient.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken, IRetryPolicy retryPolicy, Func2 prepareRequestAsyncDelegate)\n at Microsoft.Azure.Cosmos.Handlers.TransportHandler.ProcessMessageAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.RouterHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.ExecuteHttpRequestAsync(Func1 callbackMethod, Func3 callShouldRetry, Func3 callShouldRetryException, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Team.Services.Common.CosmosDb.Metrics.CosmosDbMetricsRequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync(String resourceUriString, ResourceType resourceType, OperationType operationType, RequestOptions requestOptions, ContainerInternal cosmosContainerCore, FeedRange feedRange, Stream streamPayload, Action1 requestEnricher, ITrace trace, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.ContainerCore.ProcessItemStreamAsync(Nullable1 partitionKey, String itemId, Stream streamPayload, OperationType operationType, ItemRequestOptions requestOptions, ITrace trace, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.ContainerCore.ExtractPartitionKeyAndProcessItemStreamAsync[T](Nullable1 partitionKey, String itemId, T item, OperationType operationType, ItemRequestOptions requestOptions, ITrace trace, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.ContainerCore.ReplaceItemAsync[T](T item, String id, ITrace trace, Nullable1 partitionKey, ItemRequestOptions requestOptions, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.ClientContextCore.RunWithDiagnosticsHelperAsync[TResult](ITrace trace, Func`2 task)"},"children":[{"name":"ItemSerialize","id":"f1df4548-aca2-4c4c-b3d1-628be7929927","caller info":{"member":"ExtractPartitionKeyAndProcessItemStreamAsync","file":"ContainerCore.Items.cs","line":941},"start time":"01:03:27:626","duration in milliseconds":0.037},{"name":"Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler","id":"297adf96-e2e9-469b-8377-b9112b372d58","start time":"01:03:27:626","duration in milliseconds":1907.3794,"children":[{"name":"Team.Services.Common.CosmosDb.Metrics.CosmosDbMetricsRequestHandler","id":"cde494c7-1337-410b-ab0f-d1d134bff1d0","start time":"01:03:27:626","duration in milliseconds":1907.2991,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler","id":"fa46111b-3207-40f4-83f2-8df7f6c51000","start time":"01:03:27:626","duration in milliseconds":1906.8139,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RetryHandler","id":"ea078910-bd49-43d2-a2e5-bcf1f75eaa20","start time":"01:03:27:626","duration in milliseconds":1906.7529,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RouterHandler","id":"b97c43e4-7dd0-425b-ad9b-063d22c3f2e9","start time":"01:03:27:626","duration in milliseconds":1906.6648,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.TransportHandler","id":"9eb400c9-7db3-42f0-a6ca-04b8ea09d665","start time":"01:03:27:626","duration in milliseconds":1906.6244,"children":[{"name":"Microsoft.Azure.Documents.ServerStoreModel Transport Request","id":"d0dd59bc-daf8-4277-859d-a006f2c8b3fa","caller info":{"member":"ProcessMessageAsync","file":"TransportHandler.cs","line":109},"start time":"01:03:27:626","duration in milliseconds":1906.4729,"data":{"Client Side Request Stats":{"Id":"AggregatedClientSideRequestStatistics","ContactedReplicas":[{"Count":1,],"FailedReplicas":[],"AddressResolutionStatistics":[],"StoreResponseStatistics":[{"ResponseTimeUTC":"2022-02-03T01:03:27.6953683Z","ResourceType":"Document","OperationType":"Replace","LocationEndpoint":"endpoint/","StoreResult":{"ActivityId":"82a312ab-765d-4362-abc1-257425ef55d5","StatusCode":"Ok","SubStatusCode":"Unknown","LSN":9692316,"PartitionKeyRangeId":"0","GlobalCommittedLSN":9692310,"ItemLSN":-1,"UsingLocalLSN":false,"QuorumAckedLSN":9692315,"SessionToken":"0#9692316#7=-1","CurrentWriteQuorum":3,"CurrentReplicaSetSize":4,"NumberOfReadRegions":1,"IsValid":true,"StorePhysicalAddress":"rntbd://:14068/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132876734229942716p/","RequestCharge":16,"RetryAfterInMs":null,"BELatencyInMs":"5.287","transportRequestTimeline":{"requestTimeline":[{"event": "Created", "startTimeUtc": "2022-02-03T01:03:27.6264893Z", "durationInMs": 0.0027},{"event": "ChannelAcquisitionStarted", "startTimeUtc": "2022-02-03T01:03:27.6264920Z", "durationInMs": 0.009},{"event": "Pipelined", "startTimeUtc": "2022-02-03T01:03:27.6265010Z", "durationInMs": 0.122},{"event": "Transit Time", "startTimeUtc": "2022-02-03T01:03:27.6266230Z", "durationInMs": 68.6575},{"event": "Received", "startTimeUtc": "2022-02-03T01:03:27.6952805Z", "durationInMs": 0.0698},{"event": "Completed", "startTimeUtc": "2022-02-03T01:03:27.6953503Z", "durationInMs": 0}],"requestSizeInBytes":2902,"requestBodySizeInBytes":851,"responseMetadataSizeInBytes":500},"TransportException":null}},{"ResponseTimeUTC":"2022-02-03T01:03:27.7595265Z","ResourceType":"Collection","OperationType":"Head","LocationEndpoint":"https://","StoreResult":{"ActivityId":"82a312ab-765d-4362-abc1-257425ef55d5","StatusCode":"NoContent","SubStatusCode":"Unknown","LSN":9692310,"PartitionKeyRangeId":"0","GlobalCommittedLSN":9692310,"ItemLSN":8971340,"UsingLocalLSN":false,"QuorumAckedLSN":-1,"SessionToken":"0#9692310#7=-1","CurrentWriteQuorum":-1,"CurrentReplicaSetSize":-1,"NumberOfReadRegions":1,"IsValid":true,"StorePhysicalAddress":"rntbd://:/apps//services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132860494913145228s/","RequestCharge":0,"RetryAfterInMs":null,"BELatencyInMs":"0.451","transportRequestTimeline":{"requestTimeline":[{"event": "Created", "startTimeUtc": "2022-02-03T01:03:27.6956262Z", "durationInMs": 0.0027},{"event": "ChannelAcquisitionStarted", "startTimeUtc": "2022-02-03T01:03:27.6956289Z", "durationInMs": 0.0026},{"event": "Pipelined", "startTimeUtc": "2022-02-03T01:03:27.6956315Z", "durationInMs": 0.1074},{"event": "Transit Time", "startTimeUtc": "2022-02-03T01:03:27.6957389Z", "durationInMs": 63.7201},{"event": "Received", "startTimeUtc": "2022-02-03T01:03:27.7594590Z", "durationInMs": 0.0621},{"event": "Completed", "startTimeUtc": "2022-02-03T01:03:27.7595211Z", "durationInMs": 0}],"requestSizeInBytes":1881,"responseMetadataSizeInBytes":298},"TransportException":null}},{"ResponseTimeUTC":"2022-02-03T01:03:27.8362170Z","ResourceType":"Collection","OperationType":"Head","LocationEndpoint":"/","StoreResult":{"ActivityId":"82a312ab-765d-4362-abc1-257425ef55d5","StatusCode":"NoContent","SubStatusCode":"Unknown","LSN":9692316,"PartitionKeyRangeId":"0","GlobalCommittedLSN":9692310,"ItemLSN":8971340,"UsingLocalLSN":false,"QuorumAckedLSN":-1,"SessionToken":"0#9692316#7=-1","CurrentWriteQuorum":-1,"CurrentReplicaSetSize":-1,"NumberOfReadRegions":1,"IsValid":true,"StorePhysicalAddress":"rntbd://c/apps/ba

`

Sounds like you are using a CancellationToken:
System.Threading.CancellationToken.ThrowOperationCanceledException()
What is the time defined in the cancellation?
The issue seems to be that you are attempting to write(Replace) a document using Strong or Bounded Staleness consistency. The SDK is attempting to verify quorum but quorum is not being reach (SDK cannot know why) before your CancellationToken cancels.
DirectCalls":{"(200, 0)":1,"(204, 0)":20}

The write is completed and then the quorum check starts. We can see in the truncated diagnostics that there were at least 20 requests to check consistency, they appear as:
"ResourceType":"Collection","OperationType":"Head","LocationEndpoint":"/","StoreResult":{"ActivityId":"82a312ab-765d-4362-abc1-257425ef55d5","StatusCode":"NoContent"

Are you still getting these errors? Or did you get them on a particular time range?

@topagarwal can you increase the cancellation token timeout to 1.5x the request timeout? There might be a bug with cancellation token being the same time as the request timeout causing the caches to not get refreshed so the SDK goes to stale address.

Thank you for the responses..I'll try the suggested solutions. I'll update here what I find.

What time do is defined for the cancellation token? Are you still seeing the error?

One follow up question - In this case when replaceItems gets Timeoutexception, does the item in storage after-replace state or before-replace state?
I believe, we are seeing this issue because the client timeout to the service is set at 2 seconds and when this calls takes over that httpClient timeout and sends the terminates the connection which in turn sends the cancellation token on timeout. This is my understanding. I'll verify this with few code changes.

@ealsur we are getting this through the day. Though not consistently.

The CancellationToken is stopping the quorum verification for Strong/Bounded Staleness, that means that quorum, for some reason, is not being achieved within those 2 seconds. The 20 Collection HEAD requests mean that the SDK checked 20 times for quorum until the token cancelled. It would be good to investigate why is it taking that long for quorum.
Increasing the token time would certainly help with mitigation.

Thats a very good point @ealsur. Can you please point how further investigation can be initiated?

We are still this issue. Now it is coming even for simple reads. Client times out at 2 seconds and hence the cancellation token. Wondering why should read take over 2 seconds. Can you please provide a fix for this? This is impacting our Prod services.
Increasing timeout on read queries is not possible for our Production environment as it will lead to our SLO violations.
The operation was canceled. CosmosDiagnostics: {"Summary":{"DirectCalls":{"(200, 0)":2,"(204, 0)":285},"RegionsContacted":1,"GatewayCalls":{"(200, 0)":1}},"name":"ReadItemAsync","id":"e8b81220-ce5e-4737-a43a-3f33753306f2","caller info":{"member":"OperationHelperWithRootTraceAsync","file":"ClientContextCore.cs","line":244},"start time":"04:25:32:041","duration in milliseconds":2012.0934,"data":{"Client Configuration":{"Client Created Time Utc":"2022-04-07T19:40:33.1440789Z","NumberOfClientsCreated":3,"User Agent":"cosmos-netstandard-sdk/3.23.0|3.23.1|1|X64|Linux 5.4.0-1072-azure 75 18.|.NET Core 3.1.23|L|","ConnectionConfig":{"gw":"(cps:50, urto:10, p:False, httpf: False)","rntbd":"(cto: 5, icto: -1, mrpc: 30, mcpe: 65535, erd: True, pr: ReuseUnicastPort)","other":"(ed:False, be:False)"},"ConsistencyConfig":"(consistency: NotSet, prgns:[eastus])"},"Operation Cancelled Exception":"System.OperationCanceledException: The operation was canceled.\n at System.Threading.CancellationToken.ThrowOperationCanceledException()\n at Microsoft.Azure.Documents.TimeoutHelper.ThrowGoneIfElapsed()\n at Microsoft.Azure.Documents.QuorumReader.WaitForReadBarrierAsync(DocumentServiceRequest barrierRequest, Boolean allowPrimary, Int32 readQuorum, Int64 readBarrierLsn, Int64 targetGlobalCommittedLSN, ReadMode readMode)\n at Microsoft.Azure.Documents.QuorumReader.ReadQuorumAsync(DocumentServiceRequest entity, Int32 readQuorum, Boolean includePrimary, ReadMode readMode)\n at Microsoft.Azure.Documents.QuorumReader.ReadStrongAsync(DocumentServiceRequest entity, Int32 readQuorumValue, ReadMode readMode)\n at Microsoft.Azure.Documents.ReplicatedResourceClient.<>c__DisplayClass31_0.<<InvokeAsync>b__0>d.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](Func1 executeAsync, Func1 prepareRequest, IRequestRetryPolicy2 policy, CancellationToken cancellationToken, Func1 inBackoffAlternateCallbackMethod, Nullable1 minBackoffForInBackoffCallback)\n at Microsoft.Azure.Documents.ShouldRetryResult.ThrowIfDoneTrying(ExceptionDispatchInfo capturedException)\n at Microsoft.Azure.Documents.RequestRetryUtility.ProcessRequestAsync[TRequest,IRetriableResponse](Func1 executeAsync, Func1 prepareRequest, IRequestRetryPolicy2 policy, CancellationToken cancellationToken, Func1 inBackoffAlternateCallbackMethod, Nullable1 minBackoffForInBackoffCallback)\n at Microsoft.Azure.Documents.StoreClient.ProcessMessageAsync(DocumentServiceRequest request, CancellationToken cancellationToken, IRetryPolicy retryPolicy, Func2 prepareRequestAsyncDelegate)\n at Microsoft.Azure.Cosmos.Handlers.TransportHandler.ProcessMessageAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.TransportHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.RouterHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.ExecuteHttpRequestAsync(Func1 callbackMethod, Func3 callShouldRetry, Func3 callShouldRetryException, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.AbstractRetryHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Azure.Sphere.Services.Common.CosmosDb.Metrics.CosmosDbMetricsRequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.RequestHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync(RequestMessage request, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler.SendAsync(String resourceUriString, ResourceType resourceType, OperationType operationType, RequestOptions requestOptions, ContainerInternal cosmosContainerCore, FeedRange feedRange, Stream streamPayload, Action1 requestEnricher, ITrace trace, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.ContainerCore.ProcessItemStreamAsync(Nullable1 partitionKey, String itemId, Stream streamPayload, OperationType operationType, ItemRequestOptions requestOptions, ITrace trace, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.ContainerCore.ReadItemAsync[T](String id, PartitionKey partitionKey, ITrace trace, ItemRequestOptions requestOptions, CancellationToken cancellationToken)\n at Microsoft.Azure.Cosmos.ClientContextCore.RunWithDiagnosticsHelperAsync[TResult](ITrace trace, Func2 task)"},"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RequestInvokerHandler","id":"505c3a5a-e5ca-4a29-b2ed-3092a7a3a996","start time":"04:25:32:041","duration in milliseconds":2011.9409,"children":[{"name":"Azure.Sphere.Services.Common.CosmosDb.Metrics.CosmosDbMetricsRequestHandler","id":"3a563844-9676-4a94-8da8-66ea761e71db","start time":"04:25:32:041","duration in milliseconds":2011.8735,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.DiagnosticsHandler","id":"cd6b728b-8bcd-48f9-818a-135b2a0d4916","start time":"04:25:32:041","duration in milliseconds":2011.4781,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RetryHandler","id":"9978c025-afdc-4e63-beb8-098509614dce","start time":"04:25:32:041","duration in milliseconds":2011.4367,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.RouterHandler","id":"d3e10c40-76fe-4ea3-afd1-8edfd0abf9a3","start time":"04:25:32:041","duration in milliseconds":2011.3637,"children":[{"name":"Microsoft.Azure.Cosmos.Handlers.TransportHandler","id":"4d73d5f0-db0a-4d3d-8c41-e2e260b47aa4","start time":"04:25:32:041","duration in milliseconds":2011.3415,"children":[{"name":"Microsoft.Azure.Documents.ServerStoreModel Transport Request","id":"ec9d3008-be8a-4fc9-afe5-6f51f594cece","caller info":{"member":"ProcessMessageAsync","file":"TransportHandler.cs","line":109},"start time":"04:25:32:041","duration in milliseconds":2011.2147,"data":{"Client Side Request Stats":{"Id":"AggregatedClientSideRequestStatistics","ContactedReplicas":[{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":2,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":2,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":2,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":2,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":2,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132839832676379445s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14329/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926111457362415s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14066/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f7-ccd9e8b7f212/partitions/b691ef48-742a-4c3d-b1c5-1117beeb0a6d/replicas/132926168299501077s/"},{"Count":1,"Uri":"rntbd://cdb-ms-prod-eastus1-fd26.documents.azure.com:14350/apps/ba19ffe5-e50d-4d28-9b5d-c069d0e15f9a/services/f707bbef-ed4b-4815-82f`

Please contact support for help with the above issue. This looks like issue in the service causing the SDK to retry multiple times.

To give a bit more details on what the issue is:
{"DirectCalls":{"(200, 0)":2,"(204, 0)":285}

This means the delay is coming from 285 calls meant to confirm consistency. Either the account is on Strong or Bounded Staleness consistency, the SDK after performing the operation verifies the quorum, and it's waiting on quorum to be achieved. That high number of quorum calls means something is not right on the service, for some reason, quorum is not being achieved. The SDK keeps attempting and reaching and keeps getting the same response (quorum not achieved) until the cancellation kicks in. As to why of this issue, it's not SDK related, so we cannot know why, and the reason to prompt a support request.

To confirm we have Strong consistency.

I've opened a support ticket using Azure portal. Will update this thread as it goes.

"NumberOfClientsCreated":3` - Looking back at these diagnostics, it looks like you have more than 1 client created or you are creating new clients or disposing them on runtime. If the application is only working with 1 cosmos account, make sure you are following the Singleton pattern. 1 client can work with all databases and containers in an account. Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/troubleshoot-dot-net-sdk-slow-request?tabs=cpu-new#application-design

Closing - No evident SDK issue (behavior is expected on Strong consistency)


[add] free_space: Add action and when

Motivation for changes:
Add the ability to set when and action to the free_space plugin. Makes plugin more useful
Previews behavior is preserved in default config
Detailed changes:

add when property with option to set "start", "filter", "download" (default)
add action property with option to set "reject", "accept", "fail", "abort" (default)

Addressed issues:

Fixes #3264

Config usage if relevant (new plugin or updated schema):
  free_space:
    priority: 9
    free_space:
      space: 90000000
      when:
        - start
        - filter
        - download
      action: accept
    mock: [{ title: "Check.Free.Space" }]
    exec: echo "Check free space."
    disable: [seen]

Log and/or tests output (preferably both):
2021-12-22 16:55:59 VERBOSE  task          free_space      ACCEPTED: `Check.Free.Space` by free_space plugin

What sort of situations might this be used for?

tasks:
  free_space:
    free_space:
      abort_if: above
      space: 1
    exec: echo "Check free space."
    disable: [seen]

Done @gazpachoking . I was trying different names but didn't change the const names!

Sorry, I missed those!

Thanks!


Refactor Analytics and add more Adapters

This PR refactors the Analytics Library and adds adapters for both Plausible and ActiveCampaign as well tests for all Adapters.

@Meldiron  deleted some duplicate comments

@PineappleIOnic PR looks good, please fix the tests.

I'm currently not sure how to fix the tests as the ones that are failing are plausible tests since we do not have API Keys for testing. Should I comment out the plausible tests?


error world context on first run: get_image_url

ERROR: MethodError: no method matching get_image_url(::Documenter.Page, ::Documenter.Document, ::Makie.Figure)

Closest candidates are:
  get_image_url(::Any, ::Any, ::Union{Makie.Figure, Makie.FigureAxisPlot, Makie.Scene}) (method too new to be called from this world context.)

It works ok-ish on second run.

ah, world age issues...excellent.  I guess we can use invokelatest...


New Frankfurt region missing in the region selection

At the very bottom of the documentation page, you can choose a region. The new European region in Frankfurt is missing.

Duplicate of https://github.ibm.com/Bluemix/docs/issues/1256


Missing lo0 parent should have a better error message

Currently we have this error when a device has no lo0 parent:
Info: Generating trma2061
Traceback (most recent call last):
  File "/nix/store/qfn07kpir8wbmcjykzi3xl6rlhh8rhhh-python3.11-cosmo-0.8.4/bin/.cosmo-wrapped", line 9, in <module>
    sys.exit(main())
             ^^^^^^
  File "/nix/store/qfn07kpir8wbmcjykzi3xl6rlhh8rhhh-python3.11-cosmo-0.8.4/lib/python3.11/site-packages/cosmo/__main__.py", line 80, in main
    serializer = RouterSerializer(device, cosmo_data['l2vpn_list'], cosmo_data["vrf_list"])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/qfn07kpir8wbmcjykzi3xl6rlhh8rhhh-python3.11-cosmo-0.8.4/lib/python3.11/site-packages/cosmo/serializer.py", line 36, in __init__
    match device["platform"]["manufacturer"]["slug"]:
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

we should introduce a better error message for this specific case, such as the operator can quickly identify the issue and correct it from the datasource
also, a test case would be needed to make sure future refactoring does not omit this.

I am thinking about refactoring Errors all along. Introducing a DeviceError which can get caught on device loop level and gets the device ignored and the error message printed, a InterfaceError for the interface loop which gets the interface ignored and a FatalError which stops execution and does not create artifacts.

Do we want to wait until we start refactoring everything, or do you want to implement it now ?
There's only one portion of the RouterSerializer for which we still have to write tests (QoS stuff iirc), but idk how urgent that is.

Include a print error message for now and we will rework it later.


Fix several parallel execution issues

Fixes #?
Context

Improve cancellation of the dependencies of a finalizer.
Fix using a Configuration to define the mustRunAfter relationships of a task
Fix resolving plugins from included builds concurrently.

Contributor Checklist

[ ] Review Contribution Guidelines
[ ] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
[ ] Make sure all contributed code can be distributed under the terms of the Apache License 2.0, e.g. the code was written by yourself or the original code is licensed under a license compatible to Apache License 2.0.
[ ] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[ ] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
[ ] Provide unit tests (under <subproject>/src/test) to verify logic
[ ] Update User Guide, DSL Reference, and Javadoc for public-facing changes
[ ] Ensure that tests pass sanity check: ./gradlew sanityCheck
[ ] Ensure that tests pass locally: ./gradlew <changed-subproject>:quickTest

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation
[ ] Recognize contributor in release notes

@bot-gradle test and merge

OK, I've already triggered a build for you.


Window takes a very long time to appear when it's currently hidden

I attached FASTBuild Monitor into the bottom panel:

When I got to output and switch back to FASTBuild Monitor it takes several seconds (around 10) for the windows to appear.

Thanks for reporting this.
Is it happening when you open the FB Monitor tab/window for the very first time? or every time you hide it and try to reopen it again?

Each time I hide/reopen it again. As Visual Studio auto open Output panel when you launch a build, it happens quite often.

Thanks for the extra info!
So far I'm not able to reproduce the 10sc delay between clicking on the FASTBuild Monitor tab and when it appears. For my tests I'm compiling the full Unreal Tournaments code-base and my log file contains 10000+ build events.
Is it possible for you to send me your LOG file?

Thanks for the extra info.
So.. I tried to reproduced the multi-seconds lag when compiling a big code-base like Unreal Tournament.
I did not get exactly that but I was able to see a small (1sc max) lag when switching between the Output tab and the Monitor one.
I'm guessing that what are you experiencing might be due to 2 things (?):

Your code base is generating way more events than my current worst case (Unreal). Note that Unreal has something like 11000 events (lines in the FastBuildLog.log) which can be found here C:\Users**<your_user_name>**\AppData\Local\Temp\FastBuild
The CPU usage of the machine you are using is so high (when building and switching to the monitor tab) that the monitor process is completely stalled. But that seems very unlikely.

In any case these are wild guesses, it would be nice if you can send me your log so I could try with it.
That being said, I made a significant optimization pass on the monitor CPU usage in v0.95 and it should now reduced by a great factor (details in the commit description).
So it would be awesome if you can try with the latest version and see if the lag still happens!
Cheers.

It seems it's better now. I'll test more and keep you posted.
I attached you my last log file but I think it was not a full rebuild, I'll attach you a full log as soon as possible.
FastBuildLog.zip

After more testing it's still slow but not each time.
My cpu usage is 100% but I can still use my pc so it's not that bad.

I'm using VS2012.

I do not have the issue with VS2015 and even when it's slow it's way better now. I'm closing the issue.
(I attached another log if you want to make some tests with it.)
FastBuildLog.zip


Tweet bot is tweeting the same cards again and again

https://thecompendium.cards/c/published/sort/tweet-order/platforms-coevolve-with-ecosystem for example has been tweeted like 10 times recently. There are a lot of other cards at the top of tweet order that are also getting tweeted again and again.

Perhaps it's because the cards are heavily liked and there are no other cards to tweet?
the rank numbers are all heavily negative

There are a few other cards that are heavily tweeted too, even though many other cards have only been tweeted once

The problem happens once every card has been tweeted at least once since it was last updated. Then it goes into a loop where the ones that were updated most closely to their last tweet get looped a lot, because their baseValue is smaller than others. Those jump around in order based on starCount twiddles and the like.
Really the desired behavior is: if the card has been updated since it was last tweeted, give it a big boost. Otherwise, sort by the one that was last tweeted the longest ago.


No lyrics found

The package was working fine some days ago. But now getting No lyrics found!. I have tested with many songs name, but getting the same error. I also tried with the example song name breezeblocks, same error. This is a great library, please fix this ASAP

Hi @L0SER8228,
Please check the latest version. Hope this can be fixed.
or you just run yarn add songlyrics to install the latest version directly.


Tag all files as being for Windows only.

This prevents e.g. go guru when running on a different platform tripping over
these files even when the build tags are correctly set. In my case this was the
case on the github.com/containerd/containerd code base due to hcsshim being
vendored there.
I must confess to a small naughtiness which is that since I was unable to run
mksyscall_windows on my Linux machine I have hand edited both the generator and
the generated file.

@ijc,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

Thank's @friism for the carry in #133.


Invite your POSTER for our pre-heat for the CVPR offline conference in Seattle

We sincerely look forward to your poster and will arrange a collection (will show on bilibili)for all authors as a pre-heat for the offline conference. It is  convenient for everyone to discuss the posters in advance and this will be a period of significant memory for everyone. You can also send us the exhibition information with poster.
Our email<EMAIL_ADDRESS>WeChat：AIDriver002

The poster has been sent. Thanks for your invitation.

Here's the pre-heat video link：
【太亮眼！CVPR 2024 自动驾驶方向中稿论文POSTER大全！】 https://www.bilibili.com/video/BV1bf421B7E9/?share_source=copy_web&vd_source=d87a196e6f29032f5720781b25389bc7
And, we sincerely hope to invite your team to join in a live broadcast. Look forward to your reply!


Fusee.Test.Render.Desktop: cannot spawn the (glfw) game window due to xunit executing the test in another thread

Debugging the test will lead to:
"OpenTK.Windowing.GraphicsLibraryFramework.GLFWException: 'GLFW can only be called from the main thread!'"
XUnit seems to execute the test in another thread then the main thread.

Running the OpenTk Integration/Window tests seem to lead to the same error.
Used OpenTK Version: 4.7.2

"Fixed" RenderTests with bd2a6060c56551307204613265f294a217e95198
Moved from xUnit to nunit. Generate all images in main method before any tests are being evaluated.
Start console app instead of test runner. The thread spawning is a Visual Studio behavior.

@RedImp1470 your input is needed 😉


Misleading information on README.md

In https://github.com/mysqljs/mysql#introduction the example uses connection.end which is deprecated.
In https://github.com/mysqljs/mysql#establishing-connections the connection is established from a pool but not released. This is very dangerous. Many libraries dealing with database will do not require this explicit release of connections but this library does. In addition if the pool has 100 connections then it won't be immediately obvious why it's failed and there won't even be any timeout warning or anything, requests will just timeout from async workloads with not particular error thrown out from anywhere since the system would just wait for the never-to-be-released connections.
In https://github.com/mysqljs/mysql#terminating-connections there is the suggestion for the end method again; it also suggests using a callback. The end method, besides being deprecated, from looking at the code doesn't even have a callback.

None of what you said is accurate. Connection (when it is a non pooled connection) has a .end with a callback that is not deprectaed. Only connection.end on a pooled connection is deprecated. Also the section doesn't create a pool, it created a non pooled connection so there is no where to release.


Place models and connectors hashes into context

Documentation fix.  See title

TODO:

[ ] If this PR is a new feature, reference an issue where a consensus about the design was reached (not necessary for small changes)
[ ] Make sure all of the significant new logic is covered by tests
[ ] Rebase your changes on master so that they can be merged easily
[ ] Make sure all tests and linter rules pass
[ ] Update CHANGELOG.md with your change

Good call, thanks! Always good to have up to date design docs!


fix(goctl): api format with reader input

resolves #1721
There's also a relative PR https://github.com/zeromicro/goctl-vscode/pull/12

BTW, this also fixes https://github.com/zeromicro/goctl-vscode/issues/11


Is it possible to open modal for calender default on some other date instead of current one.

No, it's not. The value prop has been commented out as you can see here:
https://github.com/YouCanBookMe/react-datetime/blob/master/DateTime.js#L24
I can't find the pull request for when it got commented out, but WebStorm says it was commented out when a bug was fixed: Fixes timepicker not showing when dateFormat=false
You can always bring the prop back and create a pull request.

Actually i have tried something with it, onFocus i setted the value say: 18years back from now and opened the modal by open=true.
Worked for me.
But onBlur is not called as expected,so i am not able to close the modal by open=false.

That's an option, sure. But it's a hacky solution and therefore not all functionality is working, as you have seen.


Destroy and recreate the popout window when shown to fix multi-desktop behavior

This change destroys and recreates the popout window when shown so that it appears in the current desktop on multi-desktop environments.
The code tries to save the position and size information of the previous popout window so that the new one will show up with the same location and size.
With this change, if the user moves to a new desktop after showing the popout window and then tries to show it again, the popout window will show up in the same location on the new desktop. The existing implementation instead switches focus back to the desktop where the popout window was previously shown.

Thank you for the quick review!


Do we need to create a new identifier to map between identified and de-identified data?

In the UDS+ FHIR IG, one of the requirements for a Trust Service Provider is "The Trust Service Provider SHALL create an identifier that is retained internally to link between identifiable and de-identifiable data."

What would be the use-case for which this information would be used?
What is the meaning of "..an identifier" - Is it expected that the EHR vendors should Madatorily create a 'unique identifier' that maps the identified and de-identifiable data points
What is the meaning of "..is retained" - Is it expected that the EHR vendor should save the above identifier in a DB or some other source? If yes, for how long?

Was about to add a new issue, but this is basically in the same lane as what I was going to ask.  I'm looking for additional clarification on ID Generation.  The UDS+ Patient Resource profile indicates:

Id Generation
The original patient resource id should not be included in the De-identified patient instance. Instead a new id should be created and provided as part of the FHIR resource. This Data Submitter should be capable of using the generated id to relink the data to the original patient. All resource references to the Patient submitted as part of the UDS+ report should refer to newly generated de-identified id.

My question is, does the new ID need to remain consistent across years for the same patient.  In other words, if you get data for Patient X in year 2023 with id <a_guid>, do you expect the same "deidentified" <a_guid> id for Patient X in year 2024.  Or can each reporting period represent a patient with an identifier specific to that reporting period?
Fundamentally are you trying to track the deidentified patients across the years?  Or look at each year in isolation?

Tracking Across years is one of the goals.

So however the GUID transforms needs to be consistent year over year.

I have the same questoin as joshua-hiltunen.
Can we please get a response to "if we're salting and hashing to generate the new ID, does our ability to retrieve the ID constitute retention, even if the mapping from original ID to new ID is not stored?"

Yes, as long as you can track the data back to the Identifiable resource, it does not need to be stored


Improve "field not found" error messages

Which issue does this PR close?

Closes #624 .
Rationale for this change

Better UX.
What changes are included in this PR?

"Field 'X' not found" error messages now include list of valid fields.
Are there any user-facing changes?

Yes, better error messages.

This is a nice improvement - thanks @andygrove


Updated to another version

Fixes #1

We should consider making this dynamic.

For now, it looks good.


Add Accessibility statement

Add a new page for Accessibility statement

WCAG 2.0 level A and AA required by law in most of Europe (for sites created after 2014, more lax for sites from before that) and I think it's also the case in Norway
Link should be in the footer at least but can also be in other places, e.g. About page
Compliance status (WCAG 2.1 level A and AA)

Soon WCAG 2.2 but the changes in it are quite minor

Information about known accessibility issues
How to get in contact if finding an issue not listed here (I'd assume email or feedback form)
Can also list things like screen readers that the site has been tested with

@markusjt Any updates?

@markusjt Any updates?

Now it should be ready unless I missed something else (already made one corrective commit). Kristina made some fixes to the text and approved it a while ago. After that I removed the part about titles not always being descriptive because it seems they generally are and I just missed it while checking CDC for all the stuff in WCAG 2.1 A and AA the first time around.


Naive fixes for typst v0.12.0 deprecations.

typst v0.12.0 introduces a few new deprecations that affect codelst v2.0.1.  This PR implements the compiler's suggested changes (in the most naive way possible) to eliminate those deprecation warnings.  It also increases the package's "compiler" metadata to 0.12.0.
Fixes https://github.com/jneug/typst-codelst/issues/22

Cool, thanks for this contribution.


Error

Hello
i cant interpret this error:
There was a critical error during execution of Flake8:
plugin code for `flake8-mock[flake8_mock]` does not match ^[A-Z]{1,3}[0-9]{0,3}$

Me neither. Doesn't sound like it has anything to do with this project here.


Use .NET Health Checks for dependencies

https://learn.microsoft.com/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-6.0
Simple: builder.Services.AddHealthChecks();
Third-party library for dependencies: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks

Tutorial video (Nick Chapsas): https://www.youtube.com/watch?v=p2faw9DCSsY


Review trips: base_side

trips: base_side indicates the used side of the platform with an integer code:
https://github.com/ices-tools-dev/esas/blob/0d294b4ea678e34f52409a16602f9133ac179dcf/_data/table-schemas/trips.yaml#L324-L333

[ ] @ices-tools-dev/data-and-information Does ICES already have a controlled vocabulary for this?
[x] @nicolasvanermen Wouldn't human readable values like aerial_right_front be better, or are the integer codes well established?

Human-readable values would be OK for me, can all be described in a concise
and unambiguous manner.
Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Wed, Jan 6, 2021 at 12:38 PM Peter Desmet<EMAIL_ADDRESS>wrote:

trips: base_side indicates the used side of the platform with an integer
code:
https://github.com/ices-tools-dev/esas/blob/0d294b4ea678e34f52409a16602f9133ac179dcf/_data/table-schemas/trips.yaml#L324-L333

@ices-tools-dev/data-and-information
https://github.com/orgs/ices-tools-dev/teams/data-and-information
Does ICES already have a controlled vocabulary for this?
@nicolasvanermen https://github.com/nicolasvanermen Wouldn't human
readable values like aerial_right_front be better, or are the integer
codes well established?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/22, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXNT6VAKQ7KWW2PX73TSYRDUBANCNFSM4VXNJC7Q
.

Human-readable values would be OK for me, can all be described in a concise
and unambiguous manner.
Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Wed, Jan 6, 2021 at 12:38 PM Peter Desmet<EMAIL_ADDRESS>wrote:

trips: base_side indicates the used side of the platform with an integer
code:
https://github.com/ices-tools-dev/esas/blob/0d294b4ea678e34f52409a16602f9133ac179dcf/_data/table-schemas/trips.yaml#L324-L333

@ices-tools-dev/data-and-information
https://github.com/orgs/ices-tools-dev/teams/data-and-information
Does ICES already have a controlled vocabulary for this?
@nicolasvanermen https://github.com/nicolasvanermen Wouldn't human
readable values like aerial_right_front be better, or are the integer
codes well established?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/22, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXNT6VAKQ7KWW2PX73TSYRDUBANCNFSM4VXNJC7Q
.

@nicolasvanermen Something like this? Suggestions welcome:

new label
old label

right_front
1 Aerial survey: right front

left_back
2 Aerial survey: left back

right_back
3 Aerial survey: right back

left_front
4 Aerial survey: left front

left
5 Ship-based survey: port side

right
6 Ship-based survey: starboard side

both_sides
9 Observers

@nicolasvanermen Something like this? Suggestions welcome:

new label
old label

right_front
1 Aerial survey: right front

left_back
2 Aerial survey: left back

right_back
3 Aerial survey: right back

left_front
4 Aerial survey: left front

left
5 Ship-based survey: port side

right
6 Ship-based survey: starboard side

both_sides
9 Observers

Looks good to me.
Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Thu, Jan 7, 2021 at 12:20 PM Peter Desmet<EMAIL_ADDRESS>wrote:

@nicolasvanermen https://github.com/nicolasvanermen Something like
this? Suggestions welcome:
new label old label
right_front 1 Aerial survey: right front
left_back 2 Aerial survey: left back
right_back 3 Aerial survey: right back
left_front 4 Aerial survey: left front
left 5 Ship-based survey: port side
right 6 Ship-based survey: starboard side
both_sides 9 Observers
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/22#issuecomment-756055440,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXMHDIBJKZGQS42TPW3SYWKGFANCNFSM4VXNJC7Q
.

Looks good to me.
Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Thu, Jan 7, 2021 at 12:20 PM Peter Desmet<EMAIL_ADDRESS>wrote:

@nicolasvanermen https://github.com/nicolasvanermen Something like
this? Suggestions welcome:
new label old label
right_front 1 Aerial survey: right front
left_back 2 Aerial survey: left back
right_back 3 Aerial survey: right back
left_front 4 Aerial survey: left front
left 5 Ship-based survey: port side
right 6 Ship-based survey: starboard side
both_sides 9 Observers
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/22#issuecomment-756055440,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXMHDIBJKZGQS42TPW3SYWKGFANCNFSM4VXNJC7Q
.

@nicolasvanermen can we also rename this field to platform_side?

@nicolasvanermen can we also rename this field to platform_side?

Sure!
Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Thu, Jan 7, 2021 at 4:36 PM Peter Desmet<EMAIL_ADDRESS>wrote:

@nicolasvanermen https://github.com/nicolasvanermen can we also rename
this field to platform_side?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/22#issuecomment-756191234,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXPMBCQ4U7GAORYRNX3SYXIJDANCNFSM4VXNJC7Q
.

Sure!
Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Thu, Jan 7, 2021 at 4:36 PM Peter Desmet<EMAIL_ADDRESS>wrote:

@nicolasvanermen https://github.com/nicolasvanermen can we also rename
this field to platform_side?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/22#issuecomment-756191234,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXPMBCQ4U7GAORYRNX3SYXIJDANCNFSM4VXNJC7Q
.

See https://ices-tools-dev.github.io/esas/tables/#platform_side, I have:

Updated the field name to platform_side
Moved the field up, so it appears directly after platform_type and platform_code
Used space in the labels: right back, both sides

See https://ices-tools-dev.github.io/esas/tables/#platform_side, I have:

Updated the field name to platform_side
Moved the field up, so it appears directly after platform_type and platform_code
Used space in the labels: right back, both sides

need new vocab
Note for this and other reference lists, codes don't matter much, we can make human-readable descriptions instead of codes in the data input template and the data output, if wanted

need new vocab
Note for this and other reference lists, codes don't matter much, we can make human-readable descriptions instead of codes in the data input template and the data output, if wanted

Updated values ESAS will use:
https://github.com/ices-tools-dev/esas/blob/77b9faf016e03c650c0e80ade37f6162470d0f9e/_data/table-schemas/trips.yaml#L164-L173

Updated values ESAS will use:
https://github.com/ices-tools-dev/esas/blob/77b9faf016e03c650c0e80ade37f6162470d0f9e/_data/table-schemas/trips.yaml#L164-L173


Couldn't send Retry error in Webchat

SDK Platform:  .NET
SDK Version: 3.12
Active Channels: Webchat, Cortana
Deployment Environment: Azure App Service, other

Hello
We have a bot available on webchat and cortana. It has to perform multiple operations in the background by connecting to multiple systems. At times and randomlyuser on webchat see 'coudn't send retry'. Even then the message is delivered and i get back the response and can continue with my regular conversation. And this does not happen consistently. Any suggestions on what can be done to improve this behavior.

@neetgupta7 can you  share the code in order to review and resolve the issue?

Also please provide your app ID

Used HostingEnvironment.QueueBackgroundWorkItem and made it work


Check analysis kwargs

Describe the bug
Anything can be passed as a parameter set (kwargs) of an analysis function through the REST API. This can lead to awkward errors, such as if a string is passed instead of an integer.
Expected behavior
When requesting an analysis with a malformed parameter set, the request should return a 400 Bad Request potentially with debug information attached.
Additional context
The backend needs to know which parameters to expect. It currently obtains them by inspecting the function signature. We should use Python's type annotations to also extract type information.

This can potentially be done with pydantics validate_call decorator: https://docs.pydantic.dev/latest/api/validate_call/

https://github.com/pydantic/pydantic/issues/8530


gpu-viewer: 3.04 -> 3.06

Things done

gpu-viewer: move to pkgs/by-name
gpu-viewer: format
gpu-viewer: 3.04 -> 3.06

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 346529

x86_64-linux

:white_check_mark: 1 package built:

gpu-viewer

aarch64-linux

:white_check_mark: 1 package built:

gpu-viewer

x86_64-darwin

aarch64-darwin


Email verification with expired token should show an error message by default out of the box

Laravel Version: 5.7.0
PHP Version: 7.2.8
Database Driver & Version: irrelevant

Description:
Steps To Reproduce:
On a freshly created application with Email Verification enabled:

generate email verification link
click on the verification link received after it has expired.

Expected:
The out-of-the-box default behavior should be to show an error message telling the user that the verification link is expired.
A simple and elegant way to do this would be to redirect to /email/verify (just like you currently do) but store a "flash" error message in the session. The default email/verify view should display that flash error message if it set.
Observed:
You are redirected to /email/verify with no indication whatsoever that the verification token is expired, nor even that verification has failed because of any kind of error. You are just seeing the same page from which you generated the verification link in the first place, which says "please check your email for a verification link. If you did not receive the email, click here to request another". This is very confusing, because the user did receive the email and clicking on the verification link is what they just did. Worst UX ever.

This is a brand new feature that hasn't even been released yet. There are, undoubtedly, improvements that can be made. Why not submit a pull request and make it the best UX ever?

Hi there,
Welcome to Laravel and we are glad to have you as part of the community.
Unfortunately this GitHub area is not for ideas, suggestions etc. This is only for issues/bugs with the framework code itself.
I will be closing your ticket here. You are able to open a ticket at https://github.com/laravel/ideas
Alternatively you are able to open a PR using the Contributions guidelines: https://laravel.com/docs/5.7/contributions#which-branch
If you feel I've closed this issue in error, please provide more information about how this is a framework issue, and I'll reopen the ticket.
Thanks in advance.

Unfortunately this GitHub area is not for ideas, suggestions etc. This is only for issues/bugs with the framework code itself.

This is not an idea or suggestion, I have described an actual issue. I provided steps to reproduce, expected and observed behavior. Though on the "expected" side there is more than one possible valid option and I have indeed provided only a vague suggestion, the observed behavior is clearly wrong, and that is a framework issue.

Its not a bug though. It's an enhancement.

Plain wrong behavior is always a bug, whether it's because someone forgot to add 1 to a variable, or because they were lazy in the design.

To be fair, in your opinion it's wrong behavior (and whilst I agree that the current UX is not optimal and a session value or something like that would be better, that is besides the point).
The person who came up with this feature might not have described that behavior. So in that case, the current behavior is intentional, and therefore can not be a bug. So technically, what you are suggesting is a feature/idea.


Sync NEO

Pull Request Test Coverage Report for Build 175280976

331 of 385 (85.97%)  changed or added relevant lines in 35 files are covered.
39 unchanged lines in 5 files lost coverage.
Overall coverage decreased (-0.2%) to 75.956%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/neo/Ledger/ContractState.cs
1
2
50.0%

src/neo/Ledger/Blockchain.cs
12
14
85.71%

src/neo/Ledger/MemoryPool.cs
20
22
90.91%

src/neo/Network/P2P/Payloads/Signer.cs
3
5
60.0%

src/neo/Plugins/Plugin.cs
1
3
33.33%

src/neo/ProtocolSettings.cs
5
7
71.43%

src/neo/SmartContract/ApplicationEngine.Runtime.cs
19
21
90.48%

src/neo/SmartContract/Native/PolicyContract.cs
16
18
88.89%

src/neo/SmartContract/Native/Tokens/NeoToken.cs
26
33
78.79%

src/neo/Wallets/Wallet.cs
24
31
77.42%

Files with Coverage Reduction
New Missed Lines
%

src/neo/Helper.cs
1
72.12%

src/neo/Ledger/Blockchain.cs
1
48.86%

src/neo/Network/P2P/Payloads/Transaction.cs
8
72.83%

src/neo/SmartContract/Native/Tokens/NeoToken.cs
8
78.84%

src/neo/Network/P2P/Payloads/TransactionAttribute.cs
21
0%

Totals

Change from base Build 162768981:
-0.2%

Covered Lines:
10330

Relevant Lines:
13082

💛  - Coveralls


[Translate ru] Resourses -> including video

Check out a review request at GitLocalize

@petele look please, I made changes


Fixed the concourse/concourse/CONTRIBUTING link

there's no develop branch anymore, retargeted at master.

Thanks for catching that @farcaller !


Support bulk transfer of NFT

CI failed. It would be better if the develop branch was set as a protected branch.

CI failed. It would be better if the develop branch was set as a protected branch.

It has been set as a protected branch.

Fixed


Command Error

Hello,
I got your extension downloaded and setup but get an error executing the command /pickpack menu
09:16:07 [INFO] .RADICALAdrift executed command: /pickpack menu
09:16:07 [WARNING] Error in dispatching command
https://pastebin.com/raw/kkqcXDn3 <-- full error here
Many Thanks,
RADICALAdrift

Hm, this one is odd..
Do you get any other errors from pickpack?
The only way this might happen would be if the locale wasn't properly copied from the jar, there should be a separate warning/error for that

Only errors about the pack i am using but that might just be because i downloaded the wrong version,
/pickpack reload and /pickpack default work fine just /pickpack menu throws that error

Could you please send a full log & a copy of the pickpack config?
Something doesn't add up here

Here's the full log and config files,
It shouldn't matter i am running it on bungeecord right?.. If it does then there lays the problem
full_log.txt
config.txt

Weird, it looks like the language manager might not be loaded.. ill test on Bungee later.
As for why you're getting errors spammed in both Geyser/Pickpack - you are trying to load a java edition resource pack. Pickpack only supports sending Bedrock edition packs to Bedrock edition players; so you'll need to find a Bedrock equivalent first (or convert the pack manually.)
However, pack and language manager loading are separated, so that error doesnt really add up - i'll set up a bungee environment to test the issue later today.

Yeah i fixed the pack problem with the Bedrock equivalent so those errors are gone except this one that i have now
[Geyser-BungeeCord] The resource pack Faithful 32x - 1.20.mcpack has a file in it that meets or exceeds 80 characters in its path (textures/gui/newgui/buttons/checkbox/checkbox_unchecked_WhiteBorder_disabled.png, 80 characters long). This will cause problems on some Bedrock platforms. Please rename it to be shorter, or reduce the amount of folders needed to get to the file.
But i could probably fix that easily by renaming or placing the file closer to the root of the pack

Oh no rush, I appreciate you are going to test later today, for now i could just load said pack via geyser itself to play

Sorry to be a bother, Have you managed to setup a test environment at all yet.. all good if you have im just curious is all as thats the last thing for my bedrock support setup

Update PickPack to 1.2.1; issue should be fixed now. You may also want to delete the lang folder, it was accidentally created

Working as intended now, Thank you

np! Thanks for making an issue :)


Update 2017-03-30-updating-website-with-hugo-and-blogdown.md

change two typos in the headline

Thanks!!


Improve the refresh rate precision. (AMDVLK #268)

6b7e7222da60937d373cca8777ba55dbf5e7bd86 Jenkins build error.
/jenkins/workspace/vulkan/sanitized-opensource/Github-PR/pal-github-pr/driver_build/drivers/xgl/icd/api/vk_physical_device.cpp:9477:76: error: no match for ‘operator*’ (operand types are ‘Pal::Rational’ {aka ‘Util::Rational’} and ‘int’)
9477 |         properties[i].parameters.refreshRate = pScreenMode[i]->refreshRate * 1000;
|                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~
|                                                                |             |
|                                                                |             int
|                                                                Pal::Rational {aka Util::Rational}
/jenkins/workspace/vulkan/sanitized-opensource/Github-PR/pal-github-pr/driver_build/drivers/xgl/icd/api/vk_physical_device.cpp:9541:90: error: no match for ‘operator*’ (operand types are ‘Pal::Rational’ {aka ‘Util::Rational’} and ‘int’)
9541 |             (pCreateInfo->parameters.refreshRate          == pScreenMode[i]->refreshRate * 1000))
|                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~
|                                                                              |             |
|                                                                              |             int
|                                                                              Pal::Rational {aka Util::Rational}
/jenkins/workspace/vulkan/sanitized-opensource/Github-PR/pal-github-pr/driver_build/drivers/xgl/icd/api/vk_physical_device.cpp:9572:77: error: no match for ‘operator=’ (operand types are ‘Pal::Rational’ {aka ‘Util::Rational’} and ‘const uint32_t’ {aka ‘const unsigned int’})
9572 |             pNewMode->palScreenMode.refreshRate   = pCreateInfo->parameters.refreshRate;
|                                                                             ^~~~~~~~~~~
In file included from /jenkins/workspace/vulkan/sanitized-opensource/Github-PR/pal-github-pr/driver_build/drivers/pal/inc/core/./palFormat.h:34,
from /jenkins/workspace/vulkan/sanitized-opensource/Github-PR/pal-github-pr/driver_build/drivers/pal/inc/core/./pal.h:34,
from /jenkins/workspace/vulkan/sanitized-opensource/Github-PR/pal-github-pr/driver_build/drivers/pal/inc/core/./palPlatform.h:34,


Suggestion: use of an async request framework (as replacement for requests)

Is your feature request related to a problem? Please describe.
The issue is that many (most?) modern python web frameworks are working in an asynchronous fashion (ASGI). The current API you are offering is purely synchronous which make it
"impossible" to use with such frameworks.
Describe the solution you'd like
Most of the time I'm using aiohttp, its interface is very close to requests which makes it a good candidate.
Describe alternatives you've considered
I'm currently re-writing it for myself.
Remark
Also, that's a bit related so I will answer this remark from your code:
# duffel_api/client.py
class Duffel:
    """Client to the entire API"""

    def __init__(self, **kwargs):
        # TODO(nlopes): I really don't like how I've built this- we shouldn't keep
        # instantiating the HttpClient through class inheritance.
        # We should (maybe!) have a singleton pattern on HttpClient and use
        # composition in all of these instead.

        # Keep this as we use it when doing the lazy-evaluation of the different
        # clients
        self._kwargs = kwargs

I think it's not too much of a problem, the real problem is underlying. You are creating one session per init (and therefore per inherited class), the code looks a bit like this:
# duffel_api/http_client.py
class HttpClient:
    def __init__(self, access_token=None, api_url=None, api_version=None, **settings):
        self.http_session = Session()

I think you should spawn a single HTTP session for all APIs (unless there is a good reason not to). Then, you could use that unique session in all subclasses (passing it as argument to the HTTpClient). You don't even need to have a singleton for that an can simply use a lazy property directly in Duffel client, like so (the code is already using aiohttp because I've already rewrote this part):
# duffel_api/client.py
class Duffel:
    _session: Optional[aiohttp.ClientSession] = None

    def __init__(self, **kwargs):
        self._kwargs = kwargs
        self._session = None

    @property
    def http_session(self):
        if self._session is None:
            self._session = aiohttp.ClientSession()
        return self._session

    @lazy_property
    def aircraft(self):
        """Aircraft API - /air/aircraft"""
        return AircraftClient(**self._kwargs, session=self.http_session)

# duffel_api/http_client.py
class HttpClient:
    _session: aiohttp.ClientSession

    URL = "https://api.duffel.com"
    VERSION = "v1"

    def __init__(
        self,
        *,
        session: aiohttp.ClientSession,
        access_token: str = None,
        api_url: str = None,
        api_version: str = None,
        **settings,
    ):
        self._api_url = api_url or HttpClient.URL
        self._api_version = api_version or HttpClient.VERSION

        if not access_token:
            access_token = os.getenv("DUFFEL_ACCESS_TOKEN")
            if not access_token:
                raise ClientError("must set DUFFEL_ACCESS_TOKEN")

        self._headers = {
            "Authorization": f"Bearer {access_token}",
            "User-Agent": f"Duffel/{self._api_version} duffel_api_python/{version()}",
            "Accept": "application/json",
            "Duffel-Version": self._api_version,
        }
        self._settings = settings
        self.http_session = session

    async def _http_call(self, endpoint, method, query_params=None, body=None):
        request_url = self._api_url + endpoint
        request_args = dict(params=query_params, json=body, headers=self._headers, **self._settings)
        async with self.http_session.request(method, request_url, **request_args) as response:
            if response.status_code in {http_codes.ok, http_codes.created}:
                try:
                    return response.json()
                # etc.

This way, all HTTP requests will use the same session (single TCP handshake).
You could also directly offer the enduser the opportunity to start the session on its own (for example when the server starts).

Here is how it would look like:
client = Duffel(access_token="duffel_test_Utbb-kmsFGL44mi0Ixz8-jOpQzS7OmlkGuxfxX-F4rQ")
client.start() # TCP handshake, once and for all

offer_requests = client.offer_requests.list()
async for offer_request in offer_requests:
    print(offer_request.id)

And with a more complete example (translating the one linked in the documentation):
destination = "CDG"
origin = "JFK"
departure_date = "2023-12-01"

slices = [
    {
        "origin": origin,
        "destination": destination,
        "departure_date": departure_date,
    },
]
offer_request = await (
    client.offer_requests.create()
    .passengers([{"type": "adult"}])
    .slices(slices)
    .return_offers()
    .execute()
)
offers = offer_request.offers

for idx, offer in enumerate(offers[:5]):
    print(
        f"{idx + 1}. {offer.owner.name} flight departing at "
        + f"{offer.slices[0].segments[0].departing_at} "
        + f"{offer.total_amount} {offer.total_currency}"
    )

offer_index = 0

given_name = "Christian"
family_name = "Glacet"
dob = "1986-07-31"
title = "mr"
gender = "m"
phone_number = "+33624000097"
email =<EMAIL_ADDRESS>
print(f"\nHang tight! Booking offer {offer_index}...")

selected_offer = offers[int(offer_index) - 1]
payments = [
    {
        "currency": selected_offer.total_currency,
        "amount": selected_offer.total_amount,
        "type": "balance",
    }
]
passengers = [
    {
        "phone_number": phone_number,
        "email": email,
        "title": title,
        "gender": gender,
        "family_name": family_name,
        "given_name": given_name,
        "born_on": dob,
        "id": offer_request.passengers[0].id,
    }
]

order = await (
    client.orders.create()
    .payments(payments)
    .passengers(passengers)
    .selected_offers([selected_offer.id])
    .execute()
)

print("\n🎉 Flight booked. Congrats! You can start packing your (duffel?) bags")
print(f"Booking reference: {order.booking_reference}")

Hey @cglacet,
Thank you for the suggestion. I think a lot of the criticism is valid.
We won't be taking this right this moment but definitely something we'll consider.

Hi @nlopes, don't hesitate to tag me here in case you need help. Depending on the timing I could help you find a good solution to this.


[DOCFIX]Update Chinese document docs/cn/ufs/Azure-Blob-Store.md to make it mo…

…re native

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/907/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/924/
Test PASSed.


[Docs] Updating a Jekyll tutorial to Meshery Documentation

Current State
The documentation on how to contribute to Meshery Docs doesn't include a Jekyll tutorial.
Desired State
The documentation on how to contribute to Meshery Docs will include a Jekyll tutorial for different platforms like Windows, macOS, and Linux, thus making it more beginner-friendly.
Contributor Resources

Meshery documentation site
Meshery documentation source
Instructions for contributing to documentation
Layer5 Community Slack

@leecalcote I would like to work on this issue.


cancel button removed my old image

when I click dropdown ,the file uploade window open then I click cancel button (did not changed image if I changed to new image its working fine) my older image(already selected one) get removed  unneccsory. how can I prevent from this auction?

I am also facing same issue.
if anyone resolved this issue then please provide solution here

@ko06  Did you find any solutions for this issue??

No, lookin for a solution else move with dropzone

Does anyone find a solution for the above issue?

Hello everybody, Does anyone find a solution for the above issue?


Formal bond order <= 3

Dialect imposes an upper limit of four on formal bond order.

This is not correct. Be sure that all references to quadruple bond are removed.

Closed by 758db0f71a99b1a2afda6f6599f5ae36c8a3183f.