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

Expose SM API for automation #507

Open
pentatiby opened this issue Jul 5, 2022 · 3 comments
Open

Expose SM API for automation #507

pentatiby opened this issue Jul 5, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@pentatiby
Copy link

pentatiby commented Jul 5, 2022

Is your feature request related to a problem? Please describe.

Automating parts of the SM workflow (or even an entire workflow) is difficult.

Describe the solution you'd like

It would be very helpful to be able to run SM actions via its local REST API, rather than only via the UI.

It might be even possible to do it right now by using the endpoints here, but having official support for this kind of work would be required for production usage.

Describe alternatives you've considered

  1. manually working with the JSON models and the Prismic API (current choice)
  2. running SM in a headless browser and using the actual UI from automation tools

Both of these approaches have downsides - having the SM API officially exposed for automation would be the most robust approach, as an automated user would only need updates for the API interface.

Additional context

@pentatiby pentatiby added the enhancement New feature or request label Jul 5, 2022
@comeprismic
Copy link

Hi, I'm coming back to this issue. Sorry about the long delay. Could you provide more details about your use case? What problem would you solve if you had such ability?

@pentatiby
Copy link
Author

The use case back when this was opened was around using SM only via the CI pipeline to deploy/push updates to a production environment, for a more robust/streamlined workflow, especially that, at the time, support for concurrent usage was little and there was a high risk of work loss/overrides.

In general, this enhancement would allow certain actions you can do via the SM UI to be done via its API, which removes the need to directly work with the Prismic API in order to achieve the same result.

@comeprismic
Copy link

Hi @pentatiby I'm coming back to you super late I'm sorry about that. But note that the team has worked on the topic and we now have a pretty clear vision on what we would like to do on that front, meaning providing workflows for teams of developers to create/delete/update their models without risk of compromising their work. Though, we are currently focused on modeling capabilities and we will come back to this topic in the future.

I hope you understand.

Best,

Côme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants