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 21934 int #14629

Open
wants to merge 19 commits into
base: integrationTesting
Choose a base branch
from
Open

B 21934 int #14629

wants to merge 19 commits into from

Conversation

deandreJones
Copy link
Contributor

B-21934

Summary

Is there anything you would like reviewers to give additional scrutiny?

this article explains more about the approach used.

Verification Steps for the Author

These are to be checked by the author.

  • Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
  • Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers

These are to be checked by a reviewer.

  • Has the branch been pulled in and checked out?
  • Have the BL acceptance criteria been met for this change?
  • Was the CircleCI build successful?
  • Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

How to test

  1. Access the Customer app
  2. create a shipment
  3. submit to counselor
  4. login as counselor
  5. search for move that was just created
  6. click Allowances on left side
  7. click on Admin Restricted Weight Location
  8. the weight Restriction box should appear
  9. notice the verbiage change from “Weight allowance” has been changed to “Standard weight allowance”.
  10. add a weight to Weight Restriction and see its saved and viewable on allowances tile
  11. submit the move to TOO(add orders info)
  12. login as TOO search for the move and click approve with shipment(s) selected
  13. on the popup see that the admin restricted weight location value is yes and the weight restriction value is populated
  14. click Approve and send
  15. log in as prime simulator role
  16. in a separate tab go to http://officelocal:3000/swagger-ui/prime.html#/moveTaskOrder/getMoveTaskOrder
  17. review the response in the entitlements object to see that the weight restriction weight is included

Frontend

  • There are no aXe warnings for UI.
  • This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
  • There are no new console errors in the browser devtools.
  • There are no new console errors in the test output.
  • If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
  • This change meets the standards for Section 508 compliance.

Backend

Database

Any new migrations/schema changes:

  • Follows our guidelines for Zero-Downtime Deploys.
  • Have been communicated to #g-database.
  • Secure migrations have been tested following the instructions in our docs.

Screenshots

image image image

@deandreJones deandreJones marked this pull request as ready for review January 21, 2025 17:20
@deandreJones deandreJones requested review from a team as code owners January 21, 2025 17:20
@deandreJones deandreJones added Mountain Movers Movin' Mountains 1 Sprint at a time INTEGRATION Slated for Integration Testing labels Jan 21, 2025
Copy link
Contributor

@danieljordan-caci danieljordan-caci left a comment

Choose a reason for hiding this comment

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

Hm... Getting this error when adding orders as the SC:

2025-01-21T23:18:49.729Z        ERROR   ghcapi/orders.go:276    Data received from requester is bad: BAD_DATA: Error saving entitlement {"git_branch": "e-06167-av-polling-int", "git_commit": "eb6f4c304cb43bc605394e17033eb62b18ddd201", "host": "officelocal:3000", "milmove_trace_id": "6a2666f1-4202-422e-adfa-aaa8b854ebe5", "session_id": "p-tva2Q5W5_TJiB41HJEJB2QpysMcqcj9wXuwlAZLqU"}
github.com/transcom/mymove/pkg/handlers/ghcapi.(*CreateOrderHandler).Handle.CreateOrderHandler.Handle.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/ghcapi/orders.go:276
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/config.go:152
github.com/transcom/mymove/pkg/appcontext.(*appContext).NewTransaction.func1
        /Users/daniel.jordan_cn/mymove/pkg/appcontext/context.go:67

I did run make db_dev_fresh and start everything fresh. Looks like you might need to add AdminRestrictedWeightLocation to the payload in pkg/handlers/ghcapi/orders.go:262

			entitlement := models.Entitlement{
				DependentsAuthorized:    payload.HasDependents,
				DBAuthorizedWeight:      models.IntPointer(weight),
				StorageInTransit:        models.IntPointer(sitDaysAllowance),
				ProGearWeight:           weightAllotment.ProGearWeight,
				ProGearWeightSpouse:     weightAllotment.ProGearWeightSpouse,
				AccompaniedTour:         payload.AccompaniedTour,
				DependentsUnderTwelve:   dependentsUnderTwelve,
				DependentsTwelveAndOver: dependentsTwelveAndOver,
				UBAllowance:             &weightAllotment.UnaccompaniedBaggageAllowance,
			}

			if saveEntitlementErr := appCtx.DB().Save(&entitlement); saveEntitlementErr != nil {
				err = apperror.NewBadDataError("Error saving entitlement")
				appCtx.Logger().Error(err.Error())
				return orderop.NewCreateOrderUnprocessableEntity(), err
			}

Comment on lines 773 to 776
GunSafe: gunSafe,
AdminRestrictedWeightLocation: adminRestrictedWeightLocation,
WeightRestriction: weightRestriction,
ETag: etag.GenerateEtag(entitlement.UpdatedAt),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you update a test to reflect these changes please?

Comment on lines +259 to +263
StorageInTransit: sit,
TotalDependents: totalDependents,
TotalWeight: totalWeight,
WeightRestriction: &weightRestriction,
ETag: etag.GenerateEtag(entitlement.UpdatedAt),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you update a test to reflect these changes please?

Comment on lines 600 to 607
if payload.AdminRestrictedWeightLocation != nil {
order.Entitlement.AdminRestrictedWeightLocation = *payload.AdminRestrictedWeightLocation
}

if payload.WeightRestriction != nil {
weightRestriction := int(*payload.WeightRestriction)
order.Entitlement.WeightRestriction = &weightRestriction
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you update a test to reflect these changes please?

Comment on lines 106 to 115
<div className={visualCuesStyle}>
<dt>Admin Restricted Weight Location</dt>
<dd data-testid="adminRestrictedWtLoc">{info.adminRestrictedWeightLocation ? 'Yes' : 'No'}</dd>
</div>
<div className={visualCuesStyle}>
<dt>Weight Restriction</dt>
<dd data-testid="weightRestriction">
{info.weightRestriction ? formatWeight(info.weightRestriction) : DEFAULT_EMPTY_VALUE}
</dd>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you update a test please?

@deandreJones
Copy link
Contributor Author

Hm... Getting this error when adding orders as the SC:

2025-01-21T23:18:49.729Z        ERROR   ghcapi/orders.go:276    Data received from requester is bad: BAD_DATA: Error saving entitlement {"git_branch": "e-06167-av-polling-int", "git_commit": "eb6f4c304cb43bc605394e17033eb62b18ddd201", "host": "officelocal:3000", "milmove_trace_id": "6a2666f1-4202-422e-adfa-aaa8b854ebe5", "session_id": "p-tva2Q5W5_TJiB41HJEJB2QpysMcqcj9wXuwlAZLqU"}
github.com/transcom/mymove/pkg/handlers/ghcapi.(*CreateOrderHandler).Handle.CreateOrderHandler.Handle.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/ghcapi/orders.go:276
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/config.go:152
github.com/transcom/mymove/pkg/appcontext.(*appContext).NewTransaction.func1
        /Users/daniel.jordan_cn/mymove/pkg/appcontext/context.go:67

I did run make db_dev_fresh and start everything fresh. Looks like you might need to add AdminRestrictedWeightLocation to the payload in pkg/handlers/ghcapi/orders.go:262

			entitlement := models.Entitlement{
				DependentsAuthorized:    payload.HasDependents,
				DBAuthorizedWeight:      models.IntPointer(weight),
				StorageInTransit:        models.IntPointer(sitDaysAllowance),
				ProGearWeight:           weightAllotment.ProGearWeight,
				ProGearWeightSpouse:     weightAllotment.ProGearWeightSpouse,
				AccompaniedTour:         payload.AccompaniedTour,
				DependentsUnderTwelve:   dependentsUnderTwelve,
				DependentsTwelveAndOver: dependentsTwelveAndOver,
				UBAllowance:             &weightAllotment.UnaccompaniedBaggageAllowance,
			}

			if saveEntitlementErr := appCtx.DB().Save(&entitlement); saveEntitlementErr != nil {
				err = apperror.NewBadDataError("Error saving entitlement")
				appCtx.Logger().Error(err.Error())
				return orderop.NewCreateOrderUnprocessableEntity(), err
			}

what branch are you on... this works fine for me on my main branch and the int version (B-21934-int)

@danieljordan-caci
Copy link
Contributor

Hm... Getting this error when adding orders as the SC:

2025-01-21T23:18:49.729Z        ERROR   ghcapi/orders.go:276    Data received from requester is bad: BAD_DATA: Error saving entitlement {"git_branch": "e-06167-av-polling-int", "git_commit": "eb6f4c304cb43bc605394e17033eb62b18ddd201", "host": "officelocal:3000", "milmove_trace_id": "6a2666f1-4202-422e-adfa-aaa8b854ebe5", "session_id": "p-tva2Q5W5_TJiB41HJEJB2QpysMcqcj9wXuwlAZLqU"}
github.com/transcom/mymove/pkg/handlers/ghcapi.(*CreateOrderHandler).Handle.CreateOrderHandler.Handle.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/ghcapi/orders.go:276
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/config.go:152
github.com/transcom/mymove/pkg/appcontext.(*appContext).NewTransaction.func1
        /Users/daniel.jordan_cn/mymove/pkg/appcontext/context.go:67

I did run make db_dev_fresh and start everything fresh. Looks like you might need to add AdminRestrictedWeightLocation to the payload in pkg/handlers/ghcapi/orders.go:262

			entitlement := models.Entitlement{
				DependentsAuthorized:    payload.HasDependents,
				DBAuthorizedWeight:      models.IntPointer(weight),
				StorageInTransit:        models.IntPointer(sitDaysAllowance),
				ProGearWeight:           weightAllotment.ProGearWeight,
				ProGearWeightSpouse:     weightAllotment.ProGearWeightSpouse,
				AccompaniedTour:         payload.AccompaniedTour,
				DependentsUnderTwelve:   dependentsUnderTwelve,
				DependentsTwelveAndOver: dependentsTwelveAndOver,
				UBAllowance:             &weightAllotment.UnaccompaniedBaggageAllowance,
			}

			if saveEntitlementErr := appCtx.DB().Save(&entitlement); saveEntitlementErr != nil {
				err = apperror.NewBadDataError("Error saving entitlement")
				appCtx.Logger().Error(err.Error())
				return orderop.NewCreateOrderUnprocessableEntity(), err
			}

what branch are you on... this works fine for me on my main branch and the int version (B-21934-int)

I was on your branch

@deandreJones
Copy link
Contributor Author

Hm... Getting this error when adding orders as the SC:

2025-01-21T23:18:49.729Z        ERROR   ghcapi/orders.go:276    Data received from requester is bad: BAD_DATA: Error saving entitlement {"git_branch": "e-06167-av-polling-int", "git_commit": "eb6f4c304cb43bc605394e17033eb62b18ddd201", "host": "officelocal:3000", "milmove_trace_id": "6a2666f1-4202-422e-adfa-aaa8b854ebe5", "session_id": "p-tva2Q5W5_TJiB41HJEJB2QpysMcqcj9wXuwlAZLqU"}
github.com/transcom/mymove/pkg/handlers/ghcapi.(*CreateOrderHandler).Handle.CreateOrderHandler.Handle.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/ghcapi/orders.go:276
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/config.go:152
github.com/transcom/mymove/pkg/appcontext.(*appContext).NewTransaction.func1
        /Users/daniel.jordan_cn/mymove/pkg/appcontext/context.go:67

I did run make db_dev_fresh and start everything fresh. Looks like you might need to add AdminRestrictedWeightLocation to the payload in pkg/handlers/ghcapi/orders.go:262

			entitlement := models.Entitlement{
				DependentsAuthorized:    payload.HasDependents,
				DBAuthorizedWeight:      models.IntPointer(weight),
				StorageInTransit:        models.IntPointer(sitDaysAllowance),
				ProGearWeight:           weightAllotment.ProGearWeight,
				ProGearWeightSpouse:     weightAllotment.ProGearWeightSpouse,
				AccompaniedTour:         payload.AccompaniedTour,
				DependentsUnderTwelve:   dependentsUnderTwelve,
				DependentsTwelveAndOver: dependentsTwelveAndOver,
				UBAllowance:             &weightAllotment.UnaccompaniedBaggageAllowance,
			}

			if saveEntitlementErr := appCtx.DB().Save(&entitlement); saveEntitlementErr != nil {
				err = apperror.NewBadDataError("Error saving entitlement")
				appCtx.Logger().Error(err.Error())
				return orderop.NewCreateOrderUnprocessableEntity(), err
			}

what branch are you on... this works fine for me on my main branch and the int version (B-21934-int)

I was on your branch

interesting... ill add to that payload, but Im not getting that error- tried a few diff scenarios

@danieljordan-caci
Copy link
Contributor

Hm... Getting this error when adding orders as the SC:

2025-01-21T23:18:49.729Z        ERROR   ghcapi/orders.go:276    Data received from requester is bad: BAD_DATA: Error saving entitlement {"git_branch": "e-06167-av-polling-int", "git_commit": "eb6f4c304cb43bc605394e17033eb62b18ddd201", "host": "officelocal:3000", "milmove_trace_id": "6a2666f1-4202-422e-adfa-aaa8b854ebe5", "session_id": "p-tva2Q5W5_TJiB41HJEJB2QpysMcqcj9wXuwlAZLqU"}
github.com/transcom/mymove/pkg/handlers/ghcapi.(*CreateOrderHandler).Handle.CreateOrderHandler.Handle.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/ghcapi/orders.go:276
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/config.go:152
github.com/transcom/mymove/pkg/appcontext.(*appContext).NewTransaction.func1
        /Users/daniel.jordan_cn/mymove/pkg/appcontext/context.go:67

I did run make db_dev_fresh and start everything fresh. Looks like you might need to add AdminRestrictedWeightLocation to the payload in pkg/handlers/ghcapi/orders.go:262

			entitlement := models.Entitlement{
				DependentsAuthorized:    payload.HasDependents,
				DBAuthorizedWeight:      models.IntPointer(weight),
				StorageInTransit:        models.IntPointer(sitDaysAllowance),
				ProGearWeight:           weightAllotment.ProGearWeight,
				ProGearWeightSpouse:     weightAllotment.ProGearWeightSpouse,
				AccompaniedTour:         payload.AccompaniedTour,
				DependentsUnderTwelve:   dependentsUnderTwelve,
				DependentsTwelveAndOver: dependentsTwelveAndOver,
				UBAllowance:             &weightAllotment.UnaccompaniedBaggageAllowance,
			}

			if saveEntitlementErr := appCtx.DB().Save(&entitlement); saveEntitlementErr != nil {
				err = apperror.NewBadDataError("Error saving entitlement")
				appCtx.Logger().Error(err.Error())
				return orderop.NewCreateOrderUnprocessableEntity(), err
			}

what branch are you on... this works fine for me on my main branch and the int version (B-21934-int)

I was on your branch

interesting... ill add to that payload, but Im not getting that error- tried a few diff scenarios

Hm. I'll give it another crack.

@danieljordan-caci
Copy link
Contributor

Attaching video with server output. DB is fresh, haven't done anything. This happens for CONUS & OCONUS moves created by SC.

Screen.Recording.2025-01-22.at.1.11.52.PM.mov

@danieljordan-caci
Copy link
Contributor

Getting this when doing it as the customer:

2025-01-22T19:13:36.304Z        ERROR   internalapi/orders.go:235       Error saving customer entitlement       {"git_branch": "INT-B-21838-payment-request-rejection-reason", "git_commit": "a36f2a2816f69d1a8944c8f10bd2e0bbe9f50104", "host": "milmovelocal:3000", "milmove_trace_id": "e287d902-aa59-4402-8b7f-47416707a6b2", "session_id": "z6ChBPKopzBHF1DPrIBbIVlYZkPgJpIklJfHu4A2UaI", "error": "pq: null value in column \"admin_restricted_weight_location\" of relation \"entitlements\" violates not-null constraint"}
github.com/transcom/mymove/pkg/handlers/internalapi.(*CreateOrdersHandler).Handle.CreateOrdersHandler.Handle.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/internalapi/orders.go:235
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/config.go:152
github.com/transcom/mymove/pkg/appcontext.(*appContext).NewTransaction.func1
        /Users/daniel.jordan_cn/mymove/pkg/appcontext/context.go:67

"error": "pq: null value in column \"admin_restricted_weight_location\" of relation \"entitlements\" violates not-null constraint"}

Here's the customer side:

Screen.Recording.2025-01-22.at.1.14.26.PM.mov

Copy link
Contributor

@traskowskycaci traskowskycaci left a comment

Choose a reason for hiding this comment

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

Worked great for me for the prime v1 getMoveTaskOrder endpoint!
image

Though I didn't see it come back with the entitlements object for v2 or v3 getMoveTaskOrder calls.
v2:
image

v3:
image

@deandreJones
Copy link
Contributor Author

{"git_branch": "INT-B-21838-payment-request-rejection-reason"

Getting this when doing it as the customer:

2025-01-22T19:13:36.304Z        ERROR   internalapi/orders.go:235       Error saving customer entitlement       {"git_branch": "INT-B-21838-payment-request-rejection-reason", "git_commit": "a36f2a2816f69d1a8944c8f10bd2e0bbe9f50104", "host": "milmovelocal:3000", "milmove_trace_id": "e287d902-aa59-4402-8b7f-47416707a6b2", "session_id": "z6ChBPKopzBHF1DPrIBbIVlYZkPgJpIklJfHu4A2UaI", "error": "pq: null value in column \"admin_restricted_weight_location\" of relation \"entitlements\" violates not-null constraint"}
github.com/transcom/mymove/pkg/handlers/internalapi.(*CreateOrdersHandler).Handle.CreateOrdersHandler.Handle.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/internalapi/orders.go:235
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/config.go:152
github.com/transcom/mymove/pkg/appcontext.(*appContext).NewTransaction.func1
        /Users/daniel.jordan_cn/mymove/pkg/appcontext/context.go:67

"error": "pq: null value in column \"admin_restricted_weight_location\" of relation \"entitlements\" violates not-null constraint"}

Here's the customer side:

Screen.Recording.2025-01-22.at.1.14.26.PM.mov

{"git_branch": "INT-B-21838-payment-request-rejection-reason"

your branch shows this in the error ^^

@deandreJones
Copy link
Contributor Author

Worked great for me for the prime v1 getMoveTaskOrder endpoint! image

Though I didn't see it come back with the entitlements object for v2 or v3 getMoveTaskOrder calls. v2: image

v3: image

added to v2 and v3 payload

Copy link
Contributor

Choose a reason for hiding this comment

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

really wish we had a linter rule set up for single or double quotes on these yaml files... someday

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do need to add that to my list- thanks for the reminder

traskowskycaci
traskowskycaci previously approved these changes Jan 22, 2025
Copy link
Contributor

@traskowskycaci traskowskycaci left a comment

Choose a reason for hiding this comment

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

Seeing it for v2 and v3 now!
image

image

@danieljordan-caci
Copy link
Contributor

{"git_branch": "INT-B-21838-payment-request-rejection-reason"

Getting this when doing it as the customer:

2025-01-22T19:13:36.304Z        ERROR   internalapi/orders.go:235       Error saving customer entitlement       {"git_branch": "INT-B-21838-payment-request-rejection-reason", "git_commit": "a36f2a2816f69d1a8944c8f10bd2e0bbe9f50104", "host": "milmovelocal:3000", "milmove_trace_id": "e287d902-aa59-4402-8b7f-47416707a6b2", "session_id": "z6ChBPKopzBHF1DPrIBbIVlYZkPgJpIklJfHu4A2UaI", "error": "pq: null value in column \"admin_restricted_weight_location\" of relation \"entitlements\" violates not-null constraint"}
github.com/transcom/mymove/pkg/handlers/internalapi.(*CreateOrdersHandler).Handle.CreateOrdersHandler.Handle.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/internalapi/orders.go:235
github.com/transcom/mymove/pkg/handlers.(*Config).AuditableAppContextFromRequestWithErrors.func1
        /Users/daniel.jordan_cn/mymove/pkg/handlers/config.go:152
github.com/transcom/mymove/pkg/appcontext.(*appContext).NewTransaction.func1
        /Users/daniel.jordan_cn/mymove/pkg/appcontext/context.go:67

"error": "pq: null value in column \"admin_restricted_weight_location\" of relation \"entitlements\" violates not-null constraint"}
Here's the customer side:
Screen.Recording.2025-01-22.at.1.14.26.PM.mov

{"git_branch": "INT-B-21838-payment-request-rejection-reason"

your branch shows this in the error ^^

What the.. How weird. Trying again. I was def on your branch. Might be losing my mind.

Comment on lines 1 to 2
ALTER TABLE entitlements
ADD COLUMN IF NOT EXISTS admin_restricted_weight_location BOOLEAN;
Copy link
Contributor

Choose a reason for hiding this comment

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

Recommending remove this boolean column and instead basing whether or not the entitlement is restricted based on entitlements.weight_restriction being null or not null.

Reason for recommendation is because this bool column would just be storing whether or not weight restriction is null or not and also we end up with the possibility of true weight restriction without any integer provided

Screen.Recording.2025-01-23.at.8.59.38.AM.mov

Screenshot 2025-01-23 at 9 00 48 AM
Screenshot 2025-01-23 at 9 01 11 AM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thinking.. im going to read up on the feature and weigh the pros/cons

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@transcom/mountain-movers would also love others thoughts on this

Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't be opposed to just enforcing the constraight of if bool true that weight restriction int must also be present - but we'll want some method of enforcing that a restriction exists

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually.. I don't hate it.. refactoring now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ill just remove that column and variable, and the UI will read from the weightRestriction value being null or not
and if they check it.. they have to enter a value

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I agree with this approach! Nice catch Cam!

Copy link
Contributor

Choose a reason for hiding this comment

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

Also agree! Seems clean

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done - give it a re-review
I do like this much better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INTEGRATION Slated for Integration Testing Mountain Movers Movin' Mountains 1 Sprint at a time
Development

Successfully merging this pull request may close these issues.

4 participants