Skip to content

Commit

Permalink
Update to SkyPortal 566972c2f6b99c4e221aff1f5dc40aa1db7c486c
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Nov 6, 2023
1 parent 8751345 commit 4c44cdd
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 33 deletions.
2 changes: 2 additions & 0 deletions extensions/skyportal/skyportal/app_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
IRSAQueryWISEHandler,
VizierQueryHandler,
DatalabQueryHandler,
PS1QueryHandler,
DefaultFollowupRequestHandler,
DefaultObservationPlanRequestHandler,
DefaultSurveyEfficiencyRequestHandler,
Expand Down Expand Up @@ -478,6 +479,7 @@ def log_request(self, handler):
(r'/api/sources(/[0-9A-Za-z-_\.\+]+)/annotations/irsa', IRSAQueryWISEHandler),
(r'/api/sources(/[0-9A-Za-z-_\.\+]+)/annotations/vizier', VizierQueryHandler),
(r'/api/sources(/[0-9A-Za-z-_\.\+]+)/annotations/datalab', DatalabQueryHandler),
(r'/api/sources(/[0-9A-Za-z-_\.\+]+)/annotations/ps1', PS1QueryHandler),
(
r'/api/(sources|spectra|photometry)(/[0-9A-Za-z-_\.\+]+)/annotations',
AnnotationHandler,
Expand Down
114 changes: 82 additions & 32 deletions extensions/skyportal/static/js/components/SourceDesktop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -791,38 +791,88 @@ const SourceDesktop = ({ source }) => {

{/* TODO 1) check for dead links; 2) simplify link formatting if possible */}
<div className={classes.columnItem}>
<Accordion defaultExpanded>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="followup-content"
id="followup-header"
>
<Typography className={classes.accordionHeading}>
Follow-up
</Typography>
</AccordionSummary>
<AccordionDetails>
<div className={classes.followupContainer}>
<FollowupRequestForm
obj_id={source.id}
action="createNew"
instrumentList={instrumentList}
instrumentFormParams={instrumentFormParams}
/>
<FollowupRequestLists
followupRequests={source.followup_requests}
instrumentList={instrumentList}
instrumentFormParams={instrumentFormParams}
totalMatches={source.followup_requests.length}
/>
<AssignmentForm
obj_id={source.id}
observingRunList={observingRunList}
/>
<AssignmentList assignments={source.assignments} />
</div>
</AccordionDetails>
</Accordion>
<div className={classes.columnItem}>
<Accordion defaultExpanded>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="followup-content"
id="followup-header"
>
<Typography className={classes.accordionHeading}>
Follow-up
</Typography>
</AccordionSummary>
<AccordionDetails>
<div className={classes.followupContainer}>
<FollowupRequestForm
obj_id={source.id}
action="createNew"
instrumentList={instrumentList}
instrumentFormParams={instrumentFormParams}
/>
<FollowupRequestLists
followupRequests={source.followup_requests}
instrumentList={instrumentList}
instrumentFormParams={instrumentFormParams}
totalMatches={source.followup_requests.length}
/>
</div>
</AccordionDetails>
</Accordion>
</div>
<div className={classes.columnItem}>
<Accordion>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="followup-content"
id="forced-photometry-header"
>
<Typography className={classes.accordionHeading}>
Forced Photometry
</Typography>
</AccordionSummary>
<AccordionDetails>
<div className={classes.followupContainer}>
<FollowupRequestForm
obj_id={source.id}
action="createNew"
instrumentList={instrumentList}
instrumentFormParams={instrumentFormParams}
requestType="forced_photometry"
/>
<FollowupRequestLists
followupRequests={source.followup_requests}
instrumentList={instrumentList}
instrumentFormParams={instrumentFormParams}
totalMatches={source.followup_requests.length}
requestType="forced_photometry"
/>
</div>
</AccordionDetails>
</Accordion>
</div>
<div className={classes.columnItem}>
<Accordion defaultExpanded>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="followup-content"
id="observing-run-header"
>
<Typography className={classes.accordionHeading}>
Assign Target to Observing Run
</Typography>
</AccordionSummary>
<AccordionDetails>
<div className={classes.followupContainer}>
<AssignmentForm
obj_id={source.id}
observingRunList={observingRunList}
/>
<AssignmentList assignments={source.assignments} />
</div>
</AccordionDetails>
</Accordion>
</div>
</div>
<PhotometryTable
obj_id={source.id}
Expand Down
2 changes: 1 addition & 1 deletion skyportal
Submodule skyportal updated 69 files
+20 −6 .github/workflows/build-and-deploy-docs.yaml
+17 −8 .github/workflows/test_api_and_frontend.yaml
+2 −2 .github/workflows/test_docker_build.yaml
+7 −5 .github/workflows/test_migrations.yaml
+27 −17 .github/workflows/test_models.yaml
+5 −2 Dockerfile
+3 −1 data/db_demo.yaml
+9 −9 package.json
+8 −8 requirements.txt
+10 −8 services/notification_queue/notification_queue.py
+2 −0 skyportal/app_server.py
+5 −0 skyportal/facility_apis/_base.py
+33 −2 skyportal/facility_apis/atlas.py
+38 −15 skyportal/facility_apis/generic.py
+6 −1 skyportal/facility_apis/interface.py
+46 −0 skyportal/facility_apis/kait.py
+119 −25 skyportal/facility_apis/lco.py
+66 −1 skyportal/facility_apis/lt.py
+46 −0 skyportal/facility_apis/nicer.py
+85 −12 skyportal/facility_apis/ps1.py
+34 −13 skyportal/facility_apis/sedm.py
+37 −14 skyportal/facility_apis/sedmv2.py
+47 −1 skyportal/facility_apis/slack.py
+34 −3 skyportal/facility_apis/swift.py
+32 −1 skyportal/facility_apis/tess.py
+94 −72 skyportal/facility_apis/ztf.py
+1 −0 skyportal/handlers/api/__init__.py
+18 −1 skyportal/handlers/api/analysis.py
+210 −1 skyportal/handlers/api/annotation_services.py
+138 −50 skyportal/handlers/api/followup_request.py
+9 −1 skyportal/handlers/api/photometry_request.py
+8 −1 skyportal/handlers/api/webhook.py
+0 −355 skyportal/tests/api/candidates_sources_events/test_gcn.py
+6 −6 skyportal/tests/external/test_annotation_services.py
+21 −0 skyportal/tests/external/test_catalog_services.py
+631 −180 skyportal/tests/external/test_followup_requests_flaky.py
+39 −0 skyportal/tests/flaky/test_download_flaky.py
+477 −0 skyportal/tests/flaky/test_gcn_flaky.py
+0 −0 skyportal/tests/flaky/test_observation_plan.py
+0 −0 skyportal/tests/flaky/test_radial_query.py
+0 −0 skyportal/tests/frontend/sources_and_observingruns_etc/__init__.py
+24 −2 skyportal/tests/frontend/sources_and_observingruns_etc/test_assignments.py
+0 −0 skyportal/tests/frontend/sources_and_observingruns_etc/test_group_sources.py
+0 −0 skyportal/tests/frontend/sources_and_observingruns_etc/test_observing_planner.py
+0 −0 skyportal/tests/frontend/sources_and_observingruns_etc/test_recent_sources.py
+0 −0 skyportal/tests/frontend/sources_and_observingruns_etc/test_source_count.py
+0 −158 skyportal/tests/frontend/sources_and_observingruns_etc/test_source_list.py
+27 −9 skyportal/tests/frontend/sources_and_observingruns_etc/test_sources.py
+0 −0 skyportal/tests/frontend/sources_and_observingruns_etc/test_top_sources.py
+1 −1 skyportal/tests/frontend/test_notifications.py
+12 −16 static/js/components/AnalysisList.jsx
+0 −1 static/js/components/AssignmentForm.jsx
+30 −9 static/js/components/EditFollowupRequestDialog.jsx
+102 −19 static/js/components/FollowupRequestForm.jsx
+175 −4 static/js/components/FollowupRequestLists.jsx
+115 −11 static/js/components/FollowupRequestPage.jsx
+3 −2 static/js/components/FollowupRequestPreferences.jsx
+25 −5 static/js/components/FollowupRequestSelectionForm.jsx
+35 −21 static/js/components/NewDefaultFollowupRequest.jsx
+9 −6 static/js/components/NewDefaultObservationPlan.jsx
+15 −1 static/js/components/ObservationPlanRequestForm.jsx
+25 −0 static/js/components/SourceAnnotationButtons.jsx
+82 −32 static/js/components/SourceDesktop.jsx
+44 −0 static/js/components/SourceMobile.jsx
+1 −1 static/js/components/SourceTable.jsx
+23 −7 static/js/components/WatcherButton.jsx
+27 −5 static/js/ducks/followup_requests.js
+28 −6 static/js/ducks/source.js
+2 −2 tools/data_loader.py

0 comments on commit 4c44cdd

Please sign in to comment.