-
Notifications
You must be signed in to change notification settings - Fork 11
feat(consts): add user env vars for tiered pricing #511
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
base: master
Are you sure you want to change the base?
Conversation
LOG_LEVEL: 'APIFY_LOG_LEVEL', | ||
METAMORPH_AFTER_SLEEP_MILLIS: 'APIFY_METAMORPH_AFTER_SLEEP_MILLIS', | ||
META_ORIGIN: 'APIFY_META_ORIGIN', | ||
PERSIST_STATE_INTERVAL_MILLIS: 'APIFY_PERSIST_STATE_INTERVAL_MILLIS', | ||
PROXY_PASSWORD: 'APIFY_PROXY_PASSWORD', | ||
PROXY_HOSTNAME: 'APIFY_PROXY_HOSTNAME', | ||
PROXY_PASSWORD: 'APIFY_PROXY_PASSWORD', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just sorted lines here 😅
PROXY_PORT: 'APIFY_PROXY_PORT', | ||
PROXY_STATUS_URL: 'APIFY_PROXY_STATUS_URL', | ||
PURGE_ON_START: 'APIFY_PURGE_ON_START', | ||
SDK_LATEST_VERSION: 'APIFY_SDK_LATEST_VERSION', | ||
SYSTEM_INFO_INTERVAL_MILLIS: 'APIFY_SYSTEM_INFO_INTERVAL_MILLIS', | ||
TOKEN: 'APIFY_TOKEN', | ||
USER_ID: 'APIFY_USER_ID', | ||
USER_IS_PAYING: 'APIFY_USER_IS_PAYING', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this relate to API permissions @tobice pls check this as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually pretty well... it's the same situation as with the proxy password. This eliminates the need for Actors to fetch it from API, and for us to create a scope for it 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/consts/src/consts.ts
Outdated
PROXY_PORT: 'APIFY_PROXY_PORT', | ||
PROXY_STATUS_URL: 'APIFY_PROXY_STATUS_URL', | ||
PURGE_ON_START: 'APIFY_PURGE_ON_START', | ||
SDK_LATEST_VERSION: 'APIFY_SDK_LATEST_VERSION', | ||
SYSTEM_INFO_INTERVAL_MILLIS: 'APIFY_SYSTEM_INFO_INTERVAL_MILLIS', | ||
TOKEN: 'APIFY_TOKEN', | ||
USER_ID: 'APIFY_USER_ID', | ||
USER_IS_PAYING: 'APIFY_USER_IS_PAYING', | ||
USER_TIER: 'APIFY_USER_TIER', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a terrible name, by reading it you have no idea what it means. It should really be APIFY_USER_PRICING_TIER
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thanks
First part of: https://github.com/apify/apify-core/issues/19616
adds tier and user is paying vars