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

politeiawww: Add legacy package. #1523

Merged
merged 24 commits into from
Oct 5, 2021
Merged

politeiawww: Add legacy package. #1523

merged 24 commits into from
Oct 5, 2021

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Sep 30, 2021

This diff moves all of the code for the legacy APIs into a legacy
package. No functionality or API was changed, the codebase was just
re-organized. This allows us to start with a fresh politeiawww server
context as we re-write the user layer to use a plugin architecture and
to allow for horizontal scaling. Once we migrate to the new user layer
we can simply delete the legacy package and be done with it. No
untangling required.

politeiawww package before:

├── api
├── client
├── cmd
├── cmsdatabase
├── codetracker
├── comments
├── config
├── events
├── mail
├── pi
├── records
├── scripts
├── sessions
├── ticketvote
├── user
├── util
├── cmsaddresswatcher.go
├── cmsnotifications.go
├── cmsuser.go
├── cmsuser_test.go
├── cmswww.go
├── codestats.go
├── codestats_test.go
├── config.go
├── dcc.go
├── decred.go
├── email.go
├── events.go
├── invoices.go
├── log.go
├── middleware.go
├── middleware_test.go
├── params.go
├── paywall.go
├── pi.go
├── politeiad.go
├── politeiawww.go
├── politeiawww_test.go
├── prices.go
├── proposals.go
├── README.md
├── sample-politeiawww.conf
├── templates.go
├── testing.go
├── totp.go
├── totp_test.go
├── user.go
├── user_test.go
├── userwww.go
├── userwww_test.go
└── www.go

politeiawww package after:

├── api
├── client
├── cmd
├── config
├── events
├── legacy
├── mail
├── records
├── scripts
├── sessions
├── util
├── config.go
├── identity.go
├── log.go
├── middleware.go
├── middleware_test.go
├── params.go
├── politeiawww.go
├── README.md
├── sample-politeiawww.conf
├── websockets.go
└── www.go

@lukebp lukebp changed the title [wip] politeiawww: Add legacy package. [WIP] politeiawww: Add legacy package. Sep 30, 2021
@lukebp lukebp changed the title [WIP] politeiawww: Add legacy package. politeiawww: Add legacy package. Oct 1, 2021
@lukebp lukebp merged commit ff4c8e5 into decred:master Oct 5, 2021
@lukebp lukebp deleted the legacy branch February 6, 2022 17:11
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