aws-samples / pcluster-manager

Manage AWS ParallelCluster through an easy to use web interface
https://pcluster.cloud
Apache License 2.0
65 stars 27 forks source link

Handle buffered log entries on the backend #441

Closed BarcoMasile closed 1 year ago

BarcoMasile commented 1 year ago

Description

Changed /logs controller implementation to allow buffered logs processing instead of one entry at a time. Moved source info handling to the frontend code.

Changes

Right now the controller accepts a "application/json" content of a list of log entries. Tests have been adjusted, since the implementation is pretty simple I edited the existing tests without separating controller and service tests since it wouldn't add value. Moved logging related code to a new package logging. Removed source extra key handling from the backend code and moved to the frontend code, refactoring the ILogger interface and implementation to allow the passing of the new parameter (as optional).

How Has This Been Tested?

References

PR Quality Checklist

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.