Updated total amount when change the different currency

Details

Only amount of the first request is displayed in total
Fixed Issues

$ https://github.com/Expensify/App/issues/35209
PROPOSAL: https://github.com/Expensify/App/issues/35209#issuecomment-1911269115
Tests

Go offline
Click FAB > Request money > Manual.
Request money from a user that has no existing chat.
In 1:1 DM, click + > Request money.
Create another manual request in a different currency
Open the detail IOU page from second request
Change the currency into same as first IOU
Go to 1:1 conversation
Verify that: Total from two IOU requests be present, since both requests are in same currency

[x] Verify that no errors appear in the JS console

Offline tests

QA Steps

Go offline
Click FAB > Request money > Manual.
Request money from a user that has no existing chat.
In 1:1 DM, click + > Request money.
Create another manual request in a different currency
Open the detail IOU page from second request
Change the currency into same as first IOU
Go to 1:1 conversation
Verify that: Total from two IOU requests be present, since both requests are in same currency

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

https://github.com/Expensify/App/assets/129500732/8d370d48-22de-42ee-9838-685e60ae63f4

Android: mWeb Chrome

https://github.com/Expensify/App/assets/129500732/3420ca0c-3d40-4da1-98eb-e8ffce5044a8

iOS: Native

https://github.com/Expensify/App/assets/129500732/6b60862b-1506-4318-8e4f-319103cdfbc3

iOS: mWeb Safari

https://github.com/Expensify/App/assets/129500732/6b60862b-1506-4318-8e4f-319103cdfbc3

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/129500732/fc66156e-d790-4d96-b292-e87cadda3775

MacOS: Desktop

https://github.com/Expensify/App/assets/129500732/d77cb614-389c-4a84-af5b-caa84329e45d

TypeScript Checks are failing

TypeScript Checks are failing

@dukenv0307 ☝

@dukenv0307 Bump!

@dukenv0307 Bump again

All possible checks are failing, so let's fix that 🙂

It doesn't look right. The sum should be 100 PLN, not 120 PLN.
https://github.com/Expensify/App/assets/2590174/e413ac0c-404e-4d6d-8047-2759be4edf0e

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[x] I checked that screenshots or videos are included for tests on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native
https://github.com/Expensify/App/assets/2590174/61a15b15-1deb-4eaf-8abd-f335921cb142

Android: mWeb Chrome
https://github.com/Expensify/App/assets/2590174/6df94c5c-0adc-46ff-be06-46551772e32f

iOS: Native
https://github.com/Expensify/App/assets/2590174/ca2fb952-4c22-4c54-a921-6b29e7035e26

iOS: mWeb Safari
https://github.com/Expensify/App/assets/2590174/52a9b03b-bc6a-4cbc-8cb9-513e547e342d

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/2590174/751bf6ea-eb17-4214-b0ab-5dd07a875523

MacOS: Desktop
https://github.com/Expensify/App/assets/2590174/6f8545a7-29b2-4a42-87e5-7db8a422768f

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/tylerkaraszewski in version: 1.4.43-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.43-20 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


[feature] phi-3 model support

Support eager attention, flash attention2 and sliding window for Phi3-mini-128k-instruct @mikecovlee

ARC-C + LoRA = 84.2%


Platform KPI's

Need 10 or so key KPI's for the CP Platform.

List of existing KPI endpoints are:
Badges service:

Number of badges awarded: /api/1.0/badges/kpi/number_of_badges_awarded
Number of badges published: /api/1.0/badges/kpi/number_of_badges_published

Users service:

Number of youths registered: /api/1.0/kpi/number_of_youths_registered
Number of champions and mentors registered: /api/1.0/kpi/number_of_champions_and_mentors_registered
Number of youth females registered: /api/1.0/kpi/number_of_youth_females_registered

So we still have to write a few. In the meantime we could make a dashboard with the existing ones.

Would also be good to get the country breakdown of the following;

Badges awarded
Youths registered
Champions registered
Mentors registered

Also for Dojos using ticketing features;

Total number of Dojos using ticketing (ever)
Total number of Dojos who have used ticketing recently (3 months)
Total number of live events

According to the API description, we allready have some of those, like badges awarded
GET              /api/2.0badges/kpi/number-of-badges-awarded
GET              /api/2.0badges/kpi/number-of-badges-published
However probably broken regarding how the path is built :p

Should probably be extended to data gathered from  https://github.com/CoderDojo/community-platform/issues/964


Snippets and Inserts don't work

Nothing happens when I choose Snippets or Inserts. I don't get the UI steps what appear in your animated gif.

Hi @Rick-Kirkham , can you send us to OS and VS Code version you're using so we can look into it?  Thanks

Hi @Rick-Kirkham , one additional question.  When working in VS Code, is your workspace scoped to the root of your cloned repo?

Windows 10
VSC 1.21.1
There's no repo, I just opened and MD file in VS Code.

Thanks for the info Rick.  The insert functionality works at the workspace-level (the clone in this case).  Once VS Code is opened from the root of the clone it provides environment context to the extension which allows for recursion, link creation, etc.  It would be good for the extension to provide information to the user if insert commands are used on a single file instead of through a workspace.  I've tagged this as an enhancement for upcoming releases.

Resolved in release 0.0.2.  Notification message has been updated and will appear in the lower right corner of the VS Code window by default.


feat: Add process status tracker

Description
This replaces the backgroundProcessManager class with a functional processStatusTracker component.
Wrote new unit tests for the tracker.
Task Item
#minor
related to #8066
Screenshots
N/A

Coverage remained the same at 54.656% when pulling 850ee0d6f67a15933e55654c930c41a06c6e1e59 on gcox/add-process-tracker into 20886706dc34d61dcf271aa9f380ac92ef7feec4 on main.


Exception thrown when attempting to use type(Key.CMD) on macOS

Description
A ValueError is thrown when attempting to use Lackey 0.7.0 to automate the macOS 'cmd' key. The error message reads: 'ValueError: Unrecognized character: windows'.
Notes

OS macOS 10.12
Python version: 2.7
Lackey version 0.7.0

Steps to reproduce

Launch a Terminal window.
Launch python
import lackey
lackey.type('m', lackey.KeyModifier.CMD)

Result
The following traceback is produced:
`[action] Typing 'm' with modifiers '{CMD}'
ValueError                                Traceback (most recent call last)
 in ()
----> 1 lackey.type("m", lackey.KeyModifier.CMD)
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lackey/RegionMatching.pyc in type(self, *args)
910         kb = keyboard
911         if modifiers:
--> 912             kb.keyDown(modifiers)
913         if Settings.TypeDelay > 0:
914             typeSpeed = min(1.0, Settings.TypeDelay)
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lackey/InputEmulation.pyc in keyDown(self, keys)
299                 if special_code in self._SPECIAL_KEYCODES.keys():
300                     # Found a special code
--> 301                     keyboard.press(self._SPECIAL_KEYCODES[special_code])
302                 else:
303                     # Wasn't a special code, just treat it as keystrokes
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keyboard/init.pyc in press(combination)
629 def press(combination):
630     """ Presses and holds down a key combination (see send). """
--> 631     send(combination, True, False)
632
633 def release(combination):
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keyboard/init.pyc in send(combination, do_press, do_release)
621         if do_press:
622             for key in keys:
--> 623                 _os_keyboard.press(to_scan_code(key))
624
625         if do_release:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keyboard/init.pyc in to_scan_code(key)
599         return key
600     else:
--> 601         scan_code, modifiers = _os_keyboard.map_char(_normalize_name(key))
602         return scan_code
603
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keyboard/_darwinkeyboard.pyc in map_char(character)
388     """ Returns a tuple of (scan_code, modifiers) where scan_code is a numeric scan code
389     and modifiers is an array of string modifier names (like 'shift') """
--> 390     return key_controller.map_char(character)
391
392 def name_from_scancode(scan_code):
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keyboard/_darwinkeyboard.pyc in map_char(self, character)
303             return (128+self.media_keys[character],[])
304         else:
--> 305             return self.key_map.character_to_vk(character)
306     def map_scan_code(self, scan_code):
307         if scan_code >= 128:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keyboard/_darwinkeyboard.pyc in character_to_vk(self, character)
151             elif self.layout_specific_keys[vk][1] == character:
152                 return (vk, ['shift'])
--> 153         raise ValueError("Unrecognized character: {}".format(character))
154
155     def vk_to_character(self, vk, modifiers=[]):
ValueError: Unrecognized character: windows`

On a hunch, try running pip install --upgrade keyboard (or pip3 if appropriate).

No, I take that back. It was actually broken in a more recent version of keyboard, and I was using an older one.

I have opened a pull request on the keyboard module that should fix this. In the mean time, you can use the following workaround to revert to the older version:
pip uninstall keyboard
pip install keyboard==0.10.0

Yes, rolling back to Keyboard 10.10.3 seems to have resolved this for me. Thanks!

This should be resolved in the latest version of keyboard.


2022: Securely send files w/o any special account login

Issue
When 2 parties are sharing digital files, it might be safe to say if both parties use the same cloud service e.g. Google Drive / Onedrive / dropbox.com, same instant messaging. However, if 2 parties are communicating from different system e.g. Email, file servers on different cloud services, I don't know more secure way that is not easily hacked by non-expert.

FYI, a personal VPN option: NordVPN https://nordvpn.com/blog/is-gmail-secure/ (I'm sure there are tons of good options though)

Takeaways:

Many people using email to share files despite lack of security (techrepublic.com): Do encryption.
How to Share Files Securely Online (wired.com): Existing options to share files, none of the options seem to talk about an option that offers private network.
 (theverge.com): Seems to share my concern. Unfortunately all options introduced are not free so it's costly to try them out.
Sending securely attachments over email (security.stackexchange.com): Mainly list up built-in option.
Is using Gmail and encrypted documents enough for secure email communication? and others: Stupid but zip + password, then share pw via different channel other than email, is still far better than nothing. I may fall for that for now...


Prevent package-lock.json being committed

This PR adds package-lock.json to our .gitignore file. An additional check is also added into our presubmit jobs to be safe.

Fyi, I thought about having the GH action comment on the PR if any of the jobs fail, with steps to fix, but it looks like it won't work nicely when the PR is originating from a forked repo due to security settings. There is a way around it, but that requires having a proxy HTTP server (or serverless function) - which probably isn't worth it for a project this size.


UI not updated after epic actions

This is a...

[x] bug report

What toolchain are you using for transpilation/bundling?

[x] @ angular/cli

Environment
NodeJS Version: 8.2.1
Typescript Version: 4.4.2
Angular Version: 4.3.2
@angular-redux/store version: 6.5.7
@angular/cli version: (if applicable) 1.2.6
OS: OS X, Ubuntu
Link to repo showing the issues
private, happy to share as much code as possible tho
Expected Behaviour:
UI updates after action.
Actual Behaviour:
UI does not update after action.
Additional Notes:
this happens for actions that are two levels deep in epics (redux-observable, as recommended by this repo), for example I have one epic that asynchronously emits another action which is picked up by another epic, and it is the actions emitted by the second epic that do not result in a UI change until I click somewhere.
I have played around with NgZone to no avail, using it literally everywhere in the epics. I followed the conversation in #259 by checking NgZone.isInAngular() everywhere but even when I could confirm the epics all worked in Angular, nada!
the ui is listening thru the @select decorator, and i know that works because i tried subscribing to this and the results are output to console while the UI is not updated.

Can you give an example of your reducers? if you have accidentally mutated a slice of state instead of returning a new copy - it can cause change detection to not pick things up when you expect.

thanks for the response @e-schultz . you were right, that the state was mutated, however i updated it to create a new object and still no success. when the login error is returned as a result of an Observable catch method, the UI is not updated until I click.
export const errorReducer: Reducer<IErrorStore> = (
    previousState: IErrorStore = ERROR_STORE_INITIAL_STATE, action: Action<Error | string>
): IErrorStore => {
    const nextState: IErrorStore = Object
        .keys(previousState)
        .reduce(
            (acc, key) => acc[key] = previousState[key], {}
        );

    switch (action.type) {
    case ErrorActions.REMOVE:
        nextState[<string> action.payload] = null;

        return nextState;
    }

    if (!action.error) {
        return nextState;
    }

    switch (action.type) {
    case LoginActions.USER_LOGGED_IN_ERROR:
        nextState.login = <Error> action.payload;

        return nextState;
    default:
        return nextState;
}

Where in your chain is the catch being attached? looking at the redux-observable docs on error handling - if you put a catch on the .ofType - it can kill the stream, which may be causing a problem.

i think it is correct. here is my epic:
    login = (action$) => {
                return action$.ofType(LoginActions.DO_LOGIN)
                    .mergeMap(
                        () => {
                            const state = this.ngRedux.getState();

                            const headers = new Headers({
                                'Authorization': `Bearer ${state.auth.jwt}`
                            });

                            return this.http
                                .get(`${state.config.apiUrl}/me`, {headers})
                                .map(
                                    response => {
                                        return {type: LoginActions.USER_LOGGED_IN, payload: response.json().data};
                                    }
                                )
                                .catch(
                                    err => {
                                        /*
                                          Todo: why does returning an action naturally not
                                          update the UI?
                                        */
/*
                                        this.errorActions.add({
                                            type: LoginActions.USER_LOGGED_IN_ERROR,
                                            payload: new Error('Failed to login.'),
                                            error: true
                                        });
*/

                                        return [{
                                            type: LoginActions.USER_LOGGED_IN_ERROR,
                                            payload: new Error('Failed to login.'),
                                            error: true
                                        }];
                                    }
                                );
                        }
                    );
    }

Hi,
Was just playing around with an epic in the example repo - and didn't have any issues with the action returned from a .catch updating the state, although wondering if there could be issues with:  payload: new Error('Failed to login.'), intead of simply payload: 'Failed to Login'
login = action$ => {
  return action$.ofType(LoginActions.DO_LOGIN).mergeMap(() => {
    const state = this.ngRedux.getState();

    const headers = new Headers({
      Authorization: `Bearer ${state.auth.jwt}`
    });

    return this.http
      .get(`${state.config.apiUrl}/me`, { headers })
      .map(response => {
        return {
          type: LoginActions.USER_LOGGED_IN,
          payload: response.json().data
        };
      })
      .catch(err => {
        return [
          {
            type: LoginActions.USER_LOGGED_IN_ERROR,
            payload: new Error('Failed to login.'),
            error: true
          }
        ];
      });
  });
};

This should work.
However, if you had:
class Something {
  login = action$ => {
    return action$.ofType(LoginActions.DO_LOGIN).mergeMap(() => {
      const state = this.ngRedux.getState();
      const headers = new Headers({
        Authorization: `Bearer ${state.auth.jwt}`
      });

      return this.http
        .get(`${state.config.apiUrl}/me`, { headers })
        .map(response => {
          return {
            type: LoginActions.USER_LOGGED_IN,
            payload: response.json().data
          };
        })
        .catch(err => {
        // this catch isn't returning any observables or any values - so the stream dies out
        // and could be causing other things to not trigger

          this.errorActions.add({
            type: LoginActions.USER_LOGGED_IN_ERROR,
            payload: 'Failed to login.'
            error: true
          });
        });
    });
  };
}

Tweaked the epic/service locally in my example to force a failure:
private createLoadAnimalEpic(
    animalType: AnimalType
  ): Epic<AnimalAPIAction, IAppState> {
    return (action$, store) =>
      action$
        .ofType(AnimalAPIActions.LOAD_ANIMALS)
        .filter(action => actionIsForCorrectAnimalType(animalType)(action))
        .filter(() => animalsNotAlreadyFetched(animalType, store.getState()))
        .switchMap(() =>
          this.service
            .getAll(animalType)
            .map(data => this.actions.loadSucceeded(animalType, data))
            .catch((response: any) => {
              return [
                this.actions.loadFailed(animalType, {
                  status: '' + response.status
                })
              ];
            })
            .startWith(this.actions.loadStarted(animalType))
        );
  }

and didn't have an issue from that.

right, it actually does work in other epics, what i had meant in the OP (and subsequently forgotten until now now...) was that this epic is invoked by another epic. basically i have one epic that loads the initial state, and if the user is logged in, then retrieve the user, which triggers the epic in question.
furthermore, i ask this because catch()has to return an action, so in my real code below, i have to return a fake action. also note how i need to use ngZone.run() to use the router, because the UI does not update otherwise (despite the console showing the correct redux state)
                            return this.http
                                .get(`${state.config.apiUrl}/me`, {headers})
                                .map(
                                    response => {
                                        let target: string;

                                        if (state.config.displayOnOpen) {
                                            target = '/draw-options/viewer';
                                        } else {
                                            target = '/draw-options/image-controls';
                                        }

                                        this.ngZone.run(
                                            () => this.router.navigateByUrl(target)
                                        );

                                        return {type: LoginActions.USER_LOGGED_IN, payload: response.json().data};
                                    }
                                )
                                .catch(
                                    err => {
                                        /*
                                          Todo: why does returning an action naturally not
                                          update the UI?
                                        */

                                        this.errorActions.add({
                                            type: LoginActions.USER_LOGGED_IN_ERROR,
                                            payload: new Error('Failed to login.'),
                                            error: true
                                        });

                                        return [{
                                            type: 'IGNORE_ME'
                                        }];
                                    }
                                );

Hey, just wondering if this is still an issue? been falling behind on some things - if you still need help I can leave this open

@e-schultz yes this is still an issue. if you have any pointers i'm happy to try and help out and find the fix but i'm out of ideas 😢


Fix derived register attributes and add test case

In particular, I was running into issues with the FRT_TCCP1 register, derived from FRT_TCCP0 in the Spansion/MB9BF46xx.svd.

Thanks @robbederks


Don't Merge! PR real time test for webhook case

Docs Build status updates of commit 36ca118:
:clock10: Pending: waiting for processors (14 builds ahead of you)
:warning: Docs Build is busy, currently there are 14 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 36ca118:
:clock10: Full build: the average full build time is 6 min(s) 7 sec(s), this is based on the last 452 build(s) for this repository.

Docs Build status updates of commit 36ca118:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

docs-ref-conceptual/testing.md
:white_check_mark:Succeeded
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 36ca118:
:clock10: Full build: the average full build time is 6 min(s) 6 sec(s), this is based on the last 454 build(s) for this repository.

Docs Build status updates of commit 36ca118:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

docs-ref-conceptual/testing.md
:white_check_mark:Succeeded
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[next] Socket connection not working

Describe the bug
Connecting to a socket connection fails. and it returns an error -
Error : {type: connection_error, payload: parsing ClientMessage failed: Error in $: expected ClientMessage, encountered String}
{type: error, id: e6d5801c-284b-4630-abac-37e9885c0b90, payload: start received before the connection is initialised}
To Reproduce
Connect to a socket connection and it displays this error message in the console,
I have tested my socket connection and it works perfectly with Apollo Graphql Client.
Expected behavior
Connect to a socket connection to be used in subscription.
Screenshots

Console output while connecting to socket

Fixed by #147

Not yet solved...I am also facing this issue. Although my websocket works perfectly with my react app.

what version of this app are you using?

Version 1.0.0+4
I had to customize your code and make the following change to get it working:
`dynamic toJson() {
final Map<String, dynamic> jsonMap = <String, dynamic>{};
jsonMap['type'] = type;
if (payload != null) {
  jsonMap['payload'] = json.encode(payload);
}

//return json.encode(jsonMap); Removed this line
return jsonMap; // Instead returned the Map directly and all worked fine

}`

Can you please check if this example  is going to help, i know the documentation may not be up to date. It has a working subscription and is easy to get up and running on your device.

@ArpanKIIT2017 suggestion seems to be correct, I'm working on this.

:tada: This issue has been resolved in version 1.1.1-beta.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add possibility for property composition

Description
Wrapping elements is currently a cumbersome process. While element inheritance would solve a good portion of the issues, sometimes this is not feasible due to using the mediator pattern with other (custom) elements.
These problems are apparent in pull requests/issues like https://github.com/PolymerElements/app-route/pull/135, https://github.com/PolymerElements/paper-dropdown-menu/pull/178 which also depended on https://github.com/PolymerElements/paper-menu-button/pull/96 as a result of a change in iron-dropdown.
Proposed API
To automatically expose such properties to wrapper elements, add a new composeWith which references the id of the to-be-composed element.
<template>
  <child-element id="idOfElement"></child-element>
</template>

Polymer({
  is: 'parent-element',
  <...>
  composeWith: [
    'idOfElement'
  ],
  <...>
});

Given that child-element exposes the properties foo and bar, whenever the property foo is set on the parent-element, the value is automatically propagated to the child-element in its template. Consequently, if foo is set to notify: true, the parent-element will also notify changes.
In essence this composition similar to behaviors, however it only exposes properties to the parent and automatically processes updates to their values in both directions. Overriding properties should be equal to the process employed with behaviors.

What would happen when composing multiple children with clashing properties?
What about attributes? (ones that are assigned as $= in the child element)

I have to say... I don't know. It feels to me like there would be so many moving parts automatically bundled together...

In case of multiple children, using composeWith:
<template>
  <element-one id="firstElement"></element-one>
  <element-two id="secondElement"></element-two>
</template>

Polymer({
  is: 'parent-element',
  <...>
  composeWith: [
    'firstElement',
    'secondElement'
  ],
  <...>
});

Whereas the current version would be
<template>
  <element-one id="firstElement" value1="{{value1}}" value2="{{value2}}"></element-one>
  <element-two id="secondElement" value1="{{value1}}" value2="{{value2}}"></element-two>
</template>

Polymer({
  is: 'parent-element',
  <...>
  properties: {
    value1: {
      type: String,
      notify: true
    },
    value2: {
      type: String,
      notify: true
    }
  },
  <...>
});

While the boilerplate is significantly reduced, the most important result is that when a property is added to firstElement this is also reflected in parent-element. This exactly prevents pull-requests as described in the issue description.

This is now possible with custom element inheritance and retrieving super.template.


Issue with conversion

Describe the problem you discovered
we have in some methods
   if (isHex(data)) {
      data = Uint8List.fromList(hexToUint8List(data));
    } else {
      data = Uint8List.fromList(utf8.encode(data));
    }

An error appears if data is a utf8 string with hex characters
Exemple: i try to create a transfer with a secret "abc". The aesEncrypt method doesn't work
Describe the solution you'd like
No response

add a facultative boolean param "contentHex" in each method who has this condition to check if the content is hex


Error adding images to pdf

When I was trying to create an image on the pdf I get the following error messages:
** (UnicodeConversionError) invalid encoding starting at <<255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>
    (elixir) lib/list.ex:839: List.to_string/1
    (elixir) lib/enum.ex:1899: Enum."-join/2-lists^foldl/2-0-"/3
    (elixir) lib/enum.ex:1899: Enum.join/2
    lib/imagineer/image/png/compression/zlib.ex:27: Imagineer.Image.PNG.Compression.Zlib.decompress/1
    lib/imagineer/image/png/compression.ex:14: Imagineer.Image.PNG.Compression.decompress/1
    lib/imagineer/image/png/data_content.ex:12: Imagineer.Image.PNG.DataContent.process/1
    lib/imagineer/image/png/chunk/decoders/end.ex:6: Imagineer.Image.PNG.Chunk.Decoders.End.decode/2
    lib/imagineer/image/png.ex:60: Imagineer.Image.PNG.process/2
    lib/imagineer.ex:27: Imagineer.detect_type_and_process/1
    (gutenex) lib/gutenex/pdf/images.ex:19: Gutenex.PDF.Images.load/1
    (casplog) lib/casplog/helper.ex:39: Casplog.Helper.export_to_pdf/4
    lib/casplog/generator.exs:14: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6

The sample image I am trying to use is this one:

Wondering what could be the problem? Thanks.

Your image is with color_type 6, which is not supported.
More info at https://github.com/SenecaSystems/gutenex/issues/3


Returning anonymous result from Java cell results in compilation error

This is not an issue if you assign the result to a variable, and then return the variable...

Hi thanks for the bug report, can you publish a notebook that reproduces that and link us to it?

It seems to be related to multiline expressions... see notebook linked below...
https://nbviewer.jupyter.org/gist/anonymous/01e4d55477cd289dbab32554831acc6b

Our long term plan is to support JShell but we are currently blocked on java9:
https://github.com/conda-forge/openjdk-feedstock/issues/21


Implement api

Created  new game with the name of own choice by using the API.
the ID of the game returned by API saved using localstorage.
Implemented the "Refresh" button that get all scores for the game created from the API
Implemented the form "Submit" button that save a score for the game created.
Used arrow functions instead of the function keyword.
Used async and await JavaScript features to consume the API.

Thanks

Hi @rotimiazeez ,
Thanks for noticing my commit messages. I changed the commit messages accordingly. Thanks


🏛 [EPIC] : Catalyst Voting Power and Registration capture

Summary
Add functions to capture voting power and registrations in support of RBAC requirements
JIRA Epic
https://input-output.atlassian.net/browse/NPG-8577
Description
This Epic tracks the work to capture Voting power information and registration data in Catalyst Voices.
Todo
Voting Power (Native ADA)

[x]  Initial low level design for catalyst gateway / follower mechanics.

[x]  Gateway follower boostrap with initial blockchain indexing.

[x] Index transactions and utxo data.

[x] Obtain stake credential from TX payloads

[x] Mithril snapshot benchmarks

[x] Capture latest UTXO Data from Cardano live from the chain (internal task of catalyst voices)

[x] DB Query to insert a block of UTXO data into database (replacing any obsoleted data).

[x] Capture latest Spent TXO Data from Cardano live from the chain (internal task of catalyst voices)

[x] DB Query to insert a block of Spent TXO data into database (replacing any obsoleted data).

[x] Create DB query to read all UTXO data into memory from DB (Or a time banded portion of UTXO data).

[x] Create DB query to read all Spent TXO data into memory from DB (Or a time banded portion of UTXO data).

[x] Create a function to calculate for a given stake address, at a given time, the total UTXO associated with that address at that time (from the in-memory data) #309.

[x] https://github.com/input-output-hk/catalyst-voices/issues/378

[x] https://github.com/input-output-hk/catalyst-voices/issues/395

Registration Data

[x]  Capture and parse latest CIP15/36 Registration data on a periodic basis (internal task of catalyst voices)

[x] DB Query to insert a block of CIP15/36 registration data into database (replacing any obsoleted data).
[x] #293

[x] Create DB query to read all Valid CIP 15/36 registration data into memory from DB.
[x] Create DB query to read all invalid CIP 15/36 registrations for a stake address from DB.

Done.


Improvements to export and import to gridfield

The usability of the export and import actions (including support text) are in need of major improvements. I suggest some time is needed for a bit of wire-framing or design to come up with a suitable pattern (possibly put import into a popup or modal).

Export below Security gridfield

Import to gridfield options which are hidden within the main filter panel need to be more visible (like in the gridfield toolbar actions which sit directly above the gridfield).

There is also a hidden uplaod button for "import from CSV" which I'll raise as a separate issue.

Partial improvement included in PR here https://github.com/silverstripe/silverstripe-cms/issues/1491#event-794987275

This has already been made into a modal popup, this issue is replaced by https://github.com/silverstripe/silverstripe-framework/issues/6431


Windows 11 - Not Registering for Notifications

Hi,
On Windows 11 23H2, BlueBubbles is not registering itself for notifications.
Not listed in Settings > System > Notifications
Thus, I am not getting any notifications :(
Version: 1.12..7.0 from the Microsoft store.
Best,
Will

Well, guess it was just a delay thing. I did nothing and today working as expected. Odd.


I don't see the "Create a new virtual network option" as shown in the "Creating a pre-configured VNet" section

I don't see the "Create a new virtual network option" as shown in the "Creating a pre-configured VNet" section

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a7a98803-1438-b1b5-f543-7dd88bc4294e
Version Independent ID: 37ff1d0f-ed8e-5e4d-1f4c-1b9f6cffb938
Content: Integrate an app with an Azure Virtual Network
Content Source: articles/app-service/web-sites-integrate-with-vnet.md
Service: app-service
GitHub Login: @ccompy
Microsoft Alias: ccompy

Hi @rohan51, Thanks for the feedback! We are currently investigating and will update you shortly.

In the same boat. Now trying to manually configure and not having much luck.

@rohan51 and @shelwig thanks for bringing this to our attention. Your feedback has been shared with the content owner for further review.

At Ignite you announced these new VNET Integration features and UI experience. You mentioned that a bug was found and it was not publicly available during the talk but would be released sometime in October. Are we still targeting an October release ? @ccompy

Doc has been updated.


BHBC 1955: Summary Templates

Overview
Links to Jira tickets
BHBC-1955
Description of relevant changes

updated displayed errors
fixed sql fetching summary submission status

Testing

PR Pod currently has all templates uploaded
Download the 2.0 version Summary Templates from the resources page
Create/ Open a project
Create/ Open a Survey
Edit survey to have desired species (Moose, Elk, Sheep, Goat or Caribou)
upload species summary template to survey

PR Checklist
A list of items that are good to consider when making any changes.
Note: this list is not exhaustive, and not all items are always applicable.
Code

[ ] New files/classes/functions have appropriately descriptive names and comment blocks to describe their use/behaviour
[ ] I have avoided duplicating code when possible, moving re-usable pieces into functions
[ ] I have avoided hard-coding values where possible and moved any re-usable constants to a constants file
[ ] My code is as flat as possible (avoids deeply nested if/else blocks, promise chains, etc)
[ ] My code changes account for null/undefined values and handle errors appropriately
[ ] My code uses types/interfaces to help describe values/parameters/etc, help ensure type safety, and improve readability

Style

[ ] My code follows the established style conventions
[ ] My code uses native material-ui components/icons/conventions when possible

Documentation

[ ] I have commented my code sufficiently, such that an unfamiliar developer could understand my code
[ ] I have added/updated README's and related documentation, as needed

Tests

[ ] I have added/updated unit tests for any code I've added/updated
[ ] I have added/updated the Postman requests/tests to account for any API endpoints I've added/updated

Linting/Formatting

[ ] I have run the linter and fixed any issues, as needed
See the lint commands in package.json
[ ] I have run the formatter and fixed any issues, as needed
See the format commands in package.json

SonarCloud

[ ] I have addressed all SonarCloud Bugs, Vulnerabilities, Security Hotspots, and Code Smells

@AlfredRosenthal where are we storing the configs for this (wanted to install them locally)?

@AlfredRosenthal where are we storing the configs for this (wanted to install them locally)?
The inserts/ update SQL can be found in confluence as well as a branch in the utils repository

@AlfredRosenthal Should validation errors be displayed? I get the message "Resolve the following errors in your local file and re-import." but no other errors are displayed. Unless there is some work needed there that isnt part of this ticket?


Bugfix attendance

Description
Minor routing bugfix so that on click of the 'Attendance' on the menu sidebar the user is routed to the correct attendance component.
Video Link
Loom Video
Trello Link
Bugfix: clicking on attendance currently brings you to 'memos' page instead.
Type of change
Please delete options that are not relevant.

[X] Bug fix (non-breaking change which fixes an issue)

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have removed unnecessary comments/console logs from my code
[X] My changes generate no new warnings
[X] I have checked my code and corrected any misspellings
[X] No duplicate code left within changed files
[X] Size of pull request kept to a minimum
[X] Pull request description clearly describes changes made & motivations for said changes

Oh I wanted to add: before this is merged into main, should deprecate my modification to package.json! It was a local fix for firefox, but not something that needs to be added to the codebase. Also the view all meetings component has already been fixed, so the file here should be deprecated as well.


:bug: Add missing loophole dependency. Fixes #12

This commit add missing loophole module dependency
fixing problem in Atom editor as described in #12
Tested Win 8.1
atom-package-json: 0.1.14
Thanks!

This seems to be fixed in https://github.com/OmniSharp/atom-json-schema/commit/82b38dbc126130cfcaba2a70ddc69b6d5b5eaadc

@jerone
Thanks!


update year to 2022

hi @cronlabspl, I should warn you this pr is quite unlikely to be merged.
I remember seeing a similar pr last year (or the year before) wherein the year was incremented by one; however, the dev team of flarum refused to merge the pr since they worry such small changes might give malicious parties some privileges in the repository (since they should become contributors after contributing). this would however serve as a nice reminder to the dev team still.
also it would be nice if flarum dev team adds an action that automatically increments the years.


TODO: Need for organisation of links into sections

There's a need for putting the links and references under titled sections.
like the following:

Machine Learning

Link 1
Link 2

Containers

Docker link 1

Machine Learning

Machine learning for beginners


[#496][Pipelines] Adapt R9 branch to run Functional Tests pipelines

Fixes # 496
Description
This PR updates the yamls in the R9 branch to be able to run the current implementation of the pipelines against it.
Detailed Changes

Updated yamls and templates to match the current implementation of the pipelines.
Removed Composer Host and Skill from Deploy and Test Scenarios pipelines due to not working with R9 packages.

Testing
These images show the pipelines running successfully against the R9 branch.

Promoted https://github.com/microsoft/BotFramework-FunctionalTests/pull/498


feat: added flags to control deps and dir

Found some problems when using the package with lerna.
In this scenario, the schema file is not present in the same dir of the serverless.yml file being compiled. This will cause a error in the copy process.
Also found a problem during the prisma dependence install, when using lerna with yarn workspaces is not allowed to install or remove dependencies directly with yarn. In this cases prisma should be previously installed on package.json being compiled.
This way we have 2 new params inside the serverless.yml file:

this closes https://github.com/danieluhm2004/serverless-webpack-prisma/issues/5

Thank you very much for your contribution.
I've also verified that the tests are running smoothly!
Could you please add a simple README to make that option available to everyone?
Again, thank you very much. :)

@danieluhm2004 nice reminder! Added to readme

Hi @pcrodrigues0
There were a few typos in the readme, so I fixed it!
Will be updated on NPM soon!
Thank you so much for your interest in my project.


Implement cw (as dw + i)

Implemented 'change word'. I simply used dw + i. I'm assuming repeat is not used here? Seems to work fine here.

Repeat is needed as an argument to all functions since it's always being passed in __call__(), but it's not used here.
The implementation is fine but could you move it next to dw() ? And please only add one blank line, not two :smiley:

Done!

Perfect, thanks !


Update config file with tables that users can see

This is a purely documentation change of config file. The cleanup was needed post merge of PR #3258
Description

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[x] Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):
How Has This Been Tested?

ping @rhtyd , @andrijapanic , @PaulAngus - quick review needed.

Purely UI changes, smoketests are not necessary.


Allow "No updates" on many-to-many relations

Describe the Bug
With an example given (here)[https://www.prisma.io/docs/concepts/components/prisma-schema/relations/self-relat
ions#many-to-many-self-relations], when we generate the GraphQL schema, an empty update mutation gets created as follows:
FollowsUpdateManyMutationInput: [],
as there are no updatable columns in this relation since both the columns create a composite primary key.
Which then fails to start the server with following error:
Input Object type FollowsUpdateManyMutationInput must define one or more fields.
To Reproduce
Implement an example given (here)[https://www.prisma.io/docs/concepts/components/prisma-schema/relations/self-relat
ions#many-to-many-self-relations]
Expected Behavior
If there is nothing to update in a particular relation, it should skip generating the update mutation.
Apparently, the options.skipCheck is not set in this case
Logs
GraphQLError [Object]: Input Object type FollowsUpdateManyMutationInput must define one or more fields.
      at SchemaValidationContext.reportError (/Users/kaustubhvyas/development/server/node_modules/graphql/type/validate.js:86:19)
      at validateInputFields (/Users/kaustubhvyas/development/server/node_modules/graphql/type/validate.js:432:13)
      at validateTypes (/Users/kaustubhvyas/development/server/node_modules/graphql/type/validate.js:223:7)
      at validateSchema (/Users/kaustubhvyas/development/server/node_modules/graphql/type/validate.js:52:3)
      at graphqlImpl (/Users/kaustubhvyas/development/server/node_modules/graphql/graphql.js:79:62)
      at /Users/kaustubhvyas/development/server/node_modules/graphql/graphql.js:28:59
      at new Promise (<anonymous>)
      at Object.graphql (/Users/kaustubhvyas/development/server/node_modules/graphql/graphql.js:26:10)
      at Function.generateFromMetadata (/Users/kaustubhvyas/development/server/node_modules/type-graphql/dist/schema/schema-generator.js:19:48)
      at Object.buildSchema (/Users/kaustubhvyas/development/server/node_modules/type-graphql/dist/utils/buildSchema.js:10:61)

Environment (please complete the following information):

OS: MacOS 11.5.2
Node: v14.17.5
Package version: 1.1.1
TypeScript version: 4.3.5

Additional Context

Duplicate of #19 🔒


merge from konsum-frontend-svelte

package.json

chore(deps): add ^2.54.0 remove ^2.53.3 (devDependencies.rollup)

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

v1.29.14
npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


cros pluginn issue with redmine_repobrowser

The sidebar button inside repo browser

see https://github.com/gilbertf/redmine_repobrowser/issues/12

This plugins is not actively maintained anymore. I'm closing this report. Feel free to reopen it if you really need it.


Fix linking in tests

The investigation showed that the root cause of https://github.com/w3f/polkadot-tests/pull/23/checks?check_run_id=2510287129 fail was the cmake target names collision among the dependencies of kagome-adapter.
The build process of kagome-adapter makes the kagome itself be the same level dependency as the rest kagome's dependencies like libp2p and soralog. The kagome and soralog projects both did define the target named "logger" and both of them produced the binary named "liblogger.a". On the cmake level all the dependencies were present. During the linking, it turned out that liblogger.a contains only kagome's symbols and there is no binary with soralog's symbols. That was unclear till the whole Hunter building process was explored. The linker in both cases took the same liblogger.a and only was the right choice. Fixing the soralog's cmake let us avoid such collision and now kagome-adapter could be built.
Additionally, a cyclic dependency was removed from soralog's cmake.


Analytic gradients for path objective with Multiple Shooting (rungeKu…

…tta) method
Analytic gradients for path objectives that include cost on the state are now supported. But only tested on the pendulum example. However, as the code is currently written, the rungeKutta function assumes the dynamics and cost do not depend explicitly on time, t.
Does t depend on the decision variables at all? In discrete time
t = n dt
dt = (tF - t0) / N
t = n (tF - t0 ) / N
It seems t depends on decision vars t0 and tF, in which case that dependence would need to be included in the gradients as well.

You're correct: the time along the path depends on the initial and final time, and that dependency must be included in the gradients.


Homework 5

Metric
Value

alert_status
:white_check_mark: OK

bugs
7

code_smells
41

reliability_rating
E (at least 1 Blocker Bug)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


Resolve path after checking it leads to an existing file

Running the tool without creating a guides.xml is a valid scenario, and should be supported. This means realpath() may return false, which is not a valid input for is_file().
Fixes #824

Thanks for addressing this!


Ability to set custom url for youtube

Description
The same way we can customize which search engine to use. It would be awesome if we could set which video website we want to use by default. Personally i use HoloPlay as my frontend video website instead of Youtube. But in user preference, i cannot change. There is only the search engine.
Same for torrent engine. I use my own torrent indexer and would love to use it by default in the Homarr search engine
Priority
Medium (Would be very useful)

In the upcoming v1.0 release (See #1993) this will be supported, see https://github.com/homarr-labs/homarr/pull/1200


Peer-to-peer code review

Consider having some books either saved in localstorage or just set List as the main section show when the page is opened
Love your use of '??' in the javascript file, I didn't know about it before
Beautifully organised and clean code

Hello, thank you for your comments, it's implemented now in the code.


Import API basic support (files and non-sync'ed URLs)

@javisantana please CR

looks pretty good, nice addiction

@javisantana now?

:es:


fix: kusion deps check if focus path under certain stack

What type of PR is this?
/kind bug

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #335
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Additional documentation e.g., design docs, usage docs, etc.:

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
8 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.02%) to 71.861%

Files with Coverage Reduction
New Missed Lines
%

pkg/engine/operation/watch.go
1
85.93%

pkg/cmd/apply/options.go
7
71.31%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
4768

Relevant Lines:
6635

💛  - Coveralls


IN-99 Restrict process inputs to a fixed number

This allows restriction on the number of inputs to be a fixed integral value.

The Restriction enum in the huge types definition in the README should be updated to include the new value. The types get used by Polkadot e.g. https://github.com/digicatapult/vitalam-api/blob/main/app/util/substrateApi.js
Until this ticket is done, the types in the README of this repo are copy-pasted into other repos when we bump their vitalam-node versions

I've added FixedNumberOfInputs to the Readme Types @jonmattgray

These should all be automated checks, no?

These should all be automated checks, no?

@danielcooperxyz that would be an excellent idea yes. I wouldn't include that in this ticket though. It's also somewhat related to us standardising our release processes (IN-89 in Jira)


Support className for styling elements

I've seen closed PR #14 and want to express interest in adding styles via className
I'm testing the waters with these elements in an SSR app and have not been successful applying styles the old fashioned way

@tim-soft Agreed! Just cut v0.0.7 with this fix. Let us know if that works for you!

Things are looking good, I've been able to style up the CardElement almost the same way as is demo'd here with two exceptions
Styles relating to fonts must be provided via style={{ base: {...} }}

        Card
        <CardElement className={s.StripeElement} style={{base: {fontSize: '12px', fontWeight: '300', lineHeight: '40px'}}} />

I haven't found a way (yet) to style the color of the little card -- is there a nice way to change it's color?
Here's react-stripe-elements in action with styles in an SSR setting:

@tim-soft Sorry I'm not following -- is fontFamily not working?

From what I can tell, line-height, font-weight, font-family etc have no effect on the stripe element when passed as CSS via className. It appears that these properties must be passed as an object in the style prop.

@tim-soft Ah yes, that is correct. Anything within the Element, which uses an iframe (conceptually: anything that might be within an <input>) must be passed by the style prop.

@tim-soft To add fonts, you have to add that to the <Elements /> fonts attribute. Here is the Stripe API with all the fields: https://stripe.com/docs/stripe-js/reference#stripe-elements
I just figured it out and added to SO: https://stackoverflow.com/questions/49239767/how-do-i-add-a-custom-font-to-my-card-element-when-using-react-stripe-elements/49239833#49239833
I'm struggling to change the padding or height though. My CardElement has a slightly different height than all my other inputs.

On re-reading, I misunderstood your original issue.  I might try the className to change the height or padding though.


Make native_sim the default host test target instead of native_posix

This is just a container issue to link all related PRs which will be making native_sim the default native host test target, replacing native_posix.
This is part of the originally agreed plan in https://github.com/zephyrproject-rtos/zephyr/issues/58305. i.e. native_sim is introduced in 3.5, in 3.6 becomes the default, and after native_posix is deprecated and eventually removed.

https://github.com/zephyrproject-rtos/zephyr/pull/65057
https://github.com/zephyrproject-rtos/zephyr/pull/65060
https://github.com/zephyrproject-rtos/zephyr/pull/65061
https://github.com/zephyrproject-rtos/zephyr/pull/65063
https://github.com/zephyrproject-rtos/zephyr/pull/65070
https://github.com/zephyrproject-rtos/zephyr/pull/65075
https://github.com/zephyrproject-rtos/zephyr/pull/65076
https://github.com/zephyrproject-rtos/zephyr/pull/65134
https://github.com/zephyrproject-rtos/zephyr/pull/65227
https://github.com/zephyrproject-rtos/zephyr/pull/65235
https://github.com/zephyrproject-rtos/zephyr/pull/65290
https://github.com/zephyrproject-rtos/zephyr/pull/65300
https://github.com/zephyrproject-rtos/zephyr/pull/65301
https://github.com/zephyrproject-rtos/zephyr/pull/65469
https://github.com/zephyrproject-rtos/zephyr/pull/65473
https://github.com/zephyrproject-rtos/zephyr/pull/65486
https://github.com/zephyrproject-rtos/zephyr/pull/65487
https://github.com/zephyrproject-rtos/zephyr/pull/65655
https://github.com/zephyrproject-rtos/zephyr/pull/65675
https://github.com/zephyrproject-rtos/zephyr/pull/65690
https://github.com/zephyrproject-rtos/zephyr/pull/65866
https://github.com/zephyrproject-rtos/zephyr/pull/65872

CC (FYI, as maintainers of drivers or subsystems with a back-end or special treatment in the native targets)
@jhedberg @henrikbrixandersen @martinjaeger @tmon-nordic @jfischer-no @finikorg @jukkar @tbursztyka @de-nordic @nordic-krch


Improved db seeding. The database is now going to be seeded with test…

… accounts with assigned roles.

Codecov Report

Merging #60 into master will increase coverage by 0.22%.
The diff coverage is 98.27%.

@@            Coverage Diff            @@
##           master     #60      +/-   ##
=========================================
+ Coverage   96.39%   96.6%   +0.22%
=========================================
  Files         229     230       +1
  Lines        2323    2409      +86
=========================================
+ Hits         2239    2327      +88
+ Misses         84      82       -2


Make Ctrl + click open task in new tab

Right now it's Ctrl + Shift + click, not like the standard way of Obsidian, where you don't need Shift.

I think it's actually just Shift + click, but I'll change it to Ctrl + click.


Generate answers on a server

How to post the questions to the server API and get answers back with this API design with MessageParser and ActionProvider?

This is straightforward to do if you're using nextjs. It is likely different if you're using other frameworks. I'm using nextjs so I have an API setup within pages/api called chat.js. This has the API logic I need, something like this.
async function chatRoute(req, res) {

  const body = req.body;

 //do some stuff

  res.status(200).json({
    role: "bot",
    content: "a response from the bot",
  });
}

export default chatRoute;

Then I call this within a function in my ActionProvider component, I send some JSON through and get JSON back which I then add to the messages in the chatbot:
 const handleChat = async (newPrompt,) => {
    const body = {
      newPrompt: newPrompt,
    };

    const result = await fetchJson("/api/chat", {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify(body),
    });

    let newMessages = [];
    const botMessage = createChatBotMessage(result.content);
    newMessages.push(botMessage);

    setState((prev) => ({
      ...prev,
      messages: [...prev.messages, ...newMessages],
    }));
  };

Within MessageParser:
  const parse = (message) => {
      actions.handleChat(message;
    }
  }


[BUG] getWebhook blocks server thread for many seconds

dcintegration-1.3.4-1.16 has been observed blocking the server thread for over 10 seconds in de.erdbeerbaerlp.dcintegration.Discord.getWebhook() / net.dv8tion.jda.api.requests.RestAction.complete(). This was presumably due to its blocking getWebhook implementation paired with Discord having a period of particularly slow API responses. Another occurrence blocked the server for 36 seconds, but I didn't capture a trace for it. These interactions should never block the server thread.
From what I can tell at a quick glance, JDA offers RestAction.submit instead of .complete to obtain a CompletableFuture for the webhook. CompletableFuture.thenAccept and similar methods can then be used to execute the desired action (.send+.close) when the original operation has completed - without waiting/blocking the caller. You want to finish the CompletableFuture chain with .whenComplete or .exceptionally to print any exceptions, otherwise they get lost.
VisualVM compatible nps file showing the issue:
http://files.player.to/tmp/spike-10486-16338923416.nps
The file shows a capture for a single tick only. Server thread is waiting 10.4s on the completion of a JDA future, which presumably corresponds to the request execution on JDA RateLimit-Worker 1.

This is probably the number one forgecraft killer right now. It seems this happens regularly, and causes many second lockups of the serverthread, sometimes resulting in watchdog kills :(


Switch to fine-grained access tokens

GitHub has new personal access tokens that allow finer-grained controls over what can be accessed. We've been asked to migrate to these new tokens. There are some issues, like they don't work with the GraphQL API.

It turns out the add-to-project action uses GraphQL, which is incompatible with fine-grained tokens. I've regenerated a classic token instead.


'No module named tensorflow'  error in jupyter notebook after installing tensorflow-gpu using pip in the same virtual environment. I am using python 2.7.12.

I am trying to use tensorflow-gpu on Ubuntu16.04. I installed tensorflow via pip inside virtual environment, and other required libraries. When I start jupyter notebook in the same environment and try to run a code that uses tensorflow, the line 'import tensorflow as tf' gives an error.
It says no module named tensorflow. I had a similar problem with skimage(I initially installed scikit-image instead of python-skimage and I was getting an error. But it got resolved after I installed the right library. However I can't make sense of why it can't find the tensorflow module.

I also tried "import tensorflow-gpu as tf" but it gives an "invalid syntax" error.
in the terminal, inside the virtual environment for tensorflow, "pip show tensorflow" yields nothing. However "pip show tensorflow-gpu" shows the version information below:
Name: tensorflow-gpu
Version: 1.2.1
Summary: TensorFlow helps the tensors flow
Home-page: http://tensorflow.org/
Author: Google Inc.
Author-email<EMAIL_ADDRESS>License: Apache 2.0
Location: ~/venv4Tensorflow/lib/python2.7/site-packages
Requires: mock, numpy, bleach, markdown, wheel, six, protobuf, backports.weakref, html5lib, werkzeug

$ pip freeze
adium-theme-ubuntu==0.3.4
backports.shutil-get-terminal-size==1.0.0
backports.weakref==1.0rc1
bleach==1.5.0
configparser==3.5.0
cycler==0.10.0
Cython==0.23.4
decorator==4.0.6
entrypoints==0.2.2
enum34==1.1.6
extractframes==0.16
funcsigs==1.0.2
functools32==3.2.3.post2
h5py==2.7.0
html5lib==0.9999999
imageio==2.2.0
ipykernel==4.6.1
ipython==5.4.1
ipython-genutils==0.2.0
ipywidgets==6.0.0
Jinja2==2.8
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.0.1
jupyter-console==5.1.0
jupyter-core==4.3.0
Markdown==2.6.8
MarkupSafe==0.23
matplotlib==2.0.2
mistune==0.7.4
mock==2.0.0
nbconvert==5.2.1
nbformat==4.3.0
networkx==1.11
nose==1.3.7
notebook==5.0.0
numpy==1.13.1
olefile==0.44
opencv==1.0.1
opencv-python==<IP_ADDRESS>
pandocfilters==1.4.1
pathlib2==2.2.1
pbr==3.1.1
pexpect==4.0.1
pickleshare==0.7.4
Pillow==4.1.1
pkg-resources==0.0.0
progressbar==2.3
prompt-toolkit==1.0.14
protobuf==3.3.0
ptyprocess==0.5
pycurl==7.43.0
Pygments==2.2.0
PyMySQL==0.7.2
pyparsing==2.2.0
Pyste==0.9.10
python-apt==1.1.0b1
python-dateutil==2.6.0
pytz==2017.2
PyWavelets==0.5.2
PyYAML==3.12
pyzmq==15.2.0
qtconsole==4.3.0
scandir==1.5
scikit-image==0.13.0
scikit-learn==0.18.1
scikit-video==0.1.2
scipy==0.19.0
simplegeneric==0.8.1
six==1.10.0
sklearn==0.0
subprocess32==3.2.7
tensorflow-gpu==1.2.1
terminado==0.6
testpath==0.3.1
torch==0.1.12.post2
torchvision==0.1.8
tornado==4.2.1
traitlets==4.3.2
unity-lens-photos==1.0
virtualenv==15.0.1
wcwidth==0.1.7
webencodings==0.5.1
Werkzeug==0.12.2
widgetsnbextension==2.0.0

I think I have a hint about the source of the problem:
~$ which python
~/venv4Tensorflow/bin/python
~$ which jupyter
/usr/local/bin/jupyter
~$ which ipython
/usr/local/bin/ipython

And here's the solution:
http://help.pythonanywhere.com/pages/IPythonNotebookVirtualenvs
Hope this helps anyone else who gets stuck with this issue.

Thank you for posting the solution once you resolved the issue.

thank you so much! it works well!

And here's the solution:
http://help.pythonanywhere.com/pages/IPythonNotebookVirtualenvs
Hope this helps anyone else who gets stuck with this issue.

@arthitag : This solution didn't work for me, I have tensorflow installed in a venv virtualenv and my jupyter-notebook is installed in miniconda global install


Add variable name blacklist and method for auto-renaming

We need a method on DataSet that looks for blacklisted variable names and auto-renames them (with user feedback). This method should be called at the end of each .read_X method as well as and the end of each .from_X method.

merged #1098
thank you @RoxanaMariaNeagu !!!


Learning Lua With Chaoshead

A tutorial to teach Lua using Chaoshead, introducing CH stuff alongside with it.

Very bare bones start: http://levelmod.epizy.com/wiki/doku.php?id=llwch:index


Develop

Initial set up. CUrrently fails on parsing config.

There are probably some mistakes in json. it seems some commas missing and object keys are ints for some reason. Shouldn't we use array?


Build with ghc 8.4 (base-4.11)

https://github.com/tibbe/ekg/blob/78a83736455460505e384eba42105e899827ef07/ekg.cabal#L43

I did a Hackage revision. Note that this also needs snap-server-1.1, which haven't been released yet.

@23Skidoo, the revision did not include relaxing the bound on base to < 4.12; could you revise again?
http://hackage.haskell.org/package/ekg-<IP_ADDRESS>/revisions/

Done.

In the meantime, new snap-server has been released.


Config.DialContext hook and Transport type

This PR implements two related features that we needed in production to enable downloads of files from FTP(S) servers that filter connections to IP whitelists.

Config.DialContext hook, mirrored from the implementation in net/http.Transport. If set, this is used instead of net.Dial to establish TCP connections.
Transport type that implements the http.RoundTripper interface, to allow a lightly-upgraded http.Client download ftp:// URLs.

To answer your question (“why do you need a DialContext hook?”):
Our systems connect to many (i.e. hundreds) of systems that whitelist our IP addresses. We maintain proxy hosts with static IPs at various cloud providers and our production hosts connect to the remote hosts via an SSH+SOCKS5 tunnel.
We need to be able to connect to remote FTP servers and control how the network connection is established. Our backend has dialers (with a DialContext method) that connect via one of our proxies. The proxy dialers also have a Dial method for legacy code, but nearly all of our network code accepts a Context for fine-grained control over timeouts.
Your FTP library was the most mature/robust, so we forked it to add the DialContext hook for our purposes.

While we’re on the subject of naming things, it feels itchy to me that the Dial and DialConfig functions are named as such, rather than NewClient, since neither actually dial a network connection.
Would you be opposed to adding a top-level function NewClient that mirrors the DialConfig signature?

itchy to me that the Dial and DialConfig

Agreed.

Would you be opposed to adding a top-level function NewClient

Bad name is bad, but having a bad name and another name doesn't help much at this point. Once modules are the thing we can do a v2 and go crazy renaming.

Re: NewClient vs Dial / DialConfig we’ve introduced the desired API and marked the previous API as deprecated and indicated the API clients should use going forward. I’m trying to think of a couple examples of API warts that the Go team moved around as their package APIs matured…


Draft: Add default query methods for query, annotations and variable editor

The defaultQuery will be applied at set up of the query editor in the panel, as well as at setup of annotations and variable editors. This is why it has to be defined in all 3 places, datasource.ts, variables.ts and annotations.ts. This way the default query won't have to be applied on every rerender of the QueryEditor.
(PRs for adding support for variables and annotations in grafana/grafana for context)
Fixes https://github.com/grafana/athena-datasource/issues/186

Closing as "won't do"
See https://github.com/grafana/oss-plugin-partnerships/issues/79#issuecomment-1549740717 for info


Nipype submodule fails when plugins are passed as string

While building the docker image for mriqc I realized that nipype was still being installed as it is listed here. In https://github.com/poldracklab/mriqc/pull/561 I removed that line, and now there is no top-level module for nipype. This PR is failing:
2017-06-13 17:53:15,423 workflow:ERROR Could not import plugin module: nipype.pipeline.plugins
Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.6/site-packages/niworkflows/nipype/pipeline/engine/workflows.py", line 562, in run
    __import__(name)
ModuleNotFoundError: No module named 'nipype'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/miniconda/bin/mriqc", line 11, in <module>
    load_entry_point('mriqc===5c66495dcbf0cd661e996de13a2cbd4c5b33f72c', 'console_scripts', 'mriqc')()
  File "/usr/local/miniconda/lib/python3.6/site-packages/mriqc/bin/mriqc_run.py", line 320, in main
    workflow.run(**plugin_settings)
  File "/usr/local/miniconda/lib/python3.6/site-packages/niworkflows/nipype/pipeline/engine/workflows.py", line 566, in run
    raise ImportError(msg)
ImportError: Could not import plugin module: nipype.pipeline.plugins

The problematic line is linked here

Yeah, FMRIPREP uses some Function interfaces that import from nipype. Hence I left in the installation requirement.


Question about Token

Hi there, what type of token should I use for the app? Under custom integrations I see Bots, but that doesn't seem to work. Is there another way of getting a token?

@daylerees - You should be able to generate a token here: api.slack.com/docs/oauth-test-tokens
See docs: https://get.slack.help/hc/en-us/articles/215770388-Creating-and-regenerating-API-tokens

Just in case they remove the redirect, the above link is now redirecting here: https://api.slack.com/custom-integrations/legacy-tokens.
You need to log in with one or more slack teams before you can generate anything.


Fancy Zones 0.72 not filling to screen edges

Microsoft PowerToys version
0.72
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
FancyZones Editor
Steps to reproduce
After setting up your zones make sure you have zones that extend to the left or right edges of a screen (I have multiple monitors and this relates primarily to my 4K 32 inch monitors).
Then when you drag a window to one of those zones that touches the right or left edge it will leave a gap to the edge where you can see the wallpaper.
Previously in earlier versions of fancy zones the window went right to the edge with no space in between
✔ Expected Behavior
No gap to screen edge
❌ Actual Behavior
gap at edge

Other Software
No response

PS no such issue on a 2k monitor at 125%
Issue seems to only relate to a 4K monitor at 100%

Could you attach /bugreport? Thanks

PowerToysReport_2023-08-18-07-47-43.zip
Here is the bug report.  My issue seems worse today so I am going to revert back to a prior version

Hi @mobelby7, thank you for the report. Was it fixed after you reverted to a prior version? And could you please specify, does it happen with every window, or only with some of them? /needinfo


DataValidationView (the Build a Submission view) Refactor 4 - intersheet column ref improvements

Summary Change Description
Added the ability to automatically add a comment to a column header when its drop-downs are populated by the contents of a column in another sheet. Also added a new drop-down population option: "current_choices", which populates drop-downs using the current distinct contents of a field in the database.
Affected Issues/Pull Requests

Partially addresses #829
Merged into: #1021
Next PR: #1023

Review Notes

See comments in-line.
Checklist

This pull request will be merged once the following requirements are met.  The
author and/or reviewers should uncheck any unmet requirements:

Review requirements

Minimum approvals: 1
No changes requested
All blocking issues resolved by reviewers
Specific reviewers: @add_username_here

Review period: 2 days

Associated issue/pull request requirements:

[x] All requirements in affected issues marked "resolved" are satisfied
[x] All required pull requests are merged (or none)

Basic requirements

[x] All linters pass
[x] All tests pass
[x] All conflicts resolved

Overhead requirements

[x] New/changed method tests implemented/updated (or no change)
[ ] Updated Unreleased section of changelog.md (or no change)
[x] Migrations created & committed (or no change)

Merged via #1076


Error: Cannot find module 'process-nextick-args'

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 10
Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:
I cannot even get this (same error). But installed 1.0.0-beta.11-webpack.8
Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
The log given by the failure. Normally this include a stack trace and some
more information.

Error while running script "C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\addon\ng2\tasks\serve-webpack.ts":
Error: Cannot find module 'process-nextick-args'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\readable-stream\lib\_stream_readable.js:6:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\readable-stream\readable.js:6:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
Error while running script "C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\addon\ng2\commands\serve.ts":
Error: Cannot find module 'process-nextick-args'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\readable-stream\lib\_stream_readable.js:6:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\readable-stream\readable.js:6:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
Cannot find module 'process-nextick-args'
Error: Cannot find module 'process-nextick-args'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\readable-stream\lib\_stream_readable.js:6:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\readable-stream\readable.js:6:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module._load (C:\work\PST\workspace\PST\pst-app-client\cli2\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)

Mention any other details that might be useful.

Tried to init a project (ng init).
Installed locally in the project's directory (npm i angular-cli@webpack)

Thanks! We'll be in touch soon.

I'm also getting this same issue (on a mac) after updating to the angular-cli webpack version following the steps here:
https://github.com/angular/angular-cli/blob/master/WEBPACK_UPDATE.md

Mac - El Capitan version 10.11.5
Same as above, running ng --version causes the same error, node version is: v5.4.0
Just running: ng new test
Same stack trace as above.

Thanks

Just playing around - I updated process-nextick-args, that is a dependency of readable stream from 1.0.6 to 1.0.7 and this fixed the issue for me.

Update npm to version 3.x.x

I solved it.
I install some modules manually.
npm i process-nextick-args util-deprecate

I am getting this error too after a fresh install of angular-cli@webpack and then running any ng command.
I have used the above trick, but had to globally.

@sculove yes, this solution works for me too, but this seems to be a bug in the dependency hierarchy of angular-cli.

have you tried my solution before downvoting? that's how I fixed it. You don't need to bloat-up you global packages. ;)

I'd already checked my version of npm, and was already running a variant of version 3.  Did check though.  The workaround proposed by @sculove (with a slight modification to do it globally) worked for me, but as @ribizli states this is a bug in the dependencies which has crept in somewhere.

Even ng --version threw this error. Globally installing the process-nextick-args and util-deprecate packages didn't fix it for me. I'm running on Windows 10 (x64), so I had to cd into /c/Program Files/nodejs/node_modules/angular-cli and npm install both packages there locally, so without the -g flag :-).

Upgrading Node.js to 6.5 fixed this on my build server.

Looking into it myself.

<EMAIL_ADDRESS><EMAIL_ADDRESS>win10.
Tried making a custom version and installing globally from it.
I can verify that adding process-nextick-args util-deprecate to the depedencies fixes this issue, but can't help but think this a symptom of another problem. Will investigate more.

I've been trying to get to the root of this issue without much success. As far as I can tell, this is either a node or a nvm problem somehow. Maybe an odd combination of packages, or some kind of odd interaction with packages that try to be built like node-sass.
I've tried a lot of installs so far, and the best way I've found to reproduce this in Windows:

install https://github.com/creationix/nvm
nvm install 5.12.0 (if you have it already, uninstall and reinstall)
nvm use 5.12.0
npm install -g<EMAIL_ADDRESS>ng version

This gets me the error shown in the initial report:
$ ng version
Error while running script "C:\Users\kamik\AppData\Roaming\nvm\v5.12.0\node_modules\angular-cli\addon\ng2\tasks\serve-webpack.ts":
Error: Cannot find module 'process-nextick-args'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function.Module._load (C:\Users\kamik\AppData\Roaming\nvm\v5.12.0\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:367:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\kamik\AppData\Roaming\nvm\v5.12.0\node_modules\angular-cli\node_modules\readable-stream\lib\_stream_readable.js:6:23)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module._load (C:\Users\kamik\AppData\Roaming\nvm\v5.12.0\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:367:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\kamik\AppData\Roaming\nvm\v5.12.0\node_modules\angular-cli\node_modules\readable-stream\readable.js:6:28)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module._load (C:\Users\kamik\AppData\Roaming\nvm\v5.12.0\node_modules\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:367:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\kamik\AppData\Roaming\nvm\v5.12.0\node_modules\angular-cli\node_modules\memory-fs\lib\MemoryFileSystem.js:8:14)
(...)

As reported by @kevinsawicki, this also seems to happen in other projects: https://github.com/electron-userland/electron-prebuilt/issues/63#issuecomment-246029913
As reported by @rbj325, using<EMAIL_ADDRESS>seems to work. This is best user solution I've found so far.
I'm not sure what can be done on our side to support node 5... we could add process-nextick-args util-deprecate as dependencies, but we don't even use them directly.
/cc @hansl

Removing the critical label as it only seems to affect a subset of users and, as far as I can tell, it's not within out control to fix it.

I'm on linux, node 6.2.0 (via distro's package manager), same error. Installing both dependencies as global packages fixed for me.

I am also getting this error after attempting to update from "angular-cli": "1.0.0-beta.11-webpack", to "angular-cli": "1.0.0-beta.11-webpack.3".
Windows 7
Node 6.2.1
NPM 3.9.3
\angular-cli\lib\bootstrap-local.js:55:22)
    at Module.require (module.js:468:17)
Cannot find module 'process-nextick-args'

I am receiving this error as well. I installed the latest version of the CLI globablly:
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@latest
then created new angular2 project using the ng new project command to create a new project then executing the ng serve command.
Operating System: Windows 7
Angular CLI version: 1.0.0-beta.14
Node version: 6.5.0
NPM version: 3.9.2

Still exists at beta 15.
angular-cli: 1.0.0-beta.15
node: 4.5.0
os: win32 ia32
npm i process-nextick-args util-deprecate fixed it.

I can confirm that ng command works for this setup as listed below (after upgrading Node):
angular-cli: 1.0.0-beta.15
node: 6.6.0
os: darwin x64

I think this was completely fixed in https://github.com/angular/angular-cli/pull/3414. My theory is that, on machines that could build node-zopfli, it could fail and leave you with an incomplete install.
Closing but please let me know if it still happens.

nvm install 6.11.3
helped me to install that damn package

I ran into this issue and after spending sometime, I decided to delete node and npm.
To completely uninstall node + npm is to do the following:

go to /usr/local/lib and delete any node and node_modules
go to /usr/local/include and delete any node and node_modules directory
if you installed with brew install node, then run brew uninstall node in your terminal
check your Home directory for any local or lib or include folders, and delete any node or node_modules from there
go to /usr/local/bin and delete any node executable
I find all this from this link  https://stackoverflow.com/a/11178106

And if you don't know how to reinstall Node and npm, follow this: http://blog.teamtreehouse.com/install-node-js-npm-mac
I hope this will help everyone

I think this issue occur because of node version .So update your node and npm version.
I had same issue on Ubuntu  then i updated my node and npm version and install angular CLI :)
Check node version
nodejs --version
Update node version
sudo apt-get install nodejs
Update npm version
sudo apt-get install npm
Install angular CLI
npm install -g @angular/cli

Seeing this error directly after npm i -g npm. Now even npm -v returns the process-nextick-args not found errror.
$ nodejs --version
v6.12.3

$ npm -v
module.js:471
    throw err;
    ^

Error: Cannot find module 'process-nextick-args'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:26:23)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

Distributor ID: Debian
Description:    Debian GNU/Linux 8.10 (jessie)
Release:        8.10
Codename:       jessie

Linux b8022312ce29 4.9.75-linuxkit-aufs #1 SMP Tue Jan 9 10:58:17 UTC 2018 x86_64 GNU/Linux

Same problem as @thinkspill. npm -v throws the error already. Can't use any of the solutions above, since each time the same error pops up. Any ideas perhaps? 😞

In my case it happens when i install yarn and seems there are conflict happens in there


[ARM] az stack mg create Enable stack validation before creation

Related command
az stack mg create
Description

This is a follow up bugfix to https://github.com/Azure/azure-cli/pull/28605.
Subscription and resource group scoped deployment stacks are already validated before creation, however this could not be added at the time for MG stacks. There was a bug with ARM when validating an MG stack before its creation due to a race condition with how the proxy resource jobs work. A bugfix has been deployed for ARM so this can now be applied to MG stacks.
Testing Guide
See az stack mg create examples.
History Notes

[ARM] az stack mg create: MG stacks are now automatically validated before creation

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

ARM

/azp run


Bug: Some badges cannot be rendered

Some badges and the img tag cannot be rendered correctly.
README

Hi @realkimmy, can you please confirm if you're still experiencing this issue?
And if you are, kindly provide a minimal complete reproducible code sample
Thank you

Hi @realkimmy, according to https://github.com/flutter/flutter/issues/87857#issuecomment-897967883 this should be expected.
Since that issue also describes a situation similar to yours, I'm going to close this as a duplicate.
Feel free to follow up over there.
Thank you


Controllersandroutes

Coverage increased (+0.04%) to 52.246% when pulling 295842275cf8653d27fab1148489fb88aab28ae1 on controllersandroutes into 852df3763d01fa55948805f1b6941a3fa51307e0 on master.