Skip to content

Commit

Permalink
Merge pull request #270 from orppst/master
Browse files Browse the repository at this point in the history
Catch up branch to master
  • Loading branch information
DJWalker42 authored Oct 30, 2024
2 parents 2574a6b + 847c3a8 commit d05b952
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 51 deletions.
52 changes: 22 additions & 30 deletions src/main/webui/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- proposalToolSchemas.ts.orig 2024-10-24 14:22:13
+++ proposalToolSchemas.ts 2024-10-24 14:25:39
--- proposalToolSchemas.ts.orig 2024-10-29 14:28:29
+++ proposalToolSchemas.ts 2024-10-29 14:30:08
@@ -7,6 +7,8 @@
* A block of resources that have been allocated
*/
Expand Down Expand Up @@ -108,31 +108,23 @@
xmlId?: string;
/**
* The name of the organization
@@ -791,6 +805,7 @@
* a configuration that has been chosen to observe with.
@@ -795,6 +809,7 @@
* a configuration can be used to observe with.
*/
export type ObservingMode = {
+ _id?: number;
/**
* human readable name for the mode
*/
@@ -810,6 +825,7 @@
* A particular observation combination that is possible
*/
export type ObservingModeConfiguration = {
+ _id?: number;
/**
* Available filters /bandpasses for intruments
*/
@@ -840,6 +856,7 @@
@@ -833,6 +848,7 @@
* a complete proposal
*/
export type ObservingProposal = {
+ "_id"?: number;
/**
* the proposal title
*/
@@ -893,6 +910,8 @@
@@ -886,6 +902,8 @@
* An institution that is a collection of people
*/
export type Organization = {
Expand All @@ -141,7 +133,7 @@
/**
* The name of the organization
*/
@@ -1117,6 +1136,8 @@
@@ -1110,6 +1128,8 @@
* Defines collection of resources and proposals for a particular observing season
*/
export type ProposalCycle = {
Expand All @@ -150,23 +142,23 @@
/**
* a human readable description of the cycle
*/
@@ -1186,6 +1207,7 @@
@@ -1183,6 +1203,7 @@
* A review of a proposal
*/
export type ProposalReview = {
+ _id?: number;
/**
* Description
*/
@@ -1268,6 +1290,7 @@
@@ -1265,6 +1286,7 @@
* A real value with a unit.
*/
export type RealQuantity = {
+ "@type"?: string; // ivoa:RealQuantity
/**
* Must conform to definition of unit in VOUnit spec.
*/
@@ -1299,6 +1322,8 @@
@@ -1296,6 +1318,8 @@
* A resource that will be consumed by allocating an observation from a proposal
*/
export type Resource = {
Expand All @@ -175,23 +167,23 @@
/**
* The amount of the resource
*
@@ -1329,6 +1354,7 @@
@@ -1326,6 +1350,7 @@
* a type of resource
*/
export type ResourceType = {
+ _id?: number;
/**
* the name of the resource type
*/
@@ -1341,6 +1367,7 @@
@@ -1338,6 +1363,7 @@
* assigned to review the proposal
*/
export type Reviewer = {
+ _id?: number;
/**
* person connected with the proposal
*/
@@ -1372,6 +1399,8 @@
@@ -1369,6 +1395,8 @@
/**
* Science oriented definition of a spectral window.
*/
Expand All @@ -200,23 +192,23 @@
spectralWindowSetup?: SpectralWindowSetup;
expectedSpectralLine?: ExpectedSpectralLine[];
};
@@ -1416,6 +1445,7 @@
@@ -1413,6 +1441,7 @@
* A SpaceFrame is specified by its reference frame (orientation), and a reference position (origin). Currently only standard reference frames are allowed. An equinox MUST be provided for pre-ICRS reference frames. A planetary ephemeris MAY be provided if relevant. If needed, but not provided, it is assumed to be 'DE405'.
*/
export type SpaceFrame = {
+ "@type": string; // coords:SpaceFrame
/**
* RefLocation defines the origin of the spatial coordinate space. This location is represented either by a standard reference position (for which the absolute location in phase space is known by definition), or a specified point in another Spatial frame. This object is used as the origin of the SpaceFrame here, but also to specify the Spatial Reference Position (refPosition) associated with other domain Frames. For example, in the Time domain, the Spatial Reference Position indicates that the 'time' values are the time that the 'event' occured at that location, which might be different from the detector location.
*/
@@ -1438,6 +1468,7 @@
@@ -1435,6 +1464,7 @@
* Specialized coordinate system for the Spatial domain. This object SHOULD include an appropriate SpaceFrame. In Appendix B, we define two standard spatial coordinate space instances (Spherical and Cartesian), which may be referenced in serializations. If a CoordSpace is not provided, it is assumed to be represented by a Standard Spherical Coordinate Space.
*/
export type SpaceSys = {
+ "@type": string; // coords:SpaceSys
xmlId?: string;
/**
* Abstract head of coordinate spaces related to physical properties.
@@ -1521,7 +1552,7 @@
@@ -1518,7 +1548,7 @@
/**
* person connected with the proposal
*/
Expand All @@ -225,15 +217,15 @@
uid?: string;
inKeycloakRealm?: boolean;
};
@@ -1541,6 +1572,7 @@
@@ -1538,6 +1568,7 @@
* an instance of a proposal that has been submitted
*/
export type SubmittedProposal = {
+ _id?: number;
/**
* the date that the proposal was submitted
*
@@ -1604,17 +1636,20 @@
@@ -1601,17 +1632,20 @@
* A target source
*/
export type Target = {
Expand All @@ -254,15 +246,15 @@
xmlId?: string;
name?: string;
};
@@ -1623,6 +1658,7 @@
@@ -1620,6 +1654,7 @@
* an observation of the scientific target
*/
export type TargetObservation = {
+ "@type"?: string;
xmlId?: string;
/**
* any constraints on the observation
@@ -1651,10 +1687,12 @@
@@ -1648,10 +1683,12 @@
*/
performance?: PerformanceParameters;
spectrum?: ScienceSpectralWindow[];
Expand All @@ -275,15 +267,15 @@
xmlId?: string;
/**
* telescope name
@@ -1674,6 +1712,7 @@
@@ -1671,6 +1708,7 @@
* a set of telescopes that are operated together for an observation
*/
export type TelescopeArray = {
+ "@type"?: string;
xmlId?: string;
/**
* the array name
@@ -1755,6 +1794,10 @@
@@ -1752,6 +1790,10 @@
* particular time range
*/
export type TimingWindow = {
Expand Down
3 changes: 2 additions & 1 deletion src/main/webui/src/ProposalEditorView/proposal/New.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const textFormatData = [
const [submitting, setSubmitting] = useState(false);
const navigate = useNavigate();
const queryClient = useQueryClient();
const emptyJustification : Justification = {text: "", format: "asciidoc"};
//single white space as work around to issue of changing format of default justification
const emptyJustification : Justification = {text: " ", format: "asciidoc"};
const form = useForm({
initialValues: {
title: "",
Expand Down
36 changes: 16 additions & 20 deletions src/main/webui/src/generated/proposalToolSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type AllocatedBlock = {
*/
resource?: Resource;
/**
* a configuration that has been chosen to observe with.
* a configuration can be used to observe with.
*/
mode?: ObservingMode;
/**
Expand Down Expand Up @@ -752,7 +752,7 @@ export type ObservationConfiguration = {
*/
observation?: Observation[];
/**
* a configuration that has been chosen to observe with.
* a configuration can be used to observe with.
*/
mode?: ObservingMode;
};
Expand All @@ -778,6 +778,10 @@ export type Observatory = {
* a WikiData identifier
*/
wikiId?: WikiDataId;
/**
* the home page for the Observatory
*/
homePage?: string;
/**
* the telescopes that the observatory controls
*/
Expand All @@ -802,7 +806,7 @@ export type Observatory = {
export type ObservingConstraint = Record<string, any>;

/**
* a configuration that has been chosen to observe with.
* a configuration can be used to observe with.
*/
export type ObservingMode = {
_id?: number;
Expand All @@ -814,18 +818,6 @@ export type ObservingMode = {
* human readable description
*/
description?: string;
/**
* A particular observation combination that is possible
*/
configuration?: ObservingModeConfiguration;
xmlId?: string;
};

/**
* A particular observation combination that is possible
*/
export type ObservingModeConfiguration = {
_id?: number;
/**
* Available filters /bandpasses for intruments
*/
Expand Down Expand Up @@ -1142,6 +1134,10 @@ export type ProposalCycle = {
* a human readable description of the cycle
*/
title?: string;
/**
* pointer to more detailed instructions about the cycle
*/
instructions?: string;
/**
* the date by which observing proposals must be submitted to be considered for this cycle
*
Expand Down Expand Up @@ -1345,7 +1341,7 @@ export type ResourceBlock = {
*/
resource?: Resource;
/**
* a configuration that has been chosen to observe with.
* a configuration can be used to observe with.
*/
mode?: ObservingMode;
};
Expand Down Expand Up @@ -1591,15 +1587,15 @@ export type SubmittedProposal = {
* @example "2022-03-10T00:00:00.000Z"
*/
reviewsCompleteDate?: Date;
/**
* a complete proposal
*/
proposal?: ObservingProposal;
config?: ObservationConfiguration[];
/**
* the reviews
*/
reviews?: ProposalReview[];
/**
* a complete proposal
*/
proposal?: ObservingProposal;
xmlId?: string;
};

Expand Down

0 comments on commit d05b952

Please sign in to comment.