Skip to content

Compatibilite crudit studio - #29

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

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

Conversation

@TheoHab

@TheoHab TheoHab commented Sep 17, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread assets/scripts/app.js
sectionCheckbox.checked = groupCheckbox.checked;
});

showToast("Success", "#1CC88A");

Copy link
Copy Markdown
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 ?

Comment thread assets/scripts/app.js
}

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 ?

@valentin-helies valentin-helies Dec 4, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Comment thread src/Service/LoadCredentialService.php Outdated
$clientUrl = $this->parameterBag->get('lle_credential.client_url');
$projectCode = $this->parameterBag->get('lle_credential.project_code');

$response = $this->client->request(

Copy link
Copy Markdown
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

Comment thread src/Service/LoadCredentialService.php Outdated

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

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread src/Command/CredentialWarmupCommand.php Outdated

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

code mort

Comment thread src/Entity/Credential.php Outdated
}

public function setLabel(string $label): self
public function setLabel(string $lable): self

Copy link
Copy Markdown
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
Copy Markdown
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