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

258 let whole internal git platform be scanned #274

Merged
merged 9 commits into from
Aug 25, 2023

Conversation

maciekbanas
Copy link
Member

@maciekbanas maciekbanas commented Aug 24, 2023

Adding possibility to scan all git platforms by:

  • adding method to pull all organizations (GraphQL based),

... with few code optimizations:

  • wrapping some code chunks in GitHost into separate function (setup_engines) and adding some helpers (set_host, check_if_public)
  • moving two methods (initialize and check_organizations) from Engine Rest subclasses to the superclass,
  • removing error handling when setting connection in GitStats (improving messages to user).

One of major adjustments was moving `check_organizations` and initialize methods to EngineRest superclass. Also error handling of wrong inputs to `set_connection` on `GitStats` level was removed for the sake of simplicity and making neat messages to user.
@maciekbanas maciekbanas linked an issue Aug 24, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2023

Codecov Report

Patch coverage: 71.00% and project coverage change: -0.22% ⚠️

Comparison is base (1081673) 75.40% compared to head (c6bca39) 75.18%.
Report is 85 commits behind head on devel.

❗ Current head c6bca39 differs from pull request most recent head 2019be2. Consider uploading reports for the commit 2019be2 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #274      +/-   ##
==========================================
- Coverage   75.40%   75.18%   -0.22%     
==========================================
  Files          12       14       +2     
  Lines         992     1491     +499     
==========================================
+ Hits          748     1121     +373     
- Misses        244      370     +126     
Files Changed Coverage Δ
R/plots.R 0.00% <0.00%> (ø)
R/GQLQueryGitHub.R 81.81% <61.11%> (-14.11%) ⬇️
R/GitHost.R 63.41% <66.20%> (+18.51%) ⬆️
R/EngineGraphQLGitHub.R 79.01% <71.42%> (-5.25%) ⬇️
R/EngineGraphQLGitLab.R 79.56% <79.56%> (ø)
R/EngineRestGitHub.R 75.30% <81.54%> (+2.08%) ⬆️
R/GQLQueryGitLab.R 82.35% <82.35%> (ø)
R/EngineRestGitLab.R 83.10% <85.71%> (-2.74%) ⬇️
R/test_helpers.R 94.87% <90.47%> (+11.53%) ⬆️
R/GitStats.R 76.76% <91.42%> (+10.97%) ⬆️
... and 3 more

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

@maciekbanas maciekbanas marked this pull request as ready for review August 24, 2023 10:36
@maciekbanas maciekbanas requested a review from Cotau August 24, 2023 10:37
…te over all orgs but use search endpoint on whole git platform (override orgs).
Copy link
Collaborator

@Cotau Cotau left a comment

Choose a reason for hiding this comment

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

lgtm

@maciekbanas maciekbanas merged commit c157491 into devel Aug 25, 2023
3 of 4 checks passed
@maciekbanas maciekbanas deleted the 258-let-whole-internal-git-platform-be-scanned branch August 25, 2023 12:17
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.

Let whole internal git platform be scanned
3 participants