Skip to content

[SHARE-497][SHARE-526][Task] Add a status/version endpoint to the API#584

Merged
chrisseto merged 1 commit intodevelopfrom
feature/status
Feb 10, 2017
Merged

[SHARE-497][SHARE-526][Task] Add a status/version endpoint to the API#584
chrisseto merged 1 commit intodevelopfrom
feature/status

Conversation

@chrisseto
Copy link
Copy Markdown
Member

  • In DEBUG mode, if VERSION is not set it will be pulled from a git
    repo
  • The Dockerfile now accepts GIT_TAG which will be passed in as
    VERSION
  • Also removes "Notify" from browsable API page title

Comment thread Dockerfile
RUN python manage.py collectstatic --noinput

ARG GIT_TAG=
ARG GIT_COMMIT=
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason for the separate GIT_TAG and GIT_COMMIT? It looks like GIT_COMMIT is only used for release in sentry issues, and it looks like it's null. Seems like they could be the same thing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Mostly readability:

# git rev-parse HEAD
aeb92b8c98b9b2165b66f4ba2f866636743fec26

# git describe
2.3.1-16-gaeb92b8

The purpose of the endpoint is mostly to check that the latest release is actually whats released.

I don't really have strong feelings one way or the other. Do you have a preference?

(And I copied it from fakecas.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

git describe is definitely better than the full commit hash. I don't have any feelings about GIT_COMMIT, it just seemed potentially redundant, and if it's only used for display (or not actually given a value?) could be replaced with GIT_TAG. 🤷‍♂️

@laurenbarker laurenbarker changed the title [SHARE-497][Task] Add a status/version endpoint to the API [SHARE-497][SHARE-526][Task] Add a status/version endpoint to the API Feb 8, 2017
  * In DEBUG mode, if VERSION is not set it will be pulled from a git
    repo
  * The Dockerfile now accepts GIT_TAG which will be passed in as
    VERSION
  * [SHARE-526] Also removes "Notify" from browsable API page title
@chrisseto chrisseto merged commit dcb7156 into develop Feb 10, 2017
@aaxelb aaxelb deleted the feature/status branch December 21, 2017 20:58
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