India
Account created on 13 October 2010, over 14 years ago
#

Merge Requests

More

Recent comments

🇮🇳India ajits India

@berdir - thank you for your review! I have incorporated it. Found another issue:

1. Global query pass through setting is disabled.
2. Create a redirect from /body.foo?id=123 to /bar
3. Create a redirect from /bar to /baz

Visiting /body.foo?id=123 did not redirect as expected. This was also fixed.

🇮🇳India ajits India

> implement a hook_form_alter that covers both entity_workflow_form and entity_workflow_simple_transition_form

Done

> in that form alter, build and render the workspace publish form (directly for entity_workflow_simple_transition_form, using #states for entity_workflow_form)

This was not possible because the EntityWorkflowSimpleTransitionForm form uses routeMatch to check for the workspace transition; and the transition is not available (on load) for EntityWorkflowForm.

I have checked for other details and the MR should cover it. Please review.

🇮🇳India ajits India

@amateescu - Thank you! Moving this to the entity_workflow module.

🇮🇳India ajits India

I have pushed the code to hook_deploy_NAME instead. Please let me know if I should remove the Drush command.

🇮🇳India ajits India

@amateescu - I tried to move the logic to hook_install as you suggested; however, I still get the error that pushed to me to write the command in the first place:

Field entity_workflow_workspace is unknown.

🇮🇳India ajits India

I started adding the support for trash to taxonomy. I have created an MR that enables trashing the terms. However, there is a challenge with the term hierarchy, as mentioned in the previous comments.

Any term being trashed resets its parent to root by design. See <a href="https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/taxonomy/src/Entity/Term.php?ref_type=heads#L137">Term::preSave</a>.

I had a chat with @amateescu, and we concluded that any other temporary storage like key/value will not be compatible with the core workspaces module. This data needs to stay with the term itself. Something like @khaled.zaidan mentioned above. I like the idea of saving the immediate child terms for the current term. Maybe in an implementation of hook_pre_trash_delete for taxonomy terms?

🇮🇳India ajits India

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

🇮🇳India ajits India

Created a drush command. The hooks hook_install and hook_modules_installed did not work. They seem to be executed very early.

🇮🇳India ajits India

Created a PR as we're moving away from d.o issues. See - 📌 Migrate drupal.org issues to gitlab issues Needs review

🇮🇳India ajits India

Addressed the comments. This is ready for another review.

🇮🇳India ajits India

It made more sense for this to be configurable via the core Drupal\Core\Site\Settings instead of actual configuration.

🇮🇳India ajits India

I received feedback from Alec about the changing behavior of the public function findMatchingRedirect in the redirect.repository service. I have adjusted the code to preserve the current functionality; and adjusted to the newly provided field. Also, adjusted the tests to be more detailed.

🇮🇳India ajits India

Addressed feedback and adjusted tests. This is ready for review.

🇮🇳India ajits India

Turns out this was because of an outdated core patch https://www.drupal.org/project/drupal/issues/3202896#comment-15053954 🐛 Don't display OEmbed error to anonymous visitors when resource stops being available Needs work ¯\_(ツ)_/¯
Closing this!

🇮🇳India ajits India

Let's see how the tests fare. Also, this will need some tests.

🇮🇳India ajits India

I am working on creating a MR.

🇮🇳India ajits India

Would it make sense to make it configurable?

🇮🇳India ajits India

Marking this as fixed.

🇮🇳India ajits India

Added a check in a non-dependency-injection way, as the module is not directly dependent on the workspaces module.

🇮🇳India ajits India

I am working on a PR.

🇮🇳India ajits India

Thank you, @amateescu!
Moving the core with IS update.

🇮🇳India ajits India

Thank you for your review! I have adjusted the help text. I have also made the change so that the redirect target also supports the query string.

🇮🇳India ajits India

The target also needs to support the escaped `?`

🇮🇳India ajits India

Created a PR that should fix this. Also, adjusted the title.

🇮🇳India ajits India

This is ready for review. The validation of the entered target path is not done by the setRegexErrors function; which feels deliberate.

🇮🇳India ajits India

I am not sure about the category. This doesn't qualify for the support request, as a bug, or a feature. Marking it as a "task". I hope that is okay.

🇮🇳India ajits India

Adding some profiling details below.

Before the fix:

After the fix:

🇮🇳India ajits India

Thank you for the patch! Works fine. Committed to 2.0.x

🇮🇳India ajits India

Merged and added Drupal 11 compatibility. Thank you!

🇮🇳India ajits India

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

🇮🇳India ajits India

Merged. Thank you for your contribution!

Production build 0.71.5 2024