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
Orb of Rebirth remains non-free an extra day (creates misleading message on website) #11297
Comments
@Alys can I be assigned to this issue? I want to work on this |
@martineizayaga Sure, thank you! Please go ahead. Comment here if you have questions. |
Hi! Beginner here. Can I work on this issue? |
@martineizayaga how are you going with this? Would you like to keep working on it? If you've become too busy just let us know - we know what that's like. :) |
Hi! I would like to keep working on it if that's ok
…On Sep 8, 2019, 1:58 AM -0400, Alys ***@***.***>, wrote:
@martineizayaga how are you going with this? Would you like to keep working on it? If you've become too busy just let us know - we know what that's like. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@martineizayaga Sure, carry on, thanks! :) @anushkajj I'm sorry, no, this issue is taken. :) |
@Alys No issues! Thank you :) |
@martineizayaga, do you still working on it? I've passed the last couple days reading about how to contribute with Habitica project and now I'm excited to solve my first issue in the project . If you happen too busy to go on with this issue, I could take it for me :) |
@martineizayaga Is it okay with you if @bmasetto takes this over? |
Yes, please! |
@martineizayaga Thanks! @bmasetto Please go ahead if you're still interested! |
@bmasetto, are you still working on this? I am new to Habitica, and also excited to solve my first project. If you don't mind, I could take it off your hands. |
For sure, @mistergij! Unfortunately, I was not able to start solving this issue 😞 If @Alys agree, go ahead 😃 |
@mistergij and @bmasetto Thanks! @mistergij you're welcome to work on this. |
@Alys, created a pull request, waiting for confirmation. |
Out of curiosity how would you test something like this? Is there a way to award yourself gems in dev and speed up time (Skip to 45 days)? |
@mistergij Thanks! Just so you know, you don't need to post to the issue to tell us when you've created a pull request. :) Instead, in your pull request, you can write "Fixes #11297" (that's the issue number) - you put that in the top post in the pull request (the PR template has a comment there as a reminder). That makes an automatic link between the pull request and issue, and then if the pull request is accepted, the issue will be closed automatically. See Using Your Local Install to Modify Habitica%27s Website and API > "Submitting your Change for Review in a Pull Request" for more details about what you can add to your PR. You should include your User ID too so that you can be given credit towards a contributor tier if your PR is accepted. You can edit your PR's top comment if you want to add those things now. @binamkayastha Yes, you can give yourself Gems, using the Debug menu in the footer (see Using Your Local Install to Modify Habitica%27s Website and API > "Testing your Change Manually" for details). |
When the Orb of Rebirth stopped being free consistently from level 100, it was announced in the Aspiring Socialites guild with this message (emphasis is mine):
However with the current code, it actually becomes free again after 46 days, not 45. I realise this is pretty minor but it would be easy to fix, and it's causing a misleading display message on the website (described below).
The current API code is this:
habitica/website/common/script/libs/isFreeRebirth.js
Lines 4 to 14 in 2bfc41b
It could be changed to match the official announcement by changing
> 45
to>= 45
The website's behaviour matches the API (i.e., it shows the Orb as free or not free according to the decision made by the API), but because the API makes you wait one extra day, the website's message is confusing on the final day (the day when it should already be free again) - on that day the website says "0 days until FREE Orb of Rebirth", as reported by @Evil_Overmom (0396e6e1-0edc-46f5-9449-24891ba16698):
If the API's code is fixed as described above, then the Orb will become available a day earlier and you'll never see that misleading message.
FYI this is the website's code but it does not need to be changed if the API change above is made:
habitica/website/client/components/shops/buyModal.vue
Lines 382 to 384 in 2bfc41b
habitica/website/client/components/shops/buyModal.vue
Lines 82 to 85 in 2bfc41b
The text was updated successfully, but these errors were encountered: