pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
12 stars 11 forks source link

Refactor GitHub Interactions #38

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Alright, so long time coming, but I'm soon planning to do a full refactor on the git module, and how we interact with GitHub as a whole.

Since nearly all of our publishing issues stem from this module and the way we use it.

Plus now we are currently exporting nearly every intended to be internal function into the package_handler causing a mess of error checking, which against our MO requires extra internal knowledge of how this module works, and goes against what one would assume from the rest of our error checking on how to error check against it.

So with all that said, I want to refactor to solve the above issues, but thought it would be a good idea to plan this out in an open space, to get some help on identifying our weak points when it comes to this package and it's usage, to ideally get everything covered all at once. So below I will lay out some of the goals, and challenges we currently face that can ideally be resolved.

That's all I've got for now, but please if there's anything I've missed add it below so we can try to get all this stuff in one big swoop like I'll be attempting later this week

confused-Techie commented 1 year ago

Below are some notes I took quickly and want to save for further reference here.

The notes are the quick breakdown of our interactions with VCS's. In an attempt to find a way to streamline them with the refactor


Current Workflows:

postPackages

deletePackagesName

postPackagesStar

deletePackageStar

postPackagesVersion

deletePackageVersion

postPackagesEventUninstall