The Wayback Machine - https://web.archive.org/web/20211118005353/https://github.com/arduino/arduino-cli/pull/1498
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

Update gRPC API to create a new sketch #1498

Merged
merged 5 commits into from Oct 15, 2021
Merged

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 current behavior?
    Not implemented (#1456)
  • 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 CLAassistant commented Oct 6, 2021

CLA assistant check
All committers have signed the CLA.

@4ntoine
Copy link
Contributor Author

@4ntoine 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 Oct 12, 2021
@per1234
Copy link
Contributor

@per1234 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.

docs/configuration.md Outdated Show resolved Hide resolved
Loading
@4ntoine
Copy link
Contributor Author

@4ntoine 4ntoine commented Oct 12, 2021

@4ntoine
Copy link
Contributor Author

@4ntoine 4ntoine commented Oct 12, 2021

@4ntoine 4ntoine force-pushed the 1456_sketch-new branch from 14c2625 to 77e3f43 Oct 13, 2021
…e "user" dir for sketches created via gRPC
@4ntoine 4ntoine force-pushed the 1456_sketch-new branch from 77e3f43 to 53f3bf4 Oct 13, 2021
@4ntoine
Copy link
Contributor Author

@4ntoine 4ntoine commented Oct 13, 2021

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

commands/sketch/new.go Outdated Show resolved Hide resolved
Loading
commands/sketch/new.go Outdated Show resolved Hide resolved
Loading
@silvanocerza
Copy link
Contributor

@silvanocerza 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 Oct 14, 2021
@4ntoine 4ntoine force-pushed the 1456_sketch-new branch from 10b7cac to ef34dcb Oct 14, 2021
@4ntoine 4ntoine force-pushed the 1456_sketch-new branch 2 times, most recently from 98547d9 to 45904d2 Oct 14, 2021
@4ntoine 4ntoine force-pushed the 1456_sketch-new branch from 45904d2 to cd49a5f Oct 14, 2021
@4ntoine
Copy link
Contributor Author

@4ntoine 4ntoine commented Oct 14, 2021

@silvanocerza Ready for the review

Copy link
Contributor

@silvanocerza silvanocerza left a comment

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.

@silvanocerza silvanocerza merged commit ec376de into arduino:master Oct 15, 2021
58 checks passed
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants