-
Notifications
You must be signed in to change notification settings - Fork 61
fix: derive weight automatically #627
fix: derive weight automatically #627
Conversation
✅ Deploy Preview for ubiquibot-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Priority weight was not implemented according to the spec:
During runtime, when a bounty is being assistive priced by the bot, the bot should parse the number from the Priority label and use it in place of the weight
Did you accommodate the following?
Any words should be ignored from this parser, except for Priority: of course, in order to understand that it is a priority label.
- I'm reviewing the referenced comment feat: default config #383 (comment) and realized that I might not have been clear that I was only referring to
weight
in the context of thePriority
label. - What is the
weight
representing for theTime
labels? Does anybody know? - @wannacfuture is working on calculating the
Time
values invalue
should be dynamically parsed from the time value using thems
library #431
…into automatically_derive_weight
Bounty price is depend on both weight from priority and time label. |
…ballet/ubiquibot into automatically_derive_weight
…into automatically_derive_weight
@pavlovcik it appears we only use |
This looks like a mistake. One function is to set the price, the other function is to get the price. Both should be using |
|
Both are using weight. The ubiquibot/src/helpers/label.ts Line 74 in f6e99df
|
…into automatically_derive_weight
We should rename it to |
Should we rename weight to value in priority and remove weight from time? |
Please note that |
Yes that is what the specification says. The only adjustment I have is to rename the property name from |
I removed both |
@whilefoo you think you can re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation looks pretty clean. Just needs QA.
ubiquibot/staging#144 tags haven't been changed in accordance to the new weights which causes the (old) 0 normal tag to not price the issue @ByteBallet |
I thought, we are going to shift the priority tag.
|
@pavlovcik if this is OK then QA is approved |
Yeah we can update the priority numbers. @whilefoo if you approve please merge. |
Resolves #495