-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: save permits to database #20
feat: save permits to database #20
Conversation
…ave-permits-to-db
if (!locationData) { | ||
const issueItem = await getRepo(parseGitHubUrl(issue.issueUrl)); | ||
const { data: newLocationData, error } = await this._supabase | ||
.from("locations") |
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.
@gentlementlegen Isn't the locations
table deprecated? Shouldn't we just delete it or at least don't use at all?
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.
Yeah we should probably stop using that table and instead just add a new URL column wherever it makes sense in the other tables.
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.
Used it because it is still there and we didn't update it to something different but indeed it should be changed. Might wanna have a different task for this so we can also migrate all the current values as well (there are 43 records)
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.
Don't worry about data migrations. Basically none of the old data is valuable. No need to do extra work to save 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.
Approving this, but pls fix the tests
I also did a review. The error handling looks good, after tests are fixed can be merged. |
Resolves #13