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

Make user able to choose the slug for the plugin #198

Open
ismailsunni opened this issue Sep 23, 2021 · 4 comments · May be fixed by #201
Open

Make user able to choose the slug for the plugin #198

ismailsunni opened this issue Sep 23, 2021 · 4 comments · May be fixed by #201
Assignees

Comments

@ismailsunni
Copy link

I recently uploaded a new plugin. I use the zipped file from the Github release page. Unfortunately, I didn't know that the plugin uploader will take the folder name as the slug for the plugin.

Now, I am stuck with this name: GeoKKP-GIS-version-0_1_0 (see the version at the end of the name). When I upload a new version, I need to rename my directory with the name above (it's strange for sure, since it's not version 0.1.0 any more).

So, I have a questions:

  1. Is it possible to change the slug of my plugin? It's a new plugin, so there are very limited users.
  2. Perhaps we can add a field so that plugin author can choose their own slug for the plugin. I think Google play store can do something like this (or perhaps read from metadata). Is that possible?

Thanks.

@sumandari
Copy link
Collaborator

Hi @ismailsunni,

  1. yes, it is possible to change the slug in a tricky way. We can change your slug on the database, but the folder name in your next version must have the same string as your modified slug.
  2. yes, this is also possible, I think this is the safer way (compare to option # 1), we can add a new field for custom unique slug with default value: folder name of the plugin. Thank you for your input, I will work on it and post the update.

@ismailsunni
Copy link
Author

Hi @sumandari, thanks for the reply.

Can you change it to GeoKKP-GIS only?

@sumandari sumandari linked a pull request Sep 24, 2021 that will close this issue
3 tasks
@sumandari
Copy link
Collaborator

@ismailsunni please test it https://plugins.qgis.org/plugins/GeoKKP-GIS/ and let me know when you got error.
Thank you

@ismailsunni
Copy link
Author

Thanks, @sumandari, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants