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

Add Account App #3683

Merged
merged 85 commits into from
Jan 21, 2021
Merged

Add Account App #3683

merged 85 commits into from
Jan 21, 2021

Conversation

kschiffer
Copy link
Member

@kschiffer kschiffer commented Jan 20, 2021

Summary

image

References #1422

This PR merges the feature branch feature/1422-account-app into v3.11. This will add the current state of the new Account App into production. The feature branch is a culmination of various earlier PRs which targeted this feature branch, my ongoing rebasing work throughout the lifetime of this feature branch, as well as additional end-to-end tests for the new Account App.

Changes

Testing

Since the merges into this feature branch have all gone through the regular PR review process, the individual parts of this branch are already tested. I've added the new end-to-end tests to ensure that all parts also work in conjunction with each other. Additionally, I did quite some manual testing over the last couple of months. This is a big change, so it's almost impossible to check every last detail, but the new e2es should give us some confidence in the integrity of these changes.

Regressions

This PR will completely replace the old oauth app, meaning that all code has been completely rewritten. As such, it is possible that regressions occur. See also the last segment about testing.

Notes for Reviewers

A complete code review should not be necessary, since all parts have already been reviewed. I only introduced additional changes to the extent necessary to integrate changes of the master branch, during rebases.

Like before, in development mode this needs the following additional configuration to work:

export TTN_LW_IS_OAUTH_UI_JS_FILE="libs.bundle.js account.js"
export TTN_LW_IS_OAUTH_UI_IS_BASE_URL="http://localhost:8080/api/v3"

What is still missing is respective documentation updates. I'd suggest to successively update those separately.

Checklist

  • Scope: The referenced issue is addressed, there are no unrelated changes.
  • Compatibility: The changes are backwards compatible with existing API, storage, configuration and CLI, according to the compatibility commitments in README.md for the chosen target branch.
  • Documentation: Relevant documentation is added or updated.
  • Changelog: Significant features, behavior changes, deprecations and fixes are added to CHANGELOG.md.
  • Commits: Commit messages follow guidelines in CONTRIBUTING.md, there are no fixup commits left.

@kschiffer kschiffer added c/console This is related to the Console c/identity server This is related to the Identity Server prio/high ui/web This is related to a web interface labels Jan 20, 2021
@kschiffer kschiffer added this to the January 2021 milestone Jan 20, 2021
@kschiffer kschiffer self-assigned this Jan 20, 2021
@github-actions github-actions bot added compat/config This could affect Configuration compatibility dependencies Pull requests that update a dependency file tooling Development tooling labels Jan 20, 2021
@johanstokking
Copy link
Member

Awesome. Works locally.

The end-to-end tests are expected to pass, right?

Also, can we do something better here still?

Screenshot 2021-01-20 at 16 21 49

@kschiffer
Copy link
Member Author

The end-to-end tests are expected to pass, right?

Yes. Just had to update the RegExp for the mails, which changed today #3678 

Also, can we do something better here still?

Yeah, I'll add something.

Copy link
Contributor

@bafonins bafonins left a comment

Choose a reason for hiding this comment

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

Tested various critical flows manually and can see that e2e tests are passing, so I guess we can merge this.

There are bunch of small remarks that are no that important. I think we can merge this

cypress/plugins/tasks.js Outdated Show resolved Hide resolved
cypress/support/commands.js Show resolved Hide resolved
cypress/integration/account/forgot-password.spec.js Outdated Show resolved Hide resolved
cypress/integration/smoke/authorization/index.js Outdated Show resolved Hide resolved
cypress/integration/smoke/authorization/index.js Outdated Show resolved Hide resolved
cy.location('pathname').should('eq', `${Cypress.config('oauthRootPath')}/update-password`)
})
cy.location('pathname').should('eq', `${Cypress.config('accountAppRootPath')}/update-password`)
}).skip()
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are the old tests for the authenticated password change, which is currently still missing. I'll unskip them together with the profile settings PR.

cypress/integration/smoke/authorization/index.js Outdated Show resolved Hide resolved
const client = new Client({
user: 'root',
host: 'localhost',
database: 'ttn_lorawan_dev',
Copy link
Contributor

Choose a reason for hiding this comment

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

not for this PR, but this should be passed from mage. otherwise its hardcoded twice in two different places

pkg/webui/account/views/app/index.js Show resolved Hide resolved
pkg/webui/account/views/app/index.js Show resolved Hide resolved
@kschiffer kschiffer merged commit ad5ef65 into v3.11 Jan 21, 2021
@kschiffer kschiffer deleted the feature/1422-account-app branch January 21, 2021 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/console This is related to the Console c/identity server This is related to the Identity Server compat/config This could affect Configuration compatibility dependencies Pull requests that update a dependency file tooling Development tooling ui/web This is related to a web interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants