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

Refactoring services #287

Merged
merged 2 commits into from
Jun 4, 2024
Merged

Conversation

kairoaraujo
Copy link
Collaborator

@kairoaraujo kairoaraujo commented May 27, 2024

What this PR does / why we need it

It simplifies Archivista's main cmd by moving all the service logic into the pkg/server.

It allows users to use the Archivista Server instance as a Service Interface and allows integration along with API services.

Remove the internal to enable Archivista source code user to:

  • Extend/Modify the existent services (config, storage, etc) within
    their code base

  • Allow the use of Archivista encapsulated in other services, for example, API service

Acceptance Criteria Met

  • Docs changes if needed
  • Testing changes if needed
  • All workflow checks passing (automatically enforced)
  • All review conversations resolved (automatically enforced)
  • DCO Sign-off

Special notes for your reviewer:

@kairoaraujo kairoaraujo force-pushed the refactoring_services branch from 4db95b6 to b638f15 Compare May 27, 2024 15:04
Copy link

codecov bot commented May 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 104 lines in your changes missing coverage. Please review.

Project coverage is 1.61%. Comparing base (a035c62) to head (e363876).
Report is 95 commits behind head on main.

Current head e363876 differs from pull request most recent head eb2c383

Please upload reports for the commit eb2c383 to get more accurate results.

Files Patch % Lines
pkg/server/services.go 0.00% 93 Missing ⚠️
cmd/archivista/main.go 0.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #287       +/-   ##
==========================================
- Coverage   82.40%   1.61%   -80.80%     
==========================================
  Files          10     119      +109     
  Lines         358   28846    +28488     
==========================================
+ Hits          295     465      +170     
- Misses         43   28324    +28281     
- Partials       20      57       +37     

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

@kairoaraujo kairoaraujo marked this pull request as ready for review May 31, 2024 18:23
@kairoaraujo kairoaraujo force-pushed the refactoring_services branch from 7e5065b to e363876 Compare June 1, 2024 06:41
@kairoaraujo
Copy link
Collaborator Author

@jkjell rebased.

Remove the internal in order to enable Archivista source code user to:
- Extend/Modify the existent services (config, storage, etc) within
  their code base

- Allow to use Archivista encapuslated in other services, example API
  service

Signed-off-by: Kairo Araujo <[email protected]>
Simplifies Archivista main cmd moving all the service logic into the
`pkg/server`.

It allows users to use the Archivista Server instance as an Service
Interface allowing to integrate along to API services.

Signed-off-by: Kairo Araujo <[email protected]>
@jkjell jkjell force-pushed the refactoring_services branch from e363876 to eb2c383 Compare June 4, 2024 01:09
@jkjell jkjell merged commit 2eab116 into in-toto:main Jun 4, 2024
11 checks passed
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