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

feat(logging): pass request logger to core/services/objects #2599

Merged
merged 22 commits into from
Aug 9, 2024

Conversation

iainsproat
Copy link
Contributor

@iainsproat iainsproat commented Aug 7, 2024

Description & motivation

Amends signature of method to allow additional context, such as a logger, to be provided. This makes it easier to add additional properties in the future.

In this case we are allowing a logger to be provided, which may include additional metadata etc.

Changes:

  • signature of createObject function in packages/server/modules/core/services/objects.js is now a single parameter accepting an object.
  • This object parameter allows a logger to optionally be provided, or defaults to the existing serviceLogger.

To-do before merge:

Screenshots:

Validation of changes:

Checklist:

  • My pull request follows the guidelines in the Contributing guide?
  • My pull request does not duplicate any other open Pull Requests for the same update/change?
  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • My code follows a similar style to existing code.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

References

@iainsproat iainsproat changed the title feat(logging): add logger to core/services/objects feat(logging): pass request logger to core/services/objects Aug 8, 2024
@iainsproat iainsproat marked this pull request as ready for review August 8, 2024 15:35
@gjedlicska gjedlicska merged commit ee3e9af into main Aug 9, 2024
22 of 24 checks passed
@gjedlicska gjedlicska deleted the iain/pass-logger-to-objects branch August 9, 2024 08:15
iainsproat added a commit that referenced this pull request Aug 12, 2024
iainsproat added a commit that referenced this pull request Aug 12, 2024
iainsproat added a commit that referenced this pull request Aug 12, 2024
* Revert "refactor(server/upload): convert js to ts (#2618)"

This reverts commit e9f7286.

* Revert "feat(logging): pass request logger to core/services/objects (#2599)"

This reverts commit ee3e9af.

* Revert "feat(server): configurable maximum objects POST size and improved logging (#2594)"

This reverts commit 55cad96.
iainsproat added a commit that referenced this pull request Aug 12, 2024
* Revert "refactor(server/upload): convert js to ts (#2618)"

This reverts commit e9f7286.

* Revert "feat(logging): pass request logger to core/services/objects (#2599)"

This reverts commit ee3e9af.

* Revert "feat(server): configurable maximum objects POST size and improved logging (#2594)"

This reverts commit 55cad96.
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