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

Redesign base url handling #17

Merged
merged 2 commits into from
Sep 9, 2018
Merged

Redesign base url handling #17

merged 2 commits into from
Sep 9, 2018

Conversation

sargunv
Copy link
Member

@sargunv sargunv commented Sep 9, 2018

  • The clone command now inserts a placeholder in place of the base url of the source service. It no longer replaces the base url for the user.
  • The server command no longer guesses the base url to insert; it gets that as a flag from the user. It no longer clobbers external urls (like for sprites).
  • Added a new command, transform, that converts the content in data/api to any base url of the user's choice. This replaces the --location flag from the old clone.
  • Added an environment variable to set base url to the Dockerfile

Overall, this will allow us to generate a copy with any base url without having to reclone every time.

Resolves #13

 - The `clone` command now inserts a placeholder in place of the base url of the source service. It no longer replaces the base url for the user.
 - The server command no longer guesses the base url to insert; it gets that as a flag from the user. It no longer clobbers external urls (like for sprites).
 - Added a new command, `transform`, that converts the content in `data/api` to any base url of the user's choice. This replaces the `--location` flag from the old `clone`.
 - Added an environment variable to set base url to the Dockerfile

Overall, this will allow us to generate a copy with any base url without having to reclone every time.
@@ -0,0 +1,26 @@
from pathlib import Path
from typing import List
Copy link
Contributor

Choose a reason for hiding this comment

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

F401 'typing.List' imported but unused

Copy link
Member Author

@sargunv sargunv Sep 9, 2018

Choose a reason for hiding this comment

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

Okay I'm disabling stickler merge blocking for now, the usage is right there on line 17

@sargunv sargunv merged commit 6ee599a into master Sep 9, 2018
@sargunv sargunv deleted the base-url branch September 9, 2018 10:07
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.

1 participant