Skip to content

Commit

Permalink
Bump to SkyPortal 953dede70f2876259c9aff43ab3d1cab2154d319
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Mar 22, 2024
1 parent f847bc6 commit f5d7e0d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
8 changes: 8 additions & 0 deletions extensions/skyportal/config.yaml.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ app:
component: SummarySearch
- path: "/taxonomies"
component: TaxonomyPage
- path: "/tns_robots"
component: TNSRobotsPage
- path: "/tns_robot/:id/submissions"
component: TNSRobotSubmissionsPage

sidebar:
# See https://material-ui.com/components/material-icons/
Expand Down Expand Up @@ -251,6 +255,10 @@ app:
icon: ZoomInOutlined
url: /observations

- name: TNS Robots
icon: Assignment
url: /tns_robots

- name: Earthquakes
icon: PieChart
url: /earthquakes
Expand Down
13 changes: 12 additions & 1 deletion extensions/skyportal/skyportal/app_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@
ThumbnailHandler,
ThumbnailPathHandler,
TNSRobotHandler,
TNSRobotCoauthorHandler,
TNSRobotGroupHandler,
TNSRobotGroupAutoreporterHandler,
TNSRobotSubmissionHandler,
UserHandler,
UnsourcedFinderHandler,
WeatherHandler,
Expand Down Expand Up @@ -523,7 +527,14 @@ def log_request(self, handler):
(r'/api/thumbnail(/[0-9]+)?', ThumbnailHandler),
(r'/api/thumbnailPath', ThumbnailPathHandler),
(r'/api/tns_bulk(/.*)?', BulkTNSHandler),
(r'/api/tns_robot(/.*)?', TNSRobotHandler),
(
r'/api/tns_robot(/[0-9]+)/group(/[0-9]+)/autoreporter(/[0-9]+)?',
TNSRobotGroupAutoreporterHandler,
),
(r'/api/tns_robot(/[0-9]+)/group(/[0-9]+)?', TNSRobotGroupHandler),
(r'/api/tns_robot(/[0-9]+)/submissions(/[0-9]+)?', TNSRobotSubmissionHandler),
(r'/api/tns_robot(/[0-9]+)/coauthor(/[0-9]+)?', TNSRobotCoauthorHandler),
(r'/api/tns_robot(/[0-9]+)?', TNSRobotHandler),
(r'/api/unsourced_finder', UnsourcedFinderHandler),
(r'/api/user(/[0-9]+)/acls(/.*)?', UserACLHandler),
(r'/api/user(/[0-9]+)/roles(/.*)?', UserRoleHandler),
Expand Down
3 changes: 2 additions & 1 deletion extensions/skyportal/skyportal/initial_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import model_util

from baselayer.app.env import load_env
from baselayer.app.model_util import create_tables, drop_tables, status
from baselayer.app.model_util import create_tables, drop_tables
from baselayer.tools.status import status
from baselayer.app.psa import TornadoStorage
from skyportal.models import Base, DBSession, User, init_db

Expand Down
1 change: 1 addition & 0 deletions extensions/skyportal/skyportal/model_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
'Manage users',
'Manage sources',
'Manage groups',
'Manage TNS robots',
'Manage shifts',
'Manage instruments',
'Manage allocations',
Expand Down
2 changes: 1 addition & 1 deletion skyportal
Submodule skyportal updated 60 files
+196 −0 alembic/versions/0322f907b589_tns_v2.py
+8 −0 config.yaml.defaults
+1 −0 doc/index.rst
+89 −0 doc/pages.md
+1 −1 requirements.txt
+1 −1 services/thumbnail_queue/thumbnail_queue.py
+433 −415 services/tns_retrieval_queue/tns_retrieval_queue.py
+800 −375 services/tns_submission_queue/tns_submission_queue.py
+12 −1 skyportal/app_server.py
+110 −4 skyportal/facility_apis/ztf.py
+10 −1 skyportal/handlers/api/__init__.py
+104 −7 skyportal/handlers/api/allocation.py
+4 −9 skyportal/handlers/api/candidate.py
+13 −1 skyportal/handlers/api/photometric_series.py
+35 −29 skyportal/handlers/api/source.py
+49 −0 skyportal/handlers/api/source_groups.py
+21 −11 skyportal/handlers/api/sources_confirmed_in_gcn.py
+1,223 −342 skyportal/handlers/api/tns.py
+12 −1 skyportal/handlers/api/user.py
+2 −1 skyportal/initial_setup.py
+1 −0 skyportal/model_util.py
+1 −1 skyportal/models/group.py
+1 −1 skyportal/models/instrument.py
+7 −0 skyportal/models/obj.py
+1 −1 skyportal/models/stream.py
+417 −32 skyportal/models/tns.py
+8 −0 skyportal/models/user_token.py
+267 −4 skyportal/tests/api/candidates_sources_events/test_tnsrobots.py
+4 −4 skyportal/tests/api/test_allocations.py
+50 −23 skyportal/tests/api/test_thumbnail.py
+3 −0 skyportal/utils/gcn.py
+8 −1 skyportal/utils/offset.py
+217 −49 skyportal/utils/tns.py
+67 −5 static/js/components/AllocationSummary.jsx
+1 −1 static/js/components/CandidateList.jsx
+44 −21 static/js/components/CommentAttachmentPreview.jsx
+25 −2 static/js/components/CommentEntry.jsx
+4 −2 static/js/components/DisplayPhotStats.jsx
+11 −1 static/js/components/EditComment.jsx
+0 −2 static/js/components/FollowupRequestLists.jsx
+0 −2 static/js/components/Group.jsx
+31 −2 static/js/components/NewPhotometry.jsx
+107 −0 static/js/components/PhotometryMagsys.jsx
+47 −2 static/js/components/PhotometryTable.jsx
+12 −3 static/js/components/RegularCommentList.jsx
+0 −7 static/js/components/ShareDataForm.jsx
+20 −6 static/js/components/Source.jsx
+110 −27 static/js/components/TNSATForm.jsx
+296 −0 static/js/components/TNSRobotSubmissionsPage.jsx
+0 −581 static/js/components/TNSRobots.jsx
+1,315 −0 static/js/components/TNSRobotsPage.jsx
+182 −0 static/js/components/TransferList.jsx
+51 −7 static/js/components/UpdatePhotometry.jsx
+8 −93 static/js/components/UpdateSourceTNS.jsx
+7 −1 static/js/components/VegaPhotometry.jsx
+5 −4 static/js/ducks/allocation.js
+1 −1 static/js/ducks/photometry.js
+90 −5 static/js/ducks/tnsrobots.js
+2 −0 static/js/utils/index.js
+18 −0 static/js/utils/sets.js

0 comments on commit f5d7e0d

Please sign in to comment.