India
Account created on 13 October 2010, almost 15 years ago
#

Merge Requests

More

Recent comments

🇮🇳India ajits India

@rajeshreeputra - The information provided in #5 was not about the commit I pushed afaict. It was about the bug we've encountered. I might be wrong. Can you please share what part of my commit you think was incorrect?
On another note, directly dropping a commit from a merge request doesn't seem correct. I suggest preserving the working history of the branch with git revert instead.

🇮🇳India ajits India

@japerry thank you for the reply and for updating the priority! I also have a support request open for this issue.

🇮🇳India ajits India

I tried to reproduce this with vanilla Drupal, but was not able to do so.

I tweaked my system to minimum requirements before doing so:

  • PHP memory_limit was adjusted to 64M.
  • CPU throttling of "20x slowdown"
  • Network throttling of "Slow 4G"

I created a new content type "Test" with a rich text field with summary field. This was a multi-valued field with a cardinality of 100. I was only able to see very slow form load.

I also tried to add a multi-valued rich text field to a paragraph; add this paragraph to the node type several times (on new and existing nodes) but couldn't see any issue except slowness. The change doesn't seem to have major impact on the UX.

It will help if there are proper steps to reproduce the impact.

🇮🇳India ajits India

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

🇮🇳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

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