@elisra-devops/docgen-data-provider 1.61.0 → 1.63.0

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.
@@ -4,6 +4,7 @@ export default class TicketsDataProvider {
4
4
  orgUrl: string;
5
5
  token: string;
6
6
  queriesList: Array<any>;
7
+ private limit;
7
8
  constructor(orgUrl: string, token: string);
8
9
  FetchImageAsBase64(url: string): Promise<string>;
9
10
  GetWorkItem(project: string, id: string): Promise<any>;
@@ -41,6 +42,7 @@ export default class TicketsDataProvider {
41
42
  * @returns linkedMomTree
42
43
  */
43
44
  private fetchLinkedMomQueries;
45
+ private hasAnyQueryTree;
44
46
  /**
45
47
  * Fetches and structures linked queries related to open PCR (Problem Change Request) tests.
46
48
  *
@@ -61,7 +63,6 @@ export default class TicketsDataProvider {
61
63
  * @returns
62
64
  */
63
65
  private fetchTestReporterQueries;
64
- private fetchAnyQueries;
65
66
  private fetchSystemRequirementQueries;
66
67
  private fetchSrsQueries;
67
68
  /**
@@ -83,6 +84,39 @@ export default class TicketsDataProvider {
83
84
  private fetchRequirementsTraceQueriesForFolder;
84
85
  private findQueryFolderByName;
85
86
  private findChildFolderByName;
87
+ /**
88
+ * Performs a breadth-first walk starting at `parent` to locate the nearest folder whose
89
+ * name matches any of the provided candidates (case-insensitive). Exact matches win; if none
90
+ * are found the first partial match encountered is returned. When no candidates are located,
91
+ * the method yields `null`.
92
+ */
93
+ private findChildFolderByPossibleNames;
94
+ /**
95
+ * Executes `fetcher` against `startingFolder` and, if the validator deems the result empty,
96
+ * climbs ancestor folders toward `rootQueries` until a satisfactory result is produced.
97
+ * The first successful folder short-circuits the search; otherwise the final attempt is
98
+ * returned to preserve legacy behavior.
99
+ */
100
+ private fetchWithAncestorFallback;
101
+ /**
102
+ * Applies `fetchWithAncestorFallback` to each configured branch, resolving dedicated folders
103
+ * when available and emitting a map keyed by branch id. Each outcome includes both the
104
+ * resulting payload and the specific folder that satisfied the fallback chain.
105
+ */
106
+ private fetchDocTypeBranches;
107
+ /**
108
+ * Constructs an ordered list of folders to probe during fallback. The sequence starts at
109
+ * `startingFolder` (if provided) and walks upward through ancestors to the root query tree,
110
+ * ensuring no folder id appears twice.
111
+ */
112
+ private buildFallbackChain;
113
+ /**
114
+ * Recursively searches the query tree for the node with the provided id and returns the
115
+ * path (root → target). Nodes are enriched with children on demand and a visited set guards
116
+ * against cycles within malformed data.
117
+ */
118
+ private findPathToNode;
119
+ private getDocTypeRoot;
86
120
  private ensureQueryChildren;
87
121
  GetQueryResultsFromWiql(wiqlHref: string | undefined, displayAsTable: boolean | undefined, testCaseToRelatedWiMap: Map<number, Set<any>>): Promise<any>;
88
122
  private parseDirectLinkedQueryResultForTableFormat;