London
Account created on 7 July 2010, over 14 years ago
  • Technical Architect at Acquia 
#

Merge Requests

More

Recent comments

🇬🇧United Kingdom marcelovani London

The permissions that I normally use are Api, Read/Write Repo.

Thanks for your help Stew.

🇬🇧United Kingdom marcelovani London

Humm, I am not sure what is happening on your local setup.

Things that I would look:
1 - Make sure you pulled the latest dev code https://www.drupal.org/project/config_pr/releases/8.x-1.x-dev
2 - Make sure you require the dependencies https://git.drupalcode.org/project/config_pr/-/blob/8.x-1.x/modules/conf...
3 - Clear caches

Also, you can try to uninstall and reinstall the module

🇬🇧United Kingdom marcelovani London

The tokens are created on your repository, you need to check with them if there is any limit.

The Config Pull Request only needs one token per user and you can use the same token for many users if you want.

🇬🇧United Kingdom marcelovani London

Hi Stew

I did some refactoring and also worked on automated tests, which is something that I wanted to do for a long time, the tests are all passing now https://git.drupalcode.org/project/config_pr/-/jobs/4416444

I believe that this ticket will pass manual testing now.

Kind Regards,
Marcelo

🇬🇧United Kingdom marcelovani London

Had some issues merging the PR, I opened a new PR and it worked.
Thanks.

🇬🇧United Kingdom marcelovani London

marcelovani made their first commit to this issue’s fork.

🇬🇧United Kingdom marcelovani London

Did some refactoring, moved some of the functionality to sub-module.
Needs testing

🇬🇧United Kingdom marcelovani London

Hi Steve, thanks for confirming.

I have done something that you may help me to test https://www.drupal.org/project/config_pr/issues/3507408 Support Self Managed Gitlab Active

For now, I merged to dev branch only.

Thanks
Marcelo

🇬🇧United Kingdom marcelovani London

Thanks for the explanation.

But on your use case, you are saying that people that log in as admin should not see the field. This is not a common pattern and people that log in as admin need to know what they are doing and will see a lot of configurations that may not make sense to non technical users.

I agree that the field should not be visible to users that do not have the permission to create pull requests. This makes sense and I committed the code for that.

If you want to hide the field from admin users, I recommend that you implement the same hook on a custom module.

function my_module_form_user_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  $field_name = 'field_config_pr_auth_token';
  if (isset($form[$field_name])) {
    $form[$field_name]['#access'] = FALSE;
  }
}
🇬🇧United Kingdom marcelovani London

marcelovani made their first commit to this issue’s fork.

🇬🇧United Kingdom marcelovani London

@eiriksm, now that I am reading this again, I have a different comment.

The access token is configured on the user's profile.
This tokens are not supposed to be shared between users, each user should generate their own access token on their repositories and save on their own user accounts.

The token can be scoped to specific repos and you can limit the permissions to allow only reading the repo and creating pull requests. There is no big danger.

What are your concerns?

🇬🇧United Kingdom marcelovani London

I am pushing a fix to the dev branch, I tested it but it would be nice to have someone else to try

🇬🇧United Kingdom marcelovani London

marcelovani created an issue.

🇬🇧United Kingdom marcelovani London

I found the reason for the original issue reported, I am working on a fix and will update soon

🇬🇧United Kingdom marcelovani London

marcelovani made their first commit to this issue’s fork.

🇬🇧United Kingdom marcelovani London

Hi @nelo_drup

Thanks for reporting.

In order for me to debug this I need some information.

1 - Can you please provide detailed steps to reproduce?
2 - Are you using other modules that could be conflicting and causing this error?
3 - Can you try it on a fresh Drupal installation?

🇬🇧United Kingdom marcelovani London

Thanks for everyone that was involved, sorry for the delay. I merged the PR and will work on the Drupal 11 support https://www.drupal.org/project/config_token/issues/3505745 💬 Drupal 11 version Active

🇬🇧United Kingdom marcelovani London

Hi Lee

I am not clear on what is happening.

Captcha Keypad is working for me as standalone and also with Captcha module.

I will create a release and see if there is any issues that will be affecting anyone else.

Thanks for helping to test this.

Marcelo

🇬🇧United Kingdom marcelovani London

Thanks Lee

Lets wait until you find which module is causing the issue. I can install the same module on my side and see if there is anything we can do at Captcha Keypad.

Thanks
Marcelo

🇬🇧United Kingdom marcelovani London

@Iee56 I tested it locally, with the steps you mentioned, but I did not get any issues.
Perhaps it is another module that is enabled and causing this, can you please check the list of enabled modules using drush pml command?

I have pushed more changes to the dev branch, please pull the latest changes first.

The automated tests are passing https://git.drupalcode.org/project/captcha_keypad/-/pipelines/414110

🇬🇧United Kingdom marcelovani London

I pushed the fixes for Drupal 11.
If you could test the Dev branch and let me know if works, I will make a new release.
Thanks

🇬🇧United Kingdom marcelovani London

marcelovani made their first commit to this issue’s fork.

🇬🇧United Kingdom marcelovani London

This is a very good idea, I will put in my list of todos.
If you want to contribute, feel free to send a PR and I will review.

🇬🇧United Kingdom marcelovani London

Pushed latest changes and merged PR

🇬🇧United Kingdom marcelovani London

Hi Maxilein, I believe this issue is not related to this project.

Can you please review and add more details to explain the problem?

🇬🇧United Kingdom marcelovani London

marcelovani made their first commit to this issue’s fork.

🇬🇧United Kingdom marcelovani London

marcelovani made their first commit to this issue’s fork.

🇬🇧United Kingdom marcelovani London

I commented in the PR. Feel free to do phpcs fixes

🇬🇧United Kingdom marcelovani London

There are lots of changes in the MR, please review.

🇬🇧United Kingdom marcelovani London

I fixed this on another ticket and gave you credit https://www.drupal.org/project/sharerich/issues/3289584#comment-15898445 📌 Automated Drupal 10 compatibility fixes Needs review
Can you please help to check latest tag 2.0.3 https://www.drupal.org/project/sharerich

🇬🇧United Kingdom marcelovani London

I pushed some fixes, need some help with testing

🇬🇧United Kingdom marcelovani London

marcelovani made their first commit to this issue’s fork.

🇬🇧United Kingdom marcelovani London

It has been merged, but needs to be tested and confirm that everything works before making a release

🇬🇧United Kingdom marcelovani London

Thanks for reporting, can you please add screenshots with steps to reproduce?

🇬🇧United Kingdom marcelovani London

Thanks, PR merged.

🇬🇧United Kingdom marcelovani London

Merged, Thanks for fixing this.

🇬🇧United Kingdom marcelovani London

I was wondering if it would be possible reinstate the original \Drupal\Component\Serialization\Yaml class, create a new service to decorate the current class. Basically, swap it.

See core.services.yml

serialization.yaml:
    class: Drupal\Component\Serialization\Yaml
🇬🇧United Kingdom marcelovani London

The yaml_parser_class setting is deprecated and there is no replacement. It can be removed safely from your settings.php

See https://www.drupal.org/node/3415489

🇬🇧United Kingdom marcelovani London

There are people still using Drupal 7, the patch works, can someone merge this?

Production build 0.71.5 2024