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

[Feature] Overwrite test by URI during QTI import #2491

Merged
merged 10 commits into from
Aug 13, 2024

Conversation

shpran
Copy link
Contributor

@shpran shpran commented Aug 2, 2024

PISA25-774

Changes

  • Request parameter overwriteTest replaced by overwriteTestUri
  • Code updated to use overwriteTestUri request parameter

Related PRs

Copy link

github-actions bot commented Aug 2, 2024

Front-end summary Node 18

💯 Total ✅ Passed ⏭️ Skipped ❌ Failed
709 709 0 0

@shpran shpran changed the title feat: overwrite test by URI during QTI import [Feature] Overwrite test by URI during QTI import Aug 2, 2024
}
} catch (\common_exception_RestApi $e) {
} catch (common_exception_RestApi $e) {
return $this->returnFailure($e);
Copy link
Contributor

Choose a reason for hiding this comment

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

@shpran would it be asking too much if we could make sure that the exceptions caught here have logs with:

  • Exception class name that was triggered
  • Exception message
  • Exception trace

Maybe we already have something on returnFailure implementation?

I am asking, cause generally this logs with only exception message do not help at all as we have no idea where it happened. This is a critical process for the whole ingestion process, so I think it is useful to have this logs

Wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one doesn't relate to my changes (just fixed FQN), but sure I will improve these logs 😎
Thanks for suggestion

Copy link
Contributor

Choose a reason for hiding this comment

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

@shpran I know this is not part of your changes, but today is a bit of a pain to track errors when we are generating translations. Could you please add logs for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked returnFailuer implementation and found, that we use Advanced Logger feature there, so message, file, line and trace should be logged:
image

Copy link
Contributor

@gabrielfs7 gabrielfs7 left a comment

Choose a reason for hiding this comment

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

Thanks @shpran

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code is respecting code style rules
  • New code is respecting best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful

Copy link

github-actions bot commented Aug 8, 2024

Version

Target Version 48.12.0
Last version 48.11.0

There are 0 BREAKING CHANGE, 1 feature, 0 fix

@gabrielfs7 gabrielfs7 merged commit a303559 into develop Aug 13, 2024
5 checks passed
@gabrielfs7 gabrielfs7 deleted the feat/pisa25-744/overwrite-test-by-uri branch August 13, 2024 12:10
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.

3 participants