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

Jkmarx/pass refinery intro config #3132

Merged
merged 11 commits into from Dec 7, 2018
Merged

Conversation

jkmarx
Copy link
Member

@jkmarx jkmarx commented Dec 6, 2018

Ref #2680

  • Pass the default intro paragraph to landing page.

Note: 1) I plan on handling the css after the components are all placed. 2) The paragraphs haven't been finalized.

@@ -109,6 +109,7 @@
"REFINERY_GOOGLE_RECAPTCHA_SITE_KEY": "<%= @refinery_google_recaptcha_site_key || "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI" %>",
"REFINERY_GOOGLE_RECAPTCHA_SECRET_KEY": "<%= @refinery_google_recaptcha_secret_key || "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe" %>",
"REFINERY_INNER_NAVBAR_HEIGHT": 20,
"REFINERY_INTRO": "<%= @refinery_intro || "The Stem Cell Commons is a platform for managing, analyzing, and visualizing data belonging to members of the [Harvard Stem Cell Institute (HSCI)](https://hsci.harvard.edu/).\s\s Users can upload various types of files, annotated with pertinent metadata, and can choose to share those files within their own lab, with collaborators, and/or amongst the entire HSCI community. Users can also run common analyses via customizable [Galaxy](https://galaxyproject.org/) workflows and explore subsequent results with interactive visualization tools.\s\s Watch feature-specific tutorial videos below to get started. Once you have registered an account, log in, and click [My Dashboard](https://hsci.stemcellcommons.org/dashboard/) to start managing your own workspace.\s\s If you have any questions, please contact our user liaison, [Geoff Nelson](mailto:geoffrey_nelson@hms.harvard.edu)." %>",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsure if I should the hsci paragraph for an empty string

@codecov
Copy link

codecov bot commented Dec 6, 2018

Codecov Report

Merging #3132 into develop will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3132      +/-   ##
===========================================
- Coverage    61.34%   61.29%   -0.05%     
===========================================
  Files          436      435       -1     
  Lines        27619    27605      -14     
  Branches      1277     1275       -2     
===========================================
- Hits         16942    16921      -21     
- Misses       10677    10684       +7
Impacted Files Coverage Δ
refinery/ui/source/js/home/directives/home.js 100% <ø> (ø) ⬆️
refinery/core/context_processors.py 100% <ø> (ø) ⬆️
...ery/ui/source/js/home/directives/data-set-chart.js 57.14% <ø> (ø) ⬆️
refinery/ui/source/js/refinery-libraries.js 100% <ø> (ø) ⬆️
refinery/ui/source/js/home/ctrls/home-ctrl.js 100% <100%> (ø) ⬆️
...rce/js/commons/directives/analysis-delete-modal.js
...rce/js/commons/ctrls/analysis-delete-modal-ctrl.js
...urce/js/dashboard/controllers/analysis-deletion.js 11.76% <0%> (ø)
...ry/ui/source/js/dashboard/controllers/dashboard.js 9.26% <0%> (+0.07%) ⬆️
...finery/ui/source/js/analysis-monitor/ctrls/ctrl.js 70% <0%> (+3.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83fd78c...cc17048. Read the comment docs.

Copy link
Member

@scottx611x scottx611x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One typo and comment about default value. Otherwise looks good

@@ -191,6 +191,7 @@ export FACTER_REFINERY_CUSTOM_NAVBAR_ITEM="${var.refinery_custom_navbar_item}"
export FACTER_REFINERY_GOOGLE_ANALYTICS_ID="${var.refinery_google_analytics_id}"
export FACTER_REFINERY_GOOGLE_RECAPTCHA_SITE_KEY="${var.refinery_google_recaptcha_site_key}"
export FACTER_REFINERY_GOOGLE_RECAPTCHA_SECRET_KEY="${var.refinery_google_recaptcha_secret_key}"
export FACTER_REFINER_INTRO="${var.refinery_intro}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export FACTER_REFINER_INTRO="${var.refinery_intro}"
export FACTER_REFINERY_INTRO="${var.refinery_intro}"

@@ -162,6 +162,11 @@ variable "refinery_google_recaptcha_secret_key" {
default = ""
}

variable "refinery_intro" {
description = "Mark-down to be displayed in the intro paragraph on the landing page."
default = "The refinery platform is for managing, analyzing, and visualizing data belonging to members of the [Harvard Stem Cell Institute (HSCI)](https://hsci.harvard.edu/).\s\s Users can upload various types of files, annotated with pertinent metadata, and can choose to share those files within their own lab, with collaborators. Users can also run common analyses via customizable [Galaxy](https://galaxyproject.org/) workflows and explore subsequent results with interactive visualization tools.\s\s Watch feature-specific tutorial videos below to get started. Once you have registered an account, log in, and click [My Dashboard](/dashboard) to start managing your own workspace."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the default here should be flip-flopped with the default being used in config.json.erb since cloud deployments are more often a Stem Cell Commons thing. Local installs would get the paragraph about: "The refinery platform" then.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to provide Stem Cell Commons-specific values as defaults for Refinery. All SCC customizations are available in the stemcellcommons S3 bucket (config.yaml to be replaced by terraform.tfvars after v1.6.8 is released).

@@ -162,6 +162,11 @@ variable "refinery_google_recaptcha_secret_key" {
default = ""
}

variable "refinery_intro" {
description = "Mark-down to be displayed in the intro paragraph on the landing page."
default = "The refinery platform is for managing, analyzing, and visualizing data belonging to members of the [Harvard Stem Cell Institute (HSCI)](https://hsci.harvard.edu/).\s\s Users can upload various types of files, annotated with pertinent metadata, and can choose to share those files within their own lab, with collaborators. Users can also run common analyses via customizable [Galaxy](https://galaxyproject.org/) workflows and explore subsequent results with interactive visualization tools.\s\s Watch feature-specific tutorial videos below to get started. Once you have registered an account, log in, and click [My Dashboard](/dashboard) to start managing your own workspace."
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this hsci reference was a typo, this is the generic paragraph.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still says belonging to members of the [Harvard Stem Cell Institute (HSCI)](https://hsci.harvard.edu/)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hackdna Yes, that was my point. But regardless this is a placeholder paragraph until Nils and Shannan have time to write something up.

@jkmarx jkmarx merged commit d7ca54b into develop Dec 7, 2018
@jkmarx jkmarx deleted the jkmarx/pass-refinery-intro-config branch December 7, 2018 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants