Bug report

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az eventhubs namespace create
Errors:
Please run 'az login' to setup account.

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 eventhubs namespace create -n {} -g {} -l {} --enable-kafka

Expected Behavior
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.28.0 *

Additional Context

route to service team

Hi @nomchom, Thanks for reaching out to us.
From the error message, it looks like you haven't logged in to Azure before using any of the CLI cmdlets and thus not being able to create namespace (which is expected behavior). Can you elaborate more on the steps you have been taking?

@nomchom Apologies for the late reply. Could you please run the below commands in order and then let us know if you still face this issue ?

az login    # Run this command to login to your Azure Account
az account set --subscription "1234-XXXX-XXXX-1234"  # Run this command to set the default Azure Subscription context

Then run this EventHub command to create an EH resource. Please let me know if you still run into any issues. Awaiting your reply.


Login Issue.

Summary
I have installed the EAS cli yestered, and tried to login in with my account. i have tried the command eas login but it is giving me error telling
Log in to EAS
error:- Input is required , but stdin is not redeable.
I am unable to login into EAS using cli.
Managed or bare?
Currently it is bare, i have not generated any build till now because of this error.
Environment
EAS CLI 0.39.0 environment info:
System:
OS: Windows 10 10.0.22000
Binaries:
Node: 14.18.1 - C:\Program Files\nodejs\node.EXE
Yarn: No HADOOP_CONF_DIR set.
Please specify it either in yarn-env.cmd or in the environment. - C:\Program Files\hadoop\bin\yarn.CMD
npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD
Utilities:
Git: 2.33.0. - /mingw64/bin/git
npmPackages:
expo: ~43.0.2 => 43.0.4
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-web: 0.17.1 => 0.17.1
Project workflow: generic
Error output
EXPO_DEBUG=true eas login
Log in to EAS
Error: Input is required, but stdin is not readable.
Reproducible demo or steps to reproduce from a blank project
You have to just enter
eas login
this will produce the error.

there are some issues on windows with detecting whether you are in interactive terminal e.g. https://github.com/nodejs/node/issues/3006
The terminal you are using does not set process.stdout.isTTY correctly, so we can't display prompt for login/password
Try using PowerShell instead

I am now using command prompt it is working right now, but i got some another issue, do i need a play console and Apple developer account to use the eas services, because currently i am not having either of them.

you need an apple developer account if you are going to do an internal distribution or app store build for ios. you do not need a google play developer account to build your android app but you do need it to submit it.

I got this same error for a very different cause. I had a GitHub action like this:
      - name: Publish update
        run: eas update --auto

However, since I was in a monorepo, this was running in the root. Adding working-directory fixed that. Pretty obscure case, but figured I'd share in case it happens to anyone else
Solution:
      - name: Publish update
        working-directory: ./apps/expo
        run: eas update --auto

I got the same error while trying to build:
       - run: eas build --non-interactive --platform all

Did anyone find a solution that works here too?

try run eas update:configure

Same thing happened to me, but I was trying to use the Git Bash terminal.  Switched over to a regular Windows command prompt window and it worked from there.

Same thing happened to me, but I was trying to use the Git Bash terminal. Switched over to a regular Windows command prompt window and it worked from there.

Thanks a lot.  I wish the developers didn't release this up until it was stable and functional to use.


Make permission data (SubjectData) a part of the Data API and make every Subject a DataHolder

This is an alternative to zml's PR.
I think Permission data should be handled like an other data. A permission Subject should be a data holder.
That also means that you can append custom data to a permission group, which will be inherited to the members of the group (e.g. ChatPrefixData).
This would clean up the Permission API and add much more possibilities that the "key-value options" introduced by zml's PR.

@gabizou do you think you could take a look at how this would work?
Would we have to change SubjectData instances to be immutable? (I already do this in PEX internally)
Would the data object be like Subject (calculated), or SubjectData (uncalculated) (and there are both data and transient SubjectDatas).
Would this work with non-data-holding objects?
Would it be able to handle two different SubjectData instances (transient and non-transient)?

@zml2008 I don't think this is valid any longer, thoughts?

Yeah, I agree. This would be nice to do, but permissions and data/value API work super differently internally so it wouldn't work at all imo.


Analyzer CLI ignores .analysis_options when analyzing dirs.

Running dartanalyzer on a directory should pickup a contained analysis options file (if present).  Currently it is ignored.

closing, dupe of https://github.com/dart-lang/sdk/issues/26212


Inform the necessary space required to build the unikernel

Problem
I noticed when building that docker overlays got close to 6GB and after the build it regressed. I know it is less than 10GB, which is what a normal qube has as the private volume, but it would be good if informed in case the user has already some data on the build qube.
I don't know a good way to measure, I was just using sudo du -h /var/lib/docker during the build.
Request
Can you please inform in the README the necessary space, not based on what I said above... I should have monitored better, but based on the your local tests.

Thanks for this comment, you mean rising e.g from 4096MiB to 8192MiB in https://github.com/mirage/qubes-mirage-firewall#build-from-source ?

I can confirm it goes up to 5.9GiB when it comes to install solo5. I'll push another commit into README.md :+1/

Thanks for this comment, you mean rising e.g from 4096MiB to 8192MiB in https://github.com/mirage/qubes-mirage-firewall#build-from-source ?

Yes.

I can confirm it goes up to 5.9GiB when it comes to install solo5. I'll push another commit into README.md :+1/

Thank you.

Thanks, fixed in #185.


FormGroup not cleared

Description
I have a dynamic form based on routing. based on the queryParam a step within the configuration is loaded in to formly.
This is working great. However the formGroup does not get cleared properly when going to the next or previous step.
This results in the form trying to validate a step which has required fields and my form will not pass the validation.
Minimal Reproduction
https://angular-ivy-2bnapy.stackblitz.io
Cant get material to work properly. but when you enter a value on step 0 and press next, it will navigate to step 1 but the formGroup (as you can see in the printed json) still holds the formControls of the previous step even though the config only loads the next step.
I now manually check the differences and remove the controls from the form myself.
Your Environment
Angular 13.3.2
"@ngx-formly/core": "6.0.0-next.9",
"@ngx-formly/material": "6.0.0-next.9",
Also used Formly version 5 (latest). but same result
Additional context
When I create a new FormGroup myself on each step, my component goes in to the ngOnDestroy so that is not an option.

Have you figured out a solution for this problem? Resetting the form group seems like the most obvious solution.
I'm not 100% sure what the intended behavior is here, and the source code (with the FormlyFieldConfigCache) is not super easy to read.
You can definitely check out the place where this happens and see if you can learn from that:
https://github.com/ngx-formly/ngx-formly/blob/main/src/core/src/lib/components/formly.form.ts#L85
The clearControl method and FormlyFieldConfigCache are involved in the handling here.
Let me know if that helps in any way or if you have an idea how formly could fix it.

resetting the formgroup will result in angular calling the ngDestroy on the component where the formgroup was set. (I dont know why)
I do have a workaround within the app itself.
I would say that the intended behaviour would be that the formgroup respects the configuration and instead of pushing new values it clears the old one and generates a new formgroup based on the current configuration. But that is my guess.
I was indeed checking the source and I agree it was not easy to read so I am not sure.
export function clearControl(form: FormlyFieldConfigCache['formControl']) {
  delete form?._fields;
  form.setValidators(null);
  form.setAsyncValidators(null);
  if (form instanceof FormGroup || form instanceof FormArray) {
    Object.values(form.controls).forEach((c) => clearControl(c));
  }
}

If you look at the clearControl function it deletes private properties from the formControl. Instead it should loop over the formGroup controls and call the clearControl method. as I think under the hood that will invoke other methods that makes sure the formgroup is properly cleared.

I agree with @maxkless here. If the idea Is that you have different forms
per query param the a new formly form should be instantiated.
The stepper setup I believe was originally intended for a single form with
multiple steps.
On Wed, May 11, 2022, 8:55 AM MaxKless @.***> wrote:

I think creating a new FormGroup is a bad idea as that will also mess
with stuff like valueChanges.
I don't know about clearing each FormControl. I often use changing fields
to re-render forms while keeping the form value, so the current behaviour
is good for me. Maybe it should be configurable in the FormlyModule... or
maybe it's okay to need a workaround here.
If you have different forms based on different routes, wouldn't it make
more sense to construct new  components for each?
—
Reply to this email directly, view it on GitHub
https://github.com/ngx-formly/ngx-formly/issues/3286#issuecomment-1123795453,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADB4XNIOQMSFTPTV443VIUTVJO36BANCNFSM5VEXA6PA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

You can definitely check out the place where this happens and see if you can learn from that:
https://github.com/ngx-formly/ngx-formly/blob/main/src/core/src/lib/components/formly.form.ts#L85
The clearControl method and FormlyFieldConfigCache are involved in the handling here.

That concern only validations but I do agree that we should clear controls as well but not a straight task as we need to extract the fields to remove from by comparing the prev/new fields, the easy solution is to clear FormGroup by you side.
Can you try the following solution: https://stackblitz.com/edit/angular-ivy-yspupc?file=src/app/app.component.html
which rely on modelChange output.

@aitboudad ok makes sense, removing the fields that disappear after new fields are loaded seems like the right solution - but somewhat complicated.
I would like to try and contribute but I have to admit I haven't really understood the whole FormlyFieldConfigCache yet (as you can see by my comment above) and I assume I would have to work with that.
Any way you could give me some pointers as to how you would go about this change?

I would like to try and contribute but I have to admit I haven't really understood the whole FormlyFieldConfigCache yet (as you can see by my comment above) and I assume I would have to work with that.

During the build step we add some additional information to the field such as _validators, formControl, 'model' and more. Some of these properties are not part of our public API (FormlyFieldConfig) that's where FormlyFieldConfigCache is used which represent the field internal API.

Any way you could give me some pointers as to how you would go about this change?

Not a priority for now but anyway I would say you can use clearControl, pass the following arguments fields  (previousValue and currentValue) and forms and use unregisterControl


Example improvement

Whilst working on an additional example (code at the time of writing), I've spotted a few possible improvements to the examples in this repo.
I know the example is not part of the published library, but I reckon quite a few people will use it for inspiration/bootstrap.
Context vs Component based fetching of session (critical)
Currently, we have useUser, which in turn uses the useSWR hook.
The specific issue with this is that useSWR revalidates on mount, which means an API call to /api/user (which might need to access a DB), and you cannot set revalidateOnMount to false because then it won't fetch when you land on the page.
Concretely, after you login and being redirect to the (SG) profile page, the mount on that page calls /api/user again, despite the fact that the session was just updated via login. It will fetch the session again whenever you transition between pages.
Note: I cannot reproduce this in the deployed version, where the dedupingInterval seems to take priority over the any mount, but I defo seen this on local, so still investigating.
This is not how sessions are typically handled in the frontend. Instead, the session is handled at a top-level SessionProvider and refreshing it happens on demand (login/logout/polling interval/etc).
So in my refactor there is a  SessionProvider which adds the session (previously user, see next point) to a context. Components use useSession, which is really just a wrapper around useContext.
With this approach, the session is fetched once when SessionProvider is mounted, and only refreshed upon login, logout (we can add explicit refresh() there, or support for a polling interval).
Another thing worth pointing out is that the login/logout logic moved to the SessionProvider so components don't need to bring in the dependencies involved in these (like fetchJson). This is also about Separation of Concerns.
Session rather than User as focus
Having user as the main data passed from the server, and in the client code makes a lot of sense with the current example, because the session only has a user and nothing else.
But, the session may include some additional information, for instance, its expiry date (so users can be notified their session is about to expire).
So on my branch it is session, rather than user that is the focal data. The changes involved are mostly in this commit.
Other improvement
withAccessRestrictions
The client side redirection logic has moved from useUser into a dedicated withAccessRestrictions, which supports loading, admin role predicates (not just logged-in), and can be used this way:
export default withAccessRestrictions({
  hasAccess: (user) => Boolean(user?.isLoggedIn),
  unauthorizedRedirect: "/login",
  loading:
Loading...
,
})(SgProfile);

withSession
Added a withSession wrappers per the README.
react-bootstrap & css modules only

Bootstrap - just to reduce noise (style blocks) and get a slightly better UI.
CSS Modules only - rather arbitrary, but some prefer it as it is better performing than CSS-in-JSS.

Currently the re-worked example looks like this:

Other small changes include a bit more attention to what is imported from where.

I really like the improvements for useSWR


web_client.chat_postMessage concurrent/futures error

Description
When my bot receives a message from me (the user) it should post a message back to a private channel with the user without raising an error. Just trying to follow the tutorial and I've set up the environment in virtualenv, a pipenv, and google cloud server with ubuntu 18 LTS but keep getting the same error about concurrent/futures and  future.result().
What type of issue is this? (place an x in one of the [ ])

[x] bug
[ ] enhancement (feature request)
[x] question
[ ] documentation related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slackclient version: 2.0.0
python version: 3.7.3 and 3.6.5
OS version(s): Mac OSX Mojave 10.14.4
Steps to reproduce:

Set up virtualenv with python 3.7.3
input code from tutorial
python3 app.py

My Code
import os
import logging
import slack
import ssl as ssl_lib
import certifi
@slack.RTMClient.run_on(event="message")
def message(**payload):
data = payload["data"]
web_client = payload["web_client"]
channel_id = data.get("channel")
user_id = data.get("user")
text = data.get("text")
if 'Hello' in data.get('text'):
      print(text)
      channel_id = data['channel']
      thread_ts = data['ts']
      user = data['user']
      web_client.chat_postMessage(
          channel=channel_id,
          text=f"Hi <@{user}>!",
          thread_ts=thread_ts
      )

if name == "main":
ssl_context = ssl_lib.create_default_context(cafile=certifi.where())
slack_token = os.environ["SLACK_BOT_TOKEN"]
rtm_client = slack.RTMClient(token=slack_token, ssl=ssl_context)
print('bot started')
rtm_client.start()
Expected result:
I'm expecting to be able to send Hello in a channel and my bot responds directly to me with f"Hi <@{user}>!" and not receiving an error.
Actual result:
My bot starts and runs smoothly and accepts the message and responds correctly (i even have the text printed in terminal) but my bot immediately shuts down and my terminal responds with an error after the first message:
File "app.py", line 35, in
rtm_client.start()
File "/Users/nathanaeldenys/Desktop/PythOnBoardingBot/env/lib/python3.7/site-packages/slack/rtm/client.py", line 202, in start
return self._event_loop.run_until_complete(future)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/Users/nathanaeldenys/Desktop/PythOnBoardingBot/env/lib/python3.7/site-packages/slack/rtm/client.py", line 342, in _connect_and_read
await self._read_messages()
File "/Users/nathanaeldenys/Desktop/PythOnBoardingBot/env/lib/python3.7/site-packages/slack/rtm/client.py", line 369, in _read_messages
self._dispatch_event(event, data=payload)
File "/Users/nathanaeldenys/Desktop/PythOnBoardingBot/env/lib/python3.7/site-packages/slack/rtm/client.py", line 405, in _dispatch_event
self._execute_callback(callback, data)
File "/Users/nathanaeldenys/Desktop/PythOnBoardingBot/env/lib/python3.7/site-packages/slack/rtm/client.py", line 446, in _execute_callback
future.result()
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "app.py", line 18, in message
if 'Hello' in data.get('text'):
TypeError: argument of type 'NoneType' is not iterable
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.f

doing str(data.get('user')) solved my issue

Hey,
So I tried to use your code (see below) to connect my bot, but I'm getting the error. Sorry I'm still pretty new to creating a slackbot.:

Traceback (most recent call last):
File "analystSlackbotorig.py", line 34, in
if name == "main":
NameError: name 'name' is not defined

`import os
import logging
import slack
import ssl as ssl_lib
import certifi
@slack.RTMClient.run_on(event="message")
def message(**payload):
data = payload["data"]
web_client = payload["web_client"]
channel_id = data.get("channel")
user_id = data.get("user")
text = data.get("text")
if 'Hello' in data.get('text'):
    print(text)
    channel_id = data['channel']
    thread_ts = data['ts']
    user = data['user']
    web_client.chat_postMessage(
        channel=channel_id,
        text=f"Hi <@{user}>!",
        thread_ts=thread_ts
    )

if name == "main":
ssl_context = ssl_lib.create_default_context(cafile=certifi.where())
slack_token = os.environ["SLACK_BOT_TOKEN"]
rtm_client = slack.RTMClient(token=slack_token, ssl=ssl_context)
print('bot started')

`rtm_client.start()``

Thanks!


Remove duplicate criteria

Update bullet numbering
Cleanup authentication specification
Signed-off-by: Jakub Balhar<EMAIL_ADDRESS>

@jmertic  Is it ok for you or would you need something else from us?

Hi @balhar-jakub! Since there is one material point change, I'd need approval from someone else in the TSC or Onboarding squad. @Joe-Winchester could you help?

I brought it to the onboarding squad channel. Thanks

Tks @balhar-jakub.  I approved the PR which is a good update to highlight SSO and it won't mean anyone who has a current badge would lose it.
As well as the test_evaluation_guide.md the change will need to be applied to https://github.com/openmainframeproject/foundation/blob/main/zowe_conformance/test_evaluation_guide.md which is the non table based file, and kept up to date so folks have diff history that's easier to consume and goes back to 2019 conformance.

@Joe-Winchester I updated the non-table guide as well.


Add running the testsuite step on non-Windows platforms

Porting something that I did in https://github.com/conda-forge/onnxruntime-feedstock/pull/56 for Windows, as I think it can be useful to catch eventual regression in the packaging process.
Checklist

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

On macOS there is a failure of the InferenceSessionTests.InterThreadPoolWithDenormalAsZero test:
2023-06-22T15:08:41.4982140Z 1: [ RUN      ] InferenceSessionTests.InterThreadPoolWithDenormalAsZero
2023-06-22T15:08:41.4994450Z 1: 2023-06-22 15:08:41.499779 [V:onnxruntime:inter_thread_pool_denormal_as_zero, sequential_executor.cc:534 ExecuteThePlan] Number of streams: 1
2023-06-22T15:08:41.4995350Z 1: 2023-06-22 15:08:41.499818 [V:onnxruntime:inter_thread_pool_denormal_as_zero, sequential_executor.cc:518 ExecuteKernel] stream 0 launch kernel with idx 0
2023-06-22T15:08:41.4996690Z 1: $SRC_DIR/onnxruntime/test/framework/inference_session_test.cc:2847: Failure
2023-06-22T15:08:41.4997580Z 1: Expected equality of these values:
2023-06-22T15:08:41.4998860Z 1:   f
2023-06-22T15:08:41.5002230Z 1:     Which is: 1.99999987e-38
2023-06-22T15:08:41.5003240Z 1:   (set_denormal_as_zero) ? 0.0f : denormal_float * 2
2023-06-22T15:08:41.5004100Z 1:     Which is: 0
2023-06-22T15:08:41.5004940Z 1: $SRC_DIR/onnxruntime/test/framework/inference_session_test.cc:2847: Failure
2023-06-22T15:08:41.5005840Z 1: Expected equality of these values:
2023-06-22T15:08:41.5006630Z 1:   f
2023-06-22T15:08:41.5008000Z 1:     Which is: 1.99999987e-38
2023-06-22T15:08:41.5008830Z 1:   (set_denormal_as_zero) ? 0.0f : denormal_float * 2
2023-06-22T15:08:41.5009650Z 1:     Which is: 0
2023-06-22T15:08:41.5010470Z 1: $SRC_DIR/onnxruntime/test/framework/inference_session_test.cc:2847: Failure
2023-06-22T15:08:41.5011310Z 1: Expected equality of these values:
2023-06-22T15:08:41.5012110Z 1:   f
2023-06-22T15:08:41.5012900Z 1:     Which is: 1.99999987e-38
2023-06-22T15:08:41.5013830Z 1:   (set_denormal_as_zero) ? 0.0f : denormal_float * 2
2023-06-22T15:08:41.5014680Z 1:     Which is: 0
2023-06-22T15:08:41.5015540Z 1: $SRC_DIR/onnxruntime/test/framework/inference_session_test.cc:2847: Failure
2023-06-22T15:08:41.5016440Z 1: Expected equality of these values:
2023-06-22T15:08:41.5017300Z 1:   f
2023-06-22T15:08:41.5018090Z 1:     Which is: 1.99999987e-38
2023-06-22T15:08:41.5018870Z 1:   (set_denormal_as_zero) ? 0.0f : denormal_float * 2
2023-06-22T15:08:41.5020010Z 1:     Which is: 0
2023-06-22T15:08:41.5020840Z 1: $SRC_DIR/onnxruntime/test/framework/inference_session_test.cc:2847: Failure
2023-06-22T15:08:41.5021680Z 1: Expected equality of these values:
2023-06-22T15:08:41.5022470Z 1:   f
2023-06-22T15:08:41.5024880Z 1:     Which is: 1.99999987e-38
2023-06-22T15:08:41.5025720Z 1:   (set_denormal_as_zero) ? 0.0f : denormal_float * 2
2023-06-22T15:08:41.5026540Z 1:     Which is: 0
2023-06-22T15:08:41.5030350Z 1: $SRC_DIR/onnxruntime/test/framework/inference_session_test.cc:2847: Failure
2023-06-22T15:08:41.5031450Z 1: Expected equality of these values:
2023-06-22T15:08:41.5032290Z 1:   f
2023-06-22T15:08:41.5033200Z 1:     Which is: 1.99999987e-38
2023-06-22T15:08:41.5034120Z 1:   (set_denormal_as_zero) ? 0.0f : denormal_float * 2
2023-06-22T15:08:41.5035090Z 1:     Which is: 0
2023-06-22T15:08:41.5037550Z 1: $SRC_DIR/onnxruntime/test/framework/inference_session_test.cc:2847: Failure
2023-06-22T15:08:41.5038540Z 1: Expected equality of these values:
2023-06-22T15:08:41.5039170Z 1:   f
2023-06-22T15:08:41.5039500Z 1:     Which is: 1.99999987e-38
2023-06-22T15:08:41.5039940Z 1:   (set_denormal_as_zero) ? 0.0f : denormal_float * 2
2023-06-22T15:08:41.5040340Z 1:     Which is: 0
2023-06-22T15:08:41.5040740Z 1: $SRC_DIR/onnxruntime/test/framework/inference_session_test.cc:2847: Failure
2023-06-22T15:08:41.5041090Z 1: Expected equality of these values:
2023-06-22T15:08:41.5041430Z 1:   f
2023-06-22T15:08:41.5041870Z 1:     Which is: 1.99999987e-38
2023-06-22T15:08:41.5042190Z 1:   (set_denormal_as_zero) ? 0.0f : denormal_float * 2
2023-06-22T15:08:41.5042500Z 1:     Which is: 0
2023-06-22T15:08:41.5043320Z 1: 2023-06-22 15:08:41.500 onnxruntime_test_all[96353:290026] 2023-06-22 15:08:41.500739 [W:onnxruntime:Default, config_options.cc:45 AddConfigEntry] Config with key [session.set_denormal_as_zero] already exists with value [1]. It will be overwritten
2023-06-22T15:08:41.5044150Z 1: 2023-06-22 15:08:41.502846 [V:onnxruntime:inter_thread_pool_denormal_as_zero, sequential_executor.cc:534 ExecuteThePlan] Number of streams: 1
2023-06-22T15:08:41.5045070Z 1: 2023-06-22 15:08:41.502912 [V:onnxruntime:inter_thread_pool_denormal_as_zero, sequential_executor.cc:518 ExecuteKernel] stream 0 launch kernel with idx 0
2023-06-22T15:08:41.5045560Z 1: [  FAILED  ] InferenceSessionTests.InterThreadPoolWithDenormalAsZero (4 ms)

but apparently it is a known issue: https://github.com/microsoft/onnxruntime/issues/13225 . Probably we can just patch it.

Thanks @jtilly!


help: message: Merging two reserved nodes!

Edit: See comments below. The contents of this post were fixed while I typed it.
So… Was about to give the new rewrite a try. I even cargo cleaned and changed use logos::Logos; to use logos::*; to be extra sure. I may still being a dumb-dumb, but here's what I get:
error[E0407]: method `lexicon` is not a member of trait `logos::Logos`
 --> formi_syntax/src/token.rs:7:10
  |
7 | #[derive(Logos, Copy, Clone, Eq, PartialEq, Hash, Debug)]
  |          ^^^^^ not a member of trait `logos::Logos`
  |
  = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0412]: cannot find type `Lexicon` in crate `logos`
 --> formi_syntax/src/token.rs:7:10
  |
7 | #[derive(Logos, Copy, Clone, Eq, PartialEq, Hash, Debug)]
  |          ^^^^^ not found in `logos`
  |
  = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0046]: not all trait items implemented, missing: `lex`
 --> formi_syntax/src/token.rs:7:10
  |
7 | #[derive(Logos, Copy, Clone, Eq, PartialEq, Hash, Debug)]
  |          ^^^^^ missing `lex` in implementation
  |
  = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
  = help: implement the missing item: `fn lex<Source, Self>(_: &mut logos::lexer::Lexer<Self, Source>) where Source: logos::source::Source, Self: logos::source::WithSource { todo!() }`

error[E0308]: mismatched types
 --> formi_syntax/src/token.rs:7:10
  |
7 | #[derive(Logos, Copy, Clone, Eq, PartialEq, Hash, Debug)]
  |          ^^^^^ expected fn item, found a different fn item
  |
  = note: expected fn item `for<'r> fn(&'r mut logos::lexer::Lexer<token::TokenKind, _>) {<token::TokenKind as logos::Logos>::lexicon::_handle_0_ws::<'_, _>}`
             found fn item `for<'r> fn(&'r mut logos::lexer::Lexer<token::TokenKind, _>) {<token::TokenKind as logos::Logos>::lexicon::_handle_1_ws::<'_, _>}`
  = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

Followed by the last one being repeated ad pretty much infinitum.
Rust version:
: rustc -V
rustc 1.44.0-nightly (02046a5d4 2020-03-24)

Updated to this one:
  nightly-x86_64-unknown-linux-gnu updated - rustc 1.44.0-nightly (699f83f52 2020-03-29) (from rustc 1.44.0-nightly (02046a5d4 2020-03-24))

Error persists.
Slip-up in the code gen? (I know some commits were about removing lexicon.) Or am I overlooking something?

Don't tell me rc4 fixed it. xD

Yeeeeeeeeeeeeeep, it's late, I didn't bump logos-derive dependency in logos :P

Happens! :heart:
Now I get this, however:
error: proc-macro derive panicked
 --> formi_syntax/src/token.rs:7:10
  |
7 | #[derive(Logos, Copy, Clone, Eq, PartialEq, Hash, Debug)]
  |          ^^^^^
  |
  = help: message: Merging two reserved nodes!

I don't know whether that's a logos limitation or bug or something. The only new token rule I uncommented is XID identifiers, and commenting that one out again leaves me with the same error. Interested in the full token struct?

Nah, that's logos alright. I believe I know why this is happening, will get to it tomorrow.

Thanks lad, looking forward to the fix. =)
I highly appreciate your work! (And kept other hobby lang devs hyped.)

Not sure this is actually fixed, please close if so.

Oh my… it compiled. And damn fast at that.  It's 4:00 here now, I'll be writing actual lexing test cases tomorrow, but this seems fixed. Thou art my hero! =)


S-7.1: As a user, I want my next class to be displayed in my calendar.

The calendar outputs the information of the next class.

[ ] Prepare UI to accept calendar information

[ ] Backend for fetching calendar information

Instead of doing oauth for google calendar we leveraged a flutter plugin that lets us browse all calendars stored on the phone (both iOS and Android).
This is a much more elegant solution for a couple of reasons :

No constant api calls and no internet connection required
No need find ways to store api tokens across app launches (alternatively, asking users to login every time they open the app but that would be horrible)
Support any calendar that can be added to your mobile phone
Support both iOS and Android equally, not forcing users to use Gcal.

PSA:
This only picks up calendars that have 'conco' or 'uni' in their name.
You can test by adding a new calendar in your emulators calendar app and adding some class events to that calendar.
@andrelegault you will need to login to your google account on the emulators for it to work properly.
@MichelRahme if you have a school calendar try logging in to you appleId to test


[Bug]: head config doesn't work on dev mode

Version
System:
    OS: Linux 6.1 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (2) x64 AMD EPYC
    Memory: 1.99 GB / 4.01 GB
    Container: Yes
    Shell: Unknown
  npmPackages:
    rspress: ^1.0.0 => 1.6.2

Details
// rspress.config.ts
export default defineConfig({
  // ...other config
  head: [
    '<meta name="description" content="Site Description" />'
  ]
});

head config doesn't work on dev mode but work on build.

Reproduce link
https://codesandbox.io/p/devbox/relaxed-golick-dtkvl3
Reproduce Steps
follow reproduce link.

We currently only adding head in renderPages process when in production build.
You can directly configure builderConfig.html.tags, it will work in both dev and production mode.


Changes in resman.go, resman/main.go and discosrv/main.go

I fixed some of the issues that I commented on, closing.


application not found return error. fix #685

issues #685

@majian159  Hi, thanks for your contribution, could you fix the CI

@wonderflow I can't seem to solve e2e-test.


Fixing Remove-DbaOrphanUser

Type of Change

[X ] Bug fix (non-breaking change, fixes #4766 )

Purpose

Fixing bug in Remove-DbaOrphanUser to appropriately determine which orphans users should be deleted
Approach

The fix here syncs the logic with Repair-DbaOrphanUser, and will no longer try to match $User variable if it is empty, but utilize it when present
Commands to test

I created 2 orphaned users in my Sandbox database to test/verify.  First, check that both are going to be dropped when explicitly named, then that only one is dropped when piped in.  Finally confirm all will be found/dropped if no piped in user information is provided
'domain\AdamWenger', 'domain\SecondOrphan' | Remove-DbaOrphanUser -SqlInstance $devInstance -Database Sandbox -Verbose -WhatIf # should drop both
'domain\AdamWenger' | Remove-DbaOrphanUser -SqlInstance $devInstance -Database Sandbox -Verbose -WhatIf # Should only drop the listed user
Remove-DbaOrphanUser -SqlInstance $devInstance -Database Sandbox -Verbose -WhatIf # Should drop all orphans

Screenshots

excellent, thanks much Adam!


Package request: Warfork

Project description
A demanding fast paced first person shooter with a focus on speed, aim, movement, and above all competitive play.
Metadata

homepage URL: https://warfork.com
source URL: https://github.com/TeamForbiddenLLC (several repos for the engine, textures, etc.)
license: GPLv2 (engine), CC0 and CC BY SA 3.0 US (several assets)
platforms: Linux

Is there a reason for making it its own package instead of just using Steam? Maybe I'm missing something (:

Steam is a proprietary platformst and other similar games like Xonotic are packaged on nixpkgs too. This would also make it easier to configure dedicated game servers.


In Caliptra TB 'fw' related tests compilation is failing.

Hi,
In the Caliptra TB 'fw_test_ecc_flow' compilation is failing with the below error:

can you please check?
Thanks
Rohith

Are you referring to fw_test_ecc384? I'm not seeing fw_test_ecc_flow.
The fw_test_* tests are maintained by the caliptra-sw team, they are busy finishing ROM 1.0 release. We will get an updated version of these tests after that is completed.
Right now, the tests that are kept up to date for caliptra_top_tb can be found here: src/integration/stimulus/L0_regression.yml


[Info]If you enable this plug-in, the UE 4.15 package project may fail.

:Workaround:
Disable this plug-in when running package project.
Maybe ... only the problem of UE 4.15.
bm9

Thank you very much for making im4u
however I have a problem
I'm importing XXX.vmd failed
Probably not bound to the skeleton
Naturally no movement
I hope to get Your guidance
Use UE 4.15.2
Thank you very much for your help


change order of onAfterUpdate

Initial fix for #166 workaround. Might also fix #73

Remove the update request before onAfterUpdate execution, which allow onAfterUpdate to set properties.
Order of traversing update and then onAfterUpdate on LIFO instead of FIFO. A Block now have all its children information when onAfterUpdate

I gonna keep this unmerged for a moment because of :

Remove the update request before onAfterUpdate execution, which allow onAfterUpdate to set properties.

Not sure what choice is better :

current : .set() coming from onAfterUpdate executions are not ignored, but doesn't request another update*
this PR :  .set() coming from onAfterUpdate executions are requesting another update. Leading to easy update on each frame if user didn't correctly check if the property is already the same.

* Exceptions for non primitive properties
In the other hand :

Order of traversing update and then onAfterUpdate on LIFO instead of FIFO. A Block now have all its children information when onAfterUpdate

Make sense to me, a parent will execute its onAfterUpdate on after any of its potential children.


Receive NullPointerException from standalone server in V1.1.0 during start up

Hi,
Please have a look at this.
F.Y.I. I've tried '-M'
Downloaded from: https://bintray.com/raphw/maven/documents4j/1.1.0
2019-09-04 13:30:28,635 ERROR [main] c.documents4j.standalone.StandaloneServer - The documents4j server terminated with an unexpected error
java.lang.NullPointerException: null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:878)
at com.documents4j.builder.ConverterServerBuilder.serviceMode(ConverterServerBuilder.java:228)
at com.documents4j.standalone.StandaloneServer.asBuilder(StandaloneServer.java:172)
at com.documents4j.standalone.StandaloneServer.main(StandaloneServer.java:51)
Cheers
Sam

There is a copy-pasted null check that I need to fix. Planning to release a corrected version tonight.

Hi @raphw,
Thanks for the update of 1.1.1
I cannot download documents4j-server-standalone-1.1.1-shaded.jar from https://bintray.com/raphw/maven/documents4j/1.1.1
Could you please check and re-upload if possible? (It is not shaded version)
Cheers
Sam

I can download the jar just ok. How did it not work for you?

Hi @raphw,
Thanks for your quick reply. I found it in 'Files' section now. I used to download it from 'Downloads'.
I will close this case.

Cheers
Sam


ContextMenu is fired twice and ends up never showing up

Context: https://github.com/hardcodet/wpf-notifyicon/issues/79
Didn't see any contribution instructions, so I just changed it in develop. Is this ok?

your changes have been merged, thanks for your contribution 👍


result-list may not be clear to new users

The drop down-menu's that default to Jam/Overall aren't explained anywhere. (As a Compo-entrant I also have strong and completely unbiased  opinions about defaulting to Jam, but that's another issue :yum:) Even explaining that they're drop-down menu's could help. Or make it into two sets of radio-buttons?

Should the results-list be left-to-right? It may be 'obvious' to us as Westeners, but right-to-left is default in other locales (as I'm sure you're aware). Not to mention the possibility of top-to-bottom, which may even confuse some of 'us' (until we start thinking about what the 'more' button does anyway, but an interface shouldn't be a puzzle :wink:).

Somewhat related to that: The (very cute by the way) prize-cup-icons don't differentiate between category in any way. Which wouldn't really be that confusing if the last point where to be solved, but clearness (IMHO) really takes a hit when you combine these three points. (See 2nd screenshot.)

ETA: Note that the category I've selected for the screenie has another 'issue': It has a shared winner, for bonus confusion!

Trying to answer some of the points...but in general I agree that the games-view borrowed from when event is in voting mode isn't a good way of displaying the results. It's a matter of just having something there and that was the only list of games we had. Now we have https://ldjam.com/events/ludum-dare/40/mygrades too, and I think vertical layout would be nice here too. I think it is unfortunate that both participation categories are not visible at the same time as default.

Special icons per category. This is basically what has been discussed for #1282, and if you scroll down on that issue Mike summarizes a list of what he likes. While no final conclusion has been reached, I think that if someone talented makes those as svg:s we would quickly implement them across the site where they apply.

In some cases on some backgrounds (like the lower right in your second image) the current icons don't stand out very well and are easy to miss.

I think that one way to present results would be to have two columns left jam right compo (jam is the larger event). And show top 10ish games as a vertical list. Each game card could then also be a bit more than just the image allowing to list all info about placements using the svg-icons. It is a bit problematic though because ldjam.com is not only designed to host ldjam, but also to do mini-jams. For those there may be less or more participation categories. So results need to be data-driven in how these columns are made. And needs to work for other number of categories.

We could hack in a bit of description in the code in the filter component (the first image) that if when voting is done and results are out display some text. Again this isn't really good since this should be data fetched from the event participation categories (jam/compo) and/or the voting categories.

On a personal note, while I agree this is important. I feel more stressed about how much we rely on Mike to be able to run an event at all and it think the dev-team would need to grow if we're going to be able to deal with this until next time. (Unless one of the other's feel strongly about the results list)

On a personal note, while I agree this is important. I feel more stressed about how much we rely on Mike to be able to run an event at all and it think the dev-team would need to grow if we're going to be able to deal with this until next time. (Unless one of the other's feel strongly about the results list)

Understandable, and I sympathize. Personally I'm satisfied that (one of) the team can see how this is a problem for some people, and is thinking about these issues, no matter when the eventual solutions will be implemented.
(I also think it's unfortunate that I brought up this specific 'long term' issue as the only one today, but I couldn't reproduce the far more direct, easier, others that bothered me the last few days.)
As for the dev.-team growing... I hope that this happens, but for me personally I'm very probably going to continue to just report issues for the foreseeable future. (And even then, I don't know too much about the 'web' part of web-dev.)

#1008


This app isn't still online

500 , lol
And doesn't work in local environment , possibly code is broken

The app is permanently down due to Instagram restricting API access to only approved applications. I didn't want to go through app approval process because I don't think my webapp adds any value to Instagram now that it has an official website where they should user profiles.

k


fix some checkstyle 2.0

I can continue from here! I see some of the views still not refactored yet and there are some minor Checkstyle issues, but thank you for your hard working!


RESTful API swagger docs

This is a continuation of #110 which adds a Swagger definition file for the REST endpoints. I'd like a review of the swagger.yaml file contents please.
(For ease-of-reading I would recommend pasting it in to e.g. http://editor.swagger.io/)

Aw man. Same branch.

No but it has the other branch as it's parent

But commit 0a82d13b19ea0f8aa3aabcd140caaf3274a8e5b4 is the only substantial piece so far.

I'm merging this into the feature/5.x/rest-api branch

No wait, on second though I have a remark myself ... I don't like that this PR bundles all of swagger-ui into the source code tree. It would be much better to just download swagger ui as part of the build.

Closing this and #110 in order to create a new PR without all the commit-bound remarks.


[interactor] Better graceful shutdown

fixes #41
Though I'm gonna think about this some more, what I have here works but
I think I can make this better
And I need unit tests and to play with it some more and also I'm
changing core photons here

Is the idea to still send a SIGTERM to the running process, just handle it better? Because I don't see a way to trigger the shutdown from a Interactor command.

Is the idea to still send a SIGTERM to the running process, just handle it better? Because I don't see a way to trigger the shutdown from a Interactor command.

ah, yes, I should add that too.
But yes, I want to make sigterm actually be graceful, cause currently it very much isn't
This file will never be done lol :
https://github.com/delfick/photons/commits/main/modules/photons_app/runner.py
https://github.com/delfick/photons/commits/fcd7466c5ae29335e0675ac69559001b9adcf365/photons_app/runner.py
It's very complicated.
I have an idea I'll start working on to make it better though.

ah, yes, I should add that too.
But yes, I want to make sigterm actually be graceful, cause currently it very much isn't
This file will never be done lol :
https://github.com/delfick/photons/commits/main/modules/photons_app/runner.py
https://github.com/delfick/photons/commits/fcd7466c5ae29335e0675ac69559001b9adcf365/photons_app/runner.py
It's very complicated.
I have an idea I'll start working on to make it better though.

I’m glad you think it’s complicated too  😁

I’m glad you think it’s complicated too  😁

hehhehehe

hehhehehe

Fixed better in #48


1.15 rc2

PR Checklist for RC2
Please review your items on this checklist and check them off on the list when you have verified their functionality on https://beta.hydroshare.org

[x] Fix for creator/contributor identifier bug #2672 (@pkdash)
[x] [#2653] update the create resource help page #2667 (@sblack-usu)
[x] [#2567] expose folder downloading to rest api and update file url i… #2664 (@sblack-usu)
[x] [#2478] resend activation email #2654 (@sblack-usu)
[x] Adding blank issue and pull request templates #2650 (@aphelionz)
[x] Add javascript to reset map list. #2649 (@alvacouch)
[x] Keep management commands from crashing unexpectedly in unusual situations. #2642 (@alvacouch)
[x] [#1867] email subscribe #2640 (@sblack-usu)
[x] HOTFIX-1.15-RC1-fix for author optional identifier xml encoding #2634 (@pkdash)
[x] GET and PUT Endpoints for File Metadata #2633 (@aphelionz)
[x] [HOTFIX] - add the merge migration #2632 (@sblack-usu)
[x] [#2590] - increase time for group email links expirary #2631 (@sblack)
[x]  [#2567] download folder zips #2626 (@sblack-usu)
[x] [#2474] Fix for appearing horizontal scrollbars #2625 (@Maurier)
[x] [#2607] Removing unnecessary Save step in workflow (@Maurier)
[x] [#1666] point to latest django irods #2622 (@sblack-usu)
[x] [HOTFIX][#2615] Fix for Authors and Owners listing #2618 (@Maurier)
[x] [HOTFIX][#2615] Author and owner listing fix on hover and click behavior (@Maurier)
[x] Update utils.py #2616 (@aphelionz)
[x] [HOTFIX] Resolve merge conflict preventing 1.15 build #2613 (@alvacouch)
[x] Adding recaptcha2 back to signup #2598 (@aphelionz)
[x] Hotfix disable captcha 2 (@aphelionz)
[x] Disabling Captcha (@aphelionz)
[x] Adding more messaging to DOI reservation #2589 (@aphelionz)
[x] [#2562] add abstract to resource list #2588 (@aphelionz)
[x] Swagger needs these to be explicit lists #2587 (@aphelionz)
[x] Minor theme change to 'reserve' DOI #2586 (@aphelionz)
[x] [#2426] discovery phrase matching #2578 (@alvacouch)
[x] Allowing supports_folders for CompositeResource #2561 (@aphelionz)
[x] [#2147] generate iRODS tickets #2198 (@alvacouch)
[x] [#2537] folder permissions (@aphelionz)
[x] new gitignore changes #2555 (@aphelionz)
[x] Fixing scimeta root endpoint (@aphelionz)
[x] Updating admin.py to add email field #2550 (@aphelionz)
[x] doing apt-get update before doing apt-get install #2542 (@hyi)
[x] [#2116] Responsive layout fixes #2541 (@Maurier)
[x] Remove useless index step #2532 (@alvacouch)
[x] Merging Master back into Develop #2528 (@aphelionz)
[x] Fixing org page again #2526 (@aphelionz)
[x] [#1566] quota #2525 (@hyi)
[x] Optional author identifiers #2524 (@Maurier )
[x] Hotfix sign up org bug #2523 (@aphelionz)
[x] 1.15 rc2 hotfix keyerror #2699 (@aphelionz)
[ ] Adding DOI to resource listing API #2693 (@aphelionz)

Build finished.

Issues identified testing beta.hydroshare.org

Attempt to create an account with “Brigham Young University” as organization results in error.  Can we get the fix to #2673 that @sblack-usu has worked on into this deploy.

Curious thing - an account did actually end up being created, because when I tried again I could not reuse the same email but had to reset the password, and when I got in it said my institution was BYU.

The way users are listed if you go in as admin has changed.  On beta you get

On www you get

Thus on beta it is not possible to sort by date and find recently created accounts to resolve problems (or delete a test one)

Quota messaging needs love and care.  When I log in I get

“Your action to add content …” makes no sense because the only action I did was to log in.  Also the  message refers to<EMAIL_ADDRESS>and mentions pages.hydroshare.org.  We are now using<EMAIL_ADDRESS>and help.hydroshare.org.

We have discussed the right tone for these messages quite a bit.  My latest suggestions were in an email message on 2/14/18 in a document QuotaMessages.docx, that I have now just uploaded to Google.  This is important because it is a public relations issue.  We do not want to appear draconian when we roll out quotas.
I am actually able to create new resources (despite the message), and do not get a warning despite being over quota.  The quota warning appears only when I log in.  I also do not get emails warning me about over quota.
Related quota issues are #1566, #2196, #2605, #2606.

Build finished.

Build finished.

Build finished.

Build finished.

Build finished.

@cbcunc It looks like the build is timing out... can you have a look?

Build finished.

Build finished.

retest this, please

Build finished.


kubegres can't recover if all statefulsets are deleted

Starting with a health cluster with 3 replicas:
$ kubectl describe kubegres postgres-uaa
Status:
  Blocking Operation:
    Stateful Set Operation:
    Stateful Set Spec Update Operation:
  Enforced Replicas:            4
  Last Created Instance Index:  5
  Previous Blocking Operation:
    Operation Id:  Replica DB count spec enforcement
    Stateful Set Operation:
      Instance Index:  5
      Name:            postgres-uaa-5
    Stateful Set Spec Update Operation:
    Step Id:                   Replica DB is deploying
    Time Out Epoc In Seconds:<PHONE_NUMBER>
Events:                        <none>

Delete the statefulsets:
$ kubectl delete sts postgres-uaa-2 postgres-uaa-4 postgres-uaa-5

The following error is seen:
Events:
  Type    Reason                                   Age                From                 Message
  ----    ------                                   ----               ----                 -------
  Normal  FailoverCannotHappenAsNoReplicaDeployed  25s (x2 over 26s)  Kubegres-controller  A failover is required for a Primary Pod as it is not healthy. However, a failover cannot happen because there is not any Replica deployed.

The error makes sense because no replica is available. However, its unclear how to recover the cluster. Although the statefulsets were deleted, the PVCs still exist, and the database is intact.
Using promotePod is not possible because we cannot promote a pod that is not running.
As a workaround, I was able to manually create a statefulset out of band, and then promote the pod. But this process was kind of error prone (editing index labels) and unclear. I'm not sure I did it right, but it seemed to work eventually.
Feature idea: maybe a promotePVC option that can start the statefulset from an existing PVC.

Hi, we are running into a similar situation.
In our case, a few nodes in our k8s cluster were restarted. When we attempted an upgrade for postgres, we started seeing this:
kubectl get statefulsets.apps -n postgres
NAME            READY   AGE
postgres-16-1   1/1     149d
postgres-16-2   1/1     149d
postgres-16-4   1/1     78d

kubectl describe kubegres -n postgres
Status:
  Blocking Operation:
    Stateful Set Operation:
    Stateful Set Spec Update Operation:
  Enforced Replicas:            3
  Last Created Instance Index:  4
  Previous Blocking Operation:
    Operation Id:  Replica DB count spec enforcement
    Stateful Set Operation:
      Instance Index:  4
      Name:            postgres-16-4
    Stateful Set Spec Update Operation:
    Step Id:                   Replica DB is deploying
    Time Out Epoc In Seconds:<PHONE_NUMBER>
Events:
  Type    Reason                                   Age                 From                 Message
  ----    ------                                   ----                ----                 -------
  Normal  FailoverCannotHappenAsNoReplicaDeployed  73s (x10 over 13h)  Kubegres-controller  A failover is required for a Primary Pod as it is not healthy. However, a failover cannot happen because there is not any Replica deployed.

There are 2 replica's postgres-16-2 and postgres-16-4. However, kubegres thinks there is no replicas.
@alex-arica , any chance you can have a look at this please?
Thanks.


Italian

The italian translation, already reviewed by @awgn
I opted to keep the linked articles titles in English, so as not to mislead the reader into thinking they are translated too.
cc @jacquerie @nadirs in case you still want to give it a read

Awesome. I'll give people a few days to look it over and if no corrections are suggested, I'll merge it.
Thank you! :bear: :pineapple:

Okay, assuming this is good to merge. Thank you @doppioslash !
:it: :smiley_cat: :+1:


Should Transaction.Commit check the return value of pdo->commit()?

I found that in Tranaction.php, the return value of commit is ignored. But according to the document of pdo, commit() will return true or false. So is it right to ignore the return value?
In http://php.net/manual/en/pdo.commit.php ：

Returns TRUE on success or FALSE on failure.

In https://github.com/yiisoft/yii2/blob/master/framework/db/Transaction.php#L157 the return value of commit() is ignored.

$this->db->pdo->commit();

Please let me know if I do not make it clear. Thanks!

Is there any update about this issue? Thanks!

It's planned to deal with it closer to 2.0.14 release. If you have time for a pull request with unit tests, it has a chance to get into 2.0.13.

@samdark I am not familiar with php. But I would like to fix it.

FYI: https://bugs.php.net/bug.php?id=66528

Not sure how we could trigger commit() to return false, probably need to dig into PDO source code.

https://stackoverflow.com/questions/23851360/pdocommit-success-or-failure

https://github.com/php/php-src/blob/master/ext/pdo/pdo_dbh.c#L602

Seems it's not a good idea to check it.


Resolved conflicts

Pull Request Test Coverage Report for Build 671

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 99.137%

Totals

Change from base Build 670:
0.0%

Covered Lines:
804

Relevant Lines:
811

💛  - Coveralls


Toggle markdown rendering per-column

Problem
If cell contents were originally written in plain-text and then imported\copypasted, markdown rendering can easy distort them (a single > symbol at start of the line can result to next lines being rendered as block-quote; dialogs with - at start of each line are turned into lists with giant spacing, and the like).
Solution
In column settings add new toggle "Render markdown". If disabled - render as plaintext.
Additional details
No response

Great idea. Will add to the next build.


Swap - Loading State for Route Options

Description
I added loading state for route cards with three cards to have a centered menu instead of four

How has this been tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] The related ClickUp task has been linked to this PR
[ ] The person creating the pull request is listed in "Assignees"
[ ] My code follows the code style of this project .
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Screenshots or Loom Video (if appropriate):[
](https://www.loom.com/share/2f315421b0ea4fd2aa235bc394aa9006)

Task linked: CU-2dtd17t UI: Swap - Loading State for Route Options


ARM Deploy: Cannot read property 'artifacts' of undefined

Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Environment

Server - VSTS

If using VSTS, provide the account name, team project name, build definition name/build number:
https://intentional.visualstudio.com/intent/Apps/_apps/hub/ms.vss-releaseManagement-web.cd-workflow-hub?definitionId=7&_a=definition-tasks&environmentId=11

Agent - Hosted or Private:

If using Hosted agent, provide agent queue name: Hosted VS 2017

Issue Description
I'm using Azure Resource Group Deployment v2.* and am trying to edit the Override template parameters in the new grid view.
When I open that view I see the following error:

Looks similar to #5372 but nothing happened there.
Error logs
Can't tell how to capture Debug Logs based on the link provided at the top.

@sachinma any ideas on this?

I think the reason for this is that you have use ** in the path. For us to be able to download the file and show the parameter name in the grid, we require the full path of the files. You can use ... button near the template file input to select the exact file path. That should resolve this.
Adding @hililh to work on improving the message here

Adding @ds-ms as well

Ah, ok I'll try it with the absolute path. Surely we can change the Task to use Resolve-Path or something like that in order to find the file? I'd rather not specify it absolutely as the drop name, build name, etc can change.

@ds-ms can you fix the error message in this case.

Fix has been merged. Should reach all rings in 1-2 weeks.


CI for Node

Append CI for Node to this commit and start a New PR

CI for node#2 merge to this branch


az rest fails to parse json whitespace

Describe the bug
Using powershell, az rest fails to parse my json correctly. I already read issue #9742 where @konrad-jamrozik had troubles parsing json correctly and he ended up having to escape the quotes (with \" not `", the .ps1 escape character). So I tried that, but it didn't solve all my problems. After some fiddling I found the problem: It was the whitespace in a string.
To Reproduce
The following code fails:

$uri = "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/myRsg/providers/Microsoft.ApiManagement/service/myApim/apis/myApi?api-version=2019-01-01"

$oauthServiceName = "myOauthService"
$description = "my api description"
$displayName = "my api"
$serviceUrl = "http://localhost"
$uniqueApiPath = "myapi/"

$payloadBody = @{
    properties = @{
        authenticationSettings = @{
            authorizationServerId = $oauthServiceName
        }
        description = $description
        displayName = $displayName
        serviceUrl = $serviceUrl
        path = $uniqueApiPath
        protocols = @(
            "http"
        )
    }
}| ConvertTo-Json -Compress

$payloadBody = $payloadBody -replace "`"", "\`""

az rest --method put --headers "Content-Type=application/json" --uri $uri --body $payloadBody

Error:
az: error: unrecognized arguments: api description","serviceUrl":"http://localhost","authenticationSettings":{"authorizationServerId":"myOauthService"},"path":"myapi/","protocols":["http"],"displayName":"my api"}}

While if we remove the whitespace from both the description and display name it will succeed:
$description = "myApiDescription"
$displayName = "myApi"

Expected behavior
When using the portal whitespace is allowed, so I expect the json to parse correctly when using whitespace.
Environment summary
Install Method: MSI
CLI version: 2.0.73
OS: Windows 10
Shell Type: Powershell

@jurgyy Thanks a lot for your feedback. I am out of office now and I will have a look when come back.

Any updates?
In the meanwhile, some debug information:
With the following body
{\"foo\":\"this is foo\",\"bar\":\"this is bar\",\"description\":\"this is desc\",\"baz\":\"this is baz\"}

az rest with the --debug flag shows the problem
 Command arguments: [
    'rest',
    '-m',
    'put',
    '--headers',
    'Content-Type=application/json',
    '-u',
    'https://management.azure.com/subscriptions/{subscriptionId}?api-version=2019-01-01',
    '-b',
    '{"foo":"this', 'is', 'foo","bar":"this', 'is', 'bar","description":"this', 'is', 'desc","baz":"this', 'is', 'baz"}',
    '--debug'
]
...
az_command_data_logger : command args: rest -m {} --headers {} -u {} -b {} {} {} {} {} {} {} {} {} --debug
...
cli.azure.cli.core.parser : az: error: unrecognized arguments: is foo","bar":"this is bar","description":"this is desc","baz":"this is baz"}
az: error: unrecognized arguments: is foo","bar":"this is bar","description":"this is desc","baz":"this is baz"}

Notice the strange comma separation of the json in the command arguments and the number of {} in az_command_data_logger.

If anyone encounters this issue before it is fixed I've found that writing the json to a temporary file and reference that works fine:
$dict | ConvertTo-Json -Depth 100 > "./tmp/body.json"
az rest -m put --headers "Content-Type=application/json" -u $uri -b<EMAIL_ADDRESS>

@jurgyy Hi, this problem is also related to the parsing of :\, which has a special meaning in PowerShell, like: about_providers, about_locations
So : and \ can be separated by spaces in the script as work around, like:
$payloadBody = $payloadBody -replace "`"", "\`"" -replace ":\\", ": \"

You can have a try. If you still have any questions, please feel free to let us know~

@jurgyy any feedback ?

I haven't tested it myself yet, but if it works this workaround is fine I guess. Not much you can do about Powershell's special characters anyway. Thanks!

@jurgyy OK, I'll close it first. If you still have any other questions, please feel free to let us know~


Render simple smart answer format

Update controller to read content from content store, add specialised presenter for the schema. We remove any tests to do with draft, as we don't use editions anymore to determine if a draft item is being viewed. Also there is no cacheing happening on the draft stack so we can remove the code that conditionally set the expiry headers. We also remove the fixtures for 'bridge of death' and prefer to move it into the test itself.
For https://trello.com/c/2ucbq949/643-migrate-simple-smart-answer-format-to-rendered
PS: Hot tip from @issyl0, use 'w=1' as query param to ignore white space changes, it'll make the diff more pleasant to look at 🎉  -> https://github.com/alphagov/frontend/pull/1134/files?w=1

We checked with @boffbowsh about the snyk failure and it's fine to ignore for this PR!

Yep


Validate part drivers

Sorry no time right now to retrieve the details and how it can fit in O2.

But, when submitting a content item form, the idea is to have the ability to Validate model values of all parts without any database writing, this before creating and / or updating a content item.
As an example, in O1, we are using a workaround to reduce transaction logs related to comment submissions through the front end (then we also needed to adapt the audit trail module).
Also have a content type Versioned option. Then, when publishing, if this option is set a new content item version is created, otherwise the current version is updated.

Best.

I think everything is already handled, in O2 a content item is already a version. And none is created if the object is not valid, but I need to validate it as I haven't tried for a while. I agree with the concern.
I don't understand the Versioned requirement. How is that different from Draftable in O1?

Indeed we could use the Draftable option but we would need to adapt its usage, that why i talked about a new option to be more clear.
As i remember, even with Draftable = false, in the admin controller a content item is first querried with the DraftRequired option, so a new content item is always created.
Here, according to the option, we would need to use the Latest option ... I already do this but don't remember details.

For the Validate driver you are right, none is created if the object is not valid, but you need to do a transaction Cancel(). So the suggestion is to minimize these transaction logs.
In the comments module, we first create a fake content item in memory then call UpdateEditor() on it. Then we check the model, then use Create(), re_use UpdateEditor() (a 2nd time), then Publish().

Also have a content type Versioned option. Then, when publishing, if this option is set a new content item version is created, otherwise the current version is updated.

You need to be more explicit about the differences between Versioned and Dratftable, what you are defining is exactly what O1 is doing:

For Validate, I know exactly what you are talking about, but I think O2 does it differently already. Let's check I assume if there are no SQL queries between new Transaction and Cancel, then there is no impact at all, otherwise any SELECT would write in the log, as all of them are in transactions too.

@sebastienros so, at least i re-tried it on O1 (will do it on O2 if it is possible)
First, conditionallyPublish() depends on contentItem.Has<IPublishingControlAspect>() which is true when you have a PublishLater part. So 1st without this part.
1. Not Draftable and no PublishLater part

So, you only have the Save button, not the Publish one, and when the content is saved it is automatically published ... Seems to be ok.

But when re-editing where you get the Latest item, because it is Published and VersionOptions.DraftRequired is used, a new version is created through BuildNewVersion().

So here, on each saving you get a new version in the database.

2. Not Draftable but with PublishLater part

1st, not sure it's good to display the PublishLater button when not Draftable.

So, here when saving the content it is not automatically published and here no new version is created.

To publish the content you can use the PublishLater button or go to the contents list and then use the Publish link. If a published version already exists, you have to use before the Unpublish link.

Here, when publishing no new version is created, only the latest which is a draft is marked as published.

But when the latest is published, if you re-edit and save it, as above, a new version is built.

3. Note on Widgets

Before, Widget was ok, on each saving no new version was created. But, after adding the ability to publish / unpublish them, things has been done as other content items.

So, now in O1 each time you save a widget you also get a new version item in the database.

Suggestion
So, in all scenarios multiple versions items are created in the database. My goal is to have the ability to prevent from this. Need to retrieve the details but the suggestion would be:

When editing a non Draftable content, use the Latest option in place of DraftRequired. Then the content is published as before on saving (see below for the PublishLater button special case).

So, after a first publishing, when you re-edit your content you act on the latest and already published content, and you don't create a new version because you don't use DraftRequired.

But here the PublishLater will be useless. So maybe use the above only if there is no PublishLater part. Or consider that if a content type is not Draftable we don't display the PublishLater button.

Best.

To return back to the Validate part.

I assume if there are no SQL queries between new Transaction and Cancel, then there is no impact at all

Here, not sure if some SQL queries can have more impact than others when done before a transaction cancel, but i was mainly thinking about the creation of a new ContentItemVersionRecord and ContentItemRecord before validating the model.

Obsolete


Generalize node expansion

Move "expanded" functionality data off of the Node model and onto the User model. Store a dictionary of context keys on the user's object, and each context key would have a dictionary of node id keys and boolean values to represent expanded state. In the V1 api, the expand and collapse routes should just presume that the context is the project dashboard. In the V2 api, the route should determine the context. Some contexts may include additional path information to handle folders. So the dictionary would look something like:
'expansions': {
    'collections': {
        'amp': True,
        'amr': False,
        'jxur5': False,
        'b11in': False,
    },
    'files': {
        'jxur5': True,
        'jxur5/osfstorage': False,
        'jxur5/osfstorage/folder1': True
    },
}

expansions routes would be GETs or PUTs. PUTs would include a true or false value to set the state. I think in a query parameter. Additional path information would be included in a query parameter. So, for example, with the data above, ignoring the lack of proper quotes:
GET /users/me/expansions/collections/amp/
data: { collection_id: "amp", expands: true }

PUT /users/me/expansions/files/jxur5/?expands=False
data: { node_id: "jxur5", expands: false }

GET /users/me/expansions/files/jxur5/?path=osfstorage%2Ffolder1
data: { node_id: "jxur5", path: "osfstorage/folder1", expands: true }

That sort of thing. If we need to, we could override the context key with a query parameter, which would let the file widget optionally have a different context than the files page, for example.
This will require a database migration to move existing data from nodes to users and to modify the format. Also, the v1 routes will have to be modified to work properly with this.

Update this to work with the user object

Possibly should be an expand route rather than expands, since it's not a collection. I don't yet have strong feelings on this.

@lbanner @GaryKriebel  Implementation details aside, I think saving of expanded/collapsed state sitewide--or at least for all file trees--is worth serious thought for next epic.

That would be a feature I would not mind having.
On Mon, Aug 3, 2015 at 2:48 PM, Steven Loria<EMAIL_ADDRESS>wrote:

@lbanner https://github.com/lbanner @GaryKriebel
https://github.com/GaryKriebel Implementation details aside, I think
saving of expanded/collapsed state sitewide--or at least for all file
trees--is worth serious thought for next epic.
—
Reply to this email directly or view it on GitHub
https://github.com/CenterForOpenScience/osf.io/issues/3054#issuecomment-127367959
.

1 ping @erinmaywood as well. Thanks.


Html escaping escapes characters inside

Currently, the HTML escaper escapes characters insider the

Yes this is by design to avoid malicious code injection.
You can use html.dangerouslySetHtml() to avoid escaping.
Maybe we should rename dangerouslySetHtml as it doesn't have to be HTML. The only thing dangerouslySetHtml does is to skip escaping.

Oh, that completely skipped my mind, that should definitely fix the issue!

Yea but I feel like we should rename dangerouslySetHtml.
Maybe dangerouslySkipEscaping instead?

I am not too bothered with the rename or not as from react a similar feature is name dangerouslySetInnerHtml
I was not aware and putting two and two together for using already available html.dangerouslySetHtml()
P.S
As expected using html.dangerouslySetHtml() worked as intended to fix my issue.

Rename is released in 0.1.0-beta.48.


Responsive ButtonGroup

I have implemented a <ButtonGroup> in my application with different <Button> linking to my social networks.
I am now trying to make my entire application responsive, however, depending on the display size, if the width of the <ButtonGroup> exceeds the width of the parent container, in this specific case, a <Paper> component, the look of the <CustomParentComponent> gets messed up as you can observe on the following screenshot for an IPhone X sized display (375x812px):

To solve this issue, I would like to set up breakpoints (xs, sm, md, lg, xl) to programmatically control when the multiple <Button> within the <ButtonGroup> component gets stacked up vertically rather than horizontally.

I would suggest 1 to implement #17884, 2. to use useMediaQuery to toggle the orientation prop when needed.

This comment resolves my issue, thanks @oliviertassinari!

@aress31 Looking at your screenshot, it seems that we miss a flex-shrink: 0; property on the items. Wouldn't it help a bit not to shrink?

On which item, the  container or its parent container?

I was thinking of the button itself, it would avoid the spacing to shrink, in your very example, it would make the button group longer;


Legend don't works with stange message

Project datas:
https://github.com/camptocamp/demo_geomapfish/tree/printV3/print/print-apps/demo
Result:

12:52:21.747 [http-8080-1] INFO  p.mapfish.print.servlet.spec - spec:
        {"outputFormat":"pdf","layout":"A4 portrait old api","attributes":{"title":"","legend":[{"classes":[{"name":"hospitals","icons":["http://geomapfish.demo-camptocamp.com/sbrunner/wsgi/mapserv_proxy?TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=hospitals&FORMAT=image%2Fpng&SCALE=100000"]}],"name":""}],"gridList":[],"map":{"center":[542000,154000],"scale":100000,"rotation":0,"layers":[],"projection":"EPSG:21781","dpi":254,"longitudeFirst":true},"comments":""}}
12:52:21.758 [ForkJoinPool-1-worker-2] INFO  o.m.p.processor.ProcessorGraphNode - Executing process: JasperReportBuilder(/srv/tomcat/tomcat1/webapps/print-demo-sbrunner/print-apps/demo/.)
12:52:21.758 [ForkJoinPool-1-worker-3] INFO  o.m.p.processor.ProcessorGraphNode - Executing process: LegendProcessor
12:52:21.758 [ForkJoinPool-1-worker-3] INFO  o.m.p.processor.ProcessorGraphNode - Succeeded in executing process: LegendProcessor
12:52:21.758 [ForkJoinPool-1-worker-2] INFO  o.m.p.processor.ProcessorGraphNode - Succeeded in executing process: JasperReportBuilder(/srv/tomcat/tomcat1/webapps/print-demo-sbrunner/print-apps/demo/.)
12:52:21.759 [ForkJoinPool-1-worker-4] INFO  o.m.p.processor.ProcessorGraphNode - Executing process: CreateMapProcessor
12:52:21.815 [ForkJoinPool-1-worker-4] INFO  o.m.p.processor.ProcessorGraphNode - Succeeded in executing process: CreateMapProcessor
12:52:21.831 [PrintJobManager-2] INFO  o.mapfish.print.servlet.job.PrintJob - Error executing print job f8a0f43a-07d7-47d4-9d4a-5e55258ff22b@3c94c543-d2a7-4d5d-be7b-66dcc4d39f7b
spec:
        {"app":"demo","outputFormat":"pdf","layout":"A4 portrait old api","attributes":{"title":"","requestHeaders":{"requestHeaders":{"content-type":["application/json; charset=UTF-8"],"connection":["close"],"accept-language":["fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3"],"host":["geomapfish.demo-camptocamp.com"],"accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"user-agent":["Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0"],"dnt":["1"],"pragma":["no-cache"],"cookie":["auth_tkt_sbrunner=\"618f9243f4a5f9ae016047b265ecc8df0e45c7465ee0fd157ca235f6d89f5916517e5f0a2e1db012d6939680ea23f8adf48e16471761e1f6ba3ab026b033812454e44caeYWRtaW4%3D!userid_type:b64unicode\"; auth_tkt_sbrunner=\"618f9243f4a5f9ae016047b265ecc8df0e45c7465ee0fd157ca235f6d89f5916517e5f0a2e1db012d6939680ea23f8adf48e16471761e1f6ba3ab026b033812454e44caeYWRtaW4%3D!userid_type:b64unicode\""],"cache-control":["no-cache"],"content-length":["528"],"accept-encoding":["gzip, deflate"],"referer":["http://geomapfish.demo-camptocamp.com/sbrunner/theme/Administration?map_x=542000&map_y=154000&map_zoom=0&debug"],"x-requested-with":["XMLHttpRequest"]}},"legend":[{"classes":[{"name":"hospitals","icons":["http://geomapfish.demo-camptocamp.com/sbrunner/wsgi/mapserv_proxy?TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=hospitals&FORMAT=image%2Fpng&SCALE=100000"]}],"name":""}],"gridList":[],"map":{"center":[542000,154000],"scale":100000,"rotation":0,"layers":[],"projection":"EPSG:21781","dpi":254,"longitudeFirst":true},"comments":""}}
com.vividsolutions.jts.util.AssertionFailedException: The following parameters are declared in A4_Portrait.jrxml but are not output values of processors or attributes.
Either remove the references or update the configuration so that all the parameters are available for the report.

        * legendSubReport

        at org.mapfish.print.output.AbstractJasperReportOutputFormat.checkRequiredValues(AbstractJasperReportOutputFormat.java:318) ~[AbstractJasperReportOutputFormat.class:na]
        at org.mapfish.print.output.AbstractJasperReportOutputFormat.getJasperPrint(AbstractJasperReportOutputFormat.java:170) ~[AbstractJasperReportOutputFormat.class:na]
        at org.mapfish.print.output.AbstractJasperReportOutputFormat.print(AbstractJasperReportOutputFormat.java:109) ~[AbstractJasperReportOutputFormat.class:na]
        at org.mapfish.print.MapPrinter.print(MapPrinter.java:138) ~[MapPrinter.class:na]
        at org.mapfish.print.servlet.job.PrintJob$1.run(PrintJob.java:116) ~[PrintJob$1.class:na]
        at org.mapfish.print.servlet.job.FilePrintJob.withOpenOutputStream(FilePrintJob.java:50) ~[FilePrintJob.class:na]
        at org.mapfish.print.servlet.job.PrintJob.call(PrintJob.java:113) [PrintJob.class:na]
        at org.mapfish.print.servlet.job.PrintJob.call(PrintJob.java:54) [PrintJob.class:na]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_75]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]

Did you get this before or after you commented out the <parameter name="legendSubReport" class="java.lang.String"/--> line?
because this means that the jrxml has a parameter legendSubReport which is not a value in the Values object.
Although given that there is an output of !prepareLegend, it is a bit surprising that it is not in values.

Effectively it's before I commented the line :-), I commented the line to go ahead.

Can I close this issue since it seems the error was the jrxml file and not mfp?

... what the solution ?

Legend has an output which is the legendSubReport but it is null unless the legend's template configuration parameter is declared.  Thus (naturally) the legend did not exist.

I have added logging so that you can see exactly what values are in the Values object before the template is rendered.


[Proposal] Live Trading

Please feel free to comment on this proposal if you have any questions/changes/ideas. If you'd like to help on anything, feel free to comment on this thread and tag me.
Goal
Create an interface that allows users to potentially live trade using Prophet. This interface should be modular to allow users to use a variety of different trading API connectors.
Implementation
The initial implementation should consist of two parts. The first part should be changes to the core library to allow Prophet to accept live data from multiple data sources and output orders in different formats as a stream. The second part will be an initial reference implementation of a FIX connector to allow Prophet to accept input data over FIX and output orders to a FIX API.
Accepting Data
The proposed implementation for accepting live data from multiple DataGenerators is to use the multiprocessing library and distribute the generators to multiple processes. The Prophet library will use a thread safe queue to accept input data from these processes and ask the OrderGenerator if an order should be generated from the new data. DataGenerators will now provide a run_live method for generating live data which will be appended to the end of the dataset generated by run. The DataGenerator class itself will have a noop run_live function (basically assumes there is no live data).
Generating Orders
Currently, orders are generated and processed by a backtest and only the backtest result is outputted. For live trading, we will need a daemonizable Prophet function (live_trade?) which will accept live data from DataGenerators and yield lists of Orders to a connector. This will equate to something along the lines of connector.receive([Order(), Order()]). It will be up to the connector to decide what to do with it. The connector should be able to optionally return what price the orders were filled at or whether the orders were filled at all. Connectors could also be used for debugging or other purposes (eg. just print the orders it receives).
FIX Connectors
An order connector and data generator should be written to provide examples of how to write Prophet connectors. Currently the most promising library seems to be quickfix. The data generator should be a simple python generator that outputs formatted data received the FIX API. The order generator should submit orders via the FIX API and return metadata about orders as they are filled.

@asiviero I was imagining you working on the FIX Connectors, but if you're busy, don't worry about it :)


Instructions to install Composer Globally

The kpm command installs Composer Globally, but the instructions in the page installs Composer locally. The proposed change presents how to install Composer Globally by hand.

@JaimeChavarriaga thanks!


⚠ Secret Website 1 has degraded performance

In 34acfb0, Secret Website 1 ($SECRET_WEBSITE_1) experienced degraded performance:

HTTP code: 200
Response time: 2503 ms

Resolved: Secret Website 1 performance has improved in dcdef67.


Automated Package Upgrade

:tada: This PR is included in version 26.0.25 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add optional parameter to TrySkipTurn to toggle whether it should abort if the current player is in check

Fixes my own feature request https://github.com/SebLague/Chess-Challenge/issues/298.
The TrySkipTurn method currently won't switch over to the next player if the current one is in check. With this change you can decide for yourself if you want this behaviour or not. You can keep using TrySkipTurn() to avoid skipping on check as before, or you use TrySkipTurn(skipEvenIfInCheck: true) if you do not care about check.

Have you tested that this works?
Also, it'd be nicer to just add a different function named "SkipTurn" than pass a bool parameter

I have added the function ForceSkipTurn() to the board class. Thanks for the suggestion!


Request for more info on Inventory

So far this seems to be the most complete game out there for CE that is also open source, only other stuff I can think of is humble bundle which you can't get anymore. And is not open source.
I saw a youtube video with one of your inventories. I did a quick look through the code and didn't see any flash ui for the inventory specifically. How functional is the inventory in this repo? Is it the same as the one on your youtube channel?
Also any load testing done? So far FireNET seems to be a chat api, with possibly trading built in or next planned. Can this also do typical MMO stuff yet? Like real time walking about with a friend online?

Hi.
First : Flash inventory it's my other project, currently it is not added, but it's planned in future.
Second : FireNET not "chat api" - it's master server for MMO games. Now he have :

Login system (You can login by login and password, you can use Redis and MySql database, also you can use php scripts for authorization)
Profile system. All profile have parameters like : uid, nickname, fileModel, level, money and etc. You can create profile, you can get profile by login and password in login system
Friends system. You can send friend invite to other player by nickname, you have decline or accept invite and add friend to list
Shop and storage system. You can get shop items from shop.xml script. You can buy item (if you have money and you level > minimal level for buying). You can get list you profiles items
Matchmaking system. You can register you game server in FireNET game server list. You can get game server by map name, gamerules or server name . You can join in you server and play with you friends (If you have dedicated machine with real ip address)

Now i work with integration in game server (load specific character model and inventory from FireNET)
In future i start work with Flash UI (Storage, shop, friends, and in-game inventory)
I hope that explains everything.

Great, I am excited to see the inventory.
I am interested in the MySQL, and have another question. I will ask here but also can open another issue if you prefer to keep things on topic.
For MySQL:
I saw here https://github.com/afrostalin/FireNET/wiki/[FireNET]-Console-variables-and-commands
that setting it to use MySQL is easy. The question is, how do I send/receive data to it. Like will your inventory example pull from database fields then, this would be ideal for my use, curious what you had planned.
Thanks for your hard work on this. Looks great.

You need integrate FireNET module to cryengine (https://github.com/afrostalin/FireNET/wiki/[CryEngine-Module]-Integration-to-CryEngine-(Automatic))
You need setup server to work with MySQL. Open bin/WIN64/debug folder and change server.cfg
db_mode = MySql
mysql_host = <IP_ADDRESS>
mysql_port = 3306
mysql_db_name = db name
mysql_username = user
mysql_password = password
You need create

New flowgraph node in cryengine module to send new query to FireNET (FlowNodes.cpp)
Add you packet in packet type selection (tcpconnection.cpp - > void ReadyRed())
New read function in FireNET (clientquerys.h + clientquerys.cpp)
New database function to send you data in MySQL (dbworker.h + dbworker.cpp)

It sounds complicated by the description, but it is actually quite easy to do looking at how these classes are arranged.
Or you can wait a little while I'll add a detailed lesson on the WIKI


global config file?

What do you guys think about a global config file directory like $XDG_CONFIG_DIRS/hypr and /etc/xdg/hypr as fallback for all hypr related stuff?
Having a system-wide configuration file is actually part of the xdg base directory specification.

$XDG_CONFIG_DIRS defines the preference-ordered set of base directories to search for configuration files in addition to the $XDG_CONFIG_HOME base directory. The directories in $XDG_CONFIG_DIRS should be seperated with a colon ':'.

Another benefit would that NixOSers wouldn't have to use home-manager to configure Hyprland from their configuration.nix.

@fufexan kowalski, analysis

You don't need HM to configure Hyprland. It'll create a config file if ~/.config/hypr/hyprland.conf doesn't exist. You can then modify that as usual.
I'm not opposed to this change but using HM and having this be done are orthogonal.

You need home manager to place config files reproducably in your home directory. For global config files, you can use environment.etc.

Can I close this? Hyprland auto-generates a config file, which you do not need to manage with Home Manager.

I don't see how configuration file auto generation solves this. To change the configuration globally, one would need to recompile the changed nix expression every time and even then Hyprland would only use the new global config, if i delete the old one.
Yes, i can have editable configuration files floating around in my XDG_CONFIG_HOME, which i don't need home-manager to manage.
But if i want to include my Hyprland config in my reproducible NixOS config repository, I would either need home-manager, or a global config file.

Also, I don't see this as a NixOS only issue, because a global config file is something that could concern people on other distros too.

A solution until this is properly taken care of would be to write your config to /etc/xdg/hyprland.conf and starting hyprland with Hyprland -c /etc/xdg/hyprland.conf.
I don't know when I will have time, but I'll try to implement this.

Yeah, i gotta be honest, I've gone back to i3 at the moment, but thanks

@Quantenzitrone this issue should be closed or?

idk, not supporting the full xdg base directory specification is still not fixed, right?


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1390 ms

Resolved: Bofrost.at performance has improved in 7a6fd34 after 6 minutes.


cclient: added README.md [skip ci]

This PR fixed #288
Test Plan:
No

Great! We should provide a CMake-based integration example as well though :thinking:

Great! We should provide a CMake-based integration example as well though thinking

For fit this request and support different build systems, we should provide CMakeLists.txt and setup CI for building projects via CMake. In my opinion, we should finish all API implementation first and add CMake to a TODO task.


Fix firewall log categories

Resolves #3155
What is being addressed
Firewall logs were not present in every situation
How is this addressed

Revert back to the legacy diagnostic log categories as the new ones require turning on a preview feature on the subscription level. We should wait until it's not complicated to opt-in.

/test


Discovery interface does not consider target concept

Bug description
The plugin discovery interface provides a Describe(name) function to obtain a single plugin from the discovery as can be seen here:
https://github.com/vmware-tanzu/tanzu-cli/blob/45b251cecc87cabe3507b0817ef70c3056662dc9/pkg/discovery/interface.go#L26
With the introduction of "targets" in the CLI, a plugin is now uniquely identified by a name-target pair.  The Describe interface must therefore be updated to match.
This is not technically a problem at the moment  because a plugin discovery does not normally contain plugins for different targets.  For example a TKG OCI discovery will only contain plugins for the the k8s target, while a TMC REST discovery will only contain plugins for the tmc target.
But this is important to fix for the Central Repository which will hold plugins from different targets.
Expected behavior
When calling the Describe function on a discovery, it needs to be possible to specify the target.
Output of tanzu version
Today's main: 6ab6177d

After discussion, we have decided that instead of fixing the Describe() function, we would simply remove it.
The function is never used in the current code base, and fixing it would be tricky as the REST implementation does not provide support for specifying the target.
For the Central Repository implementation, we will not rely on this function, but will instead always use the List() function: it is more flexible by allowing us to return more than one plugin in some cases.


[ANDROID] Custom marker in child View not resizable

Summary
When I pass any styles, which change marker sizes, on android marker display incorrectly.
FillMapPinIcon - it's SVG-icon, which transformed by react-native-svg-transformer, I also tried to replace this component to default View and change it's styles, but result is the same.
I saw topics with the similar problem, but with Image component, and I not found any solution for plain View or Svg-s.
Maybe somebody faced with the similar issue and know any solution?
Reproducible sample code
import { memo } from 'react';
import { Marker } from 'react-native-maps';
import { ICoordinates } from '@root/api/events/dto';
import { FillMapPinIcon } from '@root/assets/icons';
import { theme } from '@root/styles/theme';

import { styles } from './styles';

interface IProps {
  location: ICoordinates;
}

export const MyLocationMarker = memo((props: IProps) => {
  const { location } = props;

  return (
    <Marker coordinate={location} style={styles.container}>
      <FillMapPinIcon color={theme.mainExtra} />
    </Marker>
  );
});

// styles.ts
import { StyleSheet } from 'react-native';
import { s } from '@utils/scaleUtils/scale';

export const styles = StyleSheet.create({
  container: {
    width: s.width(54),
    height: s.height(54),
  },
});

// MapScreen -> return

return (
  <View style={styles.container}>
    <MapView
      style={styles.map}
      initialRegion={initRegion}
      onRegionChange={handleRegionChange}
    >
      {<MyLocationMarker location={currentLocation} />}
      {eventList.map(event => <EventMarker key={event.id} event={event} />)}
    </MapView>
  </View>
);

Steps to reproduce
In Marker component use any View with sizes more than 24px.
Expected result
Marker will need to looks like on iOS

Actual result

React Native Maps Version
1.15.2
What platforms are you seeing the problem on?
Android
React Native Version
0.74.1
What version of Expo are you using?
Not using Expo
Device(s)
Android Emulator
Additional information
No response

+1

Hi !
I had the same issue.
If you want a fast solution:
First use a <View/> inside your marker and apply padding, then you can play with your icon margin width and height
Before
    <Animated.View testID={`pin-${type}`} {...rest} style={[scaleStyle]}>
      <Image source={markerTypeMark[type]} />
    </Animated.View>

After
    <Animated.View
      testID={`pin-${type}`}
      {...rest}
      style={[
        {
          padding: 8,
        },
        scaleStyle,
      ]}
    >
      <Image
        source={markerTypeMark[type]}
        style={{
          width: 40,
          height: 52,
          marginTop: 8,
        }}
      />
    </Animated.View>

@QuentinGrange Hi!
Thank you for proposal, but anyway, in my case it's does't work (
<Marker coordinate={location} style={{ backgroundColor: 'red' }} zIndex={MAIN_LVL}>
  <View style={{ padding: 8 }}>
    <FillMapPinIcon
      color={theme.mainExtra}
      style={{
        width: 40,
        height: 52,
        marginTop: 8,
      }}
     />
  </View>
</Marker>

also I tried to use a Image and added width and height in View, marker not resizable in Android(

Also I faced with the same issue but with Callout:
iOS:

Android:

And if tooltip off:

code:

return (
  <Callout tooltip onPress={handlePress}>
    <View style={styles.container}>
      <BlurView blurAmount={5} style={styles.blurView} />
      <AppText style={styles.title}>{event.title}</AppText>
      <View style={styles.content}>
        {contentTooltips.map((item, idx) => item && (
          <TooltipItem key={`${idx + item.title}`} {...item} />
        ))}
      </View>
    </View>
  </Callout>
);

container: {
    width: 200,
    borderRadius: 6,
    overflow: 'hidden',
  },
  blurView: {
    ...StyleSheet.absoluteFillObject,
  },
  title: {
    color: theme.mainBasic,
    fontFamily: Fonts.RobotoBold,
    fontSize: 12,
    paddingHorizontal: 8,
    paddingVertical: 4,
    borderBottomWidth: 1,
    borderColor: theme.mainBasic,
  },
  content: {
    display: 'flex',
    flexDirection: 'row',
    flexWrap: 'wrap',
    gap: 4,
    padding: 8,
  },

+1

I found a temporary solution for my case!
for some reason Marker does not change size and always maintains the initial size of the component it is inside, so when increasing the size of the child component we have this problem that you mentioned.
One solution I found was to change the style of the Marker to a larger size so I could change the size of my child component and make it work!
      <Marker
        key={key}
        coordinate={{
          latitude,
          longitude,
        }}
        style={{
          height: key === 'selected' ? 70 : 40,
          width: key === 'selected' ? 70 : 40,
        }}
        >
          ...your component here
        </Marker>

I checked the MapMarker.java in module.
private Bitmap createDrawable() {
    int width = this.width <= 0 ? 100 : this.width;
    int height = this.height <= 0 ? 100 : this.height;
    this.buildDrawingCache();

    // Do not create the doublebuffer-bitmap each time. reuse it to save memory.
    Bitmap bitmap = mLastBitmapCreated;

    if (bitmap == null ||
            bitmap.isRecycled() ||
            bitmap.getWidth() != width ||
            bitmap.getHeight() != height) {
      bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
      mLastBitmapCreated = bitmap;
    } else {
      bitmap.eraseColor(Color.TRANSPARENT);
    }

    Canvas canvas = new Canvas(bitmap);
    this.draw(canvas);

    return bitmap;
  }

Change this code's static int to the number what you want
int width = this.width <= 0 ? 99999 : this.width;
int height = this.height <= 0 ? 99999 : this.height;

Somehow this component can't get this.width, this.height.
I think this.width, this.width are handled by MapMarkerManager.java's update(width : int, height : int)
But I'm am not familiar with Java. So the way could be having a problems.

@bongbong2da thank you, its helped me, but if seated a 9999, I got a exception, like stack overflow, but 200, for me it's work okay. So, maybe with callout is the same issue, try also check the native code.
In generally, I'm not close this issue, because it's hack, we've wait a fix from react-native-maps team.

So, yeah, for Callout I did the same fix.
MapCallout.java
public class MapCallout extends ReactViewGroup {
  private boolean tooltip = false;
  // NOTE: It's temporary hack for callout, because in default, this callout unscale
  // Flow this issue: https://github.com/react-native-maps/react-native-maps/issues/5068
  public int width = 800;
  public int height = 400;

Yeah this is definitely seems to be a valid bug, as when I attempted to create a marker bigger than the 100x100, no matter what I attempted to do, I would always end up with the following:

After upping the width to 200x200 in the MapMarker.java, it was no longer cropped:

+1

+1