Skip to content

Commit 1de014c

Browse files
committed
Add submitted and cycle codes and publish 0.6.4-SNAPSHOT
Human readable proposal and cycle codes have been added. These are the codes by which proposals and cycles would be referred to by systems outside of the ones that natively "understand" proposalDM (i.e. ones that have access to the surrogate keys)
1 parent 533478e commit 1de014c

5 files changed

Lines changed: 30 additions & 3 deletions

File tree

src/main/vo-dml/proposalManagement.vo-dml.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Proposal Management</title>
1010
<author>Paul Harrison</author>
1111
<version>0.6</version>
12-
<lastModified>2024-11-25T16:59:10Z</lastModified>
12+
<lastModified>2025-07-18T10:31:54Z</lastModified>
1313
<import>
1414
<name>ivoa</name>
1515
<version>1.1</version>
@@ -469,6 +469,18 @@
469469
<maxOccurs>1</maxOccurs>
470470
</multiplicity>
471471
</attribute>
472+
<attribute>
473+
<vodml-id>ProposalCycle.code</vodml-id>
474+
<name>code</name>
475+
<description>human readable code for the cycle</description>
476+
<datatype>
477+
<vodml-ref>ivoa:string</vodml-ref>
478+
</datatype>
479+
<multiplicity>
480+
<minOccurs>0</minOccurs>
481+
<maxOccurs>1</maxOccurs>
482+
</multiplicity>
483+
</attribute>
472484
<attribute>
473485
<vodml-id>ProposalCycle.instructions</vodml-id>
474486
<name>instructions</name>
@@ -689,6 +701,18 @@
689701
<extends>
690702
<vodml-ref>proposal:AbstractProposal</vodml-ref>
691703
</extends>
704+
<attribute>
705+
<vodml-id>SubmittedProposal.proposalCode</vodml-id>
706+
<name>proposalCode</name>
707+
<description>the observatory's code for the proposal</description>
708+
<datatype>
709+
<vodml-ref>ivoa:string</vodml-ref>
710+
</datatype>
711+
<multiplicity>
712+
<minOccurs>1</minOccurs>
713+
<maxOccurs>1</maxOccurs>
714+
</multiplicity>
715+
</attribute>
692716
<composition>
693717
<vodml-id>SubmittedProposal.config</vodml-id>
694718
<name>config</name>

src/main/vodsl/proposalManagement.vodsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
otype ProposalCycle "Defines collection of resources and proposals for a particular observing season" {
9090
observatory references Observatory "";
9191
^title: ivoa:string "a human readable description of the cycle";
92+
code: ivoa:string @? "human readable code for the cycle";
9293
instructions: ivoa:anyURI @? "pointer to more detailed instructions about the cycle";
9394
submissionDeadline : ivoa:datetime @? "the date by which observing proposals must be submitted to be considered for this cycle";
9495
observationSessionStart : ivoa:datetime "the start date of the observing cycle";
@@ -131,6 +132,7 @@
131132

132133
otype SubmittedProposal -> proposal:AbstractProposal "an instance of a proposal that has been submitted" {
133134
// proposal references proposal:ObservingProposal "the proposal that was submitted"; //IMPL this is a reference - this is a slight hack as we really want a composition to "freeze" the original proposal - this messes with the original references in the proposal as then they become contained.
135+
proposalCode: ivoa:string "the observatory's code for the proposal";
134136
config : ObservationConfiguration @* as composition "";
135137
submissionDate : ivoa:datetime "the date that the proposal was submitted";
136138
successful : ivoa:boolean "the proposal can go on to allocation";

src/test/java/org/ivoa/dm/proposal/prop/BaseExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ protected Consumer<ProposalCycle.ProposalCycleBuilder> cycleCommonSetup() {
8989
c.observationSessionStart = new GregorianCalendar(2022, 6, 1).getTime();
9090
c.observationSessionEnd = new GregorianCalendar(2022, 9, 1).getTime();
9191
c.title="test cycle";
92+
c.code="EM01";
9293
c.tac = tac;
9394
};
9495

src/test/java/org/ivoa/dm/proposal/prop/EmerlinExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public SubmittedProposal submitProposal(ObservingProposal frozenProposal) {
125125
);
126126

127127

128-
final SubmittedProposal submittedProposal = new SubmittedProposal( frozenProposal, obsConfigs,new GregorianCalendar(2022, 3, 14).getTime(), false, new GregorianCalendar(2022, 4, 30).getTime(), null );
128+
final SubmittedProposal submittedProposal = new SubmittedProposal( frozenProposal, "EmCode",obsConfigs,new GregorianCalendar(2022, 3, 14).getTime(), false, new GregorianCalendar(2022, 4, 30).getTime(), null );
129129
cycle.setSubmittedProposals(
130130
makeList(submittedProposal));
131131

src/test/java/org/ivoa/dm/proposal/prop/NOTexample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public SubmittedProposal submitProposal(ObservingProposal frozenProposal) {
177177
new ObservationConfiguration(frozenProposal.getObservations(),obsModes[0])
178178
);
179179

180-
final SubmittedProposal submittedProposal = new SubmittedProposal( frozenProposal, obsConfigs,new GregorianCalendar(2022, 3, 14).getTime(), false, new GregorianCalendar(2022, 4, 30).getTime(), null );
180+
final SubmittedProposal submittedProposal = new SubmittedProposal( frozenProposal, "NOTcode", obsConfigs,new GregorianCalendar(2022, 3, 14).getTime(), false, new GregorianCalendar(2022, 4, 30).getTime(), null );
181181
cycle.setSubmittedProposals(
182182
makeList(submittedProposal));
183183

0 commit comments

Comments
 (0)