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

#38 TkNotifications test #58

Merged
merged 3 commits into from Jul 17, 2019
Merged

#38 TkNotifications test #58

merged 3 commits into from Jul 17, 2019

Conversation

olenagerasimova
Copy link
Contributor

For #38

  • corrected FormattedText usage in TkNotifications
  • created RequestGithub to make testing possible
  • implemented test
  • removed puzzle

@0crat 0crat added the scope label Jul 5, 2019
@0crat
Copy link

0crat commented Jul 5, 2019

Job #58 is now in scope, role is REV

@0crat
Copy link

0crat commented Jul 5, 2019

This pull request #58 is assigned to @victornoel/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 no monetary reward for this job

Copy link
Contributor

@victornoel victornoel left a comment

Choose a reason for hiding this comment

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

@olenagerasimova some comments

@@ -64,7 +62,7 @@ public TmResponse act(final Update update) throws IOException {
ntf -> Collections.singleton(
new MapEntry<>(
ntf.subject().getString("title"),
new FormattedText("click:notification#%s", ntf.tid()).toString()
new FormattedText("click:notification#%s", ntf.tid()).asString()
Copy link
Contributor

Choose a reason for hiding this comment

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

@olenagerasimova good find, for the record this change will become useless once #40 is solved, but I prefer the usage of asString() like you did when possible :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@victornoel I had to correct it, test can not work otherwise

Copy link
Contributor

Choose a reason for hiding this comment

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

@olenagerasimova I know, I was just sharing information :)

import javax.json.JsonObject;

/**
* Implementation of {@link Github} that to returns given in ctor request body.
Copy link
Contributor

Choose a reason for hiding this comment

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

@olenagerasimova the sentence is not correct grammatically I think

Json.createArrayBuilder()
.add(
Json.createObjectBuilder().add(id, idone)
.add(subject, Json.createObjectBuilder().add(title, subjone))
Copy link
Contributor

Choose a reason for hiding this comment

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

@olenagerasimova put one add (one for id, one for subject) per line for better readibility

)
.add(
Json.createObjectBuilder().add(id, idtwo)
.add(subject, Json.createObjectBuilder().add(title, subjtwo))
Copy link
Contributor

Choose a reason for hiding this comment

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

@olenagerasimova put one add (one for id, one for subject) per line for better readibility

)
)
).act(upd).xml(),
XhtmlMatchers.hasXPaths(
Copy link
Contributor

Choose a reason for hiding this comment

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

@olenagerasimova if possible replace this static call with an OO solution. For example by composing new MatcherOf and the use of xembly for testing the content of the xml.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@victornoel I think that making code not obvious and more complicated than it could be in order to avoid using static method of the external library is greater evil then straightforward and obvious call of this static method. @g4s8 wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

@olenagerasimova I agree, I think we have a problem here that I think in the long run we need to fix, but it's outside of this issue scope.

@olenagerasimova
Copy link
Contributor Author

@victornoel fix and comment

@victornoel
Copy link
Contributor

@g4s8 we have a problem because there is no other tool than XhtmlMatchers static methods to cleanly express tests. We can open an issue for this to be solved on the side for example, but I don't think we should let it creep into the codebase too much.

Apart from that I'm good to merge.

@0crat
Copy link

0crat commented Jul 10, 2019

@victornoel/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.

@victornoel
Copy link
Contributor

@g4s8 ping

@victornoel
Copy link
Contributor

@g4s8 ping :)

@g4s8
Copy link
Owner

g4s8 commented Jul 17, 2019

@victornoel thanks

@g4s8
Copy link
Owner

g4s8 commented Jul 17, 2019

@rultor merge

@rultor
Copy link
Contributor

rultor commented Jul 17, 2019

@rultor merge

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

@rultor rultor merged commit c67c736 into g4s8:master Jul 17, 2019
@rultor
Copy link
Contributor

rultor commented Jul 17, 2019

@rultor merge

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

@0crat
Copy link

0crat commented Jul 17, 2019

Code review was too long (11 days), architects (@g4s8) were penalized, see §55

@0crat 0crat removed the scope label Jul 17, 2019
@0crat
Copy link

0crat commented Jul 17, 2019

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

@0crat
Copy link

0crat commented Jul 17, 2019

Job #58 is not in the agenda of @victornoel/z, can't inspect

@0crat
Copy link

0crat commented Jul 17, 2019

The job #58 is now out of scope

@0crat
Copy link

0crat commented Jul 17, 2019

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

@ammaratef45
Copy link

@0crat quality good

@0crat
Copy link

0crat commented Jul 17, 2019

Quality review completed: +4 point(s) just awarded to @ammaratef45/z

@0crat
Copy link

0crat commented Jul 17, 2019

Order was finished, quality is "good": +20 point(s) just awarded to @victornoel/z

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.

None yet

6 participants