hunk.code_window:                 + fieldName(QActionCollection.actionCollection.publishedCollection.pageId);
           String contextTypePath = fieldName(QActionCollection.actionCollection.publishedCollection) + "."
                   + fieldName(QActionCollection.actionCollection.publishedCollection.contextType);
           Criteria contextIdAndContextTypeCriteria =
                   where(contextIdPath).is(contextId).and(contextTypePath).is(contextType);
           return queryAll(List.of(contextIdAndContextTypeCriteria), Optional.of(permission));
       }
   }
hunk.labels: keep keep keep keep keep replace keep keep
hunk.after_edit:         return queryAll(List.of(contextIdAndContextTypeCriteria), Optional.ofNullable(permission));
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomActionCollectionRepositoryCEImpl.java
hunk.type: replace
file: const commonlocators = require("../../../../../locators/commonlocators.json");
  const Layoutpage = require("../../../../../locators/Layout.json");
  const widgetsPage = require("../../../../../locators/Widgets.json");
  import * as _ from "../../../../../support/Objects/ObjectsCore";
  
  describe(
    "File Picker Widget V2 Functionality",
    { tags: ["@tag.Widget", "@tag.Filepicker"] },
    function () {
      before(() => {
        _.agHelper.AddDsl("filePickerV2_reset_check_dsl");
      });
  
      it("Check if the uploaded data does not reset when tab switch in the TabsWidget", () => {
        cy.get(widgetsPage.filepickerwidgetv2).should("contain", "Select Files");
        cy.get(widgetsPage.filepickerwidgetv2).click();
        cy.get(commonlocators.filePickerInput)
          .first()
          .selectFile("cypress/fixtures/testFile.mov", {
            force: true,
          });
        cy.get(commonlocators.filePickerUploadButton).click();
        cy.get(widgetsPage.filepickerwidgetv2).should(
          "contain",
          "1 files selected",
        );
        cy.get(Layoutpage.tabWidget).contains("Tab 2").click({ force: true });
        cy.get(Layoutpage.tabWidget)
          .contains("Tab 2")
          .should("have.class", "is-selected");
        cy.get(Layoutpage.tabWidget).contains("Tab 1").click({ force: true });
        cy.get(Layoutpage.tabWidget)
          .contains("Tab 1")
          .should("have.class", "is-selected");
        cy.get(widgetsPage.filepickerwidgetv2).should(
          "contain",
          "1 files selected",
        );
      });
    },
  );
  