Skip to content

Commit

Permalink
Merge branch 'integrationTesting' of github.com:transcom/mymove into …
Browse files Browse the repository at this point in the history
…INT-B-22039-remove_lat_lon
  • Loading branch information
ryan-mchugh committed Feb 25, 2025
2 parents 79a3e64 + 1902b39 commit a37f066
Show file tree
Hide file tree
Showing 38 changed files with 2,749 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--B-21966 Konstance Haffaney Add column to office_users

ALTER TABLE public.office_users
ADD COLUMN IF NOT EXISTS rejected_on timestamptz;

COMMENT on COLUMN office_users.rejected_on IS 'Date requested office users were rejected.';
1 change: 1 addition & 0 deletions migrations/app/ddl_tables_manifest.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This is the tables migrations manifest.
# If a migration is not recorded here, then it will error.
# Naming convention: tbl_some_table.up.sql running <generate-ddl-migration some_table tables> will create this file.
20250221195633_tbl_alter_office_users_B-21966.up.sql
15 changes: 15 additions & 0 deletions pkg/factory/office_user_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package factory
import (
"fmt"
"strings"
"time"

"github.com/gobuffalo/pop/v6"
"github.com/gofrs/uuid"
Expand Down Expand Up @@ -340,3 +341,17 @@ func GetTraitRequestedOfficeUser() []Customization {
},
}
}

// GetTraitRejectedOfficeUser sets the OfficeUser in an REJECTED status
func GetTraitRejectedOfficeUser() []Customization {
rejectedStatus := models.OfficeUserStatusREJECTED
rejectedOn := time.Now()
return []Customization{
{
Model: models.OfficeUser{
Status: &rejectedStatus,
RejectedOn: &rejectedOn,
},
},
}
}
25 changes: 25 additions & 0 deletions pkg/gen/adminapi/adminoperations/mymove_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a37f066

Please sign in to comment.