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: user group url select and fetch in basecontroller #1229

Merged
merged 9 commits into from
Jan 9, 2025

Conversation

sebastianthulin
Copy link
Member

No description provided.

Comment on lines 112 to 128
"1": "https:\/\/dev.local.municipio.tech\/",
"2": "https:\/\/dev.local.municipio.tech\/slf\/",
"3": "https:\/\/dev.local.municipio.tech\/sff\/",
"5": "https:\/\/dev.local.municipio.tech\/hr\/",
"7": "https:\/\/dev.local.municipio.tech\/joa-gammalt\/",
"8": "https:\/\/dev.local.municipio.tech\/mf\/",
"9": "https:\/\/dev.local.municipio.tech\/sbf\/",
"10": "https:\/\/dev.local.municipio.tech\/fortroendevald\/",
"11": "https:\/\/dev.local.municipio.tech\/vof\/",
"12": "https:\/\/dev.local.municipio.tech\/sof\/",
"13": "https:\/\/dev.local.municipio.tech\/kf\/",
"14": "https:\/\/dev.local.municipio.tech\/aterbruket\/",
"15": "https:\/\/dev.local.municipio.tech\/amf\/",
"17": "https:\/\/dev.local.municipio.tech\/inkopssidan\/",
"18": "https:\/\/dev.local.municipio.tech\/ff\/",
"19": "https:\/\/dev.local.municipio.tech\/bibliotekhelsingborg\/",
"20": "https:\/\/dev.local.municipio.tech\/jobbaival\/"
Copy link
Contributor

Choose a reason for hiding this comment

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

Accidentally added

Comment on lines 115 to 131
1 => __('https://dev.local.municipio.tech/', 'municipio'),
2 => __('https://dev.local.municipio.tech/slf/', 'municipio'),
3 => __('https://dev.local.municipio.tech/sff/', 'municipio'),
5 => __('https://dev.local.municipio.tech/hr/', 'municipio'),
7 => __('https://dev.local.municipio.tech/joa-gammalt/', 'municipio'),
8 => __('https://dev.local.municipio.tech/mf/', 'municipio'),
9 => __('https://dev.local.municipio.tech/sbf/', 'municipio'),
10 => __('https://dev.local.municipio.tech/fortroendevald/', 'municipio'),
11 => __('https://dev.local.municipio.tech/vof/', 'municipio'),
12 => __('https://dev.local.municipio.tech/sof/', 'municipio'),
13 => __('https://dev.local.municipio.tech/kf/', 'municipio'),
14 => __('https://dev.local.municipio.tech/aterbruket/', 'municipio'),
15 => __('https://dev.local.municipio.tech/amf/', 'municipio'),
17 => __('https://dev.local.municipio.tech/inkopssidan/', 'municipio'),
18 => __('https://dev.local.municipio.tech/ff/', 'municipio'),
19 => __('https://dev.local.municipio.tech/bibliotekhelsingborg/', 'municipio'),
20 => __('https://dev.local.municipio.tech/jobbaival/', 'municipio'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

public function populateUserGroupUrlBlogIdField($field)
{
$field['choices'] = [];
$blogs = get_sites(['number' => 500]) ?? [];
Copy link
Contributor

Choose a reason for hiding this comment

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

Use wpService for get_sites.

@sebastianthulin sebastianthulin merged commit cef6a08 into main Jan 9, 2025
5 of 7 checks passed
@sebastianthulin sebastianthulin deleted the feat/user-group-url-select branch January 9, 2025 12:38
Copy link

sonarqubecloud bot commented Jan 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
32.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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