Skip to content

feat: Implement environment update functionality in launchdevly ui#423

Merged
cdelst merged 7 commits into
mainfrom
cdelst/sc-255156/add-ui-support-for-editing-a-project
Sep 12, 2024
Merged

feat: Implement environment update functionality in launchdevly ui#423
cdelst merged 7 commits into
mainfrom
cdelst/sc-255156/add-ui-support-for-editing-a-project

Conversation

@cdelst
Copy link
Copy Markdown
Contributor

@cdelst cdelst commented Sep 11, 2024

@cdelst cdelst requested a review from mike-zorn September 11, 2024 21:19
@cdelst cdelst changed the title Implement environment update functionality in launchdevly ui feat: Implement environment update functionality in launchdevly ui Sep 11, 2024
type Server struct {
var _ StrictServerInterface = server{}

type server struct {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this should be private


func NewStrictServer() Server {
return Server{}
func NewStrictServer() StrictServerInterface {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we want to return the interface not the struct

Comment thread internal/dev_server/api/server.go
Comment thread internal/dev_server/api/server.go Outdated
return GetProjectsEnvironments404JSONResponse{}, nil
}

environments, err := project.Environments(ctx)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I need to refactor this off the project rep still. On my list

result, err := tx.ExecContext(ctx, `
UPDATE projects
SET flag_state = ?, last_sync_time = ?, context=?
SET flag_state = ?, last_sync_time = ?, context=?, source_environment_key=?
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

was this intentionally left out? I saw some tests that might suggest so.

Comment thread internal/dev_server/dev_server.go Outdated

func getDBPath() string {
dbFilePath, err := xdg.StateFile("ldcli/dev_server.db")
log.Printf("Using database at %s", dbFilePath)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

useful for locally connecting to the db

Comment thread internal/dev_server/ui/src/App.tsx Outdated
Comment thread internal/dev_server/adapters/api.go Outdated
@cdelst cdelst requested a review from mike-zorn September 12, 2024 20:26
Comment thread internal/dev_server/ui/src/App.tsx Outdated
@cdelst cdelst merged commit 216dc95 into main Sep 12, 2024
@cdelst cdelst deleted the cdelst/sc-255156/add-ui-support-for-editing-a-project branch September 12, 2024 21:00
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