Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stetizu1
Copy link
Contributor

First part of: https://github.com/apify/apify-core/issues/19616

adds tier and user is paying vars

@stetizu1 stetizu1 requested review from jirimoravcik and mhamas April 25, 2025 08:35
@github-actions github-actions bot added the t-c&c Team covering store and finance matters. label Apr 25, 2025
Comment on lines +282 to +287
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',
Copy link
Contributor Author

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',
Copy link
Member

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

Copy link
Contributor

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 🤔

@jirimoravcik jirimoravcik changed the title feat(shared): Add env vars feat(consts): add user pricing env vars Apr 25, 2025
@jirimoravcik jirimoravcik changed the title feat(consts): add user pricing env vars feat(consts): add user env vars for tiered pricing Apr 25, 2025
Copy link
Member

@jirimoravcik jirimoravcik left a comment

Choose a reason for hiding this comment

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

I wonder if the env var naming was discussed with e.g. @jancurn or @mtrunkat. If we add these env vars, we'll have to support them until the end of days. So please double-check this.

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',
Copy link
Member

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

@stetizu1
Copy link
Contributor Author

I wonder if the env var naming was discussed with e.g. @jancurn or @mtrunkat. If we add these env vars, we'll have to support them until the end of days. So please double-check this.

Well, the env vars were discussed, here - but I guess it didn't get the 100 % attention it should have

@stetizu1 stetizu1 requested a review from jancurn April 28, 2025 09:33
Copy link
Member

@jancurn jancurn left a comment

Choose a reason for hiding this comment

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

Looks good thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-c&c Team covering store and finance matters.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants