Compass fails to load any saved pipelines if any of them are not valid JSON

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.34.0
    • Affects Version/s: None
    • Component/s: Aggregation pipeline
    • None
    • Not Needed
    • None

      Problem Statement/Rationale

      If you have a unparseable JSON file saved as a pipeline, Compass will fail when trying to load it and will stop loading all other pipelines

      Steps to Reproduce

      • Save a few pipelines in Compass
      • Corrupt a saved pipeline file in the SavedPipelines directory for any saved pipeline
      • Restart Compass and try to use saved pipelines

      Expected Results

      Probably you should see all pipelines that are parseable

      Actual Results

      You see no pipelines

      Additional Notes

      Maybe worth adding some logging there for the cases when loading a pipeline fails

            Assignee:
            Sergey Petushkov
            Reporter:
            Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: