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

Improve logging and output on SIS interactions #1159

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

PasiSa
Copy link
Contributor

@PasiSa PasiSa commented Feb 3, 2023

Show also the number of removed students in log and UI notification. If error occurs, show the course that was being fetched.

Closes #1157

Description

What?

[ANSWER HERE]

Why?

[ANSWER HERE]

How?

[ANSWER HERE]

Fixes #

Testing

Remember to add or update unit tests for new features and changes.

What type of test did you run?

  • Accessibility test using the WAVE extension.
  • Django unit tests.
  • Selenium tests.
  • Other test. (Add a description below)
  • Manual testing.

[ADD A DESCRIPTION ABOUT WHAT YOU TESTED MANUALLY]

Did you test the changes in

  • Chrome
  • Firefox
  • This pull request cannot be tested in the browser.

Think of what is affected by these changes and could become broken

Translation

Programming style

  • Did you follow our style guides?
  • Did you use Python type hinting in all functions that you added or edited? (type hints for function parameters and return values)

Have you updated the README or other relevant documentation?

  • documents inside the doc directory.
  • README.md.
  • Aplus Manual.
  • Other documentation (mention below which documentation).

Is it Done?

  • Reviewer has finished the code review
  • After the review, the developer has made changes accordingly
  • Customer/Teacher has accepted the implementation of the feature

Clean up your git commit history before submitting the pull request!

Show also the number of removed students in log and UI notification.
If error occurs, show the course that was being fetched.

Closes apluslms#1157
@PasiSa PasiSa force-pushed the better_sis_logging branch from c1cc2b3 to 8d529c4 Compare February 3, 2023 13:52
@markkuriekkinen markkuriekkinen self-assigned this Feb 3, 2023
@markkuriekkinen markkuriekkinen self-requested a review February 3, 2023 14:14
Copy link
Contributor

@markkuriekkinen markkuriekkinen left a comment

Choose a reason for hiding this comment

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

Great! I will merge this now.

),
count=count,
addcount=addcount,
) + " " + format_lazy(
Copy link
Contributor

Choose a reason for hiding this comment

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

Concatenating translated strings with a space could maybe cause trouble with non-western languages that use right-to-left or top-to-bottom script, but let's ignore those now.

An alternative could be to render the two sentences in different paragraphs in the HTML.

@markkuriekkinen markkuriekkinen merged commit 848cf9a into apluslms:master Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Improve logging on SISU interactions
2 participants