Chamando por Testadores

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 curtidas

Sim, outro plugin funciona, mas não o de recompensas:

É uma instalação limpa, o que pode estar errado? Segui este guia:

2 curtidas

Você pode usar este comando bundle exec rake db:migrate?

2 curtidas

Testando, isso resolveu :love_you_gesture:

Mas agora:

1 curtida

Você pode reiniciar o servidor e verificar?

@Ahmed_Gagan este plugin tem um tópico no meta? Eu estava procurando sugerir um recurso que poderia ter múltiplos casos de uso.

2 curtidas

Ainda não o lancei, mas o farei nos próximos dias.

Além disso, o problema acima foi apenas um problema de instalação do lado do meu cliente.

Obrigado a todos pela ajuda.