Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orphaned commits on development - DO NOT MERGE #1329

Open
wants to merge 1,382 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1382 commits
Select commit Hold shift + click to select a range
a75239a
Merge branch 'synthesis_queue' into development
jimallman Jul 3, 2021
ed25a25
allow subscription to synth-run "runner"
jimallman Jul 3, 2021
8fb4711
Merge branch 'synthesis_queue' into development
jimallman Jul 3, 2021
c5e4100
Validate entire spec
jimallman Jul 3, 2021
600fa94
Merge branch 'synthesis_queue' into development
jimallman Jul 3, 2021
d7f21f2
Support verbose or quiet validation
jimallman Jul 3, 2021
40257c9
Merge branch 'synthesis_queue' into development
jimallman Jul 3, 2021
9bb1c54
another swing at disabling button
jimallman Jul 3, 2021
d6b2e5f
Merge branch 'synthesis_queue' into development
jimallman Jul 3, 2021
1ec23a4
more careful check for options
jimallman Jul 3, 2021
1942007
Merge branch 'synthesis_queue' into development
jimallman Jul 3, 2021
01f712d
gentler disable (click to see details)
jimallman Jul 3, 2021
0bfaa2d
Merge branch 'synthesis_queue' into development
jimallman Jul 3, 2021
a436d2d
prepare to handle new-synth-run response
jimallman Jul 6, 2021
99abe80
Steal sort + delete UI from collection editor
jimallman Jul 6, 2021
c7adb17
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
e621e04
migrate shuffling logic
jimallman Jul 6, 2021
ad96fed
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
039ff20
typo
jimallman Jul 6, 2021
3364827
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
018609c
diagnostic chatter
jimallman Jul 6, 2021
6ee373e
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
5556aae
clean up
jimallman Jul 6, 2021
09d076b
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
00dc54f
adapt list-ordering UI and behavior for synth run
jimallman Jul 6, 2021
95a6c6e
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
19b2dd6
layout cleanup
jimallman Jul 6, 2021
7df785f
Add mock collectionInfo object to hold rank+status
jimallman Jul 6, 2021
7bd23dd
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
e6aaf1e
Mark as observable array
jimallman Jul 6, 2021
72a6651
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
b032052
Look for *wrapped* items in arrays
jimallman Jul 6, 2021
242431b
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
a9bb354
typo
jimallman Jul 6, 2021
9a511ed
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
822c4b2
re-order args
jimallman Jul 6, 2021
61c7429
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
83ff331
update observable collections list
jimallman Jul 6, 2021
0aa9068
Merge branch 'synthesis_queue' into development
jimallman Jul 6, 2021
091a16e
Try another accessor
jimallman Jul 7, 2021
11ef75d
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
cddd87d
Always unwrap KO-bound collections for modification
jimallman Jul 7, 2021
76ceed2
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
aa8bdb5
Explicitly add 'rank' properties
jimallman Jul 7, 2021
2ea682d
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
760acd3
duh
jimallman Jul 7, 2021
8cab6df
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
7551919
Each new collection gets a ranking
jimallman Jul 7, 2021
e599e53
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
32a5188
force updates to synth-run list display
jimallman Jul 7, 2021
a98ecfa
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
c113931
typo
jimallman Jul 7, 2021
92a1f16
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
2b8303b
unwrap collection to test values
jimallman Jul 7, 2021
c6eaaaf
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
09e9d23
layout fixes for Move/Move All buttons
jimallman Jul 7, 2021
928ac82
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
1706765
typo
jimallman Jul 7, 2021
cdeed6e
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
c4af1ed
unwrap when sorting for Move All
jimallman Jul 7, 2021
0a7eca5
Merge branch 'synthesis_queue' into development
jimallman Jul 7, 2021
a8c7655
Consolidated npm build w/ all fixes
jimallman Nov 29, 2021
6f6b846
Clarify README to explain how to update master
jimallman Nov 29, 2021
f8ff03e
Uupdate README to use relative paths
jimallman Nov 29, 2021
109f82c
Overwrite TNRS package*.json and bundle files
jimallman Apr 19, 2022
c7b36e1
Merge branch 'smarter-csv-parsing' into development
jimallman Apr 19, 2022
2416281
typo
jimallman Apr 19, 2022
e5d8df2
Update TNRS bundle directly from smarter-csv-parsing
jimallman Apr 19, 2022
a2b4b55
Update bundle from smarter-csv-parsing
jimallman Apr 19, 2022
b515ea6
Merge branch 'smarter-csv-parsing' into development
jimallman Apr 19, 2022
b7d5fe3
Update bundle from smarter-csv-parsing
jimallman Apr 19, 2022
6236c73
Merge branch 'smarter-csv-parsing' into development
jimallman Apr 19, 2022
90b5a2e
Grab new bundle from smarter-csv-parsing
jimallman Apr 20, 2022
c147602
Merge branch 'smarter-csv-parsing' into development
jimallman Apr 20, 2022
ff16656
Forced merge (as-is) from fix-for-frozen-bulk-tnrs
jimallman Jun 29, 2022
b6762c6
Merge branch 'data-license' into development
jimallman Aug 9, 2022
99cd532
typo
jimallman Aug 19, 2022
f7a334c
Disable import-study-from-TreeBASE option
jimallman Sep 1, 2022
b8ae295
Add early warning to discourage clicks
jimallman Sep 1, 2022
b064f61
Merge branch 'disable-treebase-import' into development
jimallman Sep 1, 2022
3c5d509
More prominent warnings about TreeBASE import
jimallman Sep 1, 2022
caf70c6
Merge branch 'disable-treebase-import' into development
jimallman Sep 1, 2022
2440568
Update to use python3
jimallman Dec 9, 2022
0a64c04
Add source-tree option to Analysis tab UI
jimallman Jan 12, 2023
d2f83fd
Enhanced conflict UI for Analysis tab
jimallman Jan 13, 2023
1fb1d2c
Quickly determine context for tree/study search UI
jimallman Jan 20, 2023
dd1f404
Add context test for study+tree lookup UI
jimallman Jan 30, 2023
23b865b
More prep for flexible tree+study lookup
jimallman Jan 30, 2023
fa9956b
Merge branch 'conflict-with-source-tree2' into development
jimallman Jan 31, 2023
6b454e5
Return missing value
jimallman Feb 10, 2023
c609095
Merge branch 'conflict-with-source-tree2' into development
jimallman Feb 10, 2023
d6eb1b5
Resolve lingering conflict in TNRS bundle
jimallman Feb 14, 2023
a5a8be7
Smarter test for collection editor
jimallman Feb 14, 2023
0576509
Find container to reset study lookup
jimallman Feb 14, 2023
1101d95
Merge branch 'conflict-with-source-tree2' into development
jimallman Feb 14, 2023
8ccd624
Fix study-lookup reset
jimallman Feb 14, 2023
2cc0004
Merge branch 'conflict-with-source-tree2' into development
jimallman Feb 14, 2023
bdb9edb
Try to stop extra study-search results
jimallman Feb 14, 2023
53f5c44
Merge branch 'conflict-with-source-tree2' into development
jimallman Feb 14, 2023
5b1bd31
Add study+tree ID option for tree conflict
jimallman Feb 20, 2023
8ce70d2
Safer minting of unique element IDs
jimallman Feb 20, 2023
743975f
Merge branch 'mint-unique-element-ids' into development
jimallman Feb 20, 2023
c4af18a
JS typos and cleanup
jimallman Feb 21, 2023
1dc70b9
Merge branch 'mint-unique-element-ids' into development
jimallman Feb 21, 2023
7dc5529
temporary debugger statement
jimallman Feb 21, 2023
f3f6d24
Merge branch 'mint-unique-element-ids' into development
jimallman Feb 21, 2023
48dce8a
Filter array with jQuery.grep (vs jQuery.map)
jimallman Feb 21, 2023
1e8f5a9
Merge branch 'mint-unique-element-ids' into development
jimallman Feb 21, 2023
750b2fd
Merge branch '2nexml-missing-bug' into development
jimallman Feb 27, 2023
7b549b5
Hide debugging chatter, show 501 error
jimallman Feb 27, 2023
0398588
Merge branch 'allow-reusing-taxon-names' into development
jimallman Feb 28, 2023
e58203e
Merge branch 'allow-reusing-taxon-names' into development
jimallman Feb 28, 2023
bd5d02d
Revert "Safer minting of unique element IDs"
jimallman Feb 28, 2023
3a59435
Merge branch 'store-highest-minted-element-ids' into development
jimallman Feb 28, 2023
9d2b329
Merge branch 'store-highest-minted-element-ids' into development
jimallman Feb 28, 2023
ed93051
Merge branch 'store-highest-minted-element-ids' into development
jimallman Feb 28, 2023
d50dd69
Merge branch 'store-highest-minted-element-ids' into development
jimallman Feb 28, 2023
f5734a0
Hot fix to support script-managed-trees code
jimallman Feb 28, 2023
31c0635
Merge branch 'store-highest-minted-element-ids' into development
jimallman Feb 28, 2023
131d3dd
Merge branch 'store-highest-minted-element-ids' into development
jimallman Feb 28, 2023
9dde3c3
Merge branch 'smarter-collection-refresh' into development
jimallman Mar 7, 2023
9852d80
Merge branch 'smarter-collection-refresh' into development
jimallman Mar 7, 2023
d65bc53
Merge branch 'master' into conflict-with-source-tree2
jimallman Mar 7, 2023
73a34e9
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 7, 2023
7c5372d
Dynamic UI for single-tree popup
jimallman Mar 7, 2023
a8b7f76
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 7, 2023
8422934
Extra test for single-tree viewer
jimallman Mar 7, 2023
f7d817e
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 7, 2023
d2c7c51
typo
jimallman Mar 7, 2023
a64801d
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 7, 2023
b1d0062
Add cloned UI for study+tree lookup
jimallman Mar 7, 2023
00596de
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 7, 2023
1d2e408
Remove extra GO button
jimallman Mar 13, 2023
cf9fd41
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 13, 2023
5ee7dce
Refactoring for multiple contexts
jimallman Mar 13, 2023
5b5731f
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 13, 2023
5af1a1c
comment cleanup
jimallman Mar 13, 2023
2bf2639
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 13, 2023
15004ca
Add results list for study+tree lookup
jimallman Mar 13, 2023
c2f4e76
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 13, 2023
1c1c15a
Cleanup for alt contexts
jimallman Mar 13, 2023
fe19e7e
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 13, 2023
11e62cc
Load study list and (re)bind UI as needed
jimallman Mar 13, 2023
4a30af2
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 13, 2023
82f6253
Refactor CSS to show link to selected study
jimallman Mar 13, 2023
5b1e3f4
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 13, 2023
da60a21
Alignment fixes
jimallman Mar 14, 2023
b900242
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
283302b
Gather study+tree IDs for API call (and history)
jimallman Mar 14, 2023
df54ea4
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
3d6ef6f
Encode URI for conflict info
jimallman Mar 14, 2023
931aaac
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
f741da9
Double encode non-hash octothorpe in URL?
jimallman Mar 14, 2023
b250128
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
33fb973
More safety for dangerous # in URL
jimallman Mar 14, 2023
0faf2e2
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
652a00a
Use '@' instead of '#' (else History breaks)
jimallman Mar 14, 2023
f186627
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
9cfcad7
Cosmetic tweaks; prep for incoming URL
jimallman Mar 14, 2023
3ed0399
Cosmetic tweaks; prep for incoming URL
jimallman Mar 14, 2023
d84fd21
Update study+tree selectors even if conflict fails
jimallman Mar 14, 2023
4bf4ba7
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
81f8380
Isolate UI refresh for incoming URLs?
jimallman Mar 14, 2023
5252f82
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
1fcf083
Working through alternative cases...
jimallman Mar 14, 2023
e993c36
Working through alternative cases...
jimallman Mar 14, 2023
0a8706b
Remove call w/o conflict details
jimallman Mar 14, 2023
b7555aa
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
e529a5a
Revert "Remove call w/o conflict details"
jimallman Mar 14, 2023
dfce484
Mock up conflict info in case of errors
jimallman Mar 14, 2023
5f788c0
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
fc04be9
Parse incoming URL to get study+tree ids
jimallman Mar 14, 2023
c604e3c
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 14, 2023
e4043e8
Show basic feedback on incoming tree URL
jimallman Mar 14, 2023
2530f42
Show basic feedback on incoming tree URL
jimallman Mar 14, 2023
d05fbf3
Wrap optional UI in hidden DIV
jimallman Mar 21, 2023
9abf2f4
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 21, 2023
b8d9e5a
Generalize form init and action selectors
jimallman Mar 21, 2023
7e5c9d8
Load study list (for lookup) on page load
jimallman Mar 21, 2023
da1acee
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 21, 2023
2cea0f0
Init lookup form AFTER reaching new tab
jimallman Mar 21, 2023
93bccb8
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 21, 2023
44afadf
Load study list AFTER tab is properly loaded
jimallman Mar 21, 2023
f24cb71
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 21, 2023
24220e2
Enable reference-select behavior
jimallman Mar 21, 2023
4102c9a
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 21, 2023
80f28cb
Re-position study selector for Analyses tab
jimallman Mar 21, 2023
1cac70c
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 21, 2023
b67cc0a
Fix layout in tree-view popup
jimallman Mar 27, 2023
9f1a242
Load study lookup list for Home tab
jimallman Mar 27, 2023
d8b0f32
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 27, 2023
b1c4446
Looser test for tree-view-popup context
jimallman Mar 27, 2023
db39297
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 27, 2023
37c0b44
Incoming conflict-URL message should persist
jimallman Mar 28, 2023
04963e3
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 28, 2023
17ebe8f
Layout tweaks for Analyses tab
jimallman Mar 28, 2023
6355823
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 28, 2023
2e1f6b7
Suppress auto-suggestions for study-lookup fields.
jimallman Mar 28, 2023
c3c9bb1
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 28, 2023
22118f4
Fix study+tree conflict summary
jimallman Mar 28, 2023
32cfdfe
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 28, 2023
571793a
Fix raw OR encoded '@' in reference tree ID
jimallman Mar 28, 2023
5cc43fd
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 28, 2023
ae74678
Smarter encoding (preserve '@' for displayed name)
jimallman Mar 28, 2023
42186a9
Merge branch 'conflict-with-source-tree2' into development
jimallman Mar 28, 2023
f5d4e1d
Open reference tree in a new window/frame.
jimallman Apr 3, 2023
9dbd159
Merge branch 'conflict-with-source-tree2' into development
jimallman Apr 3, 2023
7b1e05d
Link directly to reference tree in new frame.
jimallman Apr 3, 2023
6b21d1f
Merge branch 'conflict-with-source-tree2' into development
jimallman Apr 3, 2023
94b26f4
Merge branch 'fix-webapp-configs' into development
jimallman May 9, 2023
6396819
Merge branch 'fix-webapp-configs' into development
jimallman May 9, 2023
568a30a
Merge branch 'fix-webapp-configs' into development
jimallman May 9, 2023
3d1bc62
Merge branch 'fix-webapp-configs' into development
jimallman May 16, 2023
f6d2697
Merge branch 'fix-outbound-links' into development
jimallman Jun 6, 2023
b188d38
Merge branch 'fix-outbound-links' into development
jimallman Jun 6, 2023
8c7c00b
Merge branch 'version-notes-markup' into development
jimallman Jun 13, 2023
4fd694f
Improve curated-tree behavior in conflict display
jimallman Jun 20, 2023
3065d97
Build proper display URL for a source-tree node
jimallman Jun 20, 2023
5f4acbb
Merge branch 'conflict-with-source-tree2' into development
jimallman Jun 20, 2023
c2d0636
Look elsewhere for study and tree IDs
jimallman Jun 20, 2023
fafdbc7
Merge branch 'conflict-with-source-tree2' into development
jimallman Jun 20, 2023
c295262
Smarter test for delimiters between study+tree IDs
jimallman Jun 20, 2023
198e2b1
Merge branch 'conflict-with-source-tree2' into development
jimallman Jun 20, 2023
460bee3
typo
jimallman Jun 20, 2023
7ee69e0
Merge branch 'conflict-with-source-tree2' into development
jimallman Jun 20, 2023
0fd7b03
Add log chatter for changing value
jimallman Jun 20, 2023
c285a1b
Merge branch 'conflict-with-source-tree2' into development
jimallman Jun 20, 2023
31ef9ad
typos
jimallman Jun 27, 2023
c7ba738
Add console chatter (what's going on here?)
jimallman Jun 27, 2023
3f426f6
More console chatter
jimallman Jun 28, 2023
c5ff3d7
Merge branch 'master' into conflict-with-source-tree2
jimallman Jul 20, 2023
5c4c3c5
Merge branch 'conflict-with-source-tree2' into development
jimallman Jul 20, 2023
2b0193c
Better targeting of just one hidden widget
jimallman Aug 1, 2023
dcafc59
Merge branch 'conflict-with-source-tree2' into development
jimallman Aug 1, 2023
91006ac
Fix bad selector for tree-lookup widget
jimallman Aug 1, 2023
52e162d
Merge branch 'conflict-with-source-tree2' into development
jimallman Aug 1, 2023
d305f90
Cleanup console chatter
jimallman Aug 1, 2023
53fa40a
Merge branch 'conflict-with-source-tree2' into development
jimallman Aug 1, 2023
95bd31a
Clear study+tree lookups when switching target
jimallman Aug 3, 2023
40b75ad
Merge branch 'conflict-with-source-tree2' into development
jimallman Aug 3, 2023
3f53d15
Add current reference URL to DOI search-bait
jimallman Aug 8, 2023
feaaad8
Merge branch 'smarter-DOI-lookup' into development
jimallman Aug 8, 2023
fcf32a8
Update explanation text for DOI-lookup results
jimallman Aug 8, 2023
5426dfb
Merge branch 'smarter-DOI-lookup' into development
jimallman Aug 8, 2023
e4d3fe9
Merge pull request #1327 from OpenTreeOfLife/conflict-with-source-tree2
snacktavish Nov 14, 2023
6e264dc
Add missing configuration (APIs) to 404 page
jimallman Nov 21, 2023
67e7963
Force curation links to production base URL
jimallman Dec 4, 2023
53e8416
Merge branch 'force-curation-links-to-production' into development
jimallman Dec 4, 2023
da29592
Fix production-curation URLs
jimallman Dec 4, 2023
ffeb9d4
Merge branch 'force-curation-links-to-production' into development
jimallman Dec 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Copyright (c) 2013, Jonathan Rees
Copyright (c) 2013, Mark Holder
Copyright (c) 2013, Jim Allman
Copyright (c) 2013, Stephen Smith
Copyright (c) 2013-2016, Jonathan Rees
Copyright (c) 2013-2016, Mark Holder
Copyright (c) 2013-2016, Jim Allman
Copyright (c) 2013-2016, Stephen Smith

All rights reserved.

Expand Down
23 changes: 13 additions & 10 deletions curator/controllers/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,17 @@ def load():
def store():
return dict(message="collection/store")

def synthesis_dashboard():
"""
Allow any visitor to view (read-only!) a queue of recent custom-synthesis runs
"""
response.view = 'collection/synthesis_dashboard.html'
view_dict = get_opentree_services_method_urls(request)
view_dict['maintenance_info'] = get_maintenance_info(request)
view_dict['taxonSearchContextNames'] = fetch_current_TNRS_context_names(request)
view_dict['userCanEdit'] = auth.is_logged_in() and True or False
return view_dict

""" TODO: Adapt this for current collection status, based on new APIs """
def _get_latest_synthesis_details_for_collection_id( collection_id ):
# Fetch the last SHA for this collection that was used in the latest
Expand Down Expand Up @@ -137,15 +148,6 @@ def _get_latest_synthesis_details_for_collection_id( collection_id ):
# Draft code is based on schema proposed in
# https://github.com/OpenTreeOfLife/phylesystem-api/issues/228

# fetch the full source list, then look for this study and its trees
commit_SHA_in_synthesis = None
# if key (collection ID, e.g. "opentreeoflife/default") matches, read its details
for c_id, collection_details in source_dict.items():
if c_id == collection_id:
# this is the collection we're interested in!
commit_SHA_in_synthesis = collection_details['git_sha']
return commit_SHA_in_synthesis # TODO: return more information?

# fetch the full source list, then look for this collection and its SHA
# if key (collection ID, e.g. "opentreeoflife/default") matches, read its details
for c_id, collection_details in source_dict.items():
Expand All @@ -155,4 +157,5 @@ def _get_latest_synthesis_details_for_collection_id( collection_id ):
return None
except Exception, e:
# throw 403 or 500 or just leave it
raise HTTP(500, T('Unable to retrieve latest synthesis details for collection {u}'.format(u=collection)))
##raise HTTP(500, T('Unable to retrieve latest synthesis details for collection {u}'.format(u=collection_id)))
raise HTTP(500, T('Unable to retrieve latest synthesis details for collection {u}:\n\n{e}'.format(u=collection_id, e=e)))
3 changes: 2 additions & 1 deletion curator/controllers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ def to_nexson():
_LOG = get_logger(request, 'to_nexson')
if request.env.request_method == 'OPTIONS':
raise HTTP(200, T('Preflight approved!'))

orig_args = {}
is_upload = False
# several of our NexSON use "uploadid" instead of "uploadId" so we should accept either
Expand Down Expand Up @@ -622,7 +623,7 @@ def to_nexson():
try:
assert(os.path.exists(exe_path))
except:
response.view = 'generic.json'; return {'hb':exe_path}
#response.view = 'generic.json'; return {'hb':exe_path}
_LOG.warn("Could not find the 2nexml executable")
raise HTTP(501, T("Server is misconfigured for 2nexml conversion"))
invoc = [exe_path, '-f{f}'.format(f=inp_format), ]
Expand Down
3 changes: 3 additions & 0 deletions curator/private/config.example
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ getContextForNames_url = {taxomachine_domain}/v3/tnrs/infer_context
getSynthesisSourceList_url = {CACHED_treemachine_domain}/v3/tree_of_life/about
getTaxonomicMRCAForNodes_url = {taxomachine_domain}/v3/taxonomy/mrca
getDraftTreeMRCAForNodes_url = {treemachine_domain}/v3/tree_of_life/mrca
findAllSynthesisRuns_url = https://ot38.opentreeoflife.org/v3/tree_of_life/list_custom_built_trees
requestNewSynthesisRun_url = https://ot38.opentreeoflife.org/v3/tree_of_life/build_tree
# TODO: This should start {treemachine_domain} OR {CACHED_treemachine_domain}
findAllStudies_url = {CACHED_oti_domain}/v3/studies/find_studies
# TODO: Can we use CACHED_oti_domain for this?
singlePropertySearchForStudies_url = {oti_domain}/v3/studies/find_studies
Expand Down
24 changes: 24 additions & 0 deletions curator/routes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-

# adapted from router.example.py

# NOTE that this requires a parametric router in the web2py root directory.
# Let's keep all the important stuff here, and just copy a minimal router
# (SITE.routes.py) into the site root.

# NOTE that this (app-specific) routes.py file mainly defines a router by the
# same name. More general settings must be done in the main routes.py alongside
# the web2py/applications/ directory
# root_static (for favicon.ico, robots.txt, etc)
# routes_onerror (defines error pages per app, per error code, or defaults)
# domain (maps domain names and ports to particular app)
# See SITE.routes.py for recommended settings.

routers = dict(
curator=dict(
# convert dashes (hyphens) in URLs to underscores in web2py controller+action names
map_hyphen=True,
),
)

# see router.example.py for (many) more options!
19 changes: 17 additions & 2 deletions curator/static/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,13 @@ tr.after-shims th {
position: relative;
top: -8px;
}
.collection-move-panel {

.form-horizontal.metadata-readonly .control-group {
margin-bottom: 12px;
}

.collection-move-panel,
.synthrun-move-panel {
position: absolute;
margin-left: 2px;
z-index: 1;
Expand All @@ -880,7 +886,8 @@ tr.after-shims th {
-moz-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}
.collection-move-panel button {
.collection-move-panel button,
.synthrun-move-panel button {
opacity: 1.0;
}

Expand Down Expand Up @@ -1014,3 +1021,11 @@ form.skip-label * {
form.skip-label *.non-fading {
opacity: 1.0;
}
.loading-message {
display: inline-block;
position: relative;
top: -6px;
left: 8px;
color: #999;
font-style: italic;
}
Loading