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(quickie): only gitfile should have quickie #1042

Merged

Conversation

kishore03109
Copy link
Contributor

@kishore03109 kishore03109 commented Dec 3, 2023

Problem

Moving forward, since we have migrated most sites out of gh, we will only offer quickie for sites that are in ggs.
As such, this pr removes the dependency of a no longer supported flow so as to allow for a simpler mental model.
Additionally, there were weird abstractions bet GithubService + GithubCommitService -> removed the responsibilities to be isolated.

Test cases will be added in the leaf node of these prs, cicd will also be fixed upstream.

@kishore03109 kishore03109 requested a review from a team December 3, 2023 21:18
@kishore03109 kishore03109 marked this pull request as ready for review December 3, 2023 22:53
@kishore03109 kishore03109 changed the base branch from develop to 12-04-hotfix_repair-form_set_remote_url_correctly December 4, 2023 04:57
@kishore03109 kishore03109 force-pushed the 12-04-feat_quickie_only_gitfile_should_have_quickie branch from ce03cb0 to b9701ed Compare December 4, 2023 04:57
Copy link
Contributor

@seaerchin seaerchin left a comment

Choose a reason for hiding this comment

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

I'm actually fine with this as-is, as long as we just remove the implementation in repo service with super.<new function in github service> so that it's clear where stuff is implemented

@@ -604,16 +603,175 @@ export default class GitHubService {
return newCommitSha
}

async updateRepoState(
async deleteDirectory(
Copy link
Contributor

Choose a reason for hiding this comment

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

this method is functionally identical to the one in repoService - we could probably delete either this or replace the reposervice implementation with a super.deleteDirectory

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch!
link to diff checker as a sanity check: https://www.diffchecker.com/4HWiYNIH/

Copy link
Contributor

Choose a reason for hiding this comment

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

not entirely sure wym here - the diff checker shows that there's 1 with the flagging functionality (which i assume is in repoService?) so we should keep the base and hte one that does the flagging functionality can just call super.

idk if this is done here or downstream (cos i see that this is still unchanged) but if it's resolved downstream, feel free to resolve this

src/services/db/GitHubService.ts Show resolved Hide resolved
src/services/db/GitHubService.ts Show resolved Hide resolved
src/services/db/GitHubService.ts Outdated Show resolved Hide resolved
src/services/db/GitHubService.ts Outdated Show resolved Hide resolved
@kishore03109 kishore03109 changed the base branch from 12-04-hotfix_repair-form_set_remote_url_correctly to develop December 6, 2023 01:18
@kishore03109 kishore03109 force-pushed the 12-04-feat_quickie_only_gitfile_should_have_quickie branch from e56e758 to a0ae4c9 Compare December 6, 2023 01:19
Copy link
Contributor

@seaerchin seaerchin left a comment

Choose a reason for hiding this comment

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

lgtm; please either update the diffed method here or downstream prior to merge

@kishore03109
Copy link
Contributor Author

@seaerchin for clarity

lgtm; please either update the diffed method here or downstream prior to merge

this is already done a0ae4c9. may i confirm that this is what your meant by update the drifed method here ?

Copy link
Contributor Author

kishore03109 commented Dec 6, 2023

Merge activity

@kishore03109 kishore03109 merged commit d84e63f into develop Dec 6, 2023
9 of 10 checks passed
@mergify mergify bot deleted the 12-04-feat_quickie_only_gitfile_should_have_quickie branch December 6, 2023 10:52
kishore03109 added a commit that referenced this pull request Dec 6, 2023
adding test cases for the two new functions `renameSinglePath` and `deleteDirectory` introduced into `GithubService` in #1042. Note that these functions already existed, but this pr adds the test cases to the right file.
This was referenced Dec 6, 2023
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