Skip to content

Comments

Compatibilite crudit studio#29

Merged
valentin-helies merged 32 commits intomasterfrom
compatibilite_crudit_studio
Dec 4, 2025
Merged

Compatibilite crudit studio#29
valentin-helies merged 32 commits intomasterfrom
compatibilite_crudit_studio

Conversation

@TheoHab
Copy link
Contributor

@TheoHab TheoHab commented Sep 17, 2025

No description provided.

sectionCheckbox.checked = groupCheckbox.checked;
});

showToast("Success", "#1CC88A");
Copy link
Contributor

Choose a reason for hiding this comment

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

le message est toujours en anglais ?

}

let groupId = groupCheckbox.dataset.groupId;
fetch('/admin/credential/toggle-group/' + groupId + '/' + (groupCheckbox.checked ? 1 : 0), { method: 'post' })
Copy link
Contributor

Choose a reason for hiding this comment

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

du coup on part du principe qu'on met /admin en préfixe. bon j'imagine que c'était déjà le cas en v1

'POST',
$this->clientUrl . '/api/project/init/' . $this->projectCode,
[
'headers' => [
Copy link
Contributor

Choose a reason for hiding this comment

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

on peut faire mieux avec les options json et auth_bearer. et JSON_PRETTY_PRINT ne sert à rien pour une api

$cred->setRole($role);
$cred->setRubrique("");
}
$credential = new Credential();
Copy link
Contributor

Choose a reason for hiding this comment

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

plus de gestion de doublon ? vous êtes sûrs ?

Copy link
Contributor

Choose a reason for hiding this comment

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

d'ailleurs pareil pour les groupes ?

Copy link
Contributor

@valentin-helies valentin-helies Dec 4, 2025

Choose a reason for hiding this comment

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

Non plus de doublon que ce soit au niveau des credentials ou des groupes

Copy link
Contributor

Choose a reason for hiding this comment

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

Soit il va récupérer l'existant et le mettre à jour, soit il va le créer

$clientUrl = $this->parameterBag->get('lle_credential.client_url');
$projectCode = $this->parameterBag->get('lle_credential.project_code');

$response = $this->client->request(
Copy link
Contributor

Choose a reason for hiding this comment

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

$this->client n'existe pas


public function load(): void
{
$clientUrl = $this->parameterBag->get('lle_credential.client_url');
Copy link
Contributor

Choose a reason for hiding this comment

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

je suggère de faire un service qui fait office de client et qui gère l'url tout seul. c'est trop verbeux et répétitif sinon.


#[AsCommand(
name: 'credential:warmup',
name: 'lle:credential:warmup',
Copy link
Contributor

Choose a reason for hiding this comment

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

faudra préciser qu'il faut changer les Makefile.


$response = $this->credentialService->sendCredentials($results);
$response = $this->credentialService->sendCredentials();
// if ($response === 200) {
Copy link
Contributor

Choose a reason for hiding this comment

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

code mort

}

public function setLabel(string $label): self
public function setLabel(string $lable): self
Copy link
Contributor

Choose a reason for hiding this comment

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

oups

{
$data = [];
/** @var array $locales */
$locales = $this->parameterBag->get('locales');
Copy link
Contributor

Choose a reason for hiding this comment

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

hum du coup on rajoute cette dépendance à l'existence du paramètres locales.

@valentin-helies valentin-helies marked this pull request as ready for review December 4, 2025 09:12
@valentin-helies valentin-helies merged commit 3be20ad into master Dec 4, 2025
3 of 4 checks passed
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.

3 participants