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

seed update #199

Merged
merged 9 commits into from
Apr 22, 2024
Merged

seed update #199

merged 9 commits into from
Apr 22, 2024

Conversation

wtfsayo
Copy link
Contributor

@wtfsayo wtfsayo commented Apr 16, 2024

No description provided.

@wtfsayo wtfsayo requested a review from plor April 16, 2024 08:40
Copy link
Contributor

@plor plor left a comment

Choose a reason for hiding this comment

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

A couple comments, also as we talked about the rate limit, I've been thinking of amount with the "/" we discussed and then ISO8601 period after the slash. So we could allow things like "100000/P1W" and such.

services/postgres/seed.ts Outdated Show resolved Hide resolved
services/postgres/seed.ts Outdated Show resolved Hide resolved
@wtfsayo wtfsayo requested a review from plor April 20, 2024 18:11
provider = "postgresql"
url = env("DATABASE_URL")
provider = "postgresql"
url = "postgresql://postgres:AZhRAs18Pr7dT2a@localhost:9999"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you meant to check this in.

validationType: "regex",
validationValue: "*", // <-- @note: this is a placeholder, since I couldnt find a regex for this
validationValue: "^d+/Pd+Yd+Md+Wd+Dd+Hd+Md+S$",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to make the segments optional. For example "1000/P1D" should be valid. Also, there are two M signifiers which is ambiguous on the parsing. I recommend using the ISO8601 spec.

@wtfsayo wtfsayo requested a review from plor April 22, 2024 19:27
@wtfsayo wtfsayo merged commit ffa2b5a into develop Apr 22, 2024
@wtfsayo wtfsayo deleted the update-seed-data branch April 22, 2024 19:39
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