-
Notifications
You must be signed in to change notification settings - Fork 0
Show Intermediate Rapid resolver page before redirecting to Ensembl site #14
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2358436
rapid redirect page
shashankbrgowda f3845ce
refactor
shashankbrgowda f789110
fixes
shashankbrgowda 2ee8e2c
fix
shashankbrgowda 77f0295
fixes
shashankbrgowda df6a4ab
remove 3xx response code for rapid
shashankbrgowda a803fc5
add comments
shashankbrgowda 4a67d08
construct rapid archive url
shashankbrgowda b7558cf
fixes
shashankbrgowda e52fbb5
remove blast path
shashankbrgowda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||
viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve" width="19px" height="19px" fill="#0099ff"> | ||
<path d="M26.4299088,18.9942322v7.4855804c0,0.6986561-0.4990387,1.2975006-1.2974987,1.2975006h-5.9884644 | ||
c-0.2994232,0-0.6986561-0.2994232-0.6986561-0.6986542v-5.7888489c0-0.2994232-0.2994213-0.6986561-0.6986542-0.6986561h-3.4932718 | ||
c-0.2994232,0-0.6986532,0.2994232-0.6986532,0.6986561v5.7888489c0,0.2994213-0.2994242,0.6986542-0.6986542,0.6986542H6.8675914 | ||
c-0.6986537,0-1.2975006-0.4990387-1.2975006-1.2975006v-7.4855804c0-0.1996155,0.0624285-0.3679199,0.1996155-0.4990387 | ||
l9.7811584-7.9846191c0.1996145-0.1996155,0.4990387-0.1996155,0.7984619,0l9.7811604,7.9846191 | ||
C26.3276825,18.6263123,26.3749332,18.7605743,26.4299088,18.9942322L26.4299088,18.9942322z"/> | ||
<path d="M15.6065302,8.5148048c0.1996155-0.1996155,0.4990396-0.1996155,0.798461,0l12.0700836,9.9158611 | ||
c0.4120693,0.3384781,0.9688454,0.2207394,1.2509117-0.1226521l1.0718441-1.304884 | ||
c0.3384781-0.4120693,0.2207394-0.9688473-0.1226501-1.2509108L17.6026859,5.0215335 | ||
c-0.9980774-0.7984619-2.295579-0.7984619-3.1938486,0L1.3248215,15.7522116 | ||
c-0.343391,0.2820635-0.4611307,0.8388414-0.1226532,1.2509108l1.0718439,1.3048859 | ||
c0.2820647,0.3433914,0.8388419,0.4611301,1.2509112,0.122654L15.6065302,8.5148048z"/> | ||
</svg> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Generator: Adobe Illustrator 23.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | ||
<svg version="1.1" id="e_x5F_logotype" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" | ||
y="0px" viewBox="0 0 236 32" style="enable-background:new 0 0 236 32;" xml:space="preserve" height="12px" fill="#ffffff"> | ||
<path d="M234.1,26.2v4.3h-24V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reted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="topbar"> | ||
<div class="topbar-left"> | ||
<div class="home-link"> | ||
<a href="https://beta.ensembl.org/"> | ||
{% include "_home_icon.html" %} | ||
</a> | ||
</div> | ||
<div class="logotype-wrapper"> | ||
{% include "_logo.html" %} | ||
</div> | ||
<div class="topbar-left-text"> | ||
<div class="release"> | ||
<span class="light">Beta</span> | ||
</div> | ||
<div class="copyright"> | ||
<a href="https://www.ebi.ac.uk" target="_blank" rel="noopener noreferrer"> | ||
© EMBL-EBI | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="topbar-right"> | ||
<span>Genome data & annotation</span> | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% import "url.html" as url_helper %} | ||
|
||
<div class="redirect-content"> | ||
<div class="redirect-info"> | ||
{% if response.response_type == "BLAST" or response.response_type == "HELP" %} | ||
{% if response.species_name %} | ||
<div class="search-param"> | ||
<span class="search-param-label">Species</span> {{ response.species_name }} | ||
</div> | ||
{% endif %} | ||
{{ url_helper.render_url(response.resolved_url) }} | ||
{% elif response.response_type == "INFO" %} | ||
<div class="search-param"> | ||
<span class="search-param-label">Species</span> {{ response.species_name }} | ||
</div> | ||
{% if response.gene_id %} | ||
<div class="search-param"> | ||
<span class="search-param-label">Gene</span> {{ response.gene_id }} | ||
</div> | ||
{% endif %} | ||
{% if response.location %} | ||
<div class="search-param"> | ||
<span class="search-param-label">Location</span> {{ response.location }} | ||
</div> | ||
{% endif %} | ||
{{ url_helper.render_url(response.resolved_url) }} | ||
{% elif response.response_type == "ERROR" %} | ||
<div class="search-param"> | ||
<span class="search-param-label">Species</span> {{ response.species_name }} | ||
</div> | ||
<div class="error-message"> | ||
{{ response.message }} | ||
</div> | ||
{{ url_helper.render_url(response.resolved_url) }} | ||
{% else %} | ||
{{ url_helper.render_url("https://beta.ensembl.org/") }} | ||
{% endif %} | ||
</div> | ||
<div class="redirect-text"> | ||
<span> | ||
You will be redirected to the new Ensembl website, where you will find the latest genomic information | ||
</span> | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="footer"> | ||
<span> | ||
If you require data in Ensembl Rapid release archive, or need links to the Rapid Release ftp, please visit | ||
</span> | ||
</div> | ||
<div class="footer-link"> | ||
<a href="{{ response.rapid_archive_url }}" target="_blank" rel="noopener noreferrer"> | ||
rapid-archive.ensembl.org | ||
</a> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>Ensembl Rapid Resolver</title> | ||
|
||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<!-- Automatically refresh/redirects to the target url (resolved rapid url) after 10 seconds --> | ||
<meta http-equiv="refresh" content="10;url={{ response.resolved_url }}" /> | ||
|
||
<link rel="icon" type="image/png" sizes="32x32" href="/static/icons/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/static/icons/favicon-16x16.png" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap" rel="stylesheet"> | ||
<link rel="stylesheet" type="text/css" href="/static/css/rapid_page.css"> | ||
</head> | ||
<body> | ||
{% include "appbar.html" %} | ||
<div class="container"> | ||
{% include "venn.html" %} | ||
{% include "content.html" %} | ||
{% include "footer.html" %} | ||
</div> | ||
</body> | ||
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% macro render_url(url) %} | ||
<div> | ||
<span class="search-param-label">Redirecting to </span> | ||
<a class="link" href="{{ url }}"> | ||
{{ url }} | ||
</a> | ||
</div> | ||
{% endmacro %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="venn-header"> | ||
<span>Venn of the redirect</span> | ||
</div> | ||
<div class="venn"> | ||
<div class="circle a"> | ||
<span>Your URL has changed or gone...</span> | ||
</div> | ||
<div class="circle b"> | ||
<span>...we suggest this instead</span> | ||
</div> | ||
<div class="intersection"> | ||
<span>{{ response.code }}</span> | ||
</div> | ||
</div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ticket also mentions the case of multiple resolved URLs (code 300), which is not addressed here. In principle an assembly accession ID can resolve to multiple genome UUIDs (if it's part of both partial and integrated release, like the human reference), but it shouldn't apply to rapid species so it's fine (assuming any rapid assembly won't become part of a partial release in the future).