-
Notifications
You must be signed in to change notification settings - Fork 14
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 custom-type schema from CLI #11
Comments
I could possibly do this myself, but I would require some documentation for the available API endpoints, as there is none that currently publicly exist - as far as I can see. For example, I can deduce from source that there's an |
@ryami333 It could be a great feature but we currently don't have any endpoint for this kind of thing. Maybe you could open a pull request with such feature to send an object like : |
I had a dig around the source-code, and I'll be honest I can't work out what's going on for the life of me, and I'd be blindly trying to interface with an endpoint that doesn't exist anyway. Has there been any progress on this? Has it been added to the roadmap? This is really holding us back from using your otherwise-stellar service on any project larger than a simple blog. |
Hi @ryami333,
Can you tell me a bit more about your use cases, the kind of project you
are talking about, just to understand your needs. For the implementation, I
can take care of it at some point :)
…On Wed, Mar 1, 2017 at 4:13 AM ryami333 ***@***.***> wrote:
I had a dig around the source-code, and I'll be honest I can't work out
what's going on for the life of me, and I'd be blindly trying to interface
with an endpoint that doesn't exist anyway.
Has there been any progress on this? Has it been added to the roadmap?
This is really holding us back from using your otherwise-stellar service on
any project larger than a simple blog.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtiX9XOdgvJfWzHnNu1DFZM2dIdNPLHks5rhOJrgaJpZM4LnX31>
.
|
With pleasure @arnaudlewis :) Before I endeavour on any new project, I spend a fair amount of time architecting the services, build tools, and deployment procedures required. As it currently stands, we cannot use Prismic because there are no procedures which allow us to source-control and deploy changes to custom-types. Fundamentally, it would appear that Prismic could be equipped to handle this, because custom-types are actually all represented by a single JSON object which we can hand-edit on the page What this means for me, is that I can test a new feature which might involve modifications to my custom-types on my 'staging' repo, without affecting my 'production' repo. I need to easily revert when the feature is abandoned, and I need to easily propagate the changes to 'production' when the feature is merged. In an ideal world, I'd even bundle these processes into my CI/CD pipelines. Practical use aside, in some cases it's important to me that I can represent the schema of my CMS within the source-code of my project, as a means of documentation. I might want to archive the project and spin it up again a few months down the track, in which case I have to 'guess' what my custom-types schema looks like. Hope this helps! |
Ok I get it, it's like defining a nosql model on your code and propagate it to your repository. |
I am researching Prismic for a future project and have a similar use case. I know there is a lot progress on import/export of content, but import/export of custom-types schema would be essential for the dev team I am working with for all the reasons above. |
Months on, this remains the only reason why I have chosen to stay with Contentful, despite preferring Prismic in most other regards. For reference, I'm going to put these links here: https://github.com/contentful/contentful-import These are the tools that Contentful provide as a means for exporting and importing schema (and/or content), allowing for integration into source-control and CD. |
Is this something that has come under further consideration in the past few years? I’d also like to be able to version control my schema, and am also using it to code generate richer models for interacting with received data. At the moment, we have to copy and paste; but if we could integrate it with scripts, this would make our workflow much smoother. |
We also need this feature to integrate prismic into our CI/CD worfklow. It is a deal breaker for us. |
+1 |
+1 The absence of this feature is making Prismic untenable. |
+1 this would make creating new projects 100x easier |
+1 |
+1. Why is it that Prismic is spending so much time in slices etc. but not enough it the basic of getting a good architecture going? If you have 50 sites and want to do continuous delivery you are basically screwed. |
Hey guys, If you want more, don’t hesitate to submit a PR, but at least you’ll get everything you need to access the custom types from the CLI if you want to do so. |
An implementation to synchronize the slices coming from prismic to your project. |
We have also a command |
This is something done with the latest beta of the CLI and Slicemachine: Please try it out and let us know what you think :) |
Feature Request
Currently, we are able to create an entirely new repository with the
prismic theme
command, using acustom_types/index.json
file as the custom-types schema. In order to source-control your schema there needs to be a workflow to programmatically update an existing schema.Something along the lines of:
Benefits:
The text was updated successfully, but these errors were encountered: