-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Order projects alphabetically rather than by project id in "My Snippets" panel #34
Comments
Hi @JennieJi First of all, thank you for this extensions ! Have a good day Mathieu |
Hi @M47hieu, I’m more than happy to hear from you. And sorry that I was lazy to write a developer document for contributing. To start development:
This is roughly how the “My Snippets” works now:
To sort projects alphabetically, I have 2 ideas. Each of them has pros and cons. The first idea is instead of loading user snippets then project info, load the user projects list then get project snippets when user expand the repository. The pros of this is that I believe the get projects API allows sorting in different ways, and project list is paginated. The cons of this is we need to figure out how to hide the repository without snippets in a neat way. The second idea is use the GraphQL API for this part, so you may fetch the user snippets together with their project info. The pros are getting data together and you don’t need to work with my current messy code of fetching data as I am using REST APIs. But the cons are the GraphQL API seems significantly slower than the REST, user snippets list is paginated(a quick workaround is to set a large limit to load as many as possible). I hope this helps! I am not able to contribute code in the next several days but I would stay connected. Let me know if you have any further questions ;) |
No description provided.
The text was updated successfully, but these errors were encountered: