Toronto, Canada
Account created on 2 March 2011, almost 14 years ago
#

Merge Requests

More

Recent comments

🇨🇦Canada jibran Toronto, Canada

Yes, we also need to test per permission and make sure all the operations are supported by newly added permissions.

🇨🇦Canada jibran Toronto, Canada

Thanks for pointing out the issue. I have updated the setting. The default branch is now 8.x-1.x.

P.S.: The default branch setting is moved to gitlab now under https://git.drupalcode.org/project/views_field_view/-/settings/repositor...

🇨🇦Canada jibran Toronto, Canada

We need per operation to permission test.

we can't commit this until we add all the tests.

🇨🇦Canada jibran Toronto, Canada

Committed and pushed to 1.x. Thank you all.

🇨🇦Canada jibran Toronto, Canada

The changes look good. Let's address some cosmetic comments, and then we are good to go.

🇨🇦Canada jibran Toronto, Canada

Can we please create a follow-up to fix the test fails?

🇨🇦Canada jibran Toronto, Canada

I'm also +1 with moving it to contirb.

🇨🇦Canada jibran Toronto, Canada

I'm also +1 with moving it to contirb.

🇨🇦Canada jibran Toronto, Canada

As mentioned in #3311180-2: [meta] Determine how to make Shortcut module more useful and maintainable , I still believe shortcut module would be better maintained in contrib. Not a lot has happened in shortcut issue queue since I posted that comment.

So, I'm still+1 for removing it from core and moving it to contrib.

🇨🇦Canada jibran Toronto, Canada

I'm not the maintainer of this project so I can't do that in this issue unless we move the issue to the DER queue. I have mentioned the name in the git message. Please let me know if you want me to move the issue to the DER queue or create a new issue and assign the credit there

🇨🇦Canada jibran Toronto, Canada

Thank you all! Committed and pushed to 3.x and 4.x branches of dynamic_entity_reference.

🇨🇦Canada jibran Toronto, Canada

The fix was tested by QA and looks good.

🇨🇦Canada jibran Toronto, Canada

Yup, I'll Mohit update the issue.

🇨🇦Canada jibran Toronto, Canada

Than you so very much.

🇨🇦Canada jibran Toronto, Canada

Moving to 3.x

🇨🇦Canada jibran Toronto, Canada

Can I have one for 3.x as well, please?

🇨🇦Canada jibran Toronto, Canada

Updated the title and re-categories the issue. Let's update the IS with steps to reproduce.

🇨🇦Canada jibran Toronto, Canada

I talked to him and we are happy to give up the namespace.

🇨🇦Canada jibran Toronto, Canada

Committed and merged to 4.x

🇨🇦Canada jibran Toronto, Canada

Thank you, the MR looks good to me.

🇨🇦Canada jibran Toronto, Canada

@dpi and I do have a code for link management system based on linky entity module.

Let me check with dpi if we want to share and maintain on drupal.org

🇨🇦Canada jibran Toronto, Canada

Thanks, MR is merged.

🇨🇦Canada jibran Toronto, Canada

jibran changed the visibility of the branch 3414923-add-scheduled-and to hidden.

🇨🇦Canada jibran Toronto, Canada

I think we can drop 10.1 support for next release.

🇨🇦Canada jibran Toronto, Canada

Yes, [3414197].

It has been removed from both 3.x and 4.x. Hal is not in core anymore. It can provide the service as optional with tests instead of DER changing the container run time to add the service optional.

🇨🇦Canada jibran Toronto, Canada

Removed drupalci test runs. Will create a follow up to remove drupalci and circleci files.

🇨🇦Canada jibran Toronto, Canada

Back to Lee for fixing the test fails.

🇨🇦Canada jibran Toronto, Canada

Sorted out triggers on gitlab ci.

🇨🇦Canada jibran Toronto, Canada

Marking it RTBC as per the PR comments from Lee.

🇨🇦Canada jibran Toronto, Canada

NW for figuring out the way to create triggers on gitlabCI.

🇨🇦Canada jibran Toronto, Canada

Moving to 4.x.

🇨🇦Canada jibran Toronto, Canada

The remaining fails are 10.2 PHPUnit so going to merge this as is for now as CS, ES, and Stan are green.

🇨🇦Canada jibran Toronto, Canada

Committed and pushed to 3.x and 4.x

🇨🇦Canada jibran Toronto, Canada

Committed and pushed #14. Thanks!

🇨🇦Canada jibran Toronto, Canada

I'm happy to commit #14 as is and fix the remaining fails in follow-up issue(s).

🇨🇦Canada jibran Toronto, Canada

I think we can fix this and create a follow up the field settings of DER.

🇨🇦Canada jibran Toronto, Canada

There are some other fails as well. Please see https://github.com/jibran/dynamic_entity_reference/pull/9. Feel free to make it green. I'm trying to find some time but no luck.

🇨🇦Canada jibran Toronto, Canada

We have the passing and failing MRs now. Can I get an RTBC?

🇨🇦Canada jibran Toronto, Canada

Thanks, committed and pushed to 1.x

🇨🇦Canada jibran Toronto, Canada

Merged the MR.

🇨🇦Canada jibran Toronto, Canada

Added some tests to fix the logic but still to add failing tests.

🇨🇦Canada jibran Toronto, Canada

I had to bump the core version to 10.1

Because "Error: Call to undefined method Drupal\Core\Utility\Error::logException()" without this phpstan complains.

🇨🇦Canada jibran Toronto, Canada

jibran created an issue.

🇨🇦Canada jibran Toronto, Canada

This is unrelated to this PR but I think we need a config schema for the pipeline plugin and some tests as well. Do you think we should create a follow up?

🇨🇦Canada jibran Toronto, Canada

How about this for a start? I have added a few observations and questions.

  1. +++ b/data_pipelines.install
    @@ -319,3 +319,18 @@ function data_pipelines_update_8015(): void {
    +function data_pipelines_update_8016(): void {
    

    Added the hook as the allowed values are stored in the storage settings.

  2. +++ b/modules/data_pipelines_elasticsearch/src/Plugin/DatasetDestination/ElasticSearchDestination.php
    @@ -301,6 +301,28 @@ class ElasticSearchDestination extends DatasetDestinationPluginBase implements C
    +    $index_id = $this->configuration['prefix'] . $dataset->getMachineName();
    

    Because of the machine name I had to pass the whole object. Should I just pass the machine name?

  3. +++ b/modules/data_pipelines_elasticsearch/src/Plugin/DatasetDestination/ElasticSearchDestination.php
    @@ -301,6 +301,28 @@ class ElasticSearchDestination extends DatasetDestinationPluginBase implements C
    +        $result = $this->getClient()->count($index_params_base);
    

    The sample result is something like this:

    [
        "count" => 90,
        "_shards" => [
          "total" => 5,
          "successful" => 5,
          "skipped" => 0,
          "failed" => 0,
        ],
      ]
    
  4. +++ b/modules/data_pipelines_elasticsearch/src/Plugin/DatasetDestination/ElasticSearchDestination.php
    @@ -301,6 +301,28 @@ class ElasticSearchDestination extends DatasetDestinationPluginBase implements C
    +      $this->logger->error("Failed gto get a current count due to @message", [
    

    Needs to fix a typo.

  5. +++ b/src/Destination/DatasetDestinationPluginBase.php
    @@ -82,6 +82,13 @@ abstract class DatasetDestinationPluginBase extends PluginBase implements Datase
    +  public function getCurrentCount(DatasetInterface $dataset): int {
    

    Only override the method for ES and state destinations. We don't need one for NULL but do we need one for file? We have not overridden processCleanup for the file so I thought we don't need to override the count as well.

  6. +++ b/src/Destination/DatasetDestinationPluginBase.php
    @@ -82,6 +82,13 @@ abstract class DatasetDestinationPluginBase extends PluginBase implements Datase
    +    return 0;
    

    Should this be -1, NULL, or 0? I think 0 is the correct representation here.

  7. +++ b/src/Entity/Dataset.php
    @@ -179,7 +179,7 @@ class Dataset extends ContentEntityBase implements DatasetInterface {
    -        DatasetInterface::INVALID_REMOVE => new TranslatableMarkup('Remove records that are now invalid'),
    +        DatasetInterface::INVALID_REMOVE => new TranslatableMarkup('Remove records that are now invalid and outdated'),
    

    This change makes the intentions of the operation clearer.

  8. +++ b/src/Entity/Dataset.php
    @@ -335,6 +338,11 @@ class Dataset extends ContentEntityBase implements DatasetInterface {
    +        if ($count < $original_size[$destination_id] && $this->getInvalidValuesHandling() === self::INVALID_REMOVE) {
    

    Do we need to add the invalid value check? Should we not be doing this in either situation?

  9. +++ b/src/Entity/Dataset.php
    @@ -335,6 +338,11 @@ class Dataset extends ContentEntityBase implements DatasetInterface {
    +          $queue->createItem(new ProcessingOperation(ProcessingOperationEnum::PROCESS_CLEANUP, $destination_id, range($count, $original_size[$destination_id])));
    

    Should it be $count+1 or just $count is fine? Needs a test to verify.

🇨🇦Canada jibran Toronto, Canada

I think we can just get the existing count from the destination plugin and if the new count is lower than the existing count then we can remove the outdated one after indexing.

Classifying it as a major bug and re- titling it as this is a regression.

🇨🇦Canada jibran Toronto, Canada

Can we please have a test only patch?

🇨🇦Canada jibran Toronto, Canada

Sorry, here is the proper screenshot

🇨🇦Canada jibran Toronto, Canada

Here is the screenshot of the core ER field logo.

Which is kind of similar to the first option.

Production build 0.71.5 2024