Skip to content
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

Short report: Mark postponed risks #693

Merged
merged 3 commits into from
Jan 31, 2024
Merged

Conversation

reinhardt
Copy link
Contributor

syslabcom/scrum#1852

@reinhardt reinhardt requested a review from thet January 30, 2024 08:23
Copy link
Member

@ale-rt ale-rt left a comment

Choose a reason for hiding this comment

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

I approve, but I suspect some improvements seem desirable.
If you have no time to do that now, please remember that for the future.

@@ -815,6 +817,9 @@ def set_modules_rows(self, data):
count = 0
for risk in risks:
answer = risk.get("justifiable", "")
postponed = risk.get("postponed", False)
if not answer and postponed:
Copy link
Member

Choose a reason for hiding this comment

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

There is no point in getting postponed if answer is falsish, but ok...

)
cell = row_risk.cells[self.risk_answer_col]
cell.text = self.justifiable_map.get(answer) or ""
font = self.justifiable_font.get(answer)
Copy link
Member

Choose a reason for hiding this comment

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

I think this increases the complexity of the method, which is already complex. But ok...
Probably adding a separate method, expanded in the DocxCompilerShort would have been better.
But I am not able to really judge by just reading the PR.

@reinhardt reinhardt removed the request for review from thet January 31, 2024 09:24
@reinhardt
Copy link
Contributor Author

I refactored a little.

Maybe the whole module would benefit from some more refactoring... I'll see if I can sneak something in.

please remember that for the future

The whole point of code reviews is that a single person cannot think of all possible improvements all the time. Asking me to do this seems both condescending and pointless to me.

@ale-rt ale-rt merged commit 132b051 into main Jan 31, 2024
2 checks passed
@ale-rt ale-rt deleted the scrum-1852-short-report-postponed branch January 31, 2024 14:19
@ale-rt
Copy link
Member

ale-rt commented Jan 31, 2024

The whole point of code reviews is that a single person cannot think of all possible improvements all the time. Asking me to do this seems both condescending and pointless to me.

Sorry for that, I thought I was doing good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants