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

Making it easy to experiment with GTO while trying it out #332

Open
aguschin opened this issue Jan 17, 2023 · 0 comments
Open

Making it easy to experiment with GTO while trying it out #332

aguschin opened this issue Jan 17, 2023 · 0 comments
Labels
enhancement New feature or request git tags

Comments

@aguschin
Copy link
Contributor

Posting this as a result of a discussion with @shortcipher3:

I think the main thing for me is I would like to be able to try it out maybe with a few setups, show it off and get feedback and change things based on feedback. The tool is simple and flexible which I like, but it allows for different setups, so I would like to see what works best for us.

I think a couple things would be really helpful for this kind of sandboxing.

  1. Being able to blow away gto and start fresh
  2. Having a history or being able to get a list of commands that will generate the current gto state

This would make it a lot easier to undo and redo a bunch of commands.

I think cloning the repo and using the clone as a sandbox would help with my case. Ideally I would like to be working directly in the original repo.

So, that was the feedback. My thoughts:

  1. Being able to blow away gto and start fresh

Means removing all Git tags that were created by GTO. Don't touch anything else, e.g. Git commits that were created to modify artifacts.yaml

  1. Having a history or being able to get a list of commands that will generate the current gto state

Rn there is this command

$ gto history
╒═════════════════════╤════════════╤══════════════╤═══════════╤═════════╤══════════╤══════════════════╕
│ timestamp           │ artifact   │ event        │ version   │ stage   │ commit   │ ref              │
╞═════════════════════╪════════════╪══════════════╪═══════════╪═════════╪══════════╪══════════════════╡
│ 2022-11-27 08:16:38 │ churn      │ assignment   │ v3.1.1    │ dev     │ 59278da  │ churn#dev#5      │
│ 2022-11-27 08:16:38 │ churn      │ registration │ v3.1.1    │ -       │ 59278da  │ [email protected]     │
...

We can improve it, e.g. implement something like:

$ gto history --commands
...
gto register churn --version v3.1.1
gto assign churn --version v3.1.1 --stage dev
@aguschin aguschin added enhancement New feature or request git tags labels Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request git tags
Projects
None yet
Development

No branches or pull requests

1 participant