xmisao / bestgems.org

Gem ranking and downloads trends providing service.
https://bestgems.org/
GNU Affero General Public License v3.0
98 stars 14 forks source link

Adding categories to gems #75

Open enkessler opened 5 years ago

enkessler commented 5 years ago

I see that some gems have been placed in a category and some have not but I have not seen a way to add or change the category of a given gem. As the owner/maintainer of several gems, I would like to have them be placed in the correct category so that new users can find them more easily.

Is there a mechanism do do this?

xmisao commented 5 years ago

Thank you for your feedback.

Currently you can not edit categories. Please wait for a while as we develop in the future.

enkessler commented 5 years ago

Good to know. Thanks!

xmisao commented 5 years ago

@enkessler Now you can add categories to gems from [Edit] link in the upper right of a gem page. Try it.

http://bestgems.org/gems/cucumber_analytics

enkessler commented 5 years ago

@xmisao It worked like a charm. :)

I did run into an internal server error while adding categories to cuketagger but it worked the second time that I tried.

enkessler commented 5 years ago

I see that category editing is open to anyone and, while I would like to believe that people won't intentionally mess up the categories of gems, I do wonder what a good way to handle/prevent that would be. Tracking the category changes is a good idea and that would facilitate changing them back if anything malicious happens.

Because the owners of the gems are known, could they automatically be sent an email when there is a category change? At least that way they would know about any inappropriate changes and be able to fix them right away.

xmisao commented 5 years ago

@enkessler It is a difficult problem. And I can understand your concern well.

I believe in conscience. Fortunately, BestGems isn't a famous website. And, I believe that most users are sensible Rubyists like you. For this reason, I think that logging only enough for inappropriate changes.

Change histories are saved in the gem_category_change_histories table now. See #77. I can track changes using this table. Also, I can undo inappropriate changes.

Please let me know if your Gem category is inappropriately changed. In that case, I will consider a more reliable mechanism.

enkessler commented 5 years ago

It is a difficult problem

Adding authorization or some other kind of preventative measure would be difficult, sure. Adding awareness after the fact, on the other hand, sounds easier.

Please let me know if your Gem category is inappropriately changed

People (probably) aren't going to actively monitor their listings. That's why I suggest sending an email to the owners when a change is made. They can then decide whether or not to contact you if the change was erroneous. An automatic email that kicks off this process is minimal effort for everyone involved.

I don't know where exactly you are getting all of the gem information from but, if nothing else, the gemspec of each gem should have contact information that a notice could be sent to.

rubyFeedback commented 2 years ago

This now, sort of, seems possible. We can add tags, I believe. Was that a recent change? The discussion here is +2 years old and I did not notice this feature until recently.

The gem categories are fine but a little bit detailed. One of my gems covers tons of different use cases; I use it for everyday work with ruby, so I am unsure where to file this. Perhaps a "misc" or some category that does not fit into the others, could be added.