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

Rename H_SERVICE_URL to SIDEBAR_APP_URL #454

Merged
merged 1 commit into from
Jun 19, 2017

Conversation

seanh
Copy link
Contributor

@seanh seanh commented Jun 19, 2017

The H_SERVICE_URL environment variable is only used for one thing: to
set the value of the defaultSidebarAppUrl variable (to
https://hypothes.is/app.html in production or localhost:5000/app.html in dev)
by appending /app.html to the end of the environment variable's value.

For consistency with the config setting and variables that it's used to
control, rename H_SERVICE_URL to SIDEBAR_APP_URL and require the
user to include the /app.html ending in the environment variable's
value.

Also rewrite the documentation for this environment variable to make it
clearer what it's used for.

Note: This change means that developers who're using the
H_SERVICE_URL environment variable in their development environments
will need to:

  1. Rename H_SERVICE_URL it to SIDEBAR_APP_URL in their environment
  2. Append /app.html to the end of the environment variable's value

For example:

export SIDEBAR_APP_URL="http://localhost:5000/app.html"

The developer docs for this environment variable have been updated to reflect
this.

The `H_SERVICE_URL` environment variable is only used for one thing: to
set the value of the `defaultSidebarAppUrl` variable (to
https://hypothes.is/app.html in production or localhost:5000/app.html in dev)
by appending `/app.html` to the end of the environment variable's value.

For consistency with the config setting and variables that it's used to
control, rename `H_SERVICE_URL` to `SIDEBAR_APP_URL` and require the
user to include the `/app.html` ending in the environment variable's
value.

Also rewrite the documentation for this environment variable to make it
clearer what it's used for.

**Note**: This change means that developers who're using the
`H_SERVICE_URL` environment variable in their development environments
will need to:

1. Rename `H_SERVICE_URL` it to `SIDEBAR_APP_URL` in their environment
2. Append `/app.html` to the end of the environment variable's value

For example:

    export SIDEBAR_APP_URL="http://localhost:5000/app.html"

The developer docs for this environment variable have been updated to reflect
this.
@seanh seanh changed the title Rename h service url to sidebar app url Rename H_SERVICE_URL to SIDEBAR_APP_URL Jun 19, 2017
@codecov
Copy link

codecov bot commented Jun 19, 2017

Codecov Report

Merging #454 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #454      +/-   ##
==========================================
+ Coverage   89.86%   89.88%   +0.01%     
==========================================
  Files         127      127              
  Lines        5031     5031              
  Branches      864      864              
==========================================
+ Hits         4521     4522       +1     
+ Misses        510      509       -1
Impacted Files Coverage Δ
src/sidebar/components/hypothesis-app.js 90.58% <0%> (+1.17%) ⬆️

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 9be0257...d055895. Read the comment docs.

@robertknight robertknight self-assigned this Jun 19, 2017
Copy link
Member

@robertknight robertknight left a comment

Choose a reason for hiding this comment

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

LGTM. @seanh would you mind notifying internal & external devs on Slack / the dev mailing list?

@robertknight robertknight merged commit f213843 into master Jun 19, 2017
@robertknight robertknight deleted the rename-H_SERVICE_URL-to-SIDEBAR_APP_URL branch June 19, 2017 14:10
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.

2 participants