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.
Summary
User experienced an issue with the `appwrite deploy collection` command while trying to sort attributes in a newly created collection. The attributes were not sorted as expected. User suggested sticking with the initial randomness of attributes. A possible solution is to use a server SDK and write a script. User also mentioned submitting a pull request for a `--preserve` option in the `deploy collection` command.
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! 🙂
Gildas Quiniou
Rank 2: Process
Jan 7, 2024, 13:38
[SOLVED] CLI deploy = mess in the attribs
Gildas Quiniou
Rank 2: Process
Jan 7, 2024, 13:56
I submitted a PR with a --preserve option for deploy collection.