Skip to content

Update gRPC API to create a new sketch #1498

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

Merged
merged 5 commits into from
Oct 15, 2021

Conversation

4ntoine
Copy link
Contributor

@4ntoine 4ntoine commented Oct 6, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?
    Updates gRPC (daemon) API to support creating a new sketch
  • What is the new behavior?
    Implemented and available via gRPC
  • Does this PR introduce a breaking change, and is
    titled accordingly?

    No breaking changes
  • Other information:
    Still requires some polishing (fix i18n) - at least 1 string needs to be translated (error message).
    No tests were added in the repo, but i tested it with Dart gRPC client manually instead.

See how to contribute

@CLAassistant
Copy link

CLAassistant commented Oct 6, 2021

CLA assistant check
All committers have signed the CLA.

@4ntoine
Copy link
Contributor Author

4ntoine commented Oct 6, 2021

No idea on what's wrong with "Check internationalization" task..

@4ntoine 4ntoine force-pushed the 1456_sketch-new branch 3 times, most recently from 3384213 to ca1ba0f Compare October 12, 2021 05:04
@per1234
Copy link
Contributor

per1234 commented Oct 12, 2021

No idea on what's wrong with "Check internationalization" task..

Hi @4ntoine. Thanks for your pull request. You can learn about syncing the internationalization data with your changes here:
https://arduino.github.io/arduino-cli/0.19/CONTRIBUTING/#internationalization-i18n

Please let me know if you have any questions or problems.

@4ntoine
Copy link
Contributor Author

4ntoine commented Oct 12, 2021 via email

@4ntoine
Copy link
Contributor Author

4ntoine commented Oct 12, 2021 via email

…e "user" dir for sketches created via gRPC
@4ntoine
Copy link
Contributor Author

4ntoine commented Oct 13, 2021

Rebased to upstream master, tested from cli and via gRPC - seems to be ok

@silvanocerza
Copy link
Contributor

silvanocerza commented Oct 14, 2021

I left some suggestions.

A pretty important thing, please use our library go-paths-helper to handle paths and not filepath. It's used everywhere in the CLI codebase so you can easily find some examples on how to use it, feel free to ask if you need help on that or you prefer to let us do it.

All in all a great contribution, I also like your idea of a sketch list command and related gRPC function, thanks so much @4ntoine. Am looking forward to your future contributions. :)

Also sorry if we're a bit slow on reviews but we got tons of things to do.

@4ntoine 4ntoine force-pushed the 1456_sketch-new branch 3 times, most recently from 5a27b81 to 10b7cac Compare October 14, 2021 17:57
@4ntoine 4ntoine force-pushed the 1456_sketch-new branch 2 times, most recently from 98547d9 to 45904d2 Compare October 14, 2021 19:27
@4ntoine
Copy link
Contributor Author

4ntoine commented Oct 14, 2021

@silvanocerza Ready for the review

Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

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

Approved!
I forgot to tell you to change the CLI command sketch new to call directly the gRPC function so I made a commit on it.
Thanks again @4ntoine, really apprreciate your contribution. 🙏
I'll handle the merging.

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.

5 participants