Hi, trying to sort the attribs on a freshly created collection, I used the CLI appwrite deploy collection
command but I ended with a new collection much more messy than what I created at first! I expected the attributes to be sorted as they appear in my appwrite.json
file. Is there a way to achieve this? Thx.
You'll have to write a script using a server SDK
Or fork the CLI lol
You might also want to add a π to this issue: https://github.com/appwrite/sdk-for-cli/issues/79
The reason why is all the attributes are created at once: https://github.com/appwrite/sdk-for-cli/blob/ae7f9fecbbe5cc0cc702e878fd48cc8559fa18b2/lib/commands/deploy.js#L640 and so when they actually get created or finish creating is "random"
OK thx, I suspected something with the asynchronous way of creating the attribs... π Well, I think I will stick with the randomness of my initial attribs as they are less random than what I ended up! π
[SOLVED] CLI deploy = mess in the attribs
I submitted a PR with a --preserve
option for deploy collection
.
Recommended threads
- Appwriter Linux Key Bindings
Any tips for configuring appwriter for ubuntu? Actually the keybindings are tightly binded to either windows or mac. Working well on windows but in ubuntu some ...
- Admin Impersonating Clients?
I have a client that needs to use the admin User, to impersonate the Clients in order to debug better the App and the services that they are providing, could yo...
- create project api-rest
Hello good afternoon, I'm developing a project where I need to create a project by apirest, but I'm stuck with this "projects.read" permission, can I change my ...