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

B 22561 add col filtering office users int #14985

Open
wants to merge 46 commits into
base: integrationTesting
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
384452a
Merge branch 'main' into B-22767
ajlusk Mar 5, 2025
53c770e
Merge branch 'main' into B-22767
ajlusk Mar 5, 2025
7d84fb4
Merge branch 'main' into B-22767
ajlusk Mar 5, 2025
64aeb98
Merge branch 'main' into B-22767
ajlusk Mar 5, 2025
391a1fc
Merge branch 'main' into B-22767
ajlusk Mar 5, 2025
ce6ae14
using different fetcher and filters, add list fetcher and update tests
KonstanceH Mar 6, 2025
ab16143
added more filters with filter button and styles
KonstanceH Mar 6, 2025
b30c670
Merge branch 'main' into B-22767
r-mettler Mar 6, 2025
5378041
Merge branch 'main' into B-22767
r-mettler Mar 6, 2025
e061662
Merge branch 'main' into B-22561-Add-Col-Filtering-Office-Users-MAIN
KonstanceH Mar 6, 2025
09a943b
added list fetcher test. Checking if need more and refactor
KonstanceH Mar 6, 2025
96997c5
change to env variables for bypass if needed; unset aws env just to a…
josiahzimmerman-caci Mar 6, 2025
59eb2a2
need logic to by dynamic in rules
josiahzimmerman-caci Mar 6, 2025
112e5de
missed one
josiahzimmerman-caci Mar 6, 2025
d9bc0ed
Merge branch 'main' into B-22767
r-mettler Mar 6, 2025
592ce54
final fix
josiahzimmerman-caci Mar 6, 2025
6b0e1f8
Merge branch 'main' into B-22767
r-mettler Mar 6, 2025
c0c9f1c
Merge branch 'main' into B-22814-EnvVariableTests
josiahzimmerman-caci Mar 6, 2025
9ef25cd
update to dockerhub
josiahzimmerman-caci Mar 6, 2025
2c5402b
Merge branch 'B-22814-EnvVariableTests' of https://github.com/transco…
josiahzimmerman-caci Mar 6, 2025
4781d85
switch to harbor
josiahzimmerman-caci Mar 6, 2025
385c3fc
add coverage for search filiters update search name/tests
KonstanceH Mar 6, 2025
19cf559
Merge branch 'main' into B-22652-MAIN
traskowskycaci Mar 6, 2025
0d3f1f7
change to harbor
josiahzimmerman-caci Mar 7, 2025
d0caca8
merging in from main branch and fixing conflicts
KonstanceH Mar 7, 2025
99739a3
merging in from main branch and fixing conflicts, and precommit hook …
KonstanceH Mar 7, 2025
e90754a
Merge pull request #14975 from transcom/B-22652-MAIN
cameroncaci Mar 7, 2025
0e1c59f
Merge branch 'main' into B-22814-EnvVariableTests
josiahzimmerman-caci Mar 7, 2025
9eda4fc
white space clean up
josiahzimmerman-caci Mar 7, 2025
e1ff50a
Merge branch 'main' into B-22657-M
TevinAdams Mar 7, 2025
554691a
Merge pull request #14973 from transcom/B-22814-EnvVariableTests
josiahzimmerman-caci Mar 7, 2025
7d765a5
Merge branch 'main' into B-22767
r-mettler Mar 7, 2025
10388e3
Merge branch 'main' into B-22657-M
TevinAdams Mar 7, 2025
f7deb87
Merge pull request #14956 from transcom/B-22767
r-mettler Mar 7, 2025
eee1a60
Merge branch 'main' into B-22657-M
cameroncaci Mar 7, 2025
6fe09e8
add front end test for more coverage
KonstanceH Mar 7, 2025
89a6cb1
Merge branch 'integrationTesting' into B-22561-Add-Col-Filtering-Offi…
KonstanceH Mar 7, 2025
646eb8f
add frontend tests and hook changes
KonstanceH Mar 7, 2025
955ba90
Merge branch 'B-22561-Add-Col-Filtering-Office-Users-MAIN' into B-225…
KonstanceH Mar 7, 2025
9c6f118
Merge pull request #14981 from transcom/B-22657-M
cameroncaci Mar 7, 2025
7dea84d
com needs default region changed to region
josiahzimmerman-caci Mar 7, 2025
dca9ab2
Merge pull request #14987 from transcom/B-22814-EnvVariableTests
josiahzimmerman-caci Mar 7, 2025
1a8c561
condense query and add phone search/test
KonstanceH Mar 7, 2025
08822de
Merge branch 'main' into B-22561-Add-Col-Filtering-Office-Users-MAIN
KonstanceH Mar 7, 2025
aedc6d4
flipped grouping to work and added numbers to test
KonstanceH Mar 7, 2025
3b6ab38
regroup sql add phone to filter and test
KonstanceH Mar 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 83 additions & 22 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ variables:
RUNNER_TAG: &runner_tag milmove
DOCKER_RUNNER_TAG: &docker_runner_tag eks_cluster_runner

postgres: &postgres postgres:16.4
postgres: &postgres harbor.csde.caci.com/docker.io/postgres:16.4
#postgres: &postgres postgres:16.4
redis: &redis redis:5.0.6
redis: &redis harbor.csde.caci.com/docker.io/redis:5.0.6

stages:
- pre_checks
Expand Down Expand Up @@ -86,6 +86,10 @@ stages:
.setup_aws_vars_dp3: &setup_aws_vars_dp3
- export SERVICE_RESERVATION_CPU=2048
- export SERVICE_RESERVATION_MEM=4096
- unset AWS_ACCESS_KEY_ID
- unset AWS_SECRET_ACCESS_KEY
- unset AWS_ACCOUNT_ID
- unset AWS_DEFAULT_REGION
- |
if [[ "$DP3_ENV" == "exp" || "$DP3_ENV" == "loadtest" || "$DP3_ENV" == "demo" ]]; then
export ENV=$(echo ${DP3_ENV} | tr '[:lower:]' '[:upper:]');
Expand All @@ -108,12 +112,21 @@ stages:
fi

.setup_aws_vars_com_dev: &setup_aws_vars_com_dev
- export AWS_DEFAULT_REGION=$COM_REGION
- unset AWS_ACCESS_KEY_ID
- unset AWS_SECRET_ACCESS_KEY
- unset AWS_ACCOUNT_ID
- unset AWS_DEFAULT_REGION
- unset AWS_REGION
- export AWS_REGION=$COM_REGION
- export AWS_ACCOUNT_ID=$DEV_ACCOUNT_ID
- export AWS_ACCESS_KEY_ID=$DEV_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$DEV_SECRET_KEY

.setup_aws_vars_stg: &setup_aws_vars_stg
- unset AWS_ACCESS_KEY_ID
- unset AWS_SECRET_ACCESS_KEY
- unset AWS_ACCOUNT_ID
- unset AWS_DEFAULT_REGION
- export AWS_DEFAULT_REGION=$STG_REGION
- export AWS_ACCOUNT_ID=$STG_ACCOUNT_ID
- export AWS_ACCESS_KEY_ID=$STG_ACCESS_KEY_ID
Expand All @@ -127,6 +140,10 @@ stages:
- export TLS_CA=$STG_MOVE_MIL_DOD_TLS_CA

.setup_aws_vars_prd: &setup_aws_vars_prd
- unset AWS_ACCESS_KEY_ID
- unset AWS_SECRET_ACCESS_KEY
- unset AWS_ACCOUNT_ID
- unset AWS_DEFAULT_REGION
- export AWS_DEFAULT_REGION=$PRD_REGION
- export AWS_ACCOUNT_ID=$PRD_ACCOUNT_ID
- export AWS_ACCESS_KEY_ID=$PRD_ACCESS_KEY_ID
Expand Down Expand Up @@ -405,7 +422,7 @@ golang_lint:
interruptible: true
tags:
- $DOCKER_RUNNER_TAG
image: golangci/golangci-lint:latest # Refer to https://hub.docker.com/r/golangci/golangci-lint
image: harbor.csde.caci.com/docker.io/golangci/golangci-lint:latest # Refer to https://hub.docker.com/r/golangci/golangci-lint
script:
- golangci-lint run --print-issued-lines=false --timeout=25m --out-format code-climate:gl-code-quality-report.json,line-number
artifacts:
Expand Down Expand Up @@ -750,7 +767,6 @@ pre_test:
- yarn danger ci --failOnErrors
- echo "Run spectral linter on all files"
- ./scripts/ensure-spectral-lint /tmp/spectral_baseline spectral
allow_failure: true
after_script:
- *announce_failure
artifacts:
Expand All @@ -761,8 +777,12 @@ pre_test:
- tmp/spectral_baseline/*.json #what do we need to store for review?
- spectral/*.json #what do we need to store for review?
when: always
# rules:
# - *check_server_ignore_branch
rules:
- if: '$PRE_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$PRE_TEST_ALLOW_FAILURE == "false"'
allow_failure: false
# - *check_server_ignore_branch all branches for now

server_test:
stage: test
Expand Down Expand Up @@ -835,7 +855,6 @@ server_test:
- echo "server test -- build gotestsum and run scripts for report"
- make -j 2 bin/milmove bin/gotestsum
- make server_test
allow_failure: false
artifacts:
paths:
- /builds/milmove/mymove/bin/gotestsum
Expand All @@ -845,9 +864,12 @@ server_test:
junit: /builds/milmove/mymove/tmp/test-results/gotest/app/go-test-report.xml
after_script:
- *announce_failure
# we want to make this run on every branch bc webhooks don't exist currently
# rules:
# - *check_server_ignore_branch
rules:
- if: '$SERVER_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$SERVER_TEST_ALLOW_FAILURE == "false"'
allow_failure: false
# - *check_server_ignore_branch # we want to make this run on every branch bc webhooks don't exist currently

server_test_coverage:
stage: test
Expand All @@ -867,10 +889,13 @@ server_test_coverage:
./scripts/ensure-go-test-coverage \
tmp/baseline-go-coverage/go-coverage.txt \
tmp/test-results/gotest/app/go-coverage.txt
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$SERVER_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$SERVER_TEST_ALLOW_FAILURE == "false"'
allow_failure: true #allow failure for now
- *check_server_ignore_branch
###may need to rethink the logic and intent of this they save per the following and do some PR interaction
# only save the cache on default branch builds because we only want to
Expand Down Expand Up @@ -914,9 +939,12 @@ client_test:
- /builds/milmove/mymove/jest-junit-reports
after_script:
- *announce_failure
# we want to make this run on every branch bc webhooks don't exist currently
# rules:
# - *check_client_ignore_branch
rules:
- if: '$CLIENT_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$CLIENT_TEST_ALLOW_FAILURE == "false"'
allow_failure: false
# - *check_client_ignore_branch # we want to make this run on every branch bc webhooks don't exist currently

client_test_coverage:
stage: test
Expand All @@ -940,6 +968,10 @@ client_test_coverage:
after_script:
- *announce_failure
rules:
- if: '$CLIENT_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$CLIENT_TEST_ALLOW_FAILURE == "false"'
allow_failure: true #allow failure for now
- *check_client_ignore_branch

integration_test_devseed:
Expand Down Expand Up @@ -995,10 +1027,13 @@ integration_test_devseed:
export MOVE_MIL_DOD_TLS_CERT=$(cat config/tls/devlocal-https.pem)
export MOVE_MIL_DOD_TLS_KEY=$(cat config/tls/devlocal-https.key)
- make db_dev_fresh
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: false
- *check_integration_ignore_branch

integration_tests:
Expand All @@ -1020,10 +1055,13 @@ integration_tests:
script:
- echo "TODO Add steps"
- echo "integration_tests"
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_ignore_branch

integration_test_mtls:
Expand Down Expand Up @@ -1082,10 +1120,13 @@ integration_test_mtls:
paths:
- test-results/
when: always
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_mtls_ignore_branch

integration_test_admin:
Expand Down Expand Up @@ -1149,10 +1190,13 @@ integration_test_admin:
- complete-playwright-report.zip
- playwright-results.xml
when: always
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_ignore_branch

integration_test_my:
Expand Down Expand Up @@ -1217,10 +1261,13 @@ integration_test_my:
- complete-playwright-report.zip
- playwright-results.xml
when: always
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_ignore_branch

integration_test_office:
Expand Down Expand Up @@ -1283,10 +1330,13 @@ integration_test_office:
- complete-playwright-report.zip
- playwright-results.xml
when: always
allow_failure: true
after_script:
- *announce_failure
rules:
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "true"'
allow_failure: true
- if: '$INTEGRATION_TEST_ALLOW_FAILURE == "false"'
allow_failure: true # allow failure for now
- *check_integration_ignore_branch


Expand Down Expand Up @@ -1560,7 +1610,6 @@ deploy_app_dp3:
########################################################
## STG push and deploy stages all off of main only ##
########################################################

build_push_app_stg:
stage: push
interruptible: true
Expand All @@ -1573,6 +1622,10 @@ build_push_app_stg:
needs:
- compile_app_client
- compile_app_server
- client_test_coverage
- server_test_coverage
- pre_test
- integration_tests
before_script:
- *setup_aws_vars_stg
- *setup_release_stg
Expand All @@ -1597,6 +1650,10 @@ build_push_migrations_stg:
needs:
- compile_app_server
- compile_app_client
- client_test_coverage
- server_test_coverage
- pre_test
- integration_tests
before_script:
- *setup_aws_vars_stg
- *setup_release_stg
Expand All @@ -1621,6 +1678,10 @@ build_push_tasks_stg:
needs:
- compile_app_server
- compile_app_client
- client_test_coverage
- server_test_coverage
- pre_test
- integration_tests
before_script:
- *setup_aws_vars_stg
- *setup_release_stg
Expand Down
2 changes: 1 addition & 1 deletion pkg/handlers/adminapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func NewAdminAPI(handlerConfig handlers.HandlerConfig) *adminops.MymoveAPI {

adminAPI.OfficeUsersIndexOfficeUsersHandler = IndexOfficeUsersHandler{
handlerConfig,
fetch.NewListFetcher(queryBuilder),
officeuser.NewOfficeUsersListFetcher(queryBuilder),
query.NewQueryFilter,
pagination.NewPagination,
}
Expand Down
Loading