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: Replace @oclif/command to @oclif/core library #553

Merged
merged 43 commits into from
Jan 28, 2025
Merged

Conversation

congminh1254
Copy link
Member

No description provided.

@congminh1254 congminh1254 changed the base branch from drop-support-node to main December 4, 2024 15:51
@congminh1254 congminh1254 added the dontstale For stalebot to keep the issue open label Dec 4, 2024
fs.unlinkSync(downloadedFilePath);
/* eslint-enable no-sync */
assert.ok(downloadContent.equals(expectedContent));
let expectedMessage = getDownloadProgressBar(295191);
let expectedMessage = getDownloadProgressBar(testFileStat.size);
Copy link
Contributor

Choose a reason for hiding this comment

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

Changing line endings from CLRF to LF for the epic-poem.txt fixes this test for me locally without your changes. Could that be the issue? Maybe the repo was cloned with windows line endings?

Anyway, I think your approach is better as it should work regardless of the line endings, but we should somehow explain why it's done this way as it's not obvious from the code (either by extracting some parts to a named function or leaving a comment at least)

@coveralls
Copy link

coveralls commented Dec 6, 2024

Pull Request Test Coverage Report for Build 13012256321

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 588 of 602 (97.67%) changed or added relevant lines in 213 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 85.38%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/commands/configure/environments/add.js 2 3 66.67%
src/commands/configure/environments/delete.js 2 3 66.67%
src/commands/configure/environments/get.js 1 2 50.0%
src/commands/configure/environments/set-current.js 2 3 66.67%
src/commands/configure/environments/switch-user.js 2 3 66.67%
src/commands/configure/environments/update.js 2 3 66.67%
src/commands/configure/settings.js 2 3 66.67%
src/commands/events/poll.js 1 2 50.0%
src/commands/login.js 1 2 50.0%
src/commands/shared-links/delete.js 2 3 66.67%
Totals Coverage Status
Change from base Build 13012176007: 0.2%
Covered Lines: 4399
Relevant Lines: 4968

💛 - Coveralls

@congminh1254 congminh1254 changed the base branch from main to drop-support-node December 6, 2024 10:21
Copy link
Contributor

@mwwoda mwwoda left a comment

Choose a reason for hiding this comment

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

Great job! Mostly comments about the cleanup of unused vars I see that you did it in some places.

.eslintrc.yml Outdated Show resolved Hide resolved
src/commands/device-pins/index.js Outdated Show resolved Hide resolved
src/commands/events/index.js Outdated Show resolved Hide resolved
src/commands/events/poll.js Outdated Show resolved Hide resolved
src/commands/file-requests/delete.js Outdated Show resolved Hide resolved
src/index.js Show resolved Hide resolved
test/box-command.test.js Show resolved Hide resolved
test/commands/folders.test.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
"eslint-plugin-unicorn": "^5.0.0",
"generate-license-file": "^3.6.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

@@ -4,7 +4,7 @@ const BoxCommand = require('../../box-command');

class MetadataTemplatesListCommand extends BoxCommand {
async run() {
const { flags, args } = this.parse(MetadataTemplatesListCommand);
await this.parse(MetadataTemplatesListCommand);
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to parse it at all?

Copy link
Contributor

@mwwoda mwwoda Dec 9, 2024

Choose a reason for hiding this comment

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

After brief discussion: We're not sure if it would affect anything (if this function is only parsing input params). We decided to keep it for now as it's not that big of a deal.

mwwoda
mwwoda previously approved these changes Dec 9, 2024
Copy link
Contributor

@mwwoda mwwoda left a comment

Choose a reason for hiding this comment

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

Just one comment

Base automatically changed from drop-support-node to main January 28, 2025 14:05
@congminh1254 congminh1254 dismissed mwwoda’s stale review January 28, 2025 14:05

The base branch was changed.

@congminh1254 congminh1254 merged commit aed470b into main Jan 28, 2025
13 checks passed
@congminh1254 congminh1254 deleted the bump-oclif branch January 28, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dontstale For stalebot to keep the issue open
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants