Skip to content

feat: Lock Provider Abstraction - #4

Draft
stephenwhittle wants to merge 11 commits into
devfrom
feature-lock_provider_abstraction
Draft

stephenwhittle wants to merge 11 commits into
devfrom
feature-lock_provider_abstraction

Conversation

@stephenwhittle

Copy link
Copy Markdown
Collaborator

Implements an abstraction over locking functionality so we can use our internal lock server without having to deal with LFS.
Sitting in draft pending testing.
Clickup link: https://app.clickup.com/t/9003015469/GSCPP-2841

TArray<FString>& OutResults, TArray<FString>& OutErrorMessages)
{
auto Result = PerformHttpRequest(LockFileRequest(FGitSourceControlModule::Get().GetProvider().GetLockUser(),
Params.FileNames[0], FApp::GetProjectName()));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would multi-file lock operations silently only lock FileNames[0] here? (same with UnlockFiles)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I believe the backend only takes a single name here but I'm not 100% sure, you would need to check the conbot source to see. But we probably do need to handle multiple selections better

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just to quickly confirm @stephenwhittle Would we prefer to update conbot to also support batching and keep the api similar on the uegitplugin side? Or remove batching on the uegitplugin side and loop over each file, doing individual requests?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't mind the idea of updating conbot to take an array of files to lock, yeah

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