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

feat: save permits to database #20

Merged

Conversation

gentlementlegen
Copy link
Contributor

@gentlementlegen gentlementlegen commented May 5, 2024

Resolves #13

@gentlementlegen gentlementlegen marked this pull request as ready for review May 16, 2024 06:47
if (!locationData) {
const issueItem = await getRepo(parseGitHubUrl(issue.issueUrl));
const { data: newLocationData, error } = await this._supabase
.from("locations")
Copy link
Contributor

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?

Copy link
Member

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.

Copy link
Contributor Author

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)

Copy link
Member

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.

Copy link
Contributor

@rndquu rndquu left a 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

@gitcoindev
Copy link
Contributor

I also did a review. The error handling looks good, after tests are fixed can be merged.

@gentlementlegen gentlementlegen merged commit c1bc547 into ubiquibot:development May 18, 2024
3 checks passed
@gentlementlegen gentlementlegen deleted the feat/save-permits-to-db branch May 18, 2024 08:19
@ubiquibot ubiquibot bot mentioned this pull request May 18, 2024
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.

Save permits to DB
4 participants