[propsal]Spring Cloud Integration - Overview

Background
As we described in the Overview of Dapr :

Dapr is a portable, event-driven runtime that makes it easy for any developer to build resilient, stateless and stateful applications that run on the cloud and edge and embraces the diversity of languages and developer frameworks.

For Java language, Dapr provides  Java-SDK project. And in this SDK, Dapr provides a sub-project named "sdk-springboot" to integrated with spring boot. But this project is very simple and only provide a simple functionality as @topic annotation to do subscribe in pub/sub building block.
This is not enough for Java develoeprs, especially for spring cloud develoeprs.
Proposal
Principle
Although the spring cloud develoeprs can use Dapr by java-sdk in their spring cloud applications,  the programming styles and habits are totally different to spring cloud.
And also this is hard for spring cloud developers to migrate their applications to dapr.
So we need to prorive a solution to using Dapr in the way of Spring Cloud, which is called "Spring Cloud Integration":

Similar to the Spring Cloud Netflix / Spring Cloud Alibaba / Spring Cloud Consul / Spring Cloud Kubernetes and other Spring Cloud XXX solution, we will bring a solution based on Dapr and we call it as "Spring Cloud Dapr":

In the solution of "Spring Cloud Dapr", the dapr java SDK and Dapr runtime play the same rule as Netfix OSS jars / Alibaba jars / Consul jars ...... The biggest different is that Spring Cloud Dapr is not pure Java solution but introducing a sidecar named Daprd which will make the Spring Cloud applications to be small and without too many dependencies.
In addtion, the solution of "Spring Cloud Dapr" can also bring all the distributed capabilities in Dapr to the spring cloud applications, but still keep the same programing style and habits as develpers used to do in normal spring cloud applications.
Therefore, from this point of view, Dapr is to extend spring cloud, not replace spring cloud.
Dapr and Spring Cloud are collaborators, not competitors.
Subprjects
In spring cloud, there are so many subprojects as listed in this URL:
https://spring.io/projects/spring-cloud
We need to do integration one by one, and in this proposal, we only list the subprojects which are suitable to integrate with Dapr and discuss about the priority.
For detail implementation design of each subproject, we will submit an individual sub-proposal for it named "[propsal] Spring Cloud Integration - spring cloud xxx".
spring cloud stream (high priority, ongoing)
Spring Cloud Stream is a framework for building highly scalable event-driven microservices connected with shared messaging systems.The framework provides a flexible programming model built on already established and familiar Spring idioms and best practices, including support for persistent pub/sub semantics, consumer groups, and stateful partitions.
Dapr provides a pub/sub building block:

Pub/Sub is a loosely coupled messaging pattern where senders (or publishers) publish messages to a topic, to which subscribers subscribe. Dapr supports the pub/sub pattern between applications.

Current available pub/sub components in Dapr:

apache kafka
RabbitMQ
Redis streams
Pulsar
AWS SNS/SQS
gcp pub/sub
Azure Event Hubs
Azure Service Bus

Reference:

RabbitMQ binder implementation provided by Spring Cloud Stream
Apache Kafka binder implementation provided by Spring Cloud Stream
Spring Cloud Stream Binder for Azure Event Hubs  provided by Spring Cloud Azure
Spring Cloud Stream Binder for Azure Service Bus Topic and Queue provided by Spring Cloud Azure
Apache RocketMQ binder implementation provided by Spring Cloud Alibaba
Google pubsub binder implementation provided by Spring Cloud GCP

This subproject is ongoing and it's the first subproject of spring cloud integration, for the detail please see the "[propsal] Spring Cloud Integration - spring cloud stream".
spring cloud config (high priority, planned)
Spring Cloud Config provides server and client-side support for externalized configuration in a distributed system. By default Spring Cloud Config uses git as  the server storage backend.
Dapr provides a configuration building block:

The Configuration API enables you to retrieve and subscribe to application configuration items for supported configuration stores. This enables an application to retrieve specific configuration information, for example, at start up or when configuration changes are made in the store.

Current available configuration components in Dapr:

Redis (alpha)
Azure App Configuration (alpha)

Open source projects planned for support (to be confirmed)：

Alibaba Nacos: an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
apollo config: Apollo is a reliable configuration management system suitable for microservice configuration management scenarios. BTW: this project is widely used in China.
Consul: Consul is a service networking solution to automate network configurations, discover services, and enable secure connectivity across any cloud or runtime.

Reference Projects:

Spring Cloud Config for Azure App Configuration (Preview) provided by Spring Cloud Azure
spring-cloud-starter-alibaba-nacos-config: provided by  spring-cloud-alibaba
consul integration provided by spring cloud consul
TODO: confirm if Apollo is integrated with spring cloud
TODO: list other projects if any user has intresting

Spring Session (to be confirmed, low priority)
Spring Session provides an API and implementations for managing a user’s session information.
Dapr provides a state management building block:

Application state is anything an application wants to preserve beyond a single session. Dapr provides a key/value-based state and query APIs with pluggable state stores for persistence.

Spring Statemachine (to be confirmed, low priority)
Spring Statemachine is a framework for application developers to use state machine concepts with Spring applications.
if we add a state machine building block into Dapr, then we should consider to integrate with Spring Statemachine.
More subprojects to be added
We want to listen to the community to see if there is any subproject of spring cloud which is used by the end user and want to integrate with Dapr.
Meeting you needs is the key of this proposal.
Key Points
To let Spring cloud users to migrate to Dapr, we should provide some core values for the spring cloud users  to resolve their problems or even Pain Points：

Lightweight: make spring cloud applications simple and small since dapr can reduce the dependencies by sidecar model
Polyglot: great helpful if users needs to support multiple languages and also work together with spring cloud
Portability: easy to change to different components in runtime without code change on multi-cloud / hybird cloud

In addition to above, it would be useful to identify certain scenarios where Dapr is particularly suitable. Thus dapr can play a key role, even turning the impossible into the possible.
Function Computing and Serverless
This scenario is very suitable for Dapr because Java applications can be significantly slimmed down after  introducing Dapr:

For historical reasons, Java was designed for long-running and large scale applications. But in the scenario of function computing and serverless, the granularity of the application is very very small and serverless requires the application to start and stop on demand.  Java is strongly challenged in this area by languages like nodejs / go.
Dapr can help Java applications (or Functions)  by removing many the 3rd dependencies and let dapr's sidecar to complete these tasks:

Java AOT Compile
AOT (Ahead Of Time) compile is a very good approach if the users are very sensitive to the startup speed and resource usage of the Java application, because AOT will skip java bytecode and compile Java source directly into machine code. This is also a key point that the Java community is currently working on improving in order to make Java better adapted to cloud native.

Note: since this is a propopsal of dapr spring cloud integration, I don't want to detailing Java AOT compile here with a lot of words. Please reference to related data and projects like GraalVM / Leyden / Quarkus / Micronaut / spring native.

Although AOT compile looks wonderful and can solve problems such as slow startup and high memory usage. But AOT compile requries Close World (see all the code to do points-to analysis) and NOT supports any dynamic langurange functionality of Java, while Java is a dynamic langurage with Open World: it has many dynamic langurange functionalities like reflection, class loading on runtime, dynamic proxy, generating code on runtime...
The conflicts between current status of Open World and the requirements of Close World make Java AOT to be very difficult to implement at the moment, since there are always many 3rd dependencies required by the applications. Current all projects based on various Java AOT technologies are unable to establish an perfect ecosystem which can cover all the dependencies involved in daily development in a short period of time.
Therefore, if we expect to solve some inherent problems of Java by AOT technology, we will have to wait for a long long time.
But dapr can help us at this stage by allowing us to implete the AOT compilation of Java applications by introducing sidecar and remove the 3rd dependencies:

Therefore, after completing the integration with several sub-projects of spring cloud, we plan to integrate with the spring native project in order to implement Java AOT compile with spring cloud and Dapr.
Our point is that until the ecology of Java AOT is perfected, the most realistic way to achieve Java AOT is to combine it with sidecar such as Dapr. And with the help of Dapr and Java AOT, Java will be able to support function computing and serverless scenarios very well.
We will try to bring a new cloud native style of Spring Cloud application for function computing and serverless:

spring cloud: maintaining the existing development experience
spring cloud dapr: integrate dapr with spring cloud
dapr sidecar: make spring cloud applications small and easy to implement Java AOT
Spring native: implement Java AOT for spring applications

BTW: Before we integrate Dapr with spring cloud, we have succeed to integrate Dapr with Quarkus by quarkiverse/quarkus-dapr project. To have a look you can try the pub/sub demo.

This is a great proposal. But I don't see a description of the support for RPC/Http-style microservice invocation, for the following functions, may dapr provide support ?

Great proposal! this will power more users to migrate to dapr.
When we implemented the runtime-api, we also encountered such a problem: developers wanted to make changes to the original code as small as possible, so we also developed an adapter-layer-sdk, and then adapted it to the runtime-api sdk.
I will add a few questions and ideas we encountered here:
More adaptor layer scalability
In order to better adapt to different development framework systems in the future, when designing the adapter-layer-sdk, can the logic unrelated to spring-cloud be abstracted into a common-layer, so that it can be adapted to summer-cloud, dubbo and other systems.
For example, dapr-java-sdk's singleton acquisition, scalable annotation scanner and other logic. Put this logic into like dapr-adaptor-common-sdk.
In this way, I can also reuse these codes when adapting to the private middleware system. haha
User's custom logic
When we implement the code of the adapter-layer-sdk, we keep some hooks interface that users can customize logic.
In java, we implement it through the java SPI mechanism. Users can implement these hook interfaces and package them into a jar package.
After that, different hook logic can be loaded in different environments through the maven profile.
We may be able to retain some user-defined logic mechanisms when designing spring-cloud-dapr-sdk.

The intention of this is to provide Spring-cloud compatible annotations (i.e @EnableDiscoveryClient) using the dapr/java-sdk talk to Dapr instead of another service or library, right?
So, as a trivial example, if I already had an app that was using Consul for discovery (using the @EnableDiscoveryClient annotation) I should be able to instead swap out the spring-cloud-consul component for spring-cloud-dapr and then use  Dapr + (consul / mDNS / service-discovery-over-stone-tablets) without having to make code changes. That seems like an easy win for Spring users to make the switch.
I assume that in the case where there is no existing generic abstraction (it's been a while since I look but I think the Netflix library has some Eureka-specific annotations, for example) we will have to provide something that is Dapr-specific.

This is a great proposal. But I don't see a description of the support for RPC/Http-style microservice invocation, for the following functions, may dapr provide support ?

Service registration and discovery
Service-to-service calls
Load balancing
Circuit Breakers

Yes, this is not included in the first version of this proposal, because we are still discussing about how to integrated with spring cloud rest.
The core problem is that should dapr take all the capalibilities that spring cloud rest provides as curerent service invoke api does ?or Just provides some of them, for example, service discoveryj (so that dapr need to add a service discovery api and building block).

Great proposal! this will power more users to migrate to dapr.
When we implemented the runtime-api, we also encountered such a problem: developers wanted to make changes to the original code as small as possible, so we also developed an adapter-layer-sdk, and then adapted it to the runtime-api sdk.

Yes, this is the core value of this proposal: using dapr in spring-cloud (or xxxx) style

More adaptor layer scalability
In order to better adapt to different development framework systems in the future, when designing the adapter-layer-sdk, can the logic unrelated to spring-cloud be abstracted into a common-layer, so that it can be adapted to summer-cloud, dubbo and other systems.
For example, dapr-java-sdk's singleton acquisition, scalable annotation scanner and other logic. Put this logic into like dapr-adaptor-common-sdk.
In this way, I can also reuse these codes when adapting to the private middleware system. haha

Agree with you!
Yet we don't have too many practices in similar project integation and we can't do a pefect design at beginning, so we can start from spring cloud first. And for the common code we can later move into dapr java-sdk project by code refactory.

The intention of this is to provide Spring-cloud compatible annotations (i.e @EnableDiscoveryClient) using the dapr/java-sdk talk to Dapr instead of another service or library, right?

Yes, this is a good use case and I want to implete.
But we need to make a desicion first that can dapr provide the capabilities and api in service invoke separately? Like service discovery (name resolver in service invoke).
@artursouza @yaron2 what's your suggestion about above question?


Error: Please define the function_handler property inside the openAI object.

Package: deep-chat-dev
Version: 9.0.199
Location: directionConnection.openAI.assistant.function_handler
What happened:
Sending a message to invoke function calling results in the error message, "Please define the function_handler property inside the openAI object."
I tracked down the source of the issue, PR on its way to fix this.

Hey @bruffridge.
I realised this issue is also in other OpenAI related function_handler code. I have instead updated all of the related classes based on the previous way they were implemented in the following commit, hence I will close your PR.
Thankyou for bringing this to my attention and I have released the latest updates in deep-chat-dev and deep-chat-react-dev packages version 9.0.200. Please let me know if they work for you. Thankyou!


In VScode, the code will be masked as comments [QST]

Question about datar
Hi~
I'm currently switching from R to python, and I really like and appreciate the packages. But when I use it in vscode, it will be recognized as comments instead of code, which will make all the following code "grey", is there any way to solve this problem?  Thanks!

Confirmed. Will dig into it.

It's not an actual bug but because of the type annotations about the return value of the registered function.

Currently, we don't have the annotation for the return value of the function, and by default the function raises a NotImplementedError, so Pylance thinks the error is for sure to be raised, so the code after it will not be reached.
Will try to add return value annotations to those functions in the next patch version.

Should be fixed by 0.11.2

Thank you! I just updated and it works fine!


Update namespace config and docker compose files

Phases
MP
MM
MB
MR
JM
Total

ETA
0
0
0
0
0
0

Developing
0
0
0
0
0
0

Review
0
0
0
0
0
0

Total
-
-
-
-
-
0

ETA est.

0

ETA cust.
-
-
-
-
-
0

Problem description

@vidiecan removed two tests

Author does not have a two input fields.
Test for checking the notice step will be transformed into UI test, because we do not want to keep such specific collection for generic IT.


UI suggestion/mock-up for city trends feature

Come up with an awesome looking UI designed in adobe xd or sketch or whichever design tool that you want to use. Keep in mind that whatever colors you use should be like different shades of blue used in the logo of the app. Ofcourse you can have one complementary color as an accent color.
Once you are done simply post your UI design in the comments below as a png file. Keep in mind that we are just asking for mockup right now and not the fully developed layout through xml. So if you want to work on the issue simply comment below. Once you are assigned the issue you can continue to work on the UI mockup

I am taking up this issue

@knightcube  Any updates on this?

@Swati4star Design suggestion.
source: Google IO Android app (filter screen).
if no progress here I want to pick this up.

Design suggestion

source : google IO 2018 android app.

The UI looks great! ♥ If you want to code this in app also, you can work on it :)

@Swati4star Cool! I will create a pull request soon.


SAA-1923 time slots at model level

wip - set as draft so we can see changes easily as working collectively on it

Codecov Report
Attention: Patch coverage is 82.27848% with 14 lines in your changes missing coverage. Please review.

Project coverage is 83.57%. Comparing base (42432a2) to head (469f765).

Files
Patch %
Lines

.../hmppsactivitiesmanagementapi/entity/Allocation.kt
65.51%
0 Missing and 10 partials :warning:

...vitiesmanagementapi/entity/ActivityScheduleSlot.kt
66.66%
1 Missing :warning:

...s/hmppsactivitiesmanagementapi/entity/Exclusion.kt
95.65%
1 Missing :warning:

...ctivitiesmanagementapi/entity/ScheduledInstance.kt
50.00%
1 Missing :warning:

...activitiesmanagementapi/service/ActivityService.kt
66.66%
1 Missing :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #998      +/-   ##
============================================
+ Coverage     83.46%   83.57%   +0.11%
+ Complexity     3711     3695      -16
============================================
  Files           382      383       +1
  Lines         12435    12399      -36
  Branches       1089     1073      -16
============================================
- Hits          10379    10363      -16
+ Misses         1551     1534      -17
+ Partials        505      502       -3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Update Person.php

Hi
I just added two names Florent and Valentin i think they are pretty frequent
:)

Low PR value, sorry. Faker doesn't need to have the names of all the people who star the repo on GitHub. Just a reasonable amount to guarantee that the data it generates looks legit.


Types are not exporting

When the webpack builder generates dist folder then I try to execute createServer function from dist/index.js types are not exported. I had to manually import the types. Bundlers and Typescript are not something I'm good at. Any help will be appreciated :)

ha! i found the issue...

ha! i fixed it


Code cleanup in markdown-common package

Changes

Make prefix calculation more modular
Clean up and improve testing
Some API cleanup

Coverage increased (+0.5%) to 86.671% when pulling 9637f71b90dea96c2a0619d48530a374620b720b on parserv2 into fcc030ceb1a54d7819ca8243b61cc82bc5700b9a on master.


Parsing is slow to generate

I have changed the way parsing works and it now is a little smarter and caches the checksums of files.
Prior to this change 30 topics and ~1300 triggers took 10+ minutes. It will now only parse the files that have changed.

Okay It was actually 2 minutes not 10.
Time to Process 120.252 seconds
Number of topics 33 parsed.
Number of triggers 1171 parsed.
Number of replies 2315 parsed.

This should be good in 0.3.18


Breaking proto changes

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
166

Relevant Lines:
13822

💛  - Coveralls


Handle quota exceeded and running low on disk space errors while saving a key in localStorage

Description
show better error messages if running out of quota or disk space for localStorage
Fixes #2884
Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?

manually

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Tests are failing

Tests are failing
@hetunandu tests are passing now


Implement Zero State for Arrays

Issue #, if available:
Description of changes:
This PR revamps Arrays to match the mockups for the zero state and improves the user experience.
https://user-images.githubusercontent.com/942415/191139244-4080d820-5327-4b5b-9c2d-ec4885bf0635.MP4
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #659 (e9bf4bc) into tagged-release/forms-and-views (ac197e5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@                       Coverage Diff                       @@
##           tagged-release/forms-and-views     #659   +/-   ##
===============================================================
  Coverage                           90.52%   90.53%
===============================================================
  Files                                  98       98
  Lines                                3685     3686    +1
  Branches                              990      990
===============================================================
+ Hits                                 3336     3337    +1
  Misses                                324      324
  Partials                               25       25

Impacted Files
Coverage Δ

...-ui-react/lib/utils/forms/array-field-component.ts
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Howto question: custom totals columns

Hello,
I'm relativly new to pivottable.js - and also to github and its comments/issue section.
If i am totally wrong here, or my case is already solved in a thread I have not seen, just write ;) .
Last week I got a new task to solve, and as the pivottable looks damn good about what it can do, this was chosen as the tool of choice ;).
The task: We have to display accumulated order data of our sales people ( 'field agents' ) , so that they can:

view the accumulated orders of their individual customers through selected years
compare their 'performance'. Business numbers and money - all that counts ;) .
compare project numbery by customer and years

As data source I have a small servlet integrated in our information system, that delivers the data objects as json.
One record is one order event and the following invoice of one specific customer with one 'project'.
The record contains a unique id, customer id, amount, field agend id and some other identifiers like the
'project' in the context of the order.  The project is just an identifier to something like "summer 2018", "winter 18/19" .
So far, so good.
I got pivottalbe to accept the data and display a fair amount of it, ordered by projects, customers and year, the sums are added up nicely over the years.
As next task, my superiours want to have a 'diff' value between customers/projects and years.
Thanks for that ;) .
So far I have something like this:
rows//columns:  year  2016  2017  2018           Totals
customer 1:                amounts through years:: totals customer1
customer 2:      ...
What I need to display is, in this type of display, a new column between 2016 & 2017, showing the calculated difference between the items of the year 2016 and the previous year 2015.
Using the click callback example, I managed to calculate this, but thats not the solution they asked for.
As far as I understand, a custom aggragator will not help me, as the aggregator is the source for the value of one cell, in my case the 'sum of the order amount of customer in project in year'.
A derived attribute works on the attributes of one record, would be not the solution in this case.
Is there a way to define a separate column like the totals column, just with a different type of data source ?
At the moment, I am thinking of adding the needed columns by some extra code with javascript & jquery, but I am not yet sure if this is a good idea.
Thanks for any idea !
Greetings,
Roland

@Flauschehase
Just a note to sey I  am grappling with some of the same issues.
Part of the problem is that to retain its flexibility,  it can only handlle one metric (aggregagor) at a time.
My plan, so as to not totally "hack the core" is to create a new rederer based on table, that has my additional metrics hard coded.
This'll go against the whole design philosophy of the projject, but will be the most unobtrusive way of getting the job done - i think.
Hope this helps

Actually @dmclark you're working well within the design philosophy, which is essentially to provide a flexible framework with a bunch of built-ins, and the ability to more-or-less-easily write your own aggregators or renderers to accomplish whatever the built-ins cannot.
To answer the original question, then: if the built-in functionality of "one aggregator that applies the same way to both total and non-total cells" doesn't meet your needs, you will have to implement either your own aggregator that treats totals differently, or your own renderer that processes data differently and displays it the way you like. It's likely not for the faint of heart and those who don't want to read the original source of the built-ins but it's not an insurmountable hurdle either :)


Aura duration

Since the latest updates to auras it seems to take a while before aura durations are displayed when buffs are applied after login/reload. Also, this has been happening since earlier, but often after login some buff durations on people aren't displayed whereas others are.

oUF doesn't do aura durations, so this is most likely an issue with a
layout or a plug-in.

 Some part of me linked durations to oUF after those updates.
hides

Just to let you know: I am slightly interested in what change(s) made it act that way. Main reason for this is really that I'm contemplating if I should write a oUF 1.5 -> 1.6 proxy.

Tested a little and found it's because of the removal of these 2 lines in createAuraIcon:
button:SetWidth(icons.size or 16)
button:SetHeight(icons.size or 16)

A lot of cooldown scripts (used to) work with GetWidth() or GetSize(), so maybe it's just time to move on from that.

Yeah, that just sound like a bad solution on their part. Anchoring should really be used to solve that.


Best practice for adding a column for __filename without adding a duplicate field?

Describe the usage question you have. Please include as many useful details as  possible.
my problem
i have a Dataset and want to add the __filename field when creating a Table from this dataset. I've tried a few things:
attempt 1: use dataset.scanner
columns = dataset.schema.names + ["__filename"]  # ["__last_in_fragment"]
scanner = dataset.scanner(columns=columns)
my_table = scanner.to_table()

but with this, i get a duplicate column error when i try to access it with duckdb:
con = duckdb.connect()
con.execute("SELECT * FROM my_table limit 5").fetch_df()

duckdb.InvalidInputException: Invalid Input Error: Attempting to execute an unsuccessful or closed pending query result
Error: Invalid Error: ArrowInvalid: Multiple matches for FieldRef.Name(__filename)

attempt 2: use a dict of columns
i have also tried creating the new column by specifying columns as expressions. but, ds.field("__filename") is not recognized:
columns = {x: ds.field(x) for x in dataset.schema.names}
columns["filename"] = ds.field("__filename")
scanner = dataset.scanner(columns=columns)

Traceback (most recent call last)
----> scanner = dataset.scanner(columns=columns)
/opt/conda/envs/myenv/lib/python3.11/site-packages/pyarrow/_dataset.pyx:336, in pyarrow._dataset.Dataset.scanner()
/opt/conda/envs/myenv/lib/python3.11/site-packages/pyarrow/_dataset.pyx:2576, in pyarrow._dataset.Scanner.from_dataset()
/opt/conda/envs/myenv/lib/python3.11/site-packages/pyarrow/_dataset.pyx:2484, in pyarrow._dataset.Scanner._make_scan_options()
/opt/conda/envs/myenv/lib/python3.11/site-packages/pyarrow/_dataset.pyx:2381, in pyarrow._dataset._populate_builder()
/opt/conda/envs/myenv/lib/python3.11/site-packages/pyarrow/error.pxi:100, in pyarrow.lib.check_status()
ArrowInvalid: No match for FieldRef.Name(__filename) in <schema...>

tl;dr
what is the best practice for adding fields like __filename to a table while avoiding duplicate column errors?
related issues
this might be related to

https://github.com/apache/arrow/issues/24407
https://github.com/dask/dask/issues/9251

versions
Linux-4.19.0-23-cloud-amd64-x86_64-with-glibc2.28
Python 3.11.0 | packaged by conda-forge (main, Jan 14 2023, 12:27:40) [GCC 11.3.0]
pyarrow 11.0.0

Component(s)
Python

Hi, is there any update on this, or any workaround? I got the same problem with version 13.0.0

Also running into this 😔

Seems to work, though I'm not sure how efficient it is :/
def rename_columns(schema: pa.Schema, **name_mapping) -> pa.RecordBatch:
    return pa.schema(
        field.with_name(name_mapping.get(field.name, field.name))
        for field in schema
    )

def append_filename(ds: pa.dataset.Dataset) -> pa.dataset.Dataset:
    scanner = ds.scanner(columns=ds.schema.names + ['__filename'])
    schema = rename_columns(scanner.projected_schema, __filename='filename')
    batches = (
        pa.RecordBatch.from_arrays(batch.columns, schema=schema)
        for batch in scanner.to_batches()
    )
    return pa.dataset.dataset(list(batches))

Seems to work, though I'm not sure how efficient it is :/

Needless to say, it would be good to have this natively (and efficiently!) supported by pyarrow itself.
One workaround would be to allow columns to be renamed in the scanner, similarly to how I'm doing it above but doing it on they fly rather than reiterating and mutating the dataset after the fact.


readme: update travis link to new nodejs org

The Travis CI badge still points to the "old" joyent/http-parser logo, which doesn't exist.

this was done in 4e382f96e6d3321538a78f2c7f9506d4e79b08d6 and this PR can be closed

Thank you!


Create Posts “starting-a-blog”

Automatically generated by Netlify CMS

👷 Deploy Preview for nostalgic-edison-0760ba processing.
🔨 Explore the source changes: 89373995e27ec3f3c7f04a69a4fe8020a9a1e923
🔍 Inspect the deploy log: https://app.netlify.com/sites/nostalgic-edison-0760ba/deploys/615b581cc1eb8600087c8ccb


Fixed the Order's page bug!

Related Issue
It resolves the issue #1274
Description

Fixed Css for Orders Page (Main Bug cited in the issue)
Added padding for the options in Filters
Changed the colors and matched it to UI

Type of PR

[x] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
Before:

After It looks like:

Checklist:

[x] I have performed a self-review of my code
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

Additional context:
I am a Gssoc'24 Contributor! Plase do add the gssoc labels for the same sir! @arghadipmanna101
Closes #1274

@arghadipmanna101 Sir! Please merge my pull request


[CSL-1472] Fix lwallet sendToAll: send change in transaction

@kantp is it with DCONFIG=benchmark?

The error message means that transaction's distribution doesn't mention all bootstrap stakeholders. This check is done only in bootstrap era and in benchmarks mode bootstrap era is disabled. So it's very strange.  In that PR this bug is fixed.
That's the fix: https://github.com/input-output-hk/cardano-sl/pull/1249/files#diff-c9f5c3810acacb6501e720a2da519ab9R214 (swap arguments in isBootstrapEra call).
I will push this fix into a separate branch because it's quite crucial.

@kantp should be fixed in #1298.

@kantp unfortunately tests fail in that branch, but you can use that version already. I think that PR will be closed eventually.

Thanks, @gromakovsky!


Invalid response code for exec resize in the API reference

Problem description
The engine API reference indicates that the correct response code for a successful exec resize operation is 201, which in reality is 200.
As an example, the container resize operation returns 200 in case of success, which seems correct because the HTTP code 201 indicates a "created" object, not a modified one.
I wanted to edit the API reference myself but I didn't find which page to edit, hence my issue here.

Problem location
We can see the response codes for this operation here: https://docs.docker.com/engine/api/v1.41/#operation/ExecResize

Suggestions for a fix
Update the documentation and use the 200 status code.

That may be handled over in the swagger def on moby/moby. @thaJeztah may know more.

That may be handled over in the swagger def on moby/moby. @thaJeztah may know more.

Thanks a lot, this is the file I was looking for in this repository.
I'll fork the moby repository and open a pull request there, but let this issue opened if @thaJeztah has something to say here.

Thanks a lot, this is the file I was looking for in this repository.
I'll fork the moby repository and open a pull request there, but let this issue opened if @thaJeztah has something to say here.

Thanks for reporting; yes, I suspect that must've been a copy/pasta error and the wrong status code has been used there; https://github.com/moby/moby/blob/10aecb0e652d346130a37e5b4383eca28f594c21/api/swagger.yaml#L8785-L8786. There's also probably some other status codes that could be added (400 - which is returned if an invalid parameter was passed, and 500 for internal server errors) (probably fine to take care of those separately).
Note that the documentation itself is using the versioned swagger files in the docs directory in that repository; https://github.com/moby/moby/tree/master/docs/api, so those would need to be updated as well, but ideally in a separate commit, so that those changes can be cherry-picked into the release branch (which is where the docs gets them from)

I'll fork the moby repository and open a pull request there, but let this issue opened if @thaJeztah has something to say here.

Let me know if you need help (also happy to open e pull request myself); when opening a pull request in the moby repository, make sure that your commit message contains a DCO (Signed-Off-By) line with your real name and e-mail as outlined in https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work

Thanks for your response, here is the pull request: https://github.com/moby/moby/pull/43122
I hope it's what required, let me know if something is missing or needs to be fixed.

Thanks! Looks good 👍


Virtualmin: Backup schedule chooser doesn't work

When trying to add complex schedule for backup, popup window opens, but confirming changes fails.

Go to Virtualmin > Backups and Restore > Scheduled Backups.
Add new or edit existing backup schedule.
Under "Schedule and reporting" choose "Complex schedule".
Click button to open popup /virtual-server/cron_chooser.cgi.
Change any setting, error console gets TypeError: form.special_def is undefined error.
Button "OK" doesn't work, parent window doesn't update.

Using "Virtualmin Framed Theme" works as expected.
Theme 18.31 and Webmin 1.821 versions installed.
Browser Firefox 51

Hi,
It's confirmed.
I will try to make a patch within few days.

Actually, it works if you hit submit button?

Yes, it works with Submit button. So the fix is probably to remove one of button, leaving working one.
"Virtualmin Framed Theme" has only OK button.
Error console error happens in both themes, so probably unrelated.

Hmm. I'll take a look.


Selecting a word to create a link with a double click causes the link to be appended to the start of the text.

When I have the text hello in my text block, the DOM tree looks like

    hello

When I then select the text and add a link to http://google.de, the resulting DOM tree is

      http://google.de

    hello

How are you selecting the text? Are you using the keyboard to highlight the text or double clicking to select the text?
Main reason I ask is that the link generation is something handled by scribe rather than by Sir Trev so sometimes it's not Sir Trev thats causing the issue.

What browser?

I'm selecting the text by pressing the left mouse button down and moving the cursor - and I'm using Firefox.

Tested the latest version in windows and osx firefox 7. I'm able to add links using both the keyboard and mouse functionality as expected. Are you getting any javascript errors in the console?

I using Ubuntu, for your information. I'm not getting any errors in the console, no. The problem ist, that the link text is the same than the URL I entered and not the selected text, that stays like before.

Does this work for you?
http://guardian.github.io/scribe/
That's the scribe demo page.

Yes, that works perfekt for me.

Ok. I'll build you a version to test.

http://madebymany.github.io/sir-trevor-js/example.html works correctly in ubuntu 16.04 firefox 47

It's not working for me:

So I type hallo. then select hallo with the mouse and enter the url?

Exactly, that I did. I

wrote the text
selected the text with the mouse
clicked on the link icon in the format bar
entered the url
5 confirmed

The result you can see on the screenshot. I also tried selecting the text with the keyboard, but the result was the same.

What version of ubuntu are you using?

Sorry can't recreate so not sure how to help.

@morpheus-87 Do you have any other plug-ins running on firefox? It might be worth double checking the error using firefox safe mode and see if you still get the issue.

Good thinking @SgtOddball

Thanks for that hint, @SgtOddball - I just tried it, but it's still the same result.

@morpheus-87 what version of ubuntu is this?

Got it! Did you get the warning about adding http before the link? If you did it creates a new entry in front of the highlighted text instead of applying the link to the highlighted text.
Sooooo @morpheus-87 can you see if you can add a link as http://google.de and then another link after it with 'google.de' and see if they behave differently?

Also.... i've got it doing the same if the highlighted word is the first word at the very start. Place a space infront and it works as intended, no space and it borks.

@SgtOddball is this in firefox too?

It's Xubuntu 16.04, @raffij.
I've also managed to do it one, @SgtOddball - but since the second try, it was again the same.

@raffij Yes, sorry should have confirmed Firefox 47.0.1 on Win 10.
It's strange how after it throws the error the first time round, it then works ok. I've also double checked against the current demo of scribe and it refuses to misbehave (but then the content was already present).

@morpheus-87 Xubuntu 16.04 firefox 47 is working correctly on my system
https://www.dropbox.com/s/j3oytx4j1fy217u/Untitled.mov?dl=0

Thanks for that screencast, @raffij! I think, I found the point, that's causing the problem:
When I select a word by double-clicking it, I run into problems - when I select it by clicking the mouse and moving the cursor, everything works as expected. Can you confirm that?

@morpheus-87 agreed. Renaming the issue.

It's a bug in scribe probably http://guardian.github.io/scribe/ can reproduce everytime.

For me, everything is working on the scribe demo page.

@morpheus-87 https://www.dropbox.com/s/hdy74b6f6aiavcc/Untitled2.mov?dl=0

Ok, I can reproduce, what you did in the screencast. I just selected the text, that was already there on the demo page, by double-click and there was no problem.

Ok it's a firefox 47 problem, doesn't appear platform specific.
Raise a bug on:

https://github.com/guardian/scribe
https://github.com/guardian/scribe-plugin-link-prompt-command

Replicated in firefox 65.


updated prelude for 0.12

Less is more

Would be great if this is merged and new version is released. @TinkerTravel is there something i can help with for this?

/cc @rightfold

Due to bankrupcy everybody was fired and now nobody can merge PRs anymore.


Make use of kubelet's node lease feature in shoot clusters

How to categorize this PR?
/area performance
/kind enhancement
What this PR does / why we need it:
The mentioned Issues sums up the use-case / need of this PR pretty good.
Which issue(s) this PR fixes:
Fixes #7213
Release note:

Remove the configuration of kubelet's `NodeStatusUpdateFrequency` to use its default value. With this, shoots make full use of kubelet's node lease feature now instead of performing heartbeats on the `Node` objects.

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

/approve

/test pull-gardener-e2e-kind


[varLib.featureVars] lookups for 'rvrn' should probably be inserted at the beginning

It turns out Apple messed up the implementation of rvrn: despite the spec saying it should be processed early, it follows the lookup order.
https://twitter.com/justvanrossum/status/1345364798423363584
So fonts built with designspace rules saying <rules processing="first"> (which use the rvrn feature), behave like <rules processing="last"> on macOS (at least on 10.15).
We should probably work around that by inserting the rvrn lookups before all other lookups.

interesting. Could you upload a test font that reproduces the issue?
Inserting the lookup would mess all other lookups referencing other lookups by their index..

interesting. Could you upload a test font that reproduces the issue?
Inserting the lookup would mess all other lookups referencing other lookups by their index..

The necessary remapping if the lookup indices was part of what prompted me to tack them at the and (as well as that I still think that's the only relevant behavior).
Here's a test font with a character 'a', a smcp feature, and a variable axis TEST that swaps in a swashy alt for both the regular and the smcp glyph. The 'rvrn version does not work as intended in HB (because rvrn), but does work in CoreText:
FeaVarTestFont.zip

The necessary remapping if the lookup indices was part of what prompted me to tack them at the and (as well as that I still think that's the only relevant behavior).
Here's a test font with a character 'a', a smcp feature, and a variable axis TEST that swaps in a swashy alt for both the regular and the smcp glyph. The 'rvrn version does not work as intended in HB (because rvrn), but does work in CoreText:
FeaVarTestFont.zip

Or rvrn could be dropped and ccmp be used instead (not sure if it works in MS Office though, which most likely the sole reason even exists).

Or rvrn could be dropped and ccmp be used instead (not sure if it works in MS Office though, which most likely the sole reason even exists).

The issue would remain with ccmp, the feature variation lookups would happen after other ccmp lookups when they maybe should happen before.

The issue would remain with ccmp, the feature variation lookups would happen after other ccmp lookups when they maybe should happen before.

I’ve just checked on macOS Big Sur (Version 11.2), and this isn’t fixed there yet.

To explore this a bit further, I edited a GSUB table ttx to put my rvrn swaps first, then adjusted the indexes and references for following features back to keep things working.
(Overall, my goal is to make opsz-activated alts, so I’m subbing R→R.default at > opsz 24, then have ss20 swap R.default→R.grot. I’m doing something similar but for < opsz 24 for a few other characters such as I l g.)
That still works in HarfBuzz, and gets things working in InDesign. Strangely, though, even though a partial attempt at this worked in CoreText earlier (with just the R swap), my more-thorough rearrangement (adjusting two lookups) no longer seems to work. Maybe I’ve messed something up, though.

Correction: that does work in CoreText (e.g. TextEdit, macOS Catalina), but it does not work in WebKit (Safari on Mac or iOS).

Here is the slightly-embarrassing way I am currently solving this with TTX & hand-editing. As far as I can tell, the alternative would be rebuilding the reordered GSUB table from scratch, which is honestly pretty intimidating to me at the moment. Hopefully this helps someone out if they are facing a similar problem, until this workaround can be set up in varLib and/or properly addressed by Mac & Adobe.
https://www.youtube.com/watch?v=wNUoOLhaAxk&ab_channel=StephenNixon

Let's see if @nedley can offer what CoreText is doing with rvrn feature.
In general, let me remind all that rvrn feature was unnecessary and IMO should never have been added. It was forced on the committee by Microsoft.
What should have happened instead is to identify wildcard always-on features that should be used for whatever substitutions the designer deems necessary. The early vs late is another unfortunate reality; accepting that ccmp is the wildcard feature of early application helps.

The issue would remain with ccmp, the feature variation lookups would happen after other ccmp lookups when they maybe should happen before.

Not if the lookup indices are smaller. Rigth?

CoreText has always applied rvrn early (along with other mandatory features) but not super-early; this has been fixed but there’s nothing I can do about the previous behavior for users that don’t update.

there’s nothing I can do about the previous behavior for users that don’t update

@nedley Thanks for your input! I’m not sure if this was directed at me, but I am still primarily using Catalina. Just to clarify, though, I’ve tested this on the latest version of macOS (v 11.2, released Feb 1, 2021) and Safari on iOS 14.4.2 (v14.4.2, released March 26, 2021), and I have confirmed that if the rvrn lookups are ordered later than the stylistic set lookups, the rvrn substitutions don’t occur before stylistic set substitutions. Unless, are you saying that the behavior has been fixed in more-recent versions of Mac or iOS? (Also, am I mistaken in thinking that iOS Safari uses CoreText? I’m genuinely unsure about whether that is the case, or whether WebKit uses its own text layout engine.)
Here’s a screenshot of TextEdit, showing the problem. ss20 should mean that the I g l glyphs get subbed for .text versions at smaller opsz values, as they do in HarfBuzz (e.g. in FontGoggles, screenshot below).

(Also checked at actual sizes < 24)

The same font works as expected in FontGoggles:

If the lookups are reordered (e.g. by the process shown in my video, above), things do start to work as intended. For comparison, you can see these two deployments of a non-working vs working version of these rvrn-dependent stylistic sets. How to use: open the "Options" sidebar, then add ss20, and then move the opsz slider up and down. In the latter test, you will see glyphs I g l swapping at opsz 24.

Not working in Safari (rvrn lookups last): https://606230b58eb4c800085056f1--namesans.netlify.app
Working in Safari: (rvrn lookups first): https://606a6ca7824a0300099bc459--namesans.netlify.app

If it’s helpful to have these for local testing, you can find them in browser Dev Tools > Network file view of the respective web pages.

I’ve tested this in the latest macOS general release, 11.2.3, and the issue persists.

@arrowtype have you tried recently? do you know if the issue still persists in say macOS 12.6 (Monterey) or the newly released 13 (Ventura)?

The spec gives several constraints on 'rvrn', one of which being that it “should be processed early in GSUB processing, before application of the localized forms feature or features related to shaping of complex scripts or discretionary typographic effects.”

@nedley Ah sorry I missed the comment that you said this has been fixed. Thanks.

thanks Ned for confirming this was fixed. We might still want to do insert the rvrn lookup at the beginning and remap following lookup indices for it apparently this still affects some (unspecified) Adobe apps

When I say “fixed” I mean we adhere to the spec, it may not be what people were hoping for. 🤷

(Super belated comment just to confirm that yes, this did start working. It was fixed in macOS 12, if I remember correctly.)


Create Graph Client

Create graph client to draw data.

Currently a simple spark java server based on is up. it makes random data but that's cool for now.
We also wanted to try using pubnub.


⚠ Bofrost.at has degraded performance

In f867d71, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1854 ms

Resolved: Bofrost.at performance has improved in 0ce42e7.


Wizard & Tree

Hi! Thank you for your hard work on it.
This feature helps alot, even for those who already use UI5 as an instrument, and also for newcomers.
Is it possible to add sap.m.Wizard (with steps) and sap.m.Tree  ? They are not smart controls afaik

yes both controls are just XML with a JSON Model so they can be added. I will make an extra issue for the tree because the data has to be sent in a new format which is actually not part of the abap2UI5 functionality.
https://sapui5.hana.ondemand.com/sdk/#/entity/sap.m.Wizard

close this issue, check:
https://github.com/abap2UI5/abap2UI5/issues/219
https://github.com/abap2UI5/abap2UI5/issues/303
https://github.com/abap2UI5/abap2UI5/issues/248


Fixes SQL expression unit test

Fixes a typo in the title of a test, and also performs an assertion instead of just calling the function.

Thanks, @albertor24!


Apply command palette actions to Rename

Let's say I want to rename a variable from camelCase to snake_case :

I press F2 => the rename textedit control appear
I open the command palette to search for "transform to snake case" => The rename window has been automatically closed and I can't apply the transform to the text inside the rename textedit control

I'd like the rename window to stay open after command palette appears and be able to modify the content of the rename field with a command from palette before applicating rename

and I can't apply the transform to the text inside the rename textedit control

that won't work anyways because the rename input box is not a rich text editor. You'll find a existing issue for that when looking for the rename label

The rename window has been automatically closed

That's the designed behavior. The rename widget is very lightweight and dismisses itself when focus is lost or when scrolled out of view. If we don't do that we need more heavy weight UI with an explicit close button


Add support for custom themes season

Duck season

Failed Test
Failure Summary
Logs

[chromium] should show the FAQ page correctly.
The FAQ page failed to load, and the title and heading were not found within the expected time.
Logs ↗

Flaky Test
Failure Summary
Logs

---
---
---

[chromium] should return list of users correctly.
The API call to get the list of users failed with a 404 Not Found error.
Logs ↗

[chromium] should display error message for invalid login correctly.
The expected status code 401 was not received, instead a function was returned.
Logs ↗

[chromium] should login with credentials correctly correctly.
The login request to the server failed with a 404 Not Found error.
Logs ↗

Test$1InvalidCredentials
failure$1message: Failedfailure$1text: === RUN   Test$1InvalidCredentials    api$1test.go:25: Invalid credentials provided--- FAIL: Test$1Inva...
Logs ↗

View Full Report ↗ ⋅ Docs


Ability to edit remotes

Hi, it would be great to be able to edit existing remotes within the app itself or with some sort of internal command line. I would find this very useful when making minor modifications without needing to recreate the remote, or when updating the refresh token using oauth2.
There are currently some workarounds, such as having to delete and recreate a remote or having to import an already existing configuration file. However, the first method means more steps to the user and the second needs an extra installation on another device (which is probably the case for most users but perhaps not all, and it also poses errors for Box which does not allow to use the same token in two devices: https://rclone.org/box/#invalid-refresh-token).
Thanks for all the great work!

A bit of background: The underlying problem here is that rclone does not have a machine-usable config interface. This means that in addition to remote type specific config wizards we would also need remote type specific config edit options that set your options on the interactive rclone command line.
There has already been some discussion on how to improve rclone, but this is a non-trivial feature and it will probably be some time before it is ready.
I've also thought about providing power users with an internal command line, but again, this would need some degree of terminal emulation and is non trivial.
Now, onto the specific problem: Box' behavior of invalidating tokens on multiple devices makes this problem worse, but we need a general solution. The current idea is to add a menu option to (re)authorize remotes. This should work for your issue, right?

Hi, thanks a lot for the explanation. Yes, a menu option to reauthorise remotes would be great. Thank you!


Solve the problem of context passing during asynchronous execution.

Ⅰ. Describe what this PR did
Solve the problem of context passing during asynchronous execution.
Ⅱ. Does this pull request fix one issue?

fixes #166
Ⅲ. Why don't you add test cases (unit test/integration test)?
Added, detailed PR code.
Ⅳ. Describe how to verify it

Unit testing of new code；
Start A, B, C three services, A calls B, A calls C asynchronously. (At least one service is called asynchronously)

Ⅴ. Special notes for reviews

Codecov Report

Merging #3243 into develop will decrease coverage by 0.17%.
The diff coverage is 85.71%.

@@              Coverage Diff              @@
##             develop    #3243      +/-   ##
=============================================
- Coverage      51.09%   50.92%   -0.18%
+ Complexity      3279     3274       -5
=============================================
  Files            612      613       +1
  Lines          20088    20069      -19
  Branches        2509     2462      -47
=============================================
- Hits           10264    10220      -44
- Misses          8802     8808       +6
- Partials        1022     1041      +19

Impacted Files
Coverage Δ
Complexity Δ

...e/context/TransmittableThreadLocalContextCore.java
85.71% <85.71%> (ø)
4.00 <4.00> (?)

...seata/core/context/FastThreadLocalContextCore.java
0.00% <0.00%> (-85.72%)
0.00% <0.00%> (-4.00%)

...eata/integration/motan/MotanTransactionFilter.java
39.28% <0.00%> (-17.86%)
5.00% <0.00%> (-2.00%)

...obuf/convertor/BranchRegisterRequestConvertor.java
90.47% <0.00%> (-9.53%)
3.00% <0.00%> (ø%)

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-9.10%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-8.00%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalBeginResponseConvertor.java
92.59% <0.00%> (-7.41%)
3.00% <0.00%> (ø%)

...ration/http/TransactionPropagationIntercepter.java
35.71% <0.00%> (-7.15%)
3.00% <0.00%> (-1.00%)

...otobuf/convertor/GlobalCommitRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalStatusRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

... and 32 more

I think it has been implemented in #2675

Thank you for your contribute


Basic HTTP authentication module/function

Add "basic HTTP authentication" to this module:

a lambda function that authenticates against a file similar to .htaccess stored on the same bucket
the .htaccess file can use the APR1 format (https://gist.github.com/samba/789122387e7f7330890b)
the lambda function is used in Cloudfront for lambda@edge

We can make a similar Lambda function to this:

http://kynatro.com/blog/2018/01/03/a-step-by-step-guide-to-creating-a-password-protected-s3-bucket/

@phuonghuynh any updates so far? Thanks!

We need to define the list elsewhere, say a S3 json file.

Nope, i am using my own one.

Cool, thanks!


More missing PHP wrappers

Describe the bug
Following on from #2722, it looks like we may be missing some additional PHP wrappers, specifically the ssh2.* family.
Source: https://www.php.net/manual/en/wrappers.ssh2.php
Expected behaviour
We should cover these additional PHP wrappers:

ssh2.shell://
ssh2.exec://
ssh2.tunnel://
ssh2.sftp://
ssh2.scp://

Actual behaviour
We currently only match against ssh2://
Your Environment

CRS version (e.g., v3.2.0): v4.0/dev

Just in case, we have moved all wrappers to this file now: https://github.com/coreruleset/coreruleset/blob/v4.0/dev/util/regexp-assemble/data/include/url-schemes.data

That way we can just include it in the corresponding regex using the regexp-assemble include directive.

@fzipi But what about rule 933200?
I've just updated rule 933200 where the wrappers are. See: #2723

Awesome.
I think we should take a note in the data file where the wrappers come from (https://www.php.net/manual/en/wrappers.php), and add it to the issue that tracks the list of files to update whenever we do the list updating process.

Added to the list that tracks updates. Closing.


Can't install paymentSDK version 3.5.0

I've installed paymentSDK version 3.4.1 and I'm trying to update to 3.5.0.. I got the following error when i run pod install
`
[!] CocoaPods could not find compatible versions for pod "paymentSDK":
In Podfile:
paymentSDK (~> 3.5.0)
None of your spec sources contain a spec satisfying the dependency: paymentSDK (~> 3.5.0).
You have either:

out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.
`
I've already tried pod repo update and pod install --repo-update .... but still having the above error..

Hi @NayOoLinn ,
I checked it in Cocopods and you are right. We updated the podspec and required code a few minutes ago. The issue had solved. Please try to install/update pods again.
Our apologies and Thanks for your feedback!

Thanks a lot..! It works now.. Cheers.!!


Support  local folders in POP3 and IMAP

This feature adds local folders to K-9. These are folders that resides only on the device and are not synched or synch-able with any remote server, POP3, IMAP or else.
The aim is to have a local storage of important messages, for further record. On POP3 this is currently not possible and on IMAP only on folders synched remotely.
The main use cases added are as follow:

Create local folders from the Account/Folders option menu. A dialog pops up for the name of the new folder with a validator that controls the uniqueness of the name.

Once the local folder is created, it is possible to check its setting, from the Settings item in the context menu of that folder. The synch class is unchangeable and set to Local, the display class is first class.

Local folders can be deleted, provided that are empty, either from the "delete a local folder" choice in the Account/Folder option menu or directly from their context menu

Once a local folder (or more) is created, it is possible to move and copy messages into it, and from it to other local folders. Below is the expected behaviour:

On IMAP accounts:

Action
Is allowed

from synched folder to synched folder
yes

from synched folder to local folder
yes

from local folder to local folder
yes

from local folder to synched folder
yes

ON POP3

Action
Is allowed

from synched folder to synched folder
no

from synched folder to local folder
yes

from local folder to local folder
yes

from local folder to synched folder
no

In the Message view it is possible to Refile/Copy or Refile/Move to local folder with the same rules as above

Multiple-selection of messages can be moved or copied with the same rules as above

Potential issues:

The name "local" folder might be misleading
Issues when reading the headers of a message ("Not all headers can be downloaded.." toast message). Should be unrelated to my changes because I could reproduce on a local build from k-9/master branch
Search message with a query string seems to crash (see issue #610 already commented here), but also in this case I could reproduce on k-9/master and hence should be unrelated

Overall it is quite a big pull so I am available for any corrections and changes as required.
Kind regards

The current code makes it very hard to add proper support for local folders or messages. I'm planning to rewrite large parts of the 'backend' code to make this easier in the future. And we will keep local messages/folders in mind for the design overhaul. But for now I'm closing this PR. Sorry :(


question about cn model

I wonder know what data and how large of the data are used to pretrain the cn model?
are all pretraining data open-source available?

I wonder know what data and how large of the data are used to pretrain the cn model?
are all pretraining data open-source available?

The datasets mostly consists of the Chinese data of LAION-5B, Wukong Dataset (subset of around 70m samples), transaltion of COCO and VG. I think it is possible to use these data to reproduce the performance.


Can you also provide a demo for text guided inpainting please?

I try to use the code provided by https://github.com/huggingface/diffusers for text guided inpainting(under the same environment as this repo, I think it should also work for inpainting)
from io import BytesIO

from torch import autocast
import torch
import requests
import PIL

from diffusers import StableDiffusionInpaintPipeline

def download_image(url):
    response = requests.get(url)
    return PIL.Image.open(BytesIO(response.content)).convert("RGB")

img_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png"
mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png"

init_image = download_image(img_url).resize((512, 512))
mask_image = download_image(mask_url).resize((512, 512))

device = "cuda"
model_id_or_path = "CompVis/stable-diffusion-v1-4"
pipe = StableDiffusionInpaintPipeline.from_pretrained(
    model_id_or_path,
    revision="fp16",
    torch_dtype=torch.float16,
    use_auth_token=True
)
# or download via git clone https://huggingface.co/CompVis/stable-diffusion-v1-4
# and pass `model_id_or_path="./stable-diffusion-v1-4"` without having to use `use_auth_token=True`.
pipe = pipe.to(device)

prompt = "a cat sitting on a bench"
with autocast("cuda"):
    images = pipe(prompt=prompt, init_image=init_image, mask_image=mask_image, strength=0.75)["sample"]

images[0].save("cat_on_bench.png")

but got stuck just in the right beginning as follows:

Any suggestion would be very appreciated!

huggingface/diffusers ImportError from 'diffusers' #305


TS Error when running the vendored code

When running the vendored version of the code that uses this library, the user will get a TypeScript error described here:
https://github.com/denosaurs/plug/issues/23
The issue was fixed in<EMAIL_ADDRESS>Could you consider upgrading the dependency, please?

Will be fixed by #81

PR is merged, I'll cut new release as soon as I'm on PC


Close button is impossible to click on some interstitial ads on iOS (Notch)

Plugin Version

google_mobile_ads: ^0.12.1+1
Steps to Reproduce
Difficult to reproduce, since interstitial are not in control

I added a message on the admob forum too.
Here is the link
https://groups.google.com/g/google-admob-ads-sdk/c/wvzE3I5LVw4/m/c4GPcOv2AQAJ

I also get the same ad and same issue, but with different plugin.
In my case, the X button is clickable by hiding the status bar when ad is opened.
if (event == AdmobAdEvent.closed) {
  SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
} else if (event == AdmobAdEvent.opened) {
  SystemChrome.setEnabledSystemUIOverlays([]);
}

Thank for the info!

Hi @andreacimino @shunminghsu, Thanks for reporting the issue, Could you please share the output of flutter doctor -v and also see if the issue is reproducible using the latest plugin google_mobile_ads: ^0.13.3. And could you guys also share on which device is this issue on?
I verified on the iPhone 12 pro max (Simulator) and could not reproduce the issue below are the screenshots attached.

Interstitial ads output

ad1
ad2

Thanks.

Having the same issue.

@tal412 may I know what device is this issue on?

@tal412 may I know what device is this issue on?

iPhone 12.

@tal412 thanks for the info, I verified this issue on the iphone12 simulator but could not reproduce it. This looks like it is device specific issue.

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale en-GB)
    • Flutter version 2.2.3 at /Users/mahesh/Documents/flutter
    • Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

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

[✓] Connected device (3 available)
    • iPhone 12 (mobile) • 19EA5268-C931-4C3A-ACC6-71D3E849C450 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)    • macos                                • darwin-arm64   • macOS 11.4 20F71 darwin-arm
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 92.0.4515.131

• No issues found!

@tal412 may I know what device is this issue on?

iPhone 12.

I guess it has something to to with production ads, not test ads...
I also think it's a specific kind of ad which won't show up all the time.
There is no reproducible code - because there is nothing special about it.
It's just the normal code which takes an interstitial ad's id and shows it.

Users have reported this issue on iPhone 12s
We now call SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive); before showing the ad then on dismiss call SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);

I'm still having this issue. Problem with using the SystemUIMode functions is that it refreshes the screen and my app loses it's current state.

We are having some issues in iOS with 2.0.0.
It depends on the creative so we don't have a way to reproduce:

Can confirm this. Any workaround and/or fix to apply? Multiple users are reporting this issue.

Updating the priority, since this seems to affect a significant group of users.

Anyone who is affected by this issue please leave an upvote on the original issue report

cc: @jjliu15

Users have reported this issue on iPhone 12s
We now call SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive); before showing the ad then on dismiss call SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);

for now you can use this workaround. It does works.

I have the same issue with iphone 14 pro max, ios 16

@huycozy, @maheshmnj - is this issue related to #648?

@timothyhoang-google It might be related to #648.
#648 is duplicated with a closed issue #639 about Stricter enforcement of status bar controls but the OP has closed it by using a workaround.
I also see some similar workarounds here at https://github.com/googleads/googleads-mobile-flutter/issues/191#issuecomment-832371320 and https://github.com/googleads/googleads-mobile-flutter/issues/191#issuecomment-922364313.
These workarounds are the same by using SystemChrome manually when the ad is opened/closed.

@jjliu15 - PTAL

Trying to add interstitial ads to a flutter app. The close button on the iPhone 14 Pro Max iOS 16.0 does not work, the ad will not close. The suggested work arounds do not work for me.
Flutter 3.3.0
google_mobile_ads: ^2.0.1

We are still investigating. It's likely this is a native GMA SDK issue that must be resolved in the next granular release of the iOS and Android GMA SDKs.

I've been able to reproduce this issue on iOS 16 devices.
This looks like a Flutter specific issue. GMA is not able to hide the status bar, due to how flutter overrides its status bar style when UIViewControllerBasedStatusBarAppearance is false (see FlutterPlatformPlugin.mm).
I tried setting modalPresentationCapturesStatusBarAppearance on the FlutterViewController as recommended by https://developers.google.com/admob/ios/migration#stricter_enforcement_of_status_bar_controls, but it does not work.
We will need to add a similar workaround as https://github.com/googleads/googleads-mobile-flutter/issues/191#issuecomment-922364313 that overrides the status bar style when the plugin displays a full screen ad.
In the meantime, a simpler workaround is to override UIViewControllerBasedStatusBarAppearance to true in your info.plist file:
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>

@jjliu15 this solution is has no effect on Flutter status bar?
i want to use this solution to my React Native by setting ADX ads to SafeArea


Shorten PPP

Codecov Report

Merging #631 (4668553) into master (5ecb765) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #631   +/-   ##
=========================================
  Coverage     61.51%   61.51%
  Complexity      627      627
=========================================
  Files           104      104
  Lines          2258     2258
  Branches        263      263
=========================================
  Hits           1389     1389
  Misses          749      749
  Partials        120      120

Impacted Files
Coverage Δ

src/main/java/seedu/programmer/ui/MainWindow.java
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


Adding sounds to the game.

This is a long shot I know, I onestly don't even expect a response but let's see what happens.
I'm blind and this game is playable, if a bit tricky to figure out where my blacksmyth is, but I found it, but having sounds you can turn on and off, for those that don't need it, would be really nice.
I think it would be nice to just know something is happening, even if it's just a simple mining sound and a crumbling for the item breaking.
What do you think? Would you be able to add that, or are you not working on this game anymore?

It would also be nice if you could add text labels to the blacksmyth, i believe it is, the number you click or press enter on to increase the damage and other things. I've increased something to 4 and another thing to 1 but have no idea what those things are.

I'm closing this as I don't think i'm going to get a response, that's ok, the game is still fun.


missing file ModelViewerPS_SM6.h

...referenced in CompileSM6Test.bat
(wanted to look into sm6 stuff)

ModelViewerPS_SM6.h will be outputted from HLSL compiler. Try running CompileSM6Test.bat and it will generate the file.


Double click at .nbs file to open in program

The issue exists since the old version: double clicking at a .nbs file but the song is not loaded. It does run the program but the song does not sit in place and I must browse for the .nbs file again. This should be solved by supporting .nbs file parameter in command line.

Not a bug, this never worked in NBS. It would be a nice enhancement though :)

I want this feature too.
GMS1 and GMS2 have support for command line parameters, so it must be possible.
(Maybe related to https://docs.yoyogames.com/source/dadiospice/002_reference/miscellaneous/parameter_string.html this thing)
Some note about how Windows runs application when the app is assigned to a file
it runs a command like this when you double click on a file:
application.exe "c:/nice/folder/file.nbs"

Thanks for your input @KabanFriends, I got it working perfectly! This should be in the next version.


[WFLY-4625] Reuse authenticated subject from incoming context when se…

…curity domains match

Linux Build 29 is now running using a merge of 20b3e6a493d74da65d90ba024ca81536e2d7799a

Windows Build 28 is now running using a merge of 20b3e6a493d74da65d90ba024ca81536e2d7799a

Linux with security manager Build 27 is now running using a merge of 20b3e6a493d74da65d90ba024ca81536e2d7799a

Linux with security manager Build 27 outcome was SUCCESS using a merge of 20b3e6a493d74da65d90ba024ca81536e2d7799a
Summary: Tests passed: 825, ignored: 317 Build time: 0:05:36

Linux Build 29 outcome was SUCCESS using a merge of 20b3e6a493d74da65d90ba024ca81536e2d7799a
Summary: Tests passed: 2867, ignored: 372 Build time: 0:47:22

Windows Build 28 outcome was SUCCESS using a merge of 20b3e6a493d74da65d90ba024ca81536e2d7799a
Summary: Tests passed: 2863, ignored: 372, muted: 1 Build time: 0:48:37


Cannot "Go to source" of external libraries in Java projects

Issue
Go to source action (Cmd+Click on class name on macOS) only goes to class file if external Java library you go to does not follow Maven source file convention (i.e. Someclass.java from com.example package will be stored at com/example/Someclass.java inside the source JAR.
Smallest reproducible example
Two bazel workspaces: @a, @b;
a/BUILD:
java_library(
    name = "anotherlib",
    srcs = ["Anotherlib.java"],
    visibility = ["//visibility:public"]
)

a/AnotherLib.java:
package com.smth;

public class Anotherlib {
    public Anotherlib() {
        System.err.println("ctor");
    }
}

b/WORKSPACE:
local_repository(
    name = "a",
    path = "/Users/vmax/work/GraknLabs/intellij-reproducible/a",
)

b/BUILD:
java_library(
    name = "main",
    srcs = ["Main.java"],
    deps = ["@a//:anotherlib"],
)

b/Main.java:
import com.smth.Anotherlib;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello");
    }
}

Load @b in IntelliJ IDEA with Bazel plugin version 2<IP_ADDRESS>.6 (latest at the moment)
Go to source on import com.smth.Anotherlib line

expected: Anotherlib.java
got: Anotherlib.class

This root cause of this issue is bazelbuild/bazel#8277 but from what I understand Bazel team is not planning to modify the way source JARs are built.

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.


[AIRFLOW-1987] Fix error in query for MS Sql Server

MS Sql Server doesn't support boolean field in SQL expression
Make sure you have checked all steps below.
JIRA

[X] My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-1987

Description

[ ] Here are some details about my PR, including screenshots of any UI changes:

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[X] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

[X] Passes git diff upstream/master -u -- "*.py" | flake8 --diff

Postgres translates this to an assignment:
   ProgrammingError: (psycopg2.ProgrammingError) operator does not exist: boolean = integer
   LINE 3: ...fill_%') AND (dag.dag_id IS NULL OR dag.is_paused = 0) AND t...
                                                                ^
   HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
     For me, the idiomatic sqlalchemy operators,~ and not(...) are easier to read, than the assertions with zero. This feels to me more like a bug in the orm-layer.

I agree this problem more likely for the orm layer and try to solve it in application layer it is not a good idea. So this pull request is not actual.

Maybe you can check if this has been solved in a later version of sqlalchemy, and bump the version number.

@patsak Kindly look into making a change to sqlalchemy instead of airflow. Closing for now.


SQLITE (365) : ADD CONSTRAINT DDL SQLite Incompatibility

I'm not sure where else this occurs, but when using the @OneToMany and @ManyToOne annotations on a Set, ebeans fails when using SQLite. Ebeans creates the necessary tables then tries to run a statement including 'ADD CONSTRAINT'. However, this feature is not supported by SQLite as indicated here: http://www.sqlite.org/omitted.html. This incompatibility causes ebeans to error out.
In my specific case, the full SQL statement was: alter table privileged_player add constraint fk_privileged_player_list_1 foreign key (list_id) references privileged_list (id)
Would it be possible to include a workaround specifically for SQLite to prevent this bug? The ALTER TABLE statement seems unnecessary as it's being altered immediately after creation.
A fix for this would be very much appreciated.

Note that #609 fixes this issue by not generating the alter table add foreign key constraint DDL.


Trying to build scalikejdbc

I've just included their library and get a huge exception with the following error:
Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file scalikejdbc/SQLInterpolationMacro$

Seems to be an issue with macros? I've wrapped the code in a macro library, but that doesn't seem to work. Is that because the macro is coming from an external jar?

Can you take a look at other issues about macros? The answer is for macros,
you cannot use /jar targets and must use /file targets for maven artifacts.
For your own macros you need to use scala_macro_library
On Sat, Jan 14, 2017 at 17:24 Tyler Rockwood<EMAIL_ADDRESS>wrote:

I've just included their library and get a huge exception with the
following error:
Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file scalikejdbc/SQLInterpolationMacro$
Seems to be an issue with macros? I've wrapped the code in a macro
library, but that doesn't seem to work. Is that because the macro is coming
from an external jar?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/rules_scala/issues/124, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEJdiU-crcpcRqJVhEKnY9io9HQtO8oks5rSZFZgaJpZM4Lj0FC
.

Thx.


feat(trading): spot market improvements

Related issues 🔗
Closes #6235
Description ℹ

pin both assets in collateral table
show no collateral warning base on different asset on sell and buy side
remove stop order and TP/SL

Demo 📺

https://github.com/vegaprotocol/frontend-monorepo/issues/6271
https://github.com/vegaprotocol/frontend-monorepo/pull/6252


Fix sign(NAN) returning 1.

Fixes godotengine#79036 by using the same implementation for SIGN() as numpy does.
Adds a test for the NAN case. Updates the documentation to clarify the new behavior.

I tested the performance of this in a compiled Windows editor with the following code:
func _ready():
	var _a
	var start_time
	var end_time
	await get_tree().create_timer(1).timeout
	start_time = Time.get_ticks_usec()
	for y in range(100000000):
		for x in range(40):
			_a = sign(32.0)
		for x in range(39):
			_a = sign(-15.0)
		for x in range(20):
			_a = sign(0.0)
		for x in range(1):
			_a = sign(NAN)
	end_time = Time.get_ticks_usec()
	print("Running time: " + str(end_time - start_time) + "μs.")

The resulting run time was 637.82s for 4.2.dev2 and 597.97s for this PR.

The resulting run time was 637.82s for 4.2.dev4 and 597.97s for this PR.

Are you using official builds for 4.2.dev4, or self-compiled? A benchmark only makes sense if the two binaries are compiled with the exact same toolchains.

I was using the official one, I will redo the test on a self compiled version now and send the results.

Sorry for the confusion, but the PR actually decreases performance quite significantly.
The resulting running times were 549.97 seconds for current master, and 597.97 for this PR (both custom-built).
If there is anything I can do to improve this, please let me know, otherwise I'm going to close the PR, and try to write an alternative solution.

We also need to investigate if this breaks any code
There could be code paths that depend on the value of sign that would break if the return value was NaN, I think it's safer to just expect the user to do NaN checks if they need to, possibly changing only the behaviour in GDScript
But I think the performance drop, and the potential risks, speak against this change

Ok, thank you for your time.

That's just my opinion though, no need to close unless you agree with these concerns

Ok, I will do some more tests, and possibly move the change to the globalscope function, if it will  work better I will open a new PR.


https://learn.microsoft.com/en-us/azure/bastion/vm-upload-download-native doesn't work on macOS

Describe the bug
This page provides misleading instructionse for macOS users.
https://learn.microsoft.com/en-us/azure/bastion/vm-upload-download-native
Trying to run this command az network bastion rdp --name "YourBastionName" --resource-group "ResourceGroupName" --target-resource-id "YourVMResourceId" on macOS leads to this error
The command failed with an unexpected error. Here is the traceback:
cannot import name 'WinDLL' from 'ctypes'<EMAIL_ADDRESS>Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 664, in execute
    raise ex
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 729, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 698, in _run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 334, in __call__
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
  File "/Users/user/.azure/cliextensions/bastion/azext_bastion/custom.py", line 235, in rdp_bastion_host
    from ._process_helper import launch_and_wait
  File "/Users/user/.azure/cliextensions/bastion/azext_bastion/_process_helper.py", line 9, in <module>
    from ctypes import WinDLL, c_int, c_size_t, Structure, WinError, sizeof, pointer
ImportError: cannot import name 'WinDLL' from 'ctypes'<EMAIL_ADDRESS>
Related command
`az network bastion rdp --name "YourBastionName" --resource-group "ResourceGroupName"
Errors
The command failed with an unexpected error. Here is the traceback:
cannot import name 'WinDLL' from 'ctypes'<EMAIL_ADDRESS>Traceback (most recent call last):
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 664, in execute
    raise ex
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 729, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 698, in _run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 334, in __call__
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
  File "/Users/user/.azure/cliextensions/bastion/azext_bastion/custom.py", line 235, in rdp_bastion_host
    from ._process_helper import launch_and_wait
  File "/Users/user/.azure/cliextensions/bastion/azext_bastion/_process_helper.py", line 9, in <module>
    from ctypes import WinDLL, c_int, c_size_t, Structure, WinError, sizeof, pointer
ImportError: cannot import name 'WinDLL' from 'ctypes'<EMAIL_ADDRESS>
Issue script & Debug output
az_command_data_logger: exit code: 2
cli.main: Command ran in 3.004 seconds (init: 0.084, invoke: 2.919)
cli.azure.cli.core.decorators: Suppress exception:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/main.py", line 62, in
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/main.py", line 50, in
exit_code = cli_main(az_cli, sys.argv[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/main.py", line 36, in cli_main
return cli.invoke(args)
^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 250, in invoke
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 589, in execute
parsed_args = self.parser.parse_args(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/knack/parser.py", line 261, in parse_args
return super().parse_args(args)
^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 1869, in parse_args
args, argv = self.parse_known_args(args, namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/parser.py", line 281, in parse_known_args
self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 1902, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 2096, in _parse_known_args
positionals_end_index = consume_positionals(start_index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 2073, in consume_positionals
take_action(action, args)
File<EMAIL_ADDRESS>line 1978, in take_action
action(self, namespace, argument_values, option_string)
File<EMAIL_ADDRESS>line 1241, in call
subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/parser.py", line 281, in parse_known_args
self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 1902, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 2096, in _parse_known_args
positionals_end_index = consume_positionals(start_index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 2073, in consume_positionals
take_action(action, args)
File<EMAIL_ADDRESS>line 1962, in take_action
argument_values = self._get_values(action, argument_strings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/parser.py", line 272, in _get_values
value = super(AzCliCommandParser, self)._get_values(action, arg_strings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 2506, in _get_values
self._check_value(action, value[0])
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/parser.py", line 337, in _check_value
self.exit(2)
File<EMAIL_ADDRESS>line 2617, in exit
_sys.exit(status)
SystemExit: 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/decorators.py", line 79, in _wrapped_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/core/telemetry.py", line 532, in _get_secrets_warning_config
show_secrets_warning = _get_config().getboolean('clients', 'show_secrets_warning', fallback=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/knack/config.py", line 147, in getboolean
raise ValueError('Not a boolean: {}'.format(val))
ValueError: Not a boolean: None
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3611 in cache
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/bin/python /opt/homebrew/Cellar/azure-cli/2.57.0/libexec/lib/python3.11/site-packages/azure/cli/telemetry/init.py /Users/user/.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.
Expected behavior
Using az cli and the Microsoft RDP client (https://apps.apple.com/us/app/microsoft-remote-desktop/id1295203466?mt=12)
I expect to be able to connect to the bastion and vm and transfer files.
Environment Summary
azure-cli                         2.57.0 *

core                              2.57.0 *
telemetry                          1.1.0

Extensions:
bastion                            0.3.0

Dependencies:
msal                              1.26.0
azure-mgmt-resource             23.1.0b2

Python location '/opt/homebrew/Cellar/azure-cli/2.57.0/libexec/bin/python'
Extensions directory '/Users/ereli/.azure/cliextensions'

Python (Darwin) 3.11.8 (main, Feb  6 2024, 21:21:21) [Clang 15.0.0 (clang-15<IP_ADDRESS>.5)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context
No response

Thank you for opening this issue, we will look into it.

that tunnel doesn't work, either, saying Bastion Host SKU must be Standard and Native Client must be enabled. but it does work using the browser, which is limited and slow.

assuming you meant using the tunnel command mentioned here  https://learn.microsoft.com/en-us/cli/azure/network/bastion?view=azure-cli-latest#az-network-bastion-tunnel just with rdp port.


Changing configured Custom Domain

Hi,
Today I tried changing the Custom Domain I had configured for my Static Web App. First off I tried validating the new custom domain www.<new-domain>.com which succeeded. After pressing Add I received the message explaining that it is currently only possible to have 1 custom domain being setup per Static Web App instance.
With that knowledge I decided to remove the old custom domain. After receiving a success message I tried adding the new custom domain again. Following notification popped up in Azure:

However, the list of custom domains remained empty. The activity log gave me a bit more information:

The top-level operation contains following status message:
"statusMessage": "{\"status\":\"Failed\",\"error\":{\"code\":\"ResourceOperationFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Failed'.\",\"details\":[{\"code\":\"Unspecified\",\"message\":\"\"}]}}"

Note: This is not the complete operation's JSON. I can post that later if requested.

It is not clear to me what fails. I tried adding the new domain, but also re-adding the old domain again. Both fail with the same message.
Thanks.

Hey Max,
This is an issue with the service that helps us generate SSL certificates. We are working with them to fix this and then you should be unblocked.

Hey Max,
This should be resolved now, do you mind trying again?

Wow, that was really quick. It works, thanks!


Update or replace newrelic

We use the package newrelic in edx/blockstore, edx/completion, edx/course-discovery, edx/credentials, edx/demographics, edx/django-config-models, edx/django-splash, edx/ecommerce, edx/ecommerce-worker, edx/edx-analytics-dashboard, edx/edx-analytics-data-api, edx/edx-bulk-grades, edx/edx-django-utils, edx/edx-drf-extensions, edx/edx-e2e-tests, edx/edx-enterprise, edx/edx-enterprise-data, edx/edx-notes-api, edx/edx-ora2, edx/edx-organizations, edx/edx-platform, edx/edx-proctoring, edx/edx-rbac, edx/edx-rest-api-client, edx/edx-toggles, edx/edx-val, edx/edx-when, edx/enterprise-catalog, edx/event-routing-backends, edx/license-manager, edx/portal-designer, edx/registrar, edx/staff_graded-xblock, edx/super-csv, edx/taxonomy-connector, edx/video-encode-manager, edx/xqueue, edx/xqueue-watcher. It hasn't yet added support for Django3.2. Please follow the guidance in https://openedx.atlassian.net/wiki/spaces/AC/pages/3036972032/Handling+Outdated+Dependencies to resolve the problem this poses for the Open edX Django 3.2 upgrade.

I think she's still out for another day or two, but I can go ahead and assign it to you.  Thanks for looking into this!

Added an issue in https://github.com/newrelic/newrelic-python-agent/issues/343

@jfavellar90 Thank you for an update!

Added a PR in https://github.com/newrelic/newrelic-python-agent/pull/344

The PR was already merged in the repo. Now it has officially Django 3.2 support in master. Hopefully, we'll get a new release of the library with these changes included in the next few days. @natabene  do you agree on marking this task as done?

@jfavellar90 Thank you for an update, this is great news! @jmbowman Do you think we can mark it is done or would you rather wait for a release?

@jfavellar90 Could you please check back periodically to see if that release has been done and update us here? That would be most appreciated.

@natabene sure thing! I'll let you know once a new release including Django 3.2 support is published

@natabene the new release was created in the library: https://github.com/newrelic/newrelic-python-agent/releases/tag/v<IP_ADDRESS> and this contains the code adding support for Django 3.2. Unless there's something else to do, I think this task can be marked as DONE

Thank you @jfavellar90 I am closing this.