Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore/enterpriseportal: split database package#63425

Merged
bobheadxi merged 3 commits into
mainfrom
ep-split-dataabses
Jun 21, 2024
Merged

chore/enterpriseportal: split database package#63425
bobheadxi merged 3 commits into
mainfrom
ep-split-dataabses

Conversation

@bobheadxi

@bobheadxi bobheadxi commented Jun 21, 2024

Copy link
Copy Markdown
Member

As we set up to introduce more tables to Enterprise Portal, I think it'll be more sustainable for things to get their own subpackages. No real code changes, just moving things around.

Test plan

CI

@cla-bot cla-bot Bot added the cla-signed label Jun 21, 2024
@bobheadxi bobheadxi marked this pull request as ready for review June 21, 2024 21:52
@bobheadxi bobheadxi requested review from a team and unknwon June 21, 2024 21:53

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bobheadxi and the rest of your teammates on Graphite Graphite

@unknwon unknwon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some minor comments

// order as a t.Cleanup hook. It uses soft-deletion when available and skips
// deletion when the test suite failed.
//
// Future: Move to a shared package when more than Enterprise Portal uses it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's in a "shared package" now, so we can remove this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think the comment still stands, since the comment says "when more than Enterprise Portal", and currently it's still only available for EP

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i.e. did you mean you want to share this with other MSP services? if so, that's still not the case

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I did not anticipate database package split within EP, but this PR actually does formally making this a utility helper, which archive the same goal.

// tables for the suite. The test database is dropped after testing is completed
// unless failed.
//
// Future: Move to a shared package when more than Enterprise Portal uses it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's in a "shared package" now, so we can remove this?

Comment thread cmd/enterprise-portal/internal/database/internal/tables/tables.go Outdated
@bobheadxi bobheadxi enabled auto-merge (squash) June 21, 2024 23:24
@bobheadxi bobheadxi merged commit 1f71b47 into main Jun 21, 2024
@bobheadxi bobheadxi deleted the ep-split-dataabses branch June 21, 2024 23:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants