@adobe/spacecat-shared-data-access 4.3.0 → 4.3.1

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-data-access-v4.3.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.3.0...@adobe/spacecat-shared-data-access-v4.3.1) (2026-07-09)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **ticket-suggestion:** use createdAt as belongs_to sort key instead of updatedAt ([#1798](https://github.com/adobe/spacecat-shared/issues/1798)) ([711eecd](https://github.com/adobe/spacecat-shared/commit/711eecdc187ec9a21a79dedca808e6622bd18933)), closes [#2661](https://github.com/adobe/spacecat-shared/issues/2661)
6
+
1
7
  ## [@adobe/spacecat-shared-data-access-v4.3.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.2.0...@adobe/spacecat-shared-data-access-v4.3.0) (2026-07-09)
2
8
 
3
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -29,7 +29,10 @@ const schema = new SchemaBuilder(TicketSuggestion, TicketSuggestionCollection)
29
29
  type: 'string', required: false, readOnly: true, postgrestIgnore: true,
30
30
  })
31
31
  .addAttribute('updatedBy', { type: 'string', required: false, postgrestIgnore: true })
32
- .addReference('belongs_to', 'Ticket')
32
+ // Sort key uses createdAt (not the default updatedAt) because ticket_suggestions is
33
+ // append-only — the table has no updated_at column, so ORDER BY updated_at would
34
+ // cause PostgREST to error on allByTicketId queries.
35
+ .addReference('belongs_to', 'Ticket', ['createdAt'])
33
36
  .addAttribute('suggestionId', {
34
37
  type: 'string',
35
38
  required: true,