Appel aux testeurs

Hi Guys,
I have created a rewards plugin for 2 of my clients. This plugin allows users to earn points by earning reward badges OR doing some pre-defined tasks. These earned points can be redeemed in the points-center where the admin has uploaded rewards.

Plugin Link: GitHub - Ahmedgagan/discourse-rewards

@satonotdead is facing this issue.

b:289:in `detect_enum_conflict!'
/home/user/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activerecord-6.1.4.1/lib/active_record/enum.rb:294:in `raise_c
onflict_error': You tried to define an enum named "status" on the model "DiscourseRewards::UserReward", but this will genera
te a instance method "applied?", which is already defined by another enum. (ArgumentError)

I am unable to reproduce this issue & even my other client is not having any issues with the plugin.

I want some people to test the plugin & share if they are facing some similar issue or not. Also, if anyone has a solution for this?

Thank you for testing out the plugin.

Best regards.
Ahmed

7 « J'aime »

Oui, un autre plugin fonctionne, mais pas celui des récompenses :

C’est une installation propre, qu’est-ce qui pourrait être faux ? J’ai suivi ce guide :

2 « J'aime »

Pouvez-vous utiliser cette commande bundle exec rake db:migrate ?

2 « J'aime »

Tester, ça fait l’affaire :love_you_gesture:

Mais maintenant :

1 « J'aime »

Pouvez-vous redémarrer le serveur et vérifier ?

@Ahmed_Gagan ce plugin a-t-il un sujet sur meta ? Je cherchais à suggérer une fonctionnalité qui pourrait avoir plusieurs cas d’utilisation.

2 « J'aime »

Je ne l’ai pas encore publié, mais je le ferai dans les prochains jours.

De plus, le problème ci-dessus était juste un problème d’installation du côté de mon client.

Merci à tous pour votre aide.