@adobe/spacecat-shared-athena-client 1.9.2 → 1.9.3
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-athena-client-v1.9.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-athena-client-v1.9.2...@adobe/spacecat-shared-athena-client-v1.9.3) (2026-02-25)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* temporal series month/week wrap-around and add year to query pipeline ([#1376](https://github.com/adobe/spacecat-shared/issues/1376)) ([b15cfd7](https://github.com/adobe/spacecat-shared/commit/b15cfd705809612c4ad69bbdc09d87c06687dcb6))
|
|
6
|
+
|
|
1
7
|
# [@adobe/spacecat-shared-athena-client-v1.9.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-athena-client-v1.9.1...@adobe/spacecat-shared-athena-client-v1.9.2) (2026-01-19)
|
|
2
8
|
|
|
3
9
|
|
package/package.json
CHANGED
|
@@ -102,9 +102,9 @@ export function getTrafficAnalysisQueryPlaceholdersFilled({
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
if (numTemporalSeries > 1 && week && week > 0) {
|
|
105
|
-
dimensions.push('week');
|
|
105
|
+
dimensions.push('year', 'week');
|
|
106
106
|
} else if (numTemporalSeries > 1 && month && month > 0) {
|
|
107
|
-
dimensions.push('month');
|
|
107
|
+
dimensions.push('year', 'month');
|
|
108
108
|
}
|
|
109
109
|
const dimensionColumns = dimensions.join(', ');
|
|
110
110
|
const dimensionColumnsPrefixed = dimensions.map((col) => `a.${col}`).join(', ');
|
|
@@ -179,6 +179,7 @@ WITH min_totals AS (
|
|
|
179
179
|
),
|
|
180
180
|
raw AS (
|
|
181
181
|
SELECT
|
|
182
|
+
year,
|
|
182
183
|
week,
|
|
183
184
|
month,
|
|
184
185
|
path,
|
|
@@ -279,6 +280,7 @@ WITH min_totals AS (
|
|
|
279
280
|
),
|
|
280
281
|
raw AS (
|
|
281
282
|
SELECT
|
|
283
|
+
year,
|
|
282
284
|
week,
|
|
283
285
|
month,
|
|
284
286
|
path,
|
|
@@ -18,6 +18,7 @@ export const TrafficDataResponseDto = {
|
|
|
18
18
|
* Converts a traffic data object into a JSON object.
|
|
19
19
|
* @param {object} data - traffic data object.
|
|
20
20
|
* @returns {{
|
|
21
|
+
* year: number,
|
|
21
22
|
* type: string,
|
|
22
23
|
* channel: string,
|
|
23
24
|
* platform: string,
|
|
@@ -33,6 +34,7 @@ export const TrafficDataResponseDto = {
|
|
|
33
34
|
* }} JSON object.
|
|
34
35
|
*/
|
|
35
36
|
toJSON: (data) => ({
|
|
37
|
+
year: data.year,
|
|
36
38
|
week: data.week,
|
|
37
39
|
month: data.month,
|
|
38
40
|
type: data.trf_type,
|