Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Upstream Catchup] Merge RC:master to develop_pwa #1152

Merged
merged 356 commits into from
Jun 30, 2022

Conversation

ear-dev
Copy link

@ear-dev ear-dev commented Apr 25, 2022

Weekly Catchup PR to merge RC:master in develop_pwa.

MartinSchoeler and others added 30 commits February 25, 2022 22:01
RocketChat#24630)

* Fix time fields and add wrap up

* fix lint

* Regression: Fix missing hold time and wrap up time missing

* On cancel wrapup close room

* Fix lint

* Fix wrong code

* Oh boy I need more sleep

* Cherrypick fix
…Import (RocketChat#24585)

* Add setting to control avatar rotation

* Fix users' and rooms' mentions, fix setUserAvatar error on import

* Remove unrelated changes

* Fix missing username on imported messages

* Reverted some changes

* Fixed mentions

* Removed duplicated code

* Fix RocketChat#23808

Co-authored-by: Pierre Lehnen <pierre.lehnen@rocket.chat>
* Update Apps-Engine

* Update Apps-Engine
* updated links in readme

* changed link to point to playlist

* added email link

* README: add missing verb

Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
Merge master into develop & Set version to 4.6.0-develop
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](unshiftio/url-parse@1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#24666)

Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.2.3 to 8.5.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…#24667)

Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.5.0 to 10.6.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](TypeStrong/ts-node@v10.5.0...v10.6.0)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…Chat#24574)

Bumps [@types/mock-require](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mock-require) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mock-require)

---
updated-dependencies:
- dependency-name: "@types/mock-require"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@ear-dev
Copy link
Author

ear-dev commented May 18, 2022

@bhardwajaditya can you look at the build failure please? thanks...

Also, can you cleanup please by closing any of the catchup merge PRs that are no longer needed or valid?

@ear-dev
Copy link
Author

ear-dev commented May 19, 2022

@Shailesh351 please make a note here about adding the properties we might need to pass the lint checks.... thanks.

@Shailesh351
Copy link

Error: client/views/omnichannel/triggers/TriggersForm.stories.tsx(34,4): error TS2741: Property 'department' is missing in type '{ sender: string; msg: string; name: string; }' but required in type '{ sender: string | undefined; department: string | undefined; msg: string | undefined; name: string | undefined; }'.
Error: client/views/omnichannel/triggers/TriggersForm.stories.tsx(41,2): error TS2741: Property 'handleRegisteredOnly' is missing in type '{ handleName: HandlerFunction; handleDescription: HandlerFunction; handleEnabled: HandlerFunction; handleRunOnce: HandlerFunction; handleConditions: HandlerFunction; handleActions: HandlerFunction; }' but required in type '{ handleName: (event: FormEvent<HTMLInputElement>) => void; handleDescription: (event: FormEvent<HTMLInputElement>) => void; ... 4 more ...; handleActions: (value: TriggerActions) => void; }'.
Error: client/views/omnichannel/triggers/TriggersForm.tsx(71,23): error TS2304: Cannot find name 'SelectOptions'.

@bhardwajaditya The build issue is because of
department, handleRegisteredOnly is defined here https://github.com/WideChat/Rocket.Chat/blob/develop_pwa/client/views/omnichannel/triggers/TriggersForm.tsx#L23...L45

but missing in https://github.com/WideChat/Rocket.Chat/blob/develop_pwa/client/views/omnichannel/triggers/TriggersForm.stories.js

@ear-dev
Copy link
Author

ear-dev commented May 24, 2022

@bhardwajaditya still working on this one?

@ear-dev
Copy link
Author

ear-dev commented May 24, 2022

@bhardwajaditya please find the root cause of the latest failures because, as you suggest, these tests were added by us, and maybe this is an indication that we have lost something in the merge.

@ear-dev
Copy link
Author

ear-dev commented Jun 1, 2022

@bhardwajaditya Any luck with this? Is there a chance we can wrap this one up soon? Thanks....

@bhardwajaditya
Copy link

@bhardwajaditya Any luck with this? Is there a chance we can wrap this one up soon? Thanks....

@ear-dev on it

@bhardwajaditya
Copy link

@ear-dev this is fixed after removing the action

@ear-dev
Copy link
Author

ear-dev commented Jun 10, 2022

@bhardwajaditya I tested this against our testbot and everything is passing, so looks good to me. Nice job! thanks.... @Shailesh351 is there anything you would like to look at before we consider merging this?

@ear-dev
Copy link
Author

ear-dev commented Jun 14, 2022

@Shailesh351 do we think this is ready to merge? It might be a good time to do it I think. At that point you will need to catchup with in the sns_logging_master branch

@ear-dev
Copy link
Author

ear-dev commented Jun 20, 2022

@Shailesh351 have you had a chance to look at this yet? Just checking.... thanks.

Copy link

@Shailesh351 Shailesh351 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bhardwajaditya @ear-dev I found some issues which are just lost changes while fixing merge conflicts.

  1. In the login.page.js file below warningAlert fn is removed, which is being used in tests/cypress/integration/00b-login-offline.js loginPage.warningAlert.should('be.visible');
get warningAlert() {
        return browser.element('.alert-warning');
    }
  1. In .github/pr-title-checker-config.json “Upstream Catchup” is not there. I remember we added it.
    10d5384

  2. We lost acc-ecr-push in the .github/workflows/build_and_test.yml, which pushes builds to our docker

acc-ecr-push:
    runs-on: ubuntu-latest
    if: ${{ github.ref == 'refs/heads/develop_pwa' && github.event_name == 'push' }}
    needs: test
  1. In the app/lib/server/functions/insertMessage.js we had check for message object and we added one property pushm: Boolean, in it. This check was moved to another file app/lib/server/functions/sendMessage.js validateMessage fn. And that properties is not there.

  2. In the app/models/client/models/Roles.js file const role = this.findOne(name); but we are not getting name as fn argument we are getting roleId

  3. The SideNav.js file is refactored to SideNav.ts. We added some changes in SideNav.js 9f54652 and in the .ts file we are not having it. Can you confirm if still require or it’s not more needed?

  4. The getUserInfo.js was refactored to getUserInfo.ts. We added some changes in .js file we are not in .ts.

@ear-dev
Copy link
Author

ear-dev commented Jun 27, 2022

@bhardwajaditya any chance we'll have this ready today or tomorrow?

@bhardwajaditya
Copy link

@ear-dev yes for sure

@ear-dev
Copy link
Author

ear-dev commented Jun 29, 2022

@Shailesh351 just want to get this done if possible before you're out next week...... thanks!

Copy link

@Shailesh351 Shailesh351 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Working fine locally.

@ear-dev ear-dev merged commit 3afa1b0 into develop_pwa Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet