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

Open
wants to merge 13 commits into
base: drop-support-node
Choose a base branch
from

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 12183734596

Details

  • 595 of 609 (97.7%) changed or added relevant lines in 214 files are covered.
  • 151 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-1.3%) to 85.284%

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%
Files with Coverage Reduction New Missed Lines %
src/commands/files/zip.js 1 81.03%
src/token-cache.js 14 15.15%
src/box-command.js 136 74.34%
Totals Coverage Status
Change from base Build 12011951854: -1.3%
Covered Lines: 4401
Relevant Lines: 4975

💛 - 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.

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

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.

3 participants