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

Update away from deprecated GitLab field #3924

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tas50
Copy link
Member

@tas50 tas50 commented May 5, 2024

Keep our field the same, but avoid this deprecated call

Keep our field the same, but avoid this deprecated call

Signed-off-by: Tim Smith <tsmith84@gmail.com>
Copy link
Contributor

github-actions bot commented May 5, 2024

Test Results

2 984 tests  ±0   2 983 ✅ ±0   1m 25s ⏱️ -19s
  329 suites ±0       1 💤 ±0 
   23 files   ±0       0 ❌ ±0 

Results for commit 03302db. ± Comparison against base commit 4f44756.

This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
go.mondoo.com/cnquery/v11/llx ‑ TestSuccess/2024-05-02_08:21:12.038957084_+0000_UTC_m=+0.008105716
go.mondoo.com/cnquery/v11/llx ‑ TestTruthy/2024-05-02_08:21:12.038957084_+0000_UTC_m=+0.008105716
go.mondoo.com/cnquery/v11/llx ‑ TestTruthy/2024-05-02_08:21:12.038957084_+0000_UTC_m=+0.008105716#01
go.mondoo.com/cnquery/v11/llx ‑ TestSuccess/2024-05-01_16:50:04.364894962_+0000_UTC_m=+0.007552659
go.mondoo.com/cnquery/v11/llx ‑ TestTruthy/2024-05-01_16:50:04.364894962_+0000_UTC_m=+0.007552659
go.mondoo.com/cnquery/v11/llx ‑ TestTruthy/2024-05-01_16:50:04.364894962_+0000_UTC_m=+0.007552659#01

@@ -39,7 +39,7 @@ func initGitlabGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (map
args["requireTwoFactorAuthentication"] = llx.BoolData(grp.RequireTwoFactorAuth)
args["preventForkingOutsideGroup"] = llx.BoolData(grp.PreventForkingOutsideGroup)
args["mentionsDisabled"] = llx.BoolData(grp.MentionsDisabled)
args["emailsDisabled"] = llx.BoolData(grp.EmailsDisabled)
args["emailsDisabled"] = llx.BoolData(!grp.EmailsEnabled)
Copy link
Member

Choose a reason for hiding this comment

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

we should also add the new field and mark the old one as deprecated

chris-rock
chris-rock previously approved these changes May 5, 2024
@chris-rock chris-rock requested review from chris-rock and removed request for chris-rock May 5, 2024 18:28
@chris-rock chris-rock dismissed their stale review May 5, 2024 18:29

Needs the migration first

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.

None yet

2 participants