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: Implement SourceHub ACP #2657

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

AndrewSisley
Copy link
Contributor

@AndrewSisley AndrewSisley commented May 30, 2024

Relevant issue(s)

Resolves #2366

Description

Implements SourceHub ACP.

Whilst the time out for a single package has been increased, the CI cost of the new jobs remains about the same as when running with source-hub acp, the integration test harness will skip all non-acp tests.

Warnings

This PR introduces a new dependency to be manually installed by anyone running the tests locally. It is noted in the contributors readme. It can be removed once a SourceHub test harness thing has been built allowing us to stop using the SourceHub CLI in our tests.

@AndrewSisley AndrewSisley added feature New feature or request area/auth Related to the authorization and authentication of data labels May 30, 2024
@AndrewSisley AndrewSisley added this to the DefraDB v0.12 milestone May 30, 2024
@AndrewSisley AndrewSisley self-assigned this May 30, 2024
@AndrewSisley AndrewSisley force-pushed the 2366-source-hub branch 9 times, most recently from e957409 to 4005996 Compare May 30, 2024 21:39
Copy link

codecov bot commented May 30, 2024

Codecov Report

Attention: Patch coverage is 72.94521% with 79 lines in your changes missing coverage. Please review.

Project coverage is 79.10%. Comparing base (d73b05b) to head (74b4383).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2657      +/-   ##
===========================================
- Coverage    79.18%   79.10%   -0.08%     
===========================================
  Files          319      320       +1     
  Lines        24256    24468     +212     
===========================================
+ Hits         19206    19354     +148     
- Misses        3665     3708      +43     
- Partials      1385     1406      +21     
Flag Coverage Δ
all-tests 79.10% <72.95%> (-0.08%) ⬇️

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

Files Coverage Δ
acp/acp_local.go 97.27% <100.00%> (ø)
acp/identity/errors.go 100.00% <ø> (ø)
acp/identity/generate.go 69.23% <100.00%> (+9.23%) ⬆️
http/http_client.go 76.74% <100.00%> (+5.91%) ⬆️
internal/db/db.go 58.93% <100.00%> (ø)
internal/db/permission/register.go 100.00% <100.00%> (ø)
node/errors.go 0.00% <ø> (ø)
cli/utils.go 72.16% <83.33%> (+0.90%) ⬆️
acp/source_hub_client.go 87.94% <80.00%> (-0.86%) ⬇️
http/auth.go 70.37% <73.33%> (-5.72%) ⬇️
... and 4 more

... and 13 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d73b05b...74b4383. Read the comment docs.

@AndrewSisley AndrewSisley force-pushed the 2366-source-hub branch 15 times, most recently from 15f6597 to d6d6417 Compare May 31, 2024 12:46
This is needed by a couple of acp packages when running against source-hub
@AndrewSisley AndrewSisley force-pushed the 2366-source-hub branch 2 times, most recently from b5493d9 to 88a072d Compare July 10, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acp Related to the acp (access control) system area/auth Related to the authorization and authentication of data feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Defra SourceHub ACP module
2 participants