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

#89 #105

Closed
wants to merge 3 commits into from
Closed

#89 #105

wants to merge 3 commits into from

Conversation

vipulbhj
Copy link
Contributor

@vipulbhj vipulbhj commented Oct 5, 2019

Issue #89

Some first attempt changes submitted for review

Changes

Added command option for system and used default model system as a first step

Related Issues

@jeromesimeon jeromesimeon self-requested a review October 5, 2019 14:21
Copy link
Member

@jeromesimeon jeromesimeon left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. It's not a bad start. In addition to the comments in the PR itself, a few additional things:

  • Please provide a more descriptive title to your PR so others can understand what this is about
  • Please add a DCO signoff to your commits, per the developers instructions
  • This is missing the code loading a user-provided system CTO
  • Other commands should be fixed similarly (at least validate and maybe get as well)
  • The tests will have to be fixed to reflect your changes (in the packages/concero-cli/test directory)

@@ -20,13 +20,18 @@ const Commands = require('./lib/commands');

require('yargs')
.scriptName('concerto')
.usage('$0 <cmd> [args]')
.usage('$0 <cmd> [manager] [args]')
Copy link
Member

Choose a reason for hiding this comment

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

This change to usage is inconsistent with the changes below which use a --ctoSystem option as part of the arguments.

yargs.option('ctoSystem', {
describe: 'system model to be used',
type: 'string'
default: 'org.accordproject.base.cto'
Copy link
Member

Choose a reason for hiding this comment

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

I'm unclear how the default can be a namespace, I was expecting it to be consistent with the option which should pass a file (or maybe a URL or either?) in a way similar to how other CTO files are passed on the command line.

Without a default, the value will be null which might be sufficient to decide whether a system model has been passed or not.

@jeromesimeon
Copy link
Member

Hi @vipulbhj Any progress on this? Any other help you might need? We've had a couple of requests for this fix 🙂

@vipulbhj
Copy link
Contributor Author

vipulbhj commented Oct 8, 2019

Hey, sorry for being unresponsive. Its a religion week in india right now celebrate at country scale, so I been a little occupied. I would love to get all the help I can for sure. Thank you so much :) and I be getting back to constant communications in a day or two at max

@jeromesimeon
Copy link
Member

@vipulbhj I need to push the timeline for this forward since a user is waiting for a fix. I've rebased your change to https://github.com/accordproject/concerto/tree/js-vi-fix-issue-89 which includes your initial code, and I'll be working in this. This should preserve your commit for posterity (and #hacktoberfest).

I'm closing this PR and will open a new one for #89

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.

2 participants