You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2026/06/04 22:46:30 UTC

(causeway) 11/42: CAUSEWAY-4010: archives returned object command export change

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch CAUSEWAY-4010
in repository https://gitbox.apache.org/repos/asf/causeway.git

commit 4afabc169af6d042fa0ab34b7398b130a1432c96
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Jun 4 10:40:52 2026 +0100

    CAUSEWAY-4010: archives returned object command export change
---
 AGENTS.md                                          | 11 +++++++++
 ...ands_with_returned_object_metadata.approved.txt | 28 ++++++++++++++++++++++
 .../.openspec.yaml                                 |  0
 .../design.md                                      |  0
 .../proposal.md                                    |  0
 .../specs/command-export-yaml-result/spec.md       |  0
 .../tasks.md                                       |  0
 .../specs/command-export-yaml-result/spec.md       |  0
 8 files changed, 39 insertions(+)

diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 00000000000..3842174a4e8
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,11 @@
+# Repository agent instructions
+
+## Git commit messages
+
+When committing changes in this repository, prefix the commit message with the current git branch name.
+The branch name typically reflects the Jira ticket, for example `CAUSEWAY-4010`.
+Use the form `CAUSEWAY-4010: adds foo to bar`.
+
+Write the commit subject so it completes the phrase "this commit, if applied, ...".
+Prefer present-tense verbs such as `adds`, `updates`, `removes`, `fixes`, or `refactors`.
+Avoid past-tense verbs such as `added`, `updated`, `removed`, or `fixed`.
diff --git a/api/applib/src/test/java/org/apache/causeway/applib/util/schema/CommandDtoUtils_toYaml_Approval_Test.marshals_exported_commands_with_returned_object_metadata.approved.txt b/api/applib/src/test/java/org/apache/causeway/applib/util/schema/CommandDtoUtils_toYaml_Approval_Test.marshals_exported_commands_with_returned_object_metadata.approved.txt
new file mode 100644
index 00000000000..0e36470cb72
--- /dev/null
+++ b/api/applib/src/test/java/org/apache/causeway/applib/util/schema/CommandDtoUtils_toYaml_Approval_Test.marshals_exported_commands_with_returned_object_metadata.approved.txt
@@ -0,0 +1,28 @@
+command:
+  majorVersion: "2"
+  minorVersion: "0"
+  interactionId: "with-result"
+  username: "approval-user"
+  targets:
+    oid:
+    - type: "demo.Customer"
+      id: "123"
+  member: !<ACT>
+    logicalMemberIdentifier: "demo.Customer#noop"
+    interactionType: "action_invocation"
+returnedObject:
+  logicalTypeName: "demo.Invoice"
+  id: "456"
+---
+command:
+  majorVersion: "2"
+  minorVersion: "0"
+  interactionId: "void-result"
+  username: "approval-user"
+  targets:
+    oid:
+    - type: "demo.Customer"
+      id: "123"
+  member: !<ACT>
+    logicalMemberIdentifier: "demo.Customer#noop"
+    interactionType: "action_invocation"
diff --git a/openspec/changes/include-returned-object-in-command-export/.openspec.yaml b/openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/.openspec.yaml
similarity index 100%
rename from openspec/changes/include-returned-object-in-command-export/.openspec.yaml
rename to openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/.openspec.yaml
diff --git a/openspec/changes/include-returned-object-in-command-export/design.md b/openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/design.md
similarity index 100%
rename from openspec/changes/include-returned-object-in-command-export/design.md
rename to openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/design.md
diff --git a/openspec/changes/include-returned-object-in-command-export/proposal.md b/openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/proposal.md
similarity index 100%
rename from openspec/changes/include-returned-object-in-command-export/proposal.md
rename to openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/proposal.md
diff --git a/openspec/changes/include-returned-object-in-command-export/specs/command-export-yaml-result/spec.md b/openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/specs/command-export-yaml-result/spec.md
similarity index 100%
copy from openspec/changes/include-returned-object-in-command-export/specs/command-export-yaml-result/spec.md
copy to openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/specs/command-export-yaml-result/spec.md
diff --git a/openspec/changes/include-returned-object-in-command-export/tasks.md b/openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/tasks.md
similarity index 100%
rename from openspec/changes/include-returned-object-in-command-export/tasks.md
rename to openspec/changes/archive/2026-06-04-include-returned-object-in-command-export/tasks.md
diff --git a/openspec/changes/include-returned-object-in-command-export/specs/command-export-yaml-result/spec.md b/openspec/specs/command-export-yaml-result/spec.md
similarity index 100%
rename from openspec/changes/include-returned-object-in-command-export/specs/command-export-yaml-result/spec.md
rename to openspec/specs/command-export-yaml-result/spec.md