France-ioi / AlgoreaBackend

Backend for the new Algorea platform
MIT License
1 stars 2 forks source link

Return the modified result data (together with the linked attempt data) in the format of attemptsList response row on success in resultStart #1159

Closed zenovich closed 3 weeks ago

zenovich commented 4 weeks ago
  1. service.Response is being converted into a generic to make the type of Data field specific. Otherwise, json.Marshal() ignores custom marshallers defined with pointer receivers for its fields as it is non-addressable resulting in marshalling database.Time as '{}'.
  2. A new template function timeDBMsToRFC() for godog tests is being introduced to format RFC3339 time with milliseconds explicitly.
  3. The existing template function timeDBToRFC() is being modified to return timestamps without the fraction part.
  4. The resultStart service is being changed to return attemptsList response row on success.

Fixes #1156

codecov[bot] commented 4 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (7c987bf) to head (5d0d893). Report is 8 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1159 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 237 237 Lines 14580 14589 +9 ========================================= + Hits 14580 14589 +9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.