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

Implement basic repo registration with gitlab #4464

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Sep 12, 2024

Summary

This adds the needed pieces for the GitLab provider to do entity
registration. In the case of repos, this was the implementation of the
repo lister trait.

Closes: #4331

Change Type

Mark the type of change your PR introduces:

  • Bug fix (resolves an issue without affecting existing features)
  • Feature (adds new functionality without breaking changes)
  • Breaking change (may impact existing functionalities or require documentation updates)
  • Documentation (updates or additions to documentation)
  • Refactoring or test improvements (no bug fixes or new functionality)

Testing

Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.

Review Checklist:

  • Reviewed my own code for quality and clarity.
  • Added comments to complex or tricky code sections.
  • Updated any affected documentation.
  • Included tests that validate the fix or feature.
  • Checked that related changes are merged.

@JAORMX JAORMX force-pushed the gitlab-register-repo branch 2 times, most recently from df53191 to c430e61 Compare September 12, 2024 13:52
@JAORMX JAORMX force-pushed the gitlab-register-repo branch from c430e61 to f6a9206 Compare September 12, 2024 14:01
@JAORMX JAORMX marked this pull request as draft September 12, 2024 14:02
@JAORMX JAORMX force-pushed the upstream-entities branch 2 times, most recently from cdbee74 to 9b7848a Compare September 13, 2024 07:29
@JAORMX JAORMX force-pushed the gitlab-register-repo branch 2 times, most recently from 2af2905 to b80f945 Compare September 13, 2024 07:49
@JAORMX JAORMX force-pushed the gitlab-register-repo branch from b80f945 to 26f1c61 Compare September 13, 2024 07:49
@JAORMX JAORMX force-pushed the upstream-entities branch 2 times, most recently from 627dbef to b72ed16 Compare September 13, 2024 08:36
@JAORMX JAORMX force-pushed the gitlab-register-repo branch from 26f1c61 to 4d5cff9 Compare September 13, 2024 08:36
Base automatically changed from upstream-entities to main September 13, 2024 09:06
@JAORMX JAORMX force-pushed the gitlab-register-repo branch from 4d5cff9 to b3975ff Compare September 13, 2024 09:06
@JAORMX JAORMX marked this pull request as ready for review September 13, 2024 09:06
@JAORMX JAORMX force-pushed the gitlab-register-repo branch from b3975ff to d53b666 Compare September 13, 2024 09:07
@coveralls
Copy link

coveralls commented Sep 13, 2024

Coverage Status

coverage: 52.894% (-0.2%) from 53.095%
when pulling 9a6fad5 on gitlab-register-repo
into 6829aa5 on main.

@JAORMX JAORMX force-pushed the gitlab-register-repo branch 2 times, most recently from 9a6fad5 to dcd6099 Compare September 13, 2024 12:08
This adds the needed pieces for the GitLab provider to do entity
registration. In the case of repos, this was the implementation of the
repo lister trait.

Signed-off-by: Juan Antonio Osorio <[email protected]>
@JAORMX JAORMX force-pushed the gitlab-register-repo branch from dcd6099 to 5d2e102 Compare September 13, 2024 12:28
})
if err != nil {
return nil, fmt.Errorf("failed to create properties: %w", err)
}

return getByProps.Merge(outProps), nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question (non-blocking): why is this merge no longer necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an implementation detail. It was necessary because I was forming merging what was incoming to what I'm forming here. Now, outProps gets populated explicitly with everything that's needed, so I no longer needed the merge. It's just a little more efficient to not need to iterate over the incoming properties.

@JAORMX JAORMX merged commit fb4cab1 into main Sep 13, 2024
21 checks passed
@JAORMX JAORMX deleted the gitlab-register-repo branch September 13, 2024 13:09
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.

Add entity registration to GitLab provider
5 participants