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

added fuel update command #185

Merged
merged 12 commits into from
Jun 4, 2021
Merged

added fuel update command #185

merged 12 commits into from
Jun 4, 2021

Conversation

Lobotuerk
Copy link
Contributor

Signed-off-by: Tomas Lorente jtlorente@ekumenlabs.com

🎉 New feature

Update command for fuel

Summary

ign fuel update, supports --onlymodels and --onlyworlds to select if you only want to download one of those. By default downloads both.

Test it

Download a model or a world, modify that one in fuel to up the version, call the command and see it update.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
@Lobotuerk Lobotuerk requested review from nkoenig and gonzodepedro May 10, 2021 18:29
@github-actions github-actions bot added the 🔮 dome Ignition Dome label May 10, 2021
Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

I know this is a draft PR but I added some comments

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
Copy link
Contributor

@nkoenig nkoenig left a comment

Choose a reason for hiding this comment

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

This looks like a good direction. A few high-level comments:

  1. Add support for the --header command line option, which will allow updating of private resources.
  2. You should use ServerConfig to instead of hardcoding the fuel URL. A pattern you can follow is here: https://github.com/ignitionrobotics/ign-fuel-tools/blob/ign-fuel-tools6/src/ign.cc#L294

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
@Lobotuerk Lobotuerk requested a review from ahcorde May 19, 2021 15:21
Lobotuerk added 3 commits May 19, 2021 16:23
Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>
@Lobotuerk
Copy link
Contributor Author

Lobotuerk commented May 19, 2021

  1. You should use ServerConfig to instead of hardcoding the fuel URL. A pattern you can follow is here: https://github.com/ignitionrobotics/ign-fuel-tools/blob/ign-fuel-tools6/src/ign.cc#L294

@nkoenig I don't think I even need to have the URL anywhere. After looking into it, I think the identifier for each model and world has the URL inside, so I can just make the client download it from there, am I right?

edit* WorldDownload does not seem to support header, does that mean that it does not use header or that it needs to be fed the header in another way?

@Lobotuerk Lobotuerk requested a review from nkoenig May 19, 2021 19:30
Nate Koenig added 4 commits June 1, 2021 15:32
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig marked this pull request as ready for review June 2, 2021 16:06
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig enabled auto-merge (squash) June 4, 2021 17:57
@nkoenig nkoenig disabled auto-merge June 4, 2021 17:58
@nkoenig nkoenig merged commit dc59f86 into ign-fuel-tools5 Jun 4, 2021
@nkoenig nkoenig deleted the lobotuerk/fuel_update branch June 4, 2021 17:58
chapulina added a commit that referenced this pull request Aug 13, 2021
* Owner upload (#179)

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Co-authored-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Louise Poubel <louise@openrobotics.org>

* Fixed windows download (#178)

* Fixed donwload on Windows

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed interface_TEST

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved windows support

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed test on Windows

Signed-off-by: Alejandro Hernández <ahcorde@gmail.com>

* Fixed test

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fix some nits

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Improved Windows support

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed test on Linux

Signed-off-by: ahcorde <ahcorde@gmail.com>

* make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed windows tests

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Fixed tests

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Added feddback

Signed-off-by: ahcorde <ahcorde@gmail.com>

* make linters happy

Signed-off-by: ahcorde <ahcorde@gmail.com>

* Remove tools/code_check and update codecov (#187)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* added fuel update command (#185)

* added fuel update command

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fixed header

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fixed build

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* updated docs

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* added header

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* fix

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* nit2

Signed-off-by: Tomas Lorente <jtlorente@ekumenlabs.com>

* Style, and headers

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fixed world download

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Removed debug

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fix tests

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Fix windows

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Co-authored-by: Nate Koenig <nate@openrobotics.org>

* 🎈 4.4.0 (#190)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

* Detect ign instead of using cmake module to check for ignition-tools (#191)

Signed-off-by: Louise Poubel <louise@openrobotics.org>

Co-authored-by: Nate Koenig <nkoenig@users.noreply.github.com>
Co-authored-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Louise Poubel <louise@openrobotics.org>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Jose Tomas Lorente <jtlorente@ekumenlabs.com>
Co-authored-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-01-10/1228/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 dome Ignition Dome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants