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

refactor: move API errors folder structure #4957

Conversation

jfcalvo
Copy link
Member

@jfcalvo jfcalvo commented Jun 5, 2024

Description

This PR include changes moving API errors to follow this structure:

/api
  /errors
    /v1
      ...

The behavior has not been changed.

Refs #4868

Type of change

(Please delete options that are not relevant. Remember to title the PR according to the type of change)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (change restructuring the codebase without changing functionality)
  • Improvement (change adding some improvement to an existing functionality)
  • Documentation update

How Has This Been Tested

(Please describe the tests that you ran to verify your changes. And ideally, reference tests)

  • Test should be passing as before.

Checklist

  • I added relevant documentation
  • follows the style guidelines of this project
  • I did a self-review of my code
  • I made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I filled out the contributor form (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@jfcalvo jfcalvo requested a review from frascuchon June 5, 2024 12:06
@jfcalvo jfcalvo changed the title refactor: move API handlers folder structure refactor: move API errors folder structure Jun 6, 2024
Copy link

codecov bot commented Jun 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.40%. Comparing base (82b6811) to head (f4bd40c).

Additional details and impacted files
@@                             Coverage Diff                             @@
##           refactor/api-folder-structure-improvements    #4957   +/-   ##
===========================================================================
  Coverage                                       91.40%   91.40%           
===========================================================================
  Files                                             136      136           
  Lines                                            5820     5820           
===========================================================================
  Hits                                             5320     5320           
  Misses                                            500      500           
Flag Coverage Δ
argilla-server 91.40% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from refactor/api-handlers-structure-improvements to refactor/api-folder-structure-improvements June 7, 2024 11:00
@jfcalvo jfcalvo merged commit 12a6816 into refactor/api-folder-structure-improvements Jun 7, 2024
6 checks passed
@jfcalvo jfcalvo deleted the refactor/api-errors-structure-improvements branch June 7, 2024 11:13
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