Skip to content

Clean up constants#255

Merged
alanna-zhou merged 5 commits into
masterfrom
alanna/constants
Oct 14, 2019
Merged

Clean up constants#255
alanna-zhou merged 5 commits into
masterfrom
alanna/constants

Conversation

@alanna-zhou
Copy link
Copy Markdown
Contributor

@alanna-zhou alanna-zhou commented Sep 13, 2019

Centralized all the constants in one file, and removed the postman token because it was useless.

Again, sorry for the duplicate PR--for some reason, using the RETRY_COUNT constant in RequestUtils.js broke everything. Will be deleting the original PR once this gets merged in.

Currently testing on dev server (transit-dev:alanna) because it sometimes works and sometimes doesn't work

Copy link
Copy Markdown
Contributor

@young-k young-k left a comment

Choose a reason for hiding this comment

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

Probably useful to add even more comments than the initial ones that I suggested (inside of constants.js)

Comment thread src/utils/Constants.js Outdated
Comment thread src/utils/Constants.js
Comment thread src/utils/Constants.js
Comment thread src/utils/Constants.js Outdated
Copy link
Copy Markdown

@kq-li kq-li left a comment

Choose a reason for hiding this comment

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

lgtm!

Comment thread src/utils/AllStopUtils.js Outdated
Comment thread src/utils/Constants.js Outdated
Copy link
Copy Markdown

@kq-li kq-li left a comment

Choose a reason for hiding this comment

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

yeet

Comment thread src/utils/Constants.js Outdated
Comment thread src/utils/Constants.js Outdated
Comment thread src/utils/Constants.js Outdated
Comment thread src/utils/AllStopUtils.js Outdated
Comment thread src/utils/Constants.js
max: 1000, // Max 1000 routes
maxAge: 1000 * 60 * 15, // Max age in 15 minutes
};
// A cache mapping a /search's request query string to its Google autocomplete predictions
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this newline spacing is inconsistent with the above change

@alanna-zhou alanna-zhou merged commit e266496 into master Oct 14, 2019
@meganle meganle deleted the alanna/constants branch October 16, 2019 16:56
alanna-zhou added a commit that referenced this pull request Nov 21, 2019
alanna-zhou added a commit that referenced this pull request Nov 21, 2019
cindy-x-liang pushed a commit that referenced this pull request Oct 9, 2025
cindy-x-liang pushed a commit that referenced this pull request Oct 9, 2025
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.

3 participants