Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

#343 Added badges in "people.xsd" #346

Merged
merged 1 commit into from
Jun 14, 2018
Merged

Conversation

carlosmiranda
Copy link
Contributor

#343: Added badges to people.xsd. Added tests for both positive and negative cases.

@0crat 0crat added the scope label Jun 4, 2018
@carlosmiranda carlosmiranda mentioned this pull request Jun 4, 2018
@0crat
Copy link
Collaborator

0crat commented Jun 4, 2018

Job #346 is now in scope, role is REV

@0crat
Copy link
Collaborator

0crat commented Jun 4, 2018

@g4s8/z everybody who has role REV is banned at #346; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Jun 4, 2018

This pull request #346 is assigned to @amihaiemil/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @g4s8/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be a monetary reward for this job

@carlosmiranda
Copy link
Contributor Author

@amihaiemil ping

Copy link
Contributor

@amihaiemil amihaiemil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlosmiranda looks ok, just 2 questions :)

</xs:sequence>
<xs:attribute name="updated" type="xs:dateTime" use="required"/>
</xs:complexType>
<xs:unique name="personBadge">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlosmiranda You added this unique constraint, which seems ok in itself but given 0crat's "stateless" manner of work, won't it cause crashes? The way 0crat is working, I expect the following behaviour:

  1. User reaches 1024, gets the "expert" badge, which will remain, no matter how the reputation fluctuates (I remember that was the idea behind badges).

  2. User goes bellow 1024

  3. User reaches 1024 again and 0crat, being as dumb as it is, will try to add the "expert" badge again.

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amihaiemil well, if we don't make it unique, then we will eventually have multiple master (et. al) badges. Do you have an alternate suggestion?

Copy link
Contributor

@amihaiemil amihaiemil Jun 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlosmiranda The fact that they are unique is OK. We have a problem only if the behaviour of 0crat will be as I described in my comment.

But, on the other hand, if that happens, it's a bug with the groovy/Java code in /farm (which should check if the badge already exists or not). Let's leave it like this.

@@ -84,6 +84,26 @@ SOFTWARE.
<xs:field xpath="."/>
</xs:unique>
</xs:element>
<xs:element name="badges" minOccurs="0">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlosmiranda I guess because you added minOccurs="0" here, we do not need an upgrate, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amihaiemil that's the idea. Not sure this is the preferred approach but I wanted to avoid making the element mandatory. Besides, the user doesn't have badges until he reaches 1024 points.

@carlosmiranda
Copy link
Contributor Author

@amihaiemil replied

@amihaiemil
Copy link
Contributor

@rultor good to merge

@rultor
Copy link
Contributor

rultor commented Jun 6, 2018

@rultor good to merge

@amihaiemil Thanks for your request. @yegor256 Please confirm this.

@amihaiemil
Copy link
Contributor

@g4s8 I guess you are also the ARC on datum, not Yegor, right? This PR is good to be merged.

@g4s8
Copy link
Contributor

g4s8 commented Jun 6, 2018

@rultor merge

@rultor
Copy link
Contributor

rultor commented Jun 6, 2018

@rultor merge

@g4s8 Thanks for your request. @yegor256 Please confirm this.

@amihaiemil
Copy link
Contributor

@g4s8 I think you should edit .rultor.yml so rultor knows you are ARC. It asked for Yegor's permission now :)

@amihaiemil
Copy link
Contributor

@g4s8 ping

@g4s8 g4s8 mentioned this pull request Jun 7, 2018
@g4s8
Copy link
Contributor

g4s8 commented Jun 7, 2018

@amihaiemil done: #349

@amihaiemil
Copy link
Contributor

@g4s8 great, now let's wait for Yegor to merge that? :))

@0crat
Copy link
Collaborator

0crat commented Jun 9, 2018

@amihaiemil/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@carlosmiranda
Copy link
Contributor Author

@yegor256 ping, this is currently held up because Rultor is waiting for you :)

@amihaiemil
Copy link
Contributor

@g4s8 Aren't you able to merge manually?

@amihaiemil
Copy link
Contributor

@g4s8 ping

@yegor256
Copy link
Owner

@rultor merge

@rultor
Copy link
Contributor

rultor commented Jun 14, 2018

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 4ee1b03 into yegor256:master Jun 14, 2018
@rultor
Copy link
Contributor

rultor commented Jun 14, 2018

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 3min)

@0crat
Copy link
Collaborator

0crat commented Jun 14, 2018

@ypshenychka/z please review this job completed by @amihaiemil/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat 0crat removed the scope label Jun 14, 2018
@0crat
Copy link
Collaborator

0crat commented Jun 14, 2018

The job #346 is now out of scope

@0crat
Copy link
Collaborator

0crat commented Jun 14, 2018

Payment to ARC for a closed pull request, as in §28: +10 point(s) just awarded to @g4s8/z

@ypshenychka
Copy link

@amihaiemil According to our QA Rules:

The code reviewer found at least three problems in the code.
Comments were mostly about design problems, not cosmetic issues.

Only two issues were found during code review.
Please confirm that you'll try to find at least three major problems while future reviews.

@amihaiemil
Copy link
Contributor

@ypshenychka confirmed :D

@ypshenychka
Copy link

@amihaiemil Thanks

@ypshenychka
Copy link

@0crat quality acceptable

@0crat
Copy link
Collaborator

0crat commented Jun 15, 2018

Order was finished, quality is "acceptable": +15 point(s) just awarded to @amihaiemil/z

@0crat
Copy link
Collaborator

0crat commented Jun 15, 2018

Quality review completed: +8 point(s) just awarded to @ypshenychka/z

@carlosmiranda carlosmiranda deleted the 343 branch October 23, 2018 00:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants