[go: nahoru, domu]

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

I found some lint in the coach plugin #12462

Merged

Conversation

nucleogenesis
Copy link
Member
@nucleogenesis nucleogenesis commented Jul 17, 2024

Summary

I found some lint in the coach plugin while evaluating the uses of section_id.

We're not using section_id for anything we shouldn't be I think.

References

Closes #12195 -- noting that the issue is one that has been addressed over several PRs in the last few weeks.

Reviewer guidance

This PR makes changes that remove old and unused code for the most part, so some regression testing on:

  • Section editing
  • Section ordering

@github-actions github-actions bot added APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend labels Jul 17, 2024
Copy link
Member
@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

Code wise this makes sense, will want to manually test for regressions quickly to be sure before merge.

@nucleogenesis nucleogenesis added the TODO: needs QA re-review For stale issues that need to be revisited label Jul 22, 2024
@nucleogenesis nucleogenesis removed the request for review from radinamatic July 22, 2024 16:53
@marcellamaki
Copy link
Member

Hi @nucleogenesis I think it would be good for @radinamatic to QA this since we're close to release. Can you please update your PR to have some concrete reviewer guidance for manual QA, even if it's just a short explanation of what the relevant regression testing would be, or drawing connections between particular parts of the UX and where code has changed? Thank you!

@radinamatic
Copy link
Member
radinamatic commented Jul 24, 2024

No issues encountered while editing sections (reordering, renaming, replacing questions), but this unsightly view was displayed after deleting one from the Section settings sidebar:

delete

Delete did not complete, as when I tried to close the now empty sidebar, browser pop-up alert appeared, and when the page reloaded the section I intended to delete was still there. Second attempt to delete the section was equally unsuccessful, but this time it got me into too much recursion error in the console:

2024-07-24_14-59-41

Worth mentioning that the above errors while trying to delete a section appeared on a copy of a quiz, while the initial copy procedure produced this error in the console without any apparent consequences in the UI:

exam learner id

Database and logs from Ubuntu 24.04 (tested in Firefox):
DB-logs.zip

@radinamatic
Copy link
Member

Just to confirm that the error at deleting a section happens even when the quiz is not a copy of another, but created from scratch, with again ending with too much recursion errors in the console:

after-delete2

@nucleogenesis
Copy link
Member Author

@radinamatic I've resolved the issue w/ the section deletion! So glad you caught this regression <3

@github-actions github-actions bot added DEV: renderers HTML5 apps, videos, exercises, etc. DEV: backend Python, databases, networking, filesystem... APP: Learn Re: Learn App (content, quizzes, lessons, etc.) DEV: tools Internal tooling for development labels Jul 25, 2024
@nucleogenesis nucleogenesis force-pushed the linting-coach-post-eqm branch 2 times, most recently from 9499687 to cbfe7d6 Compare July 25, 2024 21:16
@radinamatic
Copy link
Member

I've been pushing it really hard this morning with lots of edits, deletions, replacements and reordering, etc. It did behave rather egregiously, and no unsightly views occurred this time 🙂

The worst thing I could notice happened in the console, and apparently had no effect in the UI:

2024-07-26_20-30-08

But let's test this more thoroughly and include in the planned patch 1, just in case...

@rtibbles
Copy link
Member
rtibbles commented Aug 6, 2024

@radinamatic I think we can do one final pass here and then merge this for the patch?

@radinamatic
Copy link
Member

Yes, it's on our QA list! 👍🏽

@pcenov
Copy link
Member
pcenov commented Aug 9, 2024

Hi @nucleogenesis the only issue that I was able to identify here is actually an issue which I've previously reported for the 'Section settings' modal - when I add a new section and I enter a new section title or description, then I can't add any questions. The same is valid if I attempt to edit a section:

Are.you.sure.you.want.to.leave.this.page.mp4

@pcenov
Copy link
Member
pcenov commented Aug 13, 2024

Thanks @nucleogenesis - I confirm that the 'Section settings' modal is working fine now, and there are no new issues. Good to go!

Copy link
Member
@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

QA passes, no concerns code wise.

@rtibbles rtibbles merged commit ac56b66 into learningequality:release-v0.17.x Aug 13, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) APP: Learn Re: Learn App (content, quizzes, lessons, etc.) DEV: backend Python, databases, networking, filesystem... DEV: frontend DEV: renderers HTML5 apps, videos, exercises, etc. DEV: tools Internal tooling for development TODO: needs QA re-review For stale issues that need to be revisited
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants