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

feat(open): rdme open should have a flag for opening the dash #671

Merged
merged 9 commits into from
Nov 17, 2022

Conversation

darrenyong
Copy link
Contributor

🚥 Fix RM-5741

🧰 Changes

We're adding a --dash option to rdme open so that it'll open the project dashboard in the browser.

🧬 QA & Testing

@darrenyong darrenyong marked this pull request as ready for review November 17, 2022 00:18
Copy link
Member

@kanadgupta kanadgupta left a comment

Choose a reason for hiding this comment

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

A couple small suggestions, but this is looking great!

__tests__/cmds/open.test.ts Outdated Show resolved Hide resolved
__tests__/cmds/open.test.ts Outdated Show resolved Hide resolved
src/cmds/open.ts Outdated Show resolved Hide resolved
src/cmds/open.ts Outdated Show resolved Hide resolved
@kanadgupta kanadgupta added command:other Issues pertaining to miscellaneous commands (e.g. `open`, `logout`) or requests for new commands enhancement New feature or request labels Nov 17, 2022
@darrenyong darrenyong merged commit c2677f7 into main Nov 17, 2022
@darrenyong darrenyong deleted the darren/rm-5741 branch November 17, 2022 18:50
return expect(cmd.run({ mockOpen, dash: true, key: '12345' })).resolves.toBe(
`Opening ${chalk.green(dashUrl)} in your browser...`
);
mockRequest.done();
Copy link
Member

@erunion erunion Nov 17, 2022

Choose a reason for hiding this comment

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

@kanadgupta @darrenyong This line doesn't get called because it's after a return. This might end up leading to some test memory leaks with mocks not getting cleaned up.

Copy link
Member

Choose a reason for hiding this comment

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

oops, great catch, thanks! will fix

Copy link
Member

Choose a reason for hiding this comment

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

wish we had a lint rule for stuff like this

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I'm surprised that ESLint didn't pick up on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, thanks Jon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command:other Issues pertaining to miscellaneous commands (e.g. `open`, `logout`) or requests for new commands enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants