@qrvey/cd-package-registry 1.0.26-1554 → 1.0.27-1622

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -4734,6 +4734,7 @@ __name(_ConnectionDependencyValidator, "ConnectionDependencyValidator");
4734
4734
  var ConnectionDependencyValidator = _ConnectionDependencyValidator;
4735
4735
 
4736
4736
  // src/services/dependency-validators/dataset.dependency-validator.ts
4737
+ var isDisabledView = /* @__PURE__ */ __name((input) => input.disableView === true && !!input.publicParentId, "isDisabledView");
4737
4738
  var _DatasetDependencyValidator = class _DatasetDependencyValidator {
4738
4739
  constructor(params, options) {
4739
4740
  __publicField(this, "params");
@@ -4751,7 +4752,7 @@ var _DatasetDependencyValidator = class _DatasetDependencyValidator {
4751
4752
  parentDatasetId: input.datasetParentId
4752
4753
  });
4753
4754
  }
4754
- if (((_c = input.datasources) == null ? void 0 : _c.length) && input.publicParentId) {
4755
+ if (((_c = input.datasources) == null ? void 0 : _c.length) && input.publicParentId && !isDisabledView(input)) {
4755
4756
  keys.push({
4756
4757
  parentDatasetId: input.publicParentId
4757
4758
  });
@@ -4808,7 +4809,15 @@ Parent Dataset ID: ${input.datasetParentId}`
4808
4809
  });
4809
4810
  }
4810
4811
  }
4811
- if (((_c = input.datasources) == null ? void 0 : _c.length) && input.publicParentId) {
4812
+ if (isDisabledView(input)) {
4813
+ errors.push({
4814
+ field: "disableView",
4815
+ message: `The dataset view '${input.name}' is disabled because its source dataset was unshared.`,
4816
+ value: input,
4817
+ textDetails: `Dataset ID: ${input.datasetId}
4818
+ Parent Dataset ID: ${input.publicParentId}`
4819
+ });
4820
+ } else if (((_c = input.datasources) == null ? void 0 : _c.length) && input.publicParentId) {
4812
4821
  const publicParent = (_d = context.parentDatasets) == null ? void 0 : _d.get(input.publicParentId);
4813
4822
  if (!publicParent) {
4814
4823
  errors.push({