[SPARK-45248][CORE][DOCS] [UI]Support for set the timeout for spark ui server

What changes were proposed in this pull request?
The PR supports to set the timeout for spark ui server.
Why are the changes needed?
It can avoid slow HTTP Denial of Service Attack because the jetty server's timeout is 300000 for deafult.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Manual review
Was this patch authored or co-authored using generative AI tooling?
No

Please give me a review when you have time.@srowen @HyukjinKwon @LuciferYang
Thank you so much.

Does this need to be configurable? What about just setting it to a better value? Is the idea to increase or decrease to deal with DoS

Does this need to be configurable? What about just setting it to a better value? Is the idea to increase or decrease to deal with DoS

@srowen Thank you for your review.
Yes,it is better to be configurable. I had set a default value for the timeout, but it cannot be ruled out that there are other needs.
It's related to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27223
This solution has been verified to be feasible under actual vulnerability scanning conditions

Are you trying to make the value bigger than usual, or smaller?

Does this need to be configurable? What about just setting it to a better value? Is the idea to increase or decrease to deal with DoS

Yes,it is better to be configurable. I had set a default value for the timeout, but it cannot be ruled out that there are other needs.
It's related to CVE-2020-27223
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27223

Are you trying to make the value bigger than usual, or smaller?

Yes, the default value is 30000, i had try Multiple values. 8000 may be the best.

What happens if we just set it to 8000?

What happens if we just set it to 8000?

After using professional vulnerability scanning tools to detect, the relevant vulnerabilities have disappeared

No, I mean, is there any downside to just hard coding it? I don't love exposing more configs if it's not clear when one would ever change it

No, I mean, is there any downside to just hard coding it? I don't love exposing more configs if it's not clear when one would ever change it

This is to prevent anyone from modifying this configuration to adapt to their business volume in the future. Hard coding itself has no drawbacks, and I can also change it to hard coding. What kind do you think is better?

No, I mean, is there any downside to just hard coding it? I don't love exposing more configs if it's not clear when one would ever change it

@srowen I have changed it to hard coding.

OK, please put a comment in the code about why this is set lower than usual.

Thank you for your suggestion and i had follow it.

@srowen Please give me a review again.Thank you so much.

Can you rebase your branch on master? i think you need to pick up the latest test config for the CI/CD jobs

Can you rebase your branch on master? i think you need to pick up the latest test config for the CI/CD jobs

ok，i will checkout a new branch from the master and open a new pr


Select topic from universal certificates #33

I had the need to test VoIP PN with Universal Certificate so I made the following changes to fulfill the #33 feature requirements.

Adds an NSPopUpButton into APNSViewController that lists the current certificate's topics list. If the certificate does not have any topic the NSPopUpButton is disabled. This enables the use of Universal Certificates to send VoIP PN.

This looks like a great addition, thanks!
Will be back to good internet on Saturday and take a better look by then.

Seems to work like a charm, thanks for the contribution!


How to create collection

Sponsors SeaweedFS via Patreon https://www.patreon.com/seaweedfs
Report issues here. Ask questions here https://stackoverflow.com/questions/tagged/seaweedfs
Please ask questions in https://github.com/seaweedfs/seaweedfs/discussions
example of a good issue report:
https://github.com/seaweedfs/seaweedfs/issues/1005
example of a bad issue report:
https://github.com/seaweedfs/seaweedfs/issues/1008
Describe the bug
When I use the post command: "http://xxx.xxx.xxx.xxx:9333/dir/assign?collection=showroom" to create a collection, on some server, it works, but somes not.
Can u give me a line command to create collection manually?

this is the right command

but on some seaweedfs master node, the command is timeout, the version is "30GB 2.91"

Need a reproducible setup.


Bootstrapping code-server setup

Thought I'd share how I'm bootstrapping setup of code-server in a docker image, with the help of code-settings-sync extension.
Originally posted here: https://github.com/shanalikhan/code-settings-sync/issues/1050#issuecomment-554802122
I know I could do it  with code-server --install-extension xxx.yyy or using *.vsix package files, but this is the most straightforward way. One downside is, I can't find a way to initialize 'first run' of code-server during Dockerfile build so that code-settings-sync installs all extensions during build time instead of dockerimage first bootup for user interaction.
Would it be possible to add a command line for code-server init/bootstrap like this?  RUN code-server --first-run-bootstrap

I'm doing settings sync on first run like this in my Linux docker file with online version of VSCode called code-server. If you change code-server in script below to code, it will work for normal VSCode too.
ENV SERVICE_URL=https://marketplace.mycompany.com/_apis/public/gallery \
    ITEM_URL=https://marketplace.mycompany.com/items

RUN code-server --install-extension Shan.code-settings-sync

RUN echo "{}" >> /root/.local/share/code-server/User/settings.json

RUN tmp=$(mktemp) && \
      jq -M '. +{ \
      "sync.syncExtensions": true,\
      "sync.autoDownload": true,\
      "sync.gist":"abc123def987",\
      "telemetry.enableTelemetry": false }' /root/.local/share/code-server/User/settings.json > "$tmp" && mv "$tmp" /root/.local/share/code-server/User/settings.json

RUN echo "{}" >> /root/.local/share/code-server/User/syncLocalSettings.json

RUN tmp=$(mktemp) && \
      jq -M '. +{ "downloadPublicGist": true }' /root/.local/share/code-server/User/syncLocalSettings.json > "$tmp" && mv "$tmp" /root/.local/share/code-server/User/syncLocalSettings.json

Basically creating VSCode settings.json and adding gist ID to it using jq and then creating syncLocalSettings.json config with "downloadPublicGist": true.
When VSCode (code-server) is opened first time, settings download gets successfully started.
If you don't want auto-download to start, change "sync.autoDownload": true to false
Now I only need to find a way to initialize VSCode first run bootstrap through command line /bash

Really a interesting use case but we'll see what the team thinks.

Thanks, I think code-server strong use case is automated installations for mass user provision (something like jupyterlab + jupyterhub in docker swarm or kubernetes).
It would be cool if I could supply a gist ID or code-settings-sync file during code-server dockerimage install and the entire environment (installed plugins, themes, VSCode settings) got set up and ready for users. Jupyter is used like that in schools/unis, during conferences, bootcamps, for company team environments and so on.
Every time you wanted to provide entry level users with instant complete coding environment for a particular task, this would be the use case.

To be honest this seems like a good use case for automated user setup for enterprises as well.

At the moment, we're bootstrapping the config using /etc/skel when a user is first created (which happens when a user is provisioned to the machine). Extensions are deployed from S3 using a custom sync script, as we are unable to install extensions at runtime due to a http proxy that's not being picked up by code-server.

@jrderuiter sounds like a bug, would you be fine opening that as a seperate issue?

Could you clarify why code-server --install-extension xxx.yyy does not work for you?
I'm not sure if there is a problem here.


[FEATURE]: Permission for showing player distance/mode of travel

Scope
In-Game Menu
Feature Description
The ability to enable/disable seeing player distances/mode of travel within the player card via permissions on the in game txAdmin menu.
Use Case
In roleplay servers seeing the distance to players is a huge power advantage and being able to disable this "un-loggable" action for those that shouldn't have it would be great.
Proposed Solution
No response
Additional Info
No response

No way I'm implementing this.
People basically have asked for every single feature of txAdmin to be disabled due to server owners not trusting their own staff.
This doesn't make any sense for me.
If anything, what you guys want is a way to do /onduty and /offduty, and that MAYBE will come some day to txAdmin... but not today


mobile/Android and some questions

First, since WebAssembly supports mobile, Android and iOS, do you need more than just wasm to support mobile as well as desktop? I'm thinking this might be the best way to support mobile, in the same restrictive form you do, and eventually without restrictions.
You already support Strings, and Dicts, but not Dicts with Strings which seems strange.
The memory type is merged, in 1.11, so what does it enable, i.e. are the docs outdated? GC support enables much, not as much as I thought, why not the rest (you document as missing), is much more work needed for the rest?
Seemingly 99% of mobile could be supported (unless you need the newer version, and it's not yet popular, but it will be as popular), a killer app for your code:
https://caniuse.com/wasm
Do you see any problem for iOS specifically after Android works?

For mobile, wasm on websites should work. I suspect it already works on Chrome on Android. I think Safari and iOS are still behind, so it doesn't work there, yet.
Once we get Memory support, it will be easier to support multi-dimensional arrays. I just haven't gotten to that, yet. It may help with String support, but I'm not sure. Strings have limitations in WASM's garbage collection system.


Add render queue

Currently, if the same post is requested multiple times at once, and needs to be rendered, every request will try to do the render at the same time. This can cause slowdowns at best and race conditions at worst.
As such, there should be a queue shared across all instances (hypercorn seems to spawn multiple from what I've seen) that keeps a list of ongoing renders and prevents this from happening. (Note that this doesn't mean renders can only work on one thread - in fact, they should be multithreaded, though perhaps the queue is also a good occasion to limit the amount of possible concurrent renders).

7ae374743d4fb45869232782c1ab93d8ae2a6b9d adds a queue but doesn't deduplicate yet


[Feature request] Filename display while previewing images

Great extension! Thanks for your awesome work.
Would it be possible to display the filename while using the preview mode for browsing? Right now the filename is not displayed. Which can be confusing to identify the right image when browsing lots of similar looking images in the preview mode.

Displaying the filename above where the prompt is displayed or together with the generation data (Steps, Sampler, CFG Scale, etc) would be super useful.

already added

Awesome! That was fast. Thank you so much.


Missing release with Swift 4 support

When using carthage (or similar), the 3.2.0 fails to build with Xcode 10.12.

Any chance we could see a version with Swift4 support. Xcode 10.2 now requires it.

Release 3.3.0
Will release 3.4.0 with Swift 5 / Xcode 10.2 support shortly.

Release 3.3.1 with Swift 5 support.

Thanks @rhodgkins Thats great news and really appreciated that.


Replace SilverStripe\ORM\DB use of mcrypt for PHP 7.2 compatibility

PHP 7.2 is going to be released soon (currently beta2). The only notable change I could see at a skim read was that the mcrypt extension (already deprecated) is removed.
Uses in SilverStripe\ORM\DB:

https://github.com/silverstripe/silverstripe-framework/blob/4.0.0-beta2/src/ORM/DB.php#L194-L196
https://github.com/silverstripe/silverstripe-framework/blob/4.0.0-beta2/src/ORM/DB.php#L231-L233

Upgrading notes: https://github.com/php/php-src/blob/php-7.2.0beta2/UPGRADING

Possible alternatives:

Don't encrypt at all, use a random token and store db name in session (most desirable)
http://php.net/manual/en/function.openssl-encrypt.php
https://github.com/phpseclib/mcrypt_compat (least desirable)

openssl_encrypt would seem like the most direct solution to the problem, replacing an outdated encryption library with an updated one. However, that means that PHP must be compiled with openssl support, which isn't currently a requirement.
How confident are we that an encryption solution isn't needed?

Note that https://github.com/silverstripe/silverstripe-hybridsessions will probably need to use openssl.

I like the idea of shifting this dependency into other modules, and looking for an alternative solution for temp database name.

Fix at https://github.com/silverstripe/silverstripe-framework/pull/7294

Nice! Also #7281 adds PHP 7.2 to Travis, which is lovely.

Note that https://github.com/silverstripe/silverstripe-hybridsessions will probably need to use openssl.

Logged as https://github.com/silverstripe/silverstripe-framework/issues/7280, thanks @sminnee


Refactor

Fully refactored the scenario platform to remove all references to 'quiz/quizzes/quiz_attempts' in favour of 'scenario/scenarios/attempts'.
I've tested:
User Management

Login
Sign Up
Confirmation
User Approval
Admin Toggle
Stats Views (scenario, user + results)

Scenario Management

Creating scenarios (multiple variables, questions and answers)
Completing scenarios
Navigation mid-scenario
Results view

Everything seems to be working as expected, can't find any issues 👍

Few references left in some of the specs

I'm not seeing that file: https://github.com/Legal-Innovation-Lab-Wales/quiz-builder/tree/feature/refactor-quizzes-to-scenarios/spec/routing
Is this something you have locally as a part of QUIZ-66 that hasn't been comitted and pushed to the remote yet?


Optional logging

This PR adds the --log/--no-log option to CLI and the same argument to the Granian server class. The default value is enabled/True, so there are no backward compatibility changes. The option/argument simply allows to opt-out from logging to be configured and emit anything.
Thus, it resolves #101.
Does it look suitable? Don’t hesitate to give any feedback.

@Aeron reading again #101, I am actually a bit confused on the aim of this.
If the aim is to prevent Granian to log, then this won't change that. If the aim is to prevent Granian to alter the root config of the logging level, then this is correct, but I would change the naming, as --no-log to me sounds more like "Granian won't log anything" rather than "Granian won't configure the logging module".
WDYT?

In my case, I’m happy when the worker is not emitting log records, especially in stdin/stderr. Yet I can introduce logging.disable(logging.CRITICAL) for this to be considered an actual disabling on the Python level.
As far as I can see, all relevant logging from Rust code goes through pyo3-log, so it should be enough.
Will it be a suitable solution? Or did I misinterpret what you meant?

Actually pyo3-log uses the root logger, so if the application code configures it, even with this PR Granian will log stuff, and thus the parameter --no-log might became confusing.
As far as I remember, pyo3-log didn't allow to pick a specific logger. It might be worth to check again, maybe we can just move stuff to a granian logger and make this viable in every condition.

Yeah, I clearly was too fast to suggest the logging.disable solution 😅 We don’t want to turn off all Python logging. Sorry about that.
As for pyo3-log, it vaguely looks like the Logger.filter_target() method could help us here. I’ll give it a try then.

Okay, the filter_target does not help, in a way I hoped, but it gave a clue that pyo3-log loggers have proper names, module-related names. It’s not just the root logger.
So, Granian’s inner logger names start with _granian: _granian.rsgi.serve, etc. Yet they cannot be found among logging.root.manager.loggerDict, for example.
Therefore, the simplest way to turn off logging for all _granian.* loggers at once is to lower the logging level beyond critical. Other options are more quirky. Yet this way, it still can be re-enabled programmatically at any point, and the root logger is unaffected.
@gi0baro what do you think?

Therefore, the simplest way to turn off logging for all _granian.* loggers at once is to lower the logging level beyond critical. Other options are more quirky. Yet this way, it still can be re-enabled programmatically at any point, and the root logger is unaffected.
@gi0baro what do you think?

Makes sense to me.
I'm just thinking about the name of the parameter: while I find --log/--no-log in CLI very appropriate, probably I would prefer something more explicit in server.py, like log_enabled or logging_enabled. WDYT?

Done and done 👍


Adjust uses of fopen() and strerror() on Windows.

The Windows SDK deprecates the C standard functions fopen() and strerror(). This PR modifies our uses of these functions to make Windows happy.
Checklist:

[x] Code and documentation should follow the style of the Style Guide.
[x] If public symbols are renamed or modified, DocC references should be updated.

@compnerd Your input would be helpful. :)

@swift-ci please test

@swift-ci please test

@swift-ci please test


⚠ API - Lens has degraded performance

In 03a25c8, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 638 ms

Resolved: API - Lens performance has improved in 15332a7 after 6 minutes.


fix(tab-link): avoid potential memory leak

Similarly to #1838, the tab-link destroy handler may not be called in certain situations, because it is being inherited from the MdRipple class. This PR explicitly calls the destroy handler.
Adds a unit test to make sure that the ripples are being cleaned up properly.

Updated with a unit test for the ripple and the tab link @jelbourn

LGTM


[DF] Incorrect results for select count(distinct(col)) in datafusion-sql-plannet

Dask-SQL version: 2022.8.0+204.gca504f4
Both cudf and pandas DFs get incorrect count(distinct(col)) results:
>>> from dask_sql import Context
>>> import cudf

>>> c = Context()
>>> df = cudf.DataFrame({"id": [0, 1, 2, 2]})
>>> c.create_table("df", df)
>>> c.sql("select count(distinct(id)) from df").compute()
   COUNT(DISTINCT df.id)
0                      0

>>> import pandas as pd
>>> df = pd.DataFrame({"id": [0, 1, 2, 2]})
>>> c.create_table("df", df)
>>> c.sql("select count(distinct(id)) from df").compute()
   COUNT(DISTINCT df.id)
0                      4

Believe this is the same issue @sarahyurick brought up in #532, and should be resolved with #716

Should this also be linked to #759?

Should this also be linked to #759?

Yes, this is now resolved :)


Blank page after deploying to BA server tomcat

I deployed latest spoon.war into webapps directory of tomcat under BA server installation and after restarting tomcat i am trying to open http://localhost:8080/spoon but its opeing only bank page nothing else.
Kindly help me understand what i am doing wrong.

Hi Ankit, thank you for reporting an issue. Let me help you identify what went wrong.
The latest spoon.war means ver. <IP_ADDRESS>, please correct me if it is wrong.
First, please tell me about your environment:

Version of BA server (e.g., CE <IP_ADDRESS>)
Java version (e.g., Oracle Java 8u101)
Host OS and its version (e.g., Windows 10 Professional 64 bits)

Then,

Does this issue happen only on the latest version of webSpoon? Did you try earlier versions and the same result?
Can you see the Pentaho User Console when you try to open http://localhost:8080/ ?

Finally, if you don't mind, please copy and paste the log of Tomcat (tomcat/logs/catalina.out), but please delete any confidential information from the log.

Hi Hiromu,
Thanks for the prompt reply. Yes latest means ver. <IP_ADDRESS>
Version of BA Server EE <IP_ADDRESS>.386
Java version jdk 1.8.0_73
Host OS windows 7 professional 64 bits
No this is first time i am going to try any version of webspoon.
Yes Pentaho user consol is visible and working fine.
catalina.2017-01-03.txt

I was able to reproduce this symptom with IE8, which is the default version in Windows 7, but not supported by RAP/RWT. See here for the detail.
What is your browser? If you use IE8, please use IE9+ or other supported browsers.

I am using IE11 and chome 55. It's supported as per the RAP 3.0 link provided by you. What else i can try?

Yes, these browsers are supported.
Then, I want to make sure I correctly understand what the blank page means. Can you take a screenshot of your blank page and upload to here?
2017/01/05 0:48、Ankit Srivastava <notifications<EMAIL_ADDRESS>のメッセ`ジ:
I am using IE11 and chome 55. It's supported as per the RAP 3.0 link provided by you. What else i can try?
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/HiromuHota/pentaho-kettle/issues/15#issuecomment-270592780, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATtfvbupI042yCqNTtz68e8kkXIo_Zicks5rPK5YgaJpZM4LZmkJ.

Yes. Here is it.

I found out that it was because of the Tomcat version.
CE/EE 6.0 comes with Tomcat of <IP_ADDRESS>, CE/EE 6.1 comes with Tomcat of <IP_ADDRESS>.
According to my tests, webSpoon only works with <IP_ADDRESS> or higher.
I tried to figure out which change between <IP_ADDRESS> and <IP_ADDRESS> was critical, but not found yet.
Note that I only tested on 8.0.X between <IP_ADDRESS> and <IP_ADDRESS>, I haven't tested on other versions of Tomcat and not investigated the version compatibility of Jetty and other servlet containers.
For the moment, please try with 6.1 (CE or EE) or a vanilla (not with Pentaho) Tomcat of <IP_ADDRESS> or higher.
Sorry for the inconvenience and thank you for giving me a chance to make it better.

I'm still in the middle of investigation. I thought it was because of the version of Tomcat, but it was not.
Your symptom is different from the one I had with IE8: the page is white in your case.
I also had the same symptom as yours during my tests, but it's gone when I restarted Tomcat.
So I suspect there is a race condition in the plugin loading or somewhere.
Did you try to restart Tomcat? Does this issue happen every time you restart it?

Yes. I tried restarting tomcat several times and it happens each of the time.

Can you add a slash at the end and try http://localhost:8080/spoon/ instead of http://localhost:8080/spoon?

:) that solves it. Thanks a lot.

I'm glad the issue was solved.
Here is the reason behind the scene:
CE/EE 6.0 comes with Tomcat of <IP_ADDRESS>, CE/EE 6.1 comes with Tomcat of <IP_ADDRESS>.
According to the change log, Tomcat's behavior for redirect has changed in 8.0.30 in a way that http://localhost:8080/spoon is redirected to http://localhost:8080/spoon/ in 8.0.30+.
I will update the README accordingly.


fixes RHOARDOC-1168: cleanup secured booster intro paragraph

FYI @Ladicek

@Ladicek fixed, let me know what you think.

thank you for the feedback @Ladicek.
Fixed the line break.
Merging.


Search in __ functions

in L5.4 it's possible get lang value via __ function https://laravel.com/docs/5.4/localization#retrieving-translation-strings. Maybe also search for this?

@al0mie, thanks. I missed this one.

@al0mie, packagist updated

@vsch thanks. It's great that is developing faster than the original package.


problems with join_ or i cant get it

join_ is not working well, i am trying to join_{'tasks'}, but i got the error
query = query.filter(User.id == user_id)
        ^^^^^^^^^^^^

AttributeError: 'coroutine' object has no attribute 'filter'

This is because you’re not awaiting query when you declare query use await

Sry, but same, probably i am stupid) But i just wanna get tasks of user by using relationship, not just foreignkey
here the code:
@user_router.get('/tasks')
async def get_tasks_for_user(
user_id: int,
user_controller: UserController = Depends(Factory().get_user_controller),
):
user = await user_controller.get_user_tasks(user_id)
return user.tasks
async def get_user_tasks(self, user_id: int):
    user = await self.user_repository.get_by_id(user_id, join_={'tasks'})
    return user

    async def get_by_id(
    self, user_id: int, join_: set[str] | None = None
) -> User | None:
    """
    Get user by username.

    :param username: Username.
    :param join_: Join relations.
    :return: User.
    """

    query = await self._query(join_)
    query = await query.filter(User.id == user_id)
    return await self._one_or_none(query)

I see no mistake in your code, can you show the error log

INFO:     <IP_ADDRESS>:60466 - "GET /v1/users/tasks?user_id=1 HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "D:\home\production-refact\venv\Lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 426, in run_asgi
result = await app(  # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\home\production-refact\venv\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\home\production-refact\venv\Lib\site-packages\fastapi\applications.py", line 289, in call
await super().call(scope, receive, send)
File "D:\home\production-refact\venv\Lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "D:\home\production-refact\venv\Lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "D:\home\production-refact\venv\Lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "D:\home\production-refact\venv\Lib\site-packages\starlette\middleware\cors.py", line 83, in call
await self.app(scope, receive, send)
File "D:\home\production-refact\venv\Lib\site-packages\starlette\middleware\authentication.py", line 48, in call
await self.app(scope, receive, send)
File "D:\home\production-refact\core\fastapi\middlewares\sqlalchemy.py", line 19, in call
raise exception
File "D:\home\production-refact\core\fastapi\middlewares\sqlalchemy.py", line 17, in call
await self.app(scope, receive, send)
File "D:\home\production-refact\core\fastapi\middlewares\response_logger.py", line 37, in call
await self.app(scope, receive, logging_send)
File "D:\home\production-refact\venv\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\home\production-refact\venv\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\home\production-refact\venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call
raise e
File "D:\home\production-refact\venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "D:\home\production-refact\venv\Lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\home\production-refact\venv\Lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\home\production-refact\venv\Lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "D:\home\production-refact\venv\Lib\site-packages\fastapi\routing.py", line 273, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\home\production-refact\venv\Lib\site-packages\fastapi\routing.py", line 190, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\home\production-refact\api\v1\users\users.py", line 78, in get_tasks_for_user
user = await user_controller.get_user_tasks(user_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\home\production-refact\app\controllers\user.py", line 18, in get_user_tasks
user = await self.user_repository.get_by_id(user_id, join={'tasks'})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\home\production-refact\app\repositories\user.py", line 25, in get_by_id
query = await query.filter(User.id == user_id)
^^^^^^^^^^^^
AttributeError: 'coroutine' object has no attribute 'filter'

You don’t need await for filter. Only need it for _query before.
query = query.filter(User.id == user_id)
This cloud be an issue with repo itself due to the latest package updates. I will check and deploy any fixes soon.

ive removed await, but same error. Ok, thanks, i will for fixes :)

So I faced the same issue and finally got it to work.
This solution is not ideal, which is why I didn't create a PR it needs some tweaking but it gets the job done.

The main issue is that a bunch of methods are defined using async but there are no asynchronous operations inside. So first off we make them synchronous (skipping the docstrings to compress the answer):

Change all the methodsdef _query( self, join_: set[str] | None = None, order_: dict | None = None,
) -> Select:
    query = select(self.model_class)
    query = self._maybe_join(query, join_)
    query = self._maybe_ordered(query, order_)

    return query

def _maybe_join(self, query: Select, join_: set[str] | None = None) -> Select:
    if not join_:
        return query

    if not isinstance(join_, set):
        raise TypeError("join_ must be a set")

    return reduce(self._add_join_to_query, join_, query)

def _maybe_ordered(self, query: Select, order_: dict | None = None) -> Select:
    if order_:
        if order_["asc"]:
            for order in order_["asc"]:
                query = query.order_by(getattr(self.model_class, order).asc())
        else:
            for order in order_["desc"]:
                query = query.order_by(getattr(self.model_class, order).desc())

    return query

def _add_join_to_query(self, query: Select, join_: set[str]) -> Select:
    return getattr(self, f"_join_{join_}")(query)

def _join_tasks(self, query: Select) -> Select:
    return query.options(joinedload(User.tasks))
    ```

Change the call for joinquery = self._query(join_)

After doing this, you'll no longer get coroutines when calling query.filter(...), but you'll get an error from SQLAlchemy
sqlalchemy.exc.InvalidRequestError: The unique() method must be invoked on this Result, as it contains results that include joined eager loads against collections

You can read about this more here

To solve this error you can either modify your _all() method, or create a separate method:

async def _all_unique(self, query: Select) -> list[ModelType]:
        result = await self.session.execute(query)
        return result.unique().scalars().all()

And then call it in the get_by_username method:
async def get_by_username( self, username: str, join_: set[str] | None = None) -> User | None:
    query = await self._query(join_)
    query = query.filter(User.username == username)
    if join_ is not None:
        return await self.all_unique(query)
    return await self._one_or_none(query)


WebGLPathTracer: Does rendering a smaller texture to a larger canvas cause artifacts?

It changes the values that are being interpolated. When the canvas is stretched it's interpolating the 256-bit color values and when the target is stretched it's the large floating point values.

See https://twitter.com/garrettkjohnson/status/1772248922288746570
A solution for more consistent results would be to implement a manual interpolation approach when drawing the canvas to the screen. Ie manual linear or bicubic filtering with clamped values after the values have been already converted to sRGB colors.

Note: It seems that three.js always assumes that a texture is in linear color space no matter what.


[FLINK-13912][client] Remove ClusterClient#getClusterConnectionInfo

What is the purpose of the change
As discussed in FLINK-13750, we actually doesn't need this method any more. All configuration needed is WebMonitor address and port in standalone HA mode. We can safely remove this method and replace its usages with ClusterClient#getWebInterfaceURL
Brief change log

Remove ClusterClient#getClusterConnectionInfo
Replace its usages with ClusterClient#getWebInterfaceURL
Adjust logs and tests

Verifying this change
This change remove an existing method so that existing tests should guard nothing breaks.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

cc @tillrohrmann

@sunjincheng121 python profile fails as below. I have no idea on what happened. Could you please figure out why tests failed?
=================================== FAILURES ===================================
__________________ ExecutionConfigTests.test_equals_and_hash ___________________
self = <pyflink.common.tests.test_execution_config.ExecutionConfigTests testMethod=test_equals_and_hash>
    def test_equals_and_hash(self):

        config1 = ExecutionEnvironment.get_execution_environment().get_config()

        config2 = ExecutionEnvironment.get_execution_environment().get_config()

        self.assertEqual(config1, config2)

>       self.assertEqual(hash(config1), hash(config2))
E       AssertionError: 897378335 !=<PHONE_NUMBER>
pyflink/common/tests/test_execution_config.py:277: AssertionError
=============================== warnings summary ===============================
.tox/py37/lib/python3.7/site-packages/py4j/java_collections.py:13
.tox/py37/lib/python3.7/site-packages/py4j/java_collections.py:13
.tox/py37/lib/python3.7/site-packages/py4j/java_collections.py:13
.tox/py37/lib/python3.7/site-packages/py4j/java_collections.py:13
.tox/py37/lib/python3.7/site-packages/py4j/java_collections.py:13
  /home/travis/build/TisonKun/flink/flink-python/.tox/py37/lib/python3.7/site-packages/py4j/java_collections.py:13: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import (
-- Docs: https://docs.pytest.org/en/latest/warnings.html

@tillrohrmann I think this pr is mergeable. Please take a look :-)


@deprecated does not work on index signatures

🔎 Search Terms
index signature deprecation annotation @deprecated jsdoc
💻 Code
interface Example {
    /** @deprecated please no longer use this, it's unsafe and kept only for b/c */
    [p: string]: any;
    /** @deprecated please use `.y` instead  */
    x: number;
    /** Superseeds `.x` */
    y: number;
}

function example(e: Example) {
    console.log(e.x); // marked as deprecated, as expected
    console.log(e.y); // not marked as deprecated, as expected
    console.log(e.z); // not marked as deprecated, but should be
}

Playground with relevant code
🙁 Actual behavior
e.z shows up like a normal property, but it's deprecated.
🙂 Expected behavior
Any usage of e.z should be highlighted as deprecated.

@a-tarasyuk Wow thanks for the fix! I don't know if it's easy to add, or rather should be asked in a separate issue, but I noticed that actually none of the jsdoc annotations work for index signatures, it doesn't show doc comments either.

@ab-pm Definitely open a new issue for that. Thanks for noticing and filing these bugs.


vext breaks application logging

I'm using logger in my application. After installing vext all message becomes duplicated.
WARNING:vext:Could not add extra path: /usr/share/sip
INFO    Connectiong to redis password=**** port=6379 host=localhost db=0
INFO:slivoglot.core.redishub:Connectiong to redis password=**** port=6379 host=localhost db=0

First info message printed by my apllication's logger, second one by  vext's logger.

Same wired behavior with pytest's logging.

I free time is severely constrained these days.
Have a look at the logging setup here   https://github.com/stuaxo/vext/blob/master/vext/init.py
If you don't have VEXT_DEBUG set, I'm pretty sure vext output should just go to the NullHandler.
Very possible that something silly is happening in vext that could be fixed simply though.

I think the problem is the logger also setups the default handler for root logger.
I have the idea to implement a proxy class for logger that will do nothing even do not call getLogger() if VEXT_DEBUG_LOG  is not set.

Is your version the same as the one in git ?
It might be worth uninstalling vext, then clone the git repo.
If you install vext using
python setup.py develop
it'll run straight from the git repo and you can experiment with changes (obviously do this in a virtualenv you don't care about, since if vext breaks strange things can happen).

My bad, I had pip's version. Git's one works fine.

OK, that's my bad, I need to do a release.

I'll take this as the feedback I needed that the fix works though, thanks :)


[firebase_analytics]: Update Google Analytics for Firebase (GA4F) iOS SDK to Version 10.24.0 or Later

Is there an existing issue for this?

[X] I have searched the existing issues.

Which plugins are affected?
Analytics
Which platforms are affected?
iOS
Description
This is not the same issue as https://github.com/firebase/flutterfire/issues/13090 I am using the latest versions of the Firebase dependencies instead.

Google Analytics gives this message.

Action Recommended: Update the Google Analytics for Firebase (GA4F) iOS SDK
Update to version 10.24.0 or later to avoid potential impact resulting from privacy manifest policies after May 1, 2024.

In my pubspec.yaml:
  firebase_analytics: ^11.2.0
  firebase_core: ^3.2.0

Reproducing the issue

Create an empty Flutter app
Added firebase_core and the analytics plugin

Firebase Core version
3.2.0
Flutter Version
3.22.3
Relevant Log Output
No response
Flutter dependencies

Expand Flutter dependencies snippet

- cupertino_icons 1.0.8
- firebase_analytics 11.2.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_core 3.2.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml]
- shared_preferences 2.2.3 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]

dev dependencies:
- flutter_lints 4.0.0 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]

transitive dependencies:
- _flutterfire_internals 1.3.39 [collection firebase_core firebase_core_platform_interface flutter meta]
- archive 3.6.1 [crypto path]
- args 2.5.0
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- characters 1.3.0
- checked_yaml 2.0.3 [json_annotation source_span yaml]
- cli_util 0.4.1 [meta path]
- clock 1.1.1
- collection 1.18.0
- crypto 3.0.3 [typed_data]
- fake_async 1.3.1 [clock collection]
- ffi 2.1.2
- file 7.0.0 [meta path]
- firebase_analytics_platform_interface 4.2.0 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.9 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins]
- firebase_core_platform_interface 5.1.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.17.3 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- image 4.2.0 [archive meta xml]
- json_annotation 4.9.0 [meta]
- leak_tracker 10.0.4 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.3 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.1 [leak_tracker matcher meta]
- lints 4.0.0
- matcher 0.12.16+1 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.8.0 [collection]
- meta 1.12.0
- path 1.9.0
- path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.1.2 [flutter platform plugin_platform_interface]
- path_provider_windows 2.3.0 [ffi flutter path path_provider_platform_interface]
- petitparser 6.0.2 [meta]
- platform 3.1.5
- plugin_platform_interface 2.1.8 [meta]
- shared_preferences_android 2.2.3 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.4.0 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.3.2 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.4.0 [flutter plugin_platform_interface]
- shared_preferences_web 2.3.0 [flutter flutter_web_plugins shared_preferences_platform_interface web]
- shared_preferences_windows 2.3.2 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.1 [path]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.7.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- typed_data 1.3.2 [collection]
- vector_math 2.1.4
- vm_service 14.2.1
- web 0.5.1
- xdg_directories 1.0.4 [meta path]
- xml 6.5.0 [collection meta petitparser]
- yaml 3.1.2 [collection source_span string_scanner]

Additional context and comments
This is not the same issue as https://github.com/firebase/flutterfire/issues/13090 I am using the latest versions of the Firebase dependencies instead.

Not sure why you are getting this prompt, but we are using version 10.28 in the FlutterFire SDK, currently upgrading to 10.29 so you can ignore this message.


Not able to download the file from az cle

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az storage blob download
Errors:
Paste here the error message you have received. Make sure to remove all sensitive information,
such as user name, password, credential, subscription ID, etc.

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az storage blob download --account-name {} --container-name {} --name {} --file {} --account-key {}

Expected Behavior
Environment Summary
Windows-10-10.0.19044-SP0
Python 3.10.10
Installer: MSI

azure-cli 2.46.0

Additional Context

Please paste here the error message you have received. Make sure to remove all sensitive information,
such as user name, password, credential, subscription ID, etc.


Update content-encryption-modes.md

One of the limitations documented has been lifted with PR v4.4.

Docs Build status updates of commit ec076aa:
:warning: Validation status: warnings

File
Status
Preview URL
Details

Docs/Packaging/content-encryption-modes.md
:warning:Warning

Details

Docs/Packaging/content-encryption-modes.md

Line 176, Column 3: [Warning-hard-coded-locale] Link 'https://docs.microsoft.com/en-us/playready/overview/what-is-new/what-is-new-4-4#general' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit a78cd16:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Docs/Packaging/content-encryption-modes.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Path intellisence not working with paths aliases

VSCode Version: 1.19.1
OS Version: Windows 10 Fall Creators Update

Steps to Reproduce:

Create a paths alias in the tsconfig.json as this: "paths": {    "@myapp/*": ["app/*"]  }
Try to import from the alias triggering intellisence after writing import {} from "@myapp/ This will not show any folders under app, so the path intellisence does not work at all in this use case!

Does this issue occur when all extensions are disabled?: Yes

@mjbvz Is this supposed to be fixed? Does not seem to be working for me.

Tested together with @mjbvz. If you have a baseUrl it should work. However, the path completions items are not having the correct CompletionItemKind.

@mjbvz How do you want to handle this? Push it to Feb for the right CompletionKind or mark it as verfied?

I’ll open another bug for the kind. I’d say the main feature is verified

Thanks @mjbvz
Added the verified label

Opened https://github.com/Microsoft/TypeScript/issues/21582 to track the kind issue upstream
Will be opening a few more upstream bugs around compilerOptions.paths path completions as well


GPR_UNREACHABLE_CODE causes warnings in ios

GPR_UNREACHABLE_CODE causes "control may reach end of non-void function" warnings in ios.
#6922 silenced this warning in objective-c tests temporarily.

This is a duplicate of https://github.com/grpc/grpc/issues/6118


Add Node.js Valkey Commands (wiki)

https://github.com/valkey-io/valkey-glide/wiki/NodeJS-wrapper
This PR is to replace existing NodeJS-wrapper's Valkey Command section.

Changes have updated to https://github.com/valkey-io/valkey-glide/wiki/NodeJS-wrapper#valkey-commands. Close this PR.


Different highlights for each title

Could you create new highlights for help, filter, filesystem, buffers and git popup titles please?
Also how do I remove the Neotree prefix from the title?
Thanks

@pysan3 I don't think @gadefox was talking about the source selector, just all of the prompts. I'd say it doesn't seem worth the extra complication to add in code to handle configurable highlights depending on the popup message/title.
As far as the source selector goes, I think it could be implemented by allowing all of the highlights to be specified per source:
    requires("neo-tree").setup({
      source_selector = {
        winbar = false, -- toggle to show selector on winbar
        statusline = false, -- toggle to show selector on statusline
        show_scrolled_off_parent_node = false,                    -- boolean
        sources = {                                               -- table
          {
            source = "filesystem",                                -- string
            display_name = "  Files "                            -- string | nil
            -- HERE ARE NEW OPTIONS
            highlight_tab = "MyCustomHighlight",                  -- string | nil
            highlight_tab_active = "MyCustomHighlight",           -- string | nil
          },
          {
            source = "buffers",                                   -- string
            display_name = "  Buffers "                          -- string | nil
          },
          {
            source = "git_status",                                -- string
            display_name = "  Git "                              -- string | nil
          },
        },
        content_layout = "start",                                 -- string
        tabs_layout = "equal",                                    -- string
        truncation_character = "…",                               -- string
        tabs_min_width = nil,                                     -- int | nil
        tabs_max_width = nil,                                     -- int | nil
        padding = 0,                                              -- int | { left: int, right: int }
        separator = { left = "▏", right= "▕" },                   -- string | { left: string, right: string, override: string | nil }
        separator_active = nil,                                   -- string | { left: string, right: string, override: string | nil } | nil
        show_separator_on_edge = false,                           -- boolean
        highlight_tab = "NeoTreeTabInactive",                     -- string
        highlight_tab_active = "NeoTreeTabActive",                -- string
        highlight_background = "NeoTreeTabInactive",              -- string
        highlight_separator = "NeoTreeTabSeparatorInactive",      -- string
        highlight_separator_active = "NeoTreeTabSeparatorActive", -- string
      },
    })

Then we would just use the highlight specified for the source, and fallback to the global highlight if that's not defined.
As far as the title of float windows, it seems reasonable to make that configurable if someone wants to do that work.
The buffer name needs to stay in the current format because a lot of code relies on that to identify neo-tree buffers.

As far as the source selector goes, I think it could be implemented by allowing all of the highlights to be specified per source:

Ah, this is a nice and clean way. However, I must say that I'm not really interested in highlight stuff and will not take my time to implement the change.
Since we cannot change the buffer name as well, shall we close this issue as wont-fix @cseickel?

I think we can just let it sit as an enhancement. Maybe someone else will want to pick it up.

This honestly wouldn't be that complicated. It would take some minor changes to the selector.text_with_hl function as well as probably the selector.render_tab function. More time would likely be spent in writing the doc for this than the code needed to do the thing lol.
I might peek at it this weekend if I have time.


Remove ASE Health Check from Restart analysis

Disable ASE health check from restart analysis. Right now, it shows the below and looks incorrect

Reactivating this.
https://applensv2.azurewebsites.net/sites/webapp-prod-hk-pm-app-webapi/apprestartanalysis?startTime=2018-02-07T06:23:14.719Z

Its happening only for sites in ASE


Fix Denmark, remove observances

Fix #386
According to the following sources:
https://www.timeanddate.com/holidays/denmark/2019
https://publicholidays.dk/2019-dates/
Palm Sunday, Constitution Day, Christmas Eve and New Year's Eve are Observances and not non working days
This seems to be also true for past years (checked 2015, 2010, 2000)

[x] Tests with a significant number of years to be tested for your calendar.
[x] Changelog amended with a mention describing your changes. Note Please do NOT change the version number here. It's the project maintainers' duty.

looking very good! I lack some time right now to merge and release, but I'll try to do this during the week-end...

Thanks! No rush.


how to Disabled Schedule dragging without isReadOnly(Schedule, Calendar): true ?

Summary
how to Disabled Schedule dragging without isReadOnly(Schedule, Calendar): true ?
I can't turn it off, but can editing

@mspark2Dev As I mentioned in #869, There's no option to prevent dragging only.

@adhrinae
This problem was solved by using drag editing.
Thank you for comment :)

@mspark2Dev
That's good to know 👍 But I still don't understand your question and the solution.
Could you paste a code that solved your problem?


BUG: pass unused xrtol in fmin_bfgs to _minimize_bfgs

Pass unused xrtol in fmin_bfgs to _minimize_bfgs
Reference issue
Fixes the addition of xrtol as intended in PR #17345
What does this implement/fix?
passes xtrol to _minimize_bfgs as kwarg
Checks:

Test passed locally

Looks good to me.

Thank you @TLeitzbach


OVH S3 compatible storage AuthorizationHeaderMalformed the region 'us-east-1' is wrong; expecting 'gra'

Hi, i tried to configure JuiceFs with an S3 compatible vendor. OVH
juicefs format --storage s3 \
    --bucket https://s3.gra.io.cloud.ovh.net/mybucket \
    --access-key $ACCESS_KEY \
    --secret-key $SECRET_KEY \
    "redis://<IP_ADDRESS>:9190/1" \
    datavault

with the response:
2022/12/27 01:06:21.060580 juicefs[97465] <INFO>: Meta address: redis://<IP_ADDRESS>:9190/1 [interface.go:402]
2022/12/27 01:06:21.080483 juicefs[97465] <INFO>: Ping redis: 1.546708ms [redis.go:2878]
2022/12/27 01:06:21.083500 juicefs[97465] <INFO>: Data use s3://mybucket/datavault/ [format.go:435]
2022/12/27 01:06:33.842261 juicefs[97465] <FATAL>: Storage s3://mybucket/datavault/ is not configured correctly: Failed to create bucket s3://mybucket/datavault/: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'gra'
        status code: 400, request id: tx25660a4d66ac46a994f94-0063aa3702, host id: tx25660a4d66ac46a994f94-0063aa3702, previous error: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'gra'
        status code: 400, request id: tx9552f7f3bed04a04bed96-0063aa3702, host id: tx9552f7f3bed04a04bed96-0063aa3702 [format.go:438]

juicefs version 1.0.2+2022-10-13.514ef03 on Macos 11.4
I can confirm that rclone is working perfectly

please set AWS_REGION or AWS_DEFAULT_REGION env and try again.

@zhijian-pro thanks for the reply. I can confirm that setting the ENV var it works. So it must be a bug in the uri parser?
My plan is to use it in docker sharing volumes. However I can't make it work properly
I have opened also a ticket https://github.com/juicedata/docker-volume-juicefs/issues/28

This is not a bug. region resolution of S3-compatible objects requires special handling. Currently, OVH region automatic resolution is not supported.

You can test ok in binary mode first and then try docker volume. Don't forget to set the 'AWS_REGION' environment variable.
In the future, we may do automatic region parsing for OVH.  However, due to regional reasons, we cannot register an account in OVH, so could you please help us test the program?

so could you please help us test the program

Of course!
Would not a good idea to expose also the region as a parameter?
juicefs format --storage s3 \
    --region=gra
    --bucket https://s3.gra.perf.cloud.ovh.net/kunzite \
    --access-key $ACCESS_KEY \
    --secret-key $SECRET_KEY \
    redis://<IP_ADDRESS>:9190/1 \
    datavault

The '--region' is not needed in most cases, so we thought it would be easier to use environment variables when needed.
I want to make sure OVH is compatible and can be a object storage provide for juicefs. You can execute the command and post the result.
export AWS_REGION=gra
juicefs objbench --stroage s3 https://s3.gra.perf.cloud.ovh.net/kunzite --access-key $ACCESS_KEY  --secret-key  $SECRET_KEY

Here are the results:
Start Functional Testing ...
+----------+---------------------+-------------+
| CATEGORY |         TEST        |    RESULT   |
+----------+---------------------+-------------+
|    basic |     create a bucket |        pass |
|    basic |       put an object |        pass |
|    basic |       get an object |        pass |
|    basic |       get non-exist |        pass |
|    basic |  get partial object |        pass |
|    basic |      head an object |        pass |
|    basic |    delete an object |        pass |
|    basic |    delete non-exist |        pass |
|    basic |        list objects |        pass |
|     sync |    put a big object |        pass |
|     sync | put an empty object |        pass |
|     sync |    multipart upload |        pass |
|     sync |  change owner/group | not support |
|     sync |   change permission | not support |
|     sync |        change mtime | not support |
+----------+---------------------+-------------+

Start Performance Testing ...
put small objects count: 100 / 100 [==============================================================]  done
get small objects count: 100 / 100 [==============================================================]  done
   upload objects count: 256 / 256 [==============================================================]  done
 download objects count: 256 / 256 [==============================================================]  done
     list objects count: 100 / 100 [==============================================================]  done
     head objects count: 100 / 100 [==============================================================]  done
   delete objects count: 100 / 100 [==============================================================]  done
Benchmark finished! block-size: 4096 KiB, big-object-size: 1024 MiB, small-object-size: 128 KiB, small-objects: 100, NumThreads: 4
+--------------------+-------------------+------------------+
|        ITEM        |       VALUE       |       COST       |
+--------------------+-------------------+------------------+
|     upload objects |       27.93 MiB/s | 143.20 ms/object |
|   download objects |        7.39 MiB/s | 541.43 ms/object |
|  put small objects |    50.8 objects/s |  19.68 ms/object |
|  get small objects |    46.5 objects/s |  21.51 ms/object |
|       list objects | 3141.78 objects/s |      31.83 ms/op |
|       head objects |    79.4 objects/s |  12.59 ms/object |
|     delete objects |    64.4 objects/s |  15.54 ms/object |
| change permissions |       not support |      not support |
| change owner/group |       not support |      not support |
|       update mtime |       not support |      not support |
+--------------------+-------------------+------------------+

The '--region' is not needed in most cases

Its going to be pretty convenient in the docker plugin. How should be passed then to the volume definition?

how to set env in docker plugin https://docs.docker.com/engine/reference/commandline/plugin_set/

You can use this PR #3133 branch to test OVH region
juicefs format --storage s3 \
    --bucket https://mybucket.s3.gra.perf.cloud.ovh.net\
    --access-key $ACCESS_KEY \
    --secret-key $SECRET_KEY \
    redis://<IP_ADDRESS>:9190/1 \
    datavault

The main branch already supports automatic region parse. #3133

Thanks!

how to set env in docker plugin https://docs.docker.com/engine/reference/commandline/plugin_set/
https://github.com/juicedata/docker-volume-juicefs

I know! 😁 I was asking for a setting so you can define the region while defining the volume in compose.
Thanks a lot for the support.
Im building it!

@zhijian-pro I built it and seems to have the same error
./juicefs format --storage s3 \
    --bucket https://s3.gra.perf.cloud.ovh.net/mybucket \
    --access-key $ACCESS_KEY \
    --secret-key $SECRET_KEY \
    redis://<IP_ADDRESS>:9190/1 \
    datavault

2022/12/30 14:29:03.706239 juicefs[36070] <INFO>: Meta address: redis://<IP_ADDRESS>:9190/1 [interface.go:424]
2022/12/30 14:29:03.712290 juicefs[36070] <INFO>: Ping redis: 841.416µs [redis.go:3042]
2022/12/30 14:29:03.727708 juicefs[36070] <INFO>: Data use s3://mybucket/datavault/ [format.go:436]
2022/12/30 14:29:16.237134 juicefs[36070] <FATAL>: Storage s3://mybucket/datavault/ is not configured correctly: Failed to create bucket s3://mybucket/datavault/: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'gra'
        status code: 400, request id: tx024ab5327fa14677a5334-0063aee7a5, host id: tx024ab5327fa14677a5334-0063aee7a5, previous error: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'gra'
        status code: 400, request id: txb04d2dae3ef84850bbcb7-0063aee7a5, host id: txb04d2dae3ef84850bbcb7-0063aee7a5 [format.go:439]

Im building current master

@DavidGOrtega     Please use  this format  --bucket https://mybucket.s3.gra.perf.cloud.ovh.net

@zhijian-pro 👍
however according to OVH its not the way to go (at least not by the instructions given to me) that might confuse other OVH users?

Why might this confuse other OVH users?
Is there any reference document to help me understand what you mean?


fix(oa-cafc): Fix cafc

Fixes issue #611
Simply needed to set a variable that was hard coded.

Thanks.


use interface_desc when product_string is empty

Some DAP may not have product_string but it can be matched by interface_desc.  So, we could use it as this DAP's name to avoid an empty name

Do you have examples for probes which don't have a product string? The spec says that this is the way to identify cmsis-dap compatible probes.

https://github.com/cherry-embedded/CherryDAP/tree/master/projects/HSLink-Pro
@HalfSweet

Are you sure it doesn't have a product name, or do we just fail to read it? The screenshots seem to show the correct product name. Can you use the device explorer, or lsusb, or something similar to see what the product name is?
I have nothing against merging this, but it would be good to check that there is no isse with reading the product name.

device explorer shows a default (i think) name, unlike the other daps

https://arm-software.github.io/CMSIS-DAP/latest/group__DAP__Info.html
For the CMSIS-DAP specification, Product Name may return an empty string, in which case the USB device information is used to obtain the vendor name, product name and serial number.

See https://arm-software.github.io/CMSIS-DAP/latest/dap_firmware.html#dap_config_usb:

No matter what, matching a dap and giving user an empty name is not quite good...

Here is lsusb log, iProduct has a string... :
Bus 002 Device 002: ID 0d28:0204 NXP ARM mbed
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x0d28 NXP
  idProduct          0x0204 ARM mbed
  bcdDevice            1.00
  iManufacturer           1 CherryUSB
  iProduct                2 CherryUSB CMSIS-DAP
  iSerial                 3 214F44B4FEDADD10BB0B8044E000E80A
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0062
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              2 (error)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         1
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bFunctionProtocol       1 AT-commands (v.25ter)
      iFunction               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface              0
      CDC Header:
        bcdCDC               1.10
      CDC Call Management:
        bmCapabilities       0x00
        bDataInterface          2
      CDC ACM:
        bmCapabilities       0x02
          line coding and serial state
      CDC Union:
        bMasterInterface        1
        bSlaveInterface         2
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0021
  bNumDeviceCaps          1
  Platform Device Capability:
    bLength                28
    bDescriptorType        16
    bDevCapabilityType      5
    bReserved               0
    PlatformCapabilityUUID    {d8dd60df-4589-4cc7-9cd2-659d9e648a9f}
    CapabilityData[0]    0x00
    CapabilityData[1]    0x00
    CapabilityData[2]    0x03
    CapabilityData[3]    0x06
    CapabilityData[4]    0xaa
    CapabilityData[5]    0x00
    CapabilityData[6]    0x20
    CapabilityData[7]    0x00
Device Status:     0x0000
  (Bus Powered)

And I can get the name of this dap on Linux...

However, I cannot get the name on Windows

So, it may be a bug of nusb?

So, it may be a bug of nusb?

Might be, if you have something reproduceable it would be great if you could it report in the nusb repo.


When i press enter 2 or 3 times the app gets crashed

version : 1.0.42

+1

I found a workaround solution for this, you should fork this lib and remove the selection property on the TextInput. It's working for me, although not sure if any unwanted behaviors
you can check mine at https://github.com/PasseiDireto/react-native-cn-richtext-editor


Update user docs with info about new Symbols UI

Should probably hold off on this till it's closer to stable so we can account for any other changes made to it between now and then.

Completed via ec477f84bae1c4d26296f89e9d326ffbf2075c5 and an earlier commit.


窗口置顶

Description of the new feature / enhancement
实现任意窗口的置顶。
Scenario when this would be used?
在开发时，需要调试软件时，往往需要同时查看代码和浏览器
Supporting information
No response

Duplicate of #13

Thanks for your suggestion! This issue is a duplicate.
I'm linking this issue to #13 to centralize the discussion thread, please go to that thread for discussion.
Thanks for your help to make PowerToys a better piece of software!

Thanks!

This is actively being worked on too :)


[FEATURE]: Transition to ros2_control for controller interface

Feature Type
Changing existing functionality in the BlueROV2 driver
Problem Description
The current implementation for developing and using custom controllers is custom, but still implements a structure similar to what one would expect within ros2_control. The main reason for the initial design is ultimately that I'm on a time crunch and didn't have the time to fidget with setting up the hardware interfaces and custom controllers.
Feature Description
Migrate the existing controller implementation over to ros2_control. This will improve the maintainability of the implementation and will also improve the integration of the project into the ROS ecosystem down the line (e.g., integrating MoveIt2).
Alternative Solutions
The existing approach could be preserved; however, I think that, if possible, it would ultimately be better to switch over to ros2_control.
Additional Context
No response

I am not fully sold on migrating to ros2_control yet as that project is still working on maturing (at the time of writing, it is a massive pain in the butt to integrate ros2_control with Gazebo Garden). I'm also not sure whether the lifecycle node structure will apply super well when integrating with the manager or ArduSub.

I've just made a new repo to work on this here. Right now, I just envision that repo being a collection of controllers for AUVs/ROVs. Then each user can implement their own hardware interfaces (like ros2_control does)


[Request] Snippets for Sublime Text

It would be nice if the vscript snippets made for Visual Studio Code would be made for Sublime Text as well, as its one of few text editor programs that is natively supported for Linux.

Check out the new instructions, and let me know if you run into any issues :)
I'm on Linux, but don't plan on keeping Sublime Text installed. You can run this script to convert squirrel.json into text for tf2-snippets.sublime-completions.


fix(es/preset-env): Disable all class passes for target with native class support

Description:
This is just PoC to ask for opinion @magic-akari. I think it sounds reasonable to disable all class properties transform where it's natively supported. So I made this, but I want to hear opinion about it.
Related issue:

Closes https://github.com/swc-project/swc/issues/9743

Does it work even for the targets with native class support?

Does it work even for the targets with native class support?

Yes, in TypeScript, even with native support for class fields, useDefineForClassFields can still influence the generated code.
input:
class Foo {
    bar: any;
}

output:
https://www.typescriptlang.org/play/?useDefineForClassFields=true&target=99#code/PTAEAEFcGcFMBFYDMCWA7WAxA9gJwMIA2AhtNJirIQCbQBcoALrpLAFAgSPG4DmsjBrGgYAHozZsAxiTKgc2UAG82oNaABGPBsTQBPANxsAvkA
"use strict";
// @useDefineForClassFields: true
// @target: esnext
class Foo {
    bar;
}

output:
https://www.typescriptlang.org/play/?target=99&useDefineForClassFields=true#code/PTAEAEFcGcFMBFYDMCWA7WAxA9gJwMIA2AhtNJirIQCbQBcoSxhcAUCBAC7G4DmsnBrGgYAHp1asAxiTKgc2UAG9WoNaABGPBsTQBPANysAvkA
"use strict";
// @useDefineForClassFields: false
// @target: esnext
class Foo {
}

Perhaps we should redesign the transformation options for the class fields;  I suggest we include at least three options:

spec [[DEFINE]]
[[SET]]
loose (preserve class fields if native support is available, otherwise use [[SET]] semantics)

Perhaps we should redesign the transformation options for the class fields; I suggest we include at least three options:
* spec `[[DEFINE]]`

* `[[SET]]`

* loose (preserve class fields if native support is available, otherwise use `[[SET]]` semantics)

Maybe 1 and 3 would be enough?


Error: No such command "new".

[root@test python3]# python --version
Python 3.6.2
[root@test python3]# toapi new toapi/toapi-pic
Usage: toapi [OPTIONS] COMMAND [ARGS]...
Error: No such command "new".
help ?

I'm not sure what you are trying to attempt. Have you read the readme?
Maybe you are trying to create a new project. In that case
mkdir toapi-pic
cd toapi-pic
pip install toapi
touch app.py

and then start coding.

same issue
see:
https://asciinema.org/a/shet2Ba9d4muCbZ6C3f56EbAt


Grammar

Just some basic corrections :)

I have delete all chinese words day before! thinks to @gkze anyway.

No problem! :+1:

@gkze do you use it?

Not yet, was going to start looking into it pretty soon once I had some more free time though!

ok, if find any bug please tell me!


ADD KAJAME Token

I agree to not ping anybody on Discord/Twitter/email about this pull request. Instead I will inquire by posting a new comment in the pull request if needed.

PRs are reviewed in bulk and and can take up to two weeks to be merged.
This repository is managed using an auto merge action. Please ensure your PR has no deleted lines, and it will be merged.
Please provide the following information for your token.
Please include change to the src/tokens/solana.tokenlist.json file in the PR.
DON'T modify any other token on the list.
At minimum each entry should have

Token Address: 73YQDsoPB3t5n5GqX53tKrwJK1n6HCZ935MEbo2gEYU5
Token Name: Kajame
Token Symbol: KAJAME
Logo: https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/73YQDsoPB3t5n5GqX53tKrwJK1n6HCZ935MEbo2gEYU5/logo.png
Link to the official homepage of token:
Coingecko ID if available (https://www.coingecko.com/api/documentations/v3#/coins/get_coins__id_):

I can see an immediate merge of your Token. Please let me know how to get this. I am not able to successfully merge in spite of several attempts. I am able to see All checks done but merging is not happening. Suggestions will be highly appreciated..

@italtoken You should edit only detail of token. if you delete something in code it will error on CI step when pull request.
This is my blog => shorturl.at/dyLM6


Derive Deserialize/Serialize for State enum

This MR adds the crates serde and schemars to allow serialization/deserialization and schema generation respectively for configuring the Starship battery module using the State enum (see starship/starship#3849).
I'm unsure about the error message when the deserialization fails for an invalid enum value, I'd appreciate some feedback regarding that.

I'm unsure about the error message when the deserialization fails for an invalid enum value, I'd appreciate some feedback regarding that.

It seems fine to me. The type error messages in starship could use some work (struct etc. being mentioned instead of table). It might be easier to handle this later in a generic manner via ValueDeserializer. If you wish to handle this here, perhaps add the valid keys.

@KentaKariya @davidkna Along with the merge of #4, I've renamed the primary branch in the repo from master to main.
PRs have automatically been retargeted, but if you have local copies of your repository, you'll need to run the following commands to correctly re-track the main branch:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

Sorry, I've lost track of what's going on with this PR. My current understanding is that we merge this, version-bump this crate, and then we'll be able to merge 3849 on starship?

Yes, though https://github.com/starship/starship/pull/3849/ still needs to switch to using the `State- enum, and https://github.com/starship/starship/pull/3849/ also requires https://github.com/starship/starship/pull/3941/.


fix: gcpcm certificate name

Fixed certficatename and secret name check

In if s.CertificateName == "" { s.CertificateName always has value because secretToGCPCert executes first and set value if empty...


Reduce realm file size on logout of the application.

I am using Realm for my application. On logout of the application I am using deleteAll on Realm but Realm file size is same as before logout.
What else I need to do before logout to delete all and reduce transaction size of the file.
I am using should compact on launch which is working. are there any other methods to be used to reduce the file size during logout.

Nothing to vacuum it when closing the file, unfortunately. Depending on how you "logout", you could close the file, and reopen with compactOnLaunch.

How can I close the file using realm object?

The file is closed automatically when all objects referring to it has been deallocated. You can ensure that with autoreleasepool - see https://realm.io/docs/swift/latest/#deleting-realm-files


Migrate RGB theme color values to HSL values

A new optional SCSS theme file has been provided named "_theme-hsl.scss".

Completed.


Stateless function components for jsx

ReactJS gets stateless function components https://facebook.github.io/react/blog/2015/09/10/react-v0.14-rc1.html
How does it work with the current JSX support in TypeScript? It would be nice if something like this would work as well:

//cc: @RyanCavanaugh

const Headline = (title: string) =>
{title}
; doesn't make sense because JSX attributes have names and parameters of a function not.
But const Headline = (props : { title: string }) =>
{props.title}
; should work!

This needs a spec if we're going to do automatic inference from it.
As @Lenne231 points out, the example posted doesn't seem to be how it works.
Given the example from the release notes:
var Aquarium = ({species}) => (
  <Tank>
    {getFish(species)}
  </Tank>
);

We could type this fairly easily:
// Put this somewhere
interface ReactStateless<T> extends React.Component<T, {}> {
  (props: T): JSX.Element;
}

var Aquarium: ReactStateless<{species: string}> = ({species}) => (
  <Tank>
    {getFish(species)}
  </Tank>
);

Is there a reason why we are currently not inferring the valid JSX components and the matching JSX properties from the React.createElement function? Don't we have all information we need?
type JSX = typeof React.createElement

// Type of valid JSX components: type of the first parameter of JSX
// Type of matching JSX properties: first generic parameter of JSX

There will probably be a third kind of component in the future, so it would be nice if the implementation is flexible enough to handle that:
https://github.com/reactjs/react-future/blob/master/07 - Returning State/04 - Callback Chaining.js

Fleshing out the design at #5478


Renaming all the attributes in the Nav file from 'class' to 'className' since we're using JSX syntax.

Occurs when inspecting the page in web browser.

Resolved in PR


remove compatibility matrix of 2-way-peg & more things

What
Remove the compatibility matrix of 2-way-peg. It was referenced to https://github.com/rsksmart/utils/releases/.
Why

To improved the user experience

Thanks @bguiz for your feedback. I will change it.

@bguiz I have done your suggestion. Please take a look of them when you have the chance.


User portal updates

Made changes to components and theme to accommodate the user portal application. This PR introduces light UITheme, which is a more stripped back version of our application themes.
Refers to ticket

Look great, could we get some tests and screen shots pls


Changed chainId type from Bigint to UInt32

This PR changes the Ethereum Plugin's chainId property from BigInt to UInt32
The ENS wrapper, used by the Hub, was deployed with version 0.0.1-prealpha.48 of the Ethereum Plugin, where chainId is an UInt32. But the hub uses the latest 0.0.1-prealpha.69, where chainId is a BigInt, which serializes as string, which is indeed a breaking change.
Chain ID should indeed be a number and not a bigint, ethersjs docs validate this: https://docs.ethers.io/v5/api/providers/types/#providers-TransactionRequest.

The issue with using u32 is that some chain ids won't fit. I think u64 would work, but we don't yet support it.


Refactor json endpoints by using jbuilder

Currently there are some rest endpoints returning json and relying on the way as_json is overridden in some models. This is particularly error prone, and in the long term may lead to disclosing some internal informations (eg. from the user table). Explicitly writing a view for the resulting json using jbuilder is a cleaner and safer solution

It also seems the perfect opportunity to add pagination https://github.com/sic2/isamuni/issues/37
A smart thing could be doing it in a Datatables (or some other ajax-table library) compatible format, so we can enable server-side search, ordering and pagination.


Try to Fix IT

What problem does this PR solve?
It always occurs Table or view not found error, and it can not be reproduced locally.
This pr try to find the reason and fix it

/run-all-tests tidb=release-5.2 pd=release-5.2 tiflash=release-5.2 tikv=release-5.2

/run-all-tests tidb=release-5.2 pd=release-5.2 tiflash=release-5.2 tikv=release-5.2

/run-all-tests

/run-all-tests tidb=release-5.2 pd=release-5.2 tiflash=release-5.2 tikv=release-5.2

/run-all-tests tidb=release-5.2 pd=release-5.2 tiflash=release-5.2 tikv=release-5.2

/run-all-tests


Unknown Error when trying to connect to a bot without a user (Example)

Electron works fine and the window appears, but the console is literally flooded by errors.
Edit: And the Rich Presence doesn't appear on the bot neither on the bot owner's account.

I noticed that all ~15 Seconds a new UnhandledPromiseRejectionWarning appears in the console.

setInterval(() => {
setActivity();
}, 15e3);
});

That could be the error, since setActivity() is getting called every 15 Seconds.
Node: v8.9.1
NPM: v5.5.1
Discord-RPC: 3.0.0-beta.2
PS: I didn't change anything in the .setActivity() Function.

Could you try using process.on('unhandledRejection', (reason, p) => {   console.log('Unhandled Rejection at: Promise', p, 'reason:', reason); });
in your code

That doesn't log the errors and the RichPresence still doesn't appear.

Oops, I think my code was bad or for another lang. Try my updated code, I edited the msg

As i said, no unhandledRejections anymore. Any ideas why the RichPresence doesn't show?

The reason for that was because the code stops it from logging. Try updating it with the new code

I tried that with both codes and once without. Anyways, that's not the problem.

Any ideas why the RichPresence doesn't show?

@y21 Please add the electron as a game in Discord

@DriftTech Thank you very much.  That works.


K8SPS-254: prohibit to run several restores in parallel

https://jira.percona.com/browse/K8SPS-254
CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira

[ ] Is the Jira ticket created and referenced properly?
[ ] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[ ] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[ ] Is an E2E test/test case added for the new feature/change?
[ ] Are unit tests added where appropriate?

Config/Logging/Testability

[ ] Are all needed new/changed options added to default YAML files?
[ ] Are the manifests (crd/bundle) regenerated if needed?
[ ] Did we add proper logging messages for operator actions?
[ ] Did we ensure compatibility with the previous version or cluster upgrade process?
[ ] Does the change support oldest and newest supported PS version?
[ ] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

async-ignore-annotations
failure

auto-config
failure

config
failure

config-router
failure

demand-backup
failure

gr-bootstrap
failure

gr-demand-backup
failure

gr-ignore-annotations
failure

gr-init-deploy
failure

gr-one-pod
failure

gr-scaling
failure

gr-tls-cert-manager
failure

haproxy
failure

init-deploy
failure

limits
failure

monitoring
failure

one-pod
failure

scaling
failure

semi-sync
failure

service-per-pod
failure

sidecars
failure

tls-cert-manager
failure

users
failure

version-service
failure

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/382/commits/0d33ce3c29604e19838280df8ac9ab5b365ee994
image: perconalab/percona-server-mysql-operator:PR-382-0d33ce3

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
failure

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
failure

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/382/commits/0d33ce3c29604e19838280df8ac9ab5b365ee994
image: perconalab/percona-server-mysql-operator:PR-382-0d33ce3

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

semi-sync
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 24 out of 24

commit: https://github.com/percona/percona-server-mysql-operator/pull/382/commits/39c939e91b5bc4c9f0d24a453ad6048100f8a0fc
image: perconalab/percona-server-mysql-operator:PR-382-39c939e

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 23 out of 23

commit: https://github.com/percona/percona-server-mysql-operator/pull/382/commits/12f65cb7da522bb4bdcc78778f50673ac5d3477f
image: perconalab/percona-server-mysql-operator:PR-382-12f65cb

Test name
Status

async-ignore-annotations
passed

auto-config
passed

config
passed

config-router
passed

demand-backup
passed

gr-bootstrap
passed

gr-demand-backup
passed

gr-ignore-annotations
passed

gr-init-deploy
passed

gr-one-pod
passed

gr-scaling
passed

gr-tls-cert-manager
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

one-pod
passed

scaling
passed

service-per-pod
passed

sidecars
passed

tls-cert-manager
passed

users
passed

version-service
passed

We run 23 out of 23

commit: https://github.com/percona/percona-server-mysql-operator/pull/382/commits/fde424dedeec1830a8cbd0c03b17b0f6764f64c4
image: perconalab/percona-server-mysql-operator:PR-382-fde424d


Consolidate language lists across repos

Currently, we keep three separate lists of languages:

The one in this repo in the langs/ folder
The one in Is React Translated Yet
The "official" one in the reactjs.org repo

Whenever a language is created, I have to update all three of this sources. When one is finished, I need to update the official React list too. I'd like to automate some of this.

What would a good solution to this look like?  A script to run with node using github's API?


[Issue #3753] add options to configure secure, same-site and http-only for the cookie

This PR address issue #3753. This covers topics related to ITP 2.1. More information about cookie access control could be find in the links bellow:

https://discourse.snowplowanalytics.com/t/itp2-1-and-its-effect-for-snowplow-users/2746/2
https://web.dev/samesite-cookies-explained/
https://blog.chromium.org/2019/05/improving-privacy-and-security-on-web.html

Cherry-picked in https://github.com/snowplow/snowplow/pull/4099