Skip to content

Commit 2580092

Browse files
committed
Merge remote-tracking branch 'origin/master' into jimfuqian/BB2-3216-SPIKE-add-tests-coverage
2 parents 943fa85 + a140bca commit 2580092

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Submitters should complete the following questionnaire:
5454
* Does this PR add any new software dependencies? **Yes** or **No**.
5555
* Does this PR modify or invalidate any of our security controls? **Yes** or **No**.
5656
* Does this PR store or transmit data that was not stored or transmitted before? **Yes** or **No**.
57-
* If the answer to any of the questions below is **Yes**, then please add StewGoin as a reviewer, and note that this PR should not be merged unless/until he also approves it.
57+
* If the answer to any of the questions below is **Yes**, then please add a Security Engineer and ISSO as a reviewer, and note that this PR should not be merged unless/until he also approves it.
5858
* Do you think this PR requires additional review of its security implications for other reasons? **Yes** or **No**.
5959

6060

apps/authorization/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def update_expiration_date(self):
4343
# For THIRTEEN_MONTH type update expiration_date
4444
if self.application:
4545
flag = get_waffle_flag_model().get("limit_data_access")
46-
if flag.id is not None and flag.is_active_for_user(self.application.user):
46+
if flag.rollout or (flag.id is not None and flag.is_active_for_user(self.application.user)):
4747
if self.application.data_access_type == "THIRTEEN_MONTH":
4848
self.expiration_date = datetime.now().replace(
4949
tzinfo=pytz.UTC
@@ -52,7 +52,7 @@ def update_expiration_date(self):
5252

5353
def has_expired(self):
5454
flag = get_waffle_flag_model().get("limit_data_access")
55-
if flag.id is not None and flag.is_active_for_user(self.application.user):
55+
if flag.rollout or (flag.id is not None and flag.is_active_for_user(self.application.user)):
5656
if self.application.data_access_type == "THIRTEEN_MONTH":
5757
if self.expiration_date:
5858
if self.expiration_date < datetime.now().replace(tzinfo=pytz.UTC):

apps/dot_ext/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def store_media_file(self, file, filename):
229229
def has_one_time_only_data_access(self):
230230
if self.data_access_type == "ONE_TIME":
231231
flag = get_waffle_flag_model().get("limit_data_access")
232-
if flag.id is not None and flag.is_active_for_user(self.user):
232+
if flag.rollout or (flag.id is not None and flag.is_active_for_user(self.user)):
233233
return True
234234
return False
235235

apps/dot_ext/views/authorization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def sensitive_info_check(self, request):
115115
def get_template_names(self):
116116
flag = get_waffle_flag_model().get("limit_data_access")
117117
if waffle.switch_is_active('require-scopes'):
118-
if flag.id is not None and flag.is_active_for_user(self.application.user):
118+
if flag.rollout or (flag.id is not None and flag.is_active_for_user(self.application.user)):
119119
return ["design_system/new_authorize_v2.html"]
120120
else:
121121
return ["design_system/authorize_v2.html"]
122122
else:
123-
if flag.id is not None and flag.is_active_for_user(self.user):
123+
if flag.rollout or (flag.id is not None and flag.is_active_for_user(self.user)):
124124
return ["design_system/new_authorize_v2.html"]
125125
else:
126126
return ["design_system/authorize.html"]

apps/logging/loggers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def log_global_state_metrics(group_timestamp=None, report_flag=True):
341341
grant_counts = get_grant_bene_counts(application=app)
342342

343343
flag = get_waffle_flag_model().get("limit_data_access")
344-
user_limit_data_access = flag.is_active_for_user(app.user) if flag.id is not None else None
344+
user_limit_data_access = flag.rollout or (flag.is_active_for_user(app.user) if flag.id is not None else None)
345345

346346
log_dict = {
347347
"type": "global_state_metrics_per_app",

docker-compose/readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,5 +534,4 @@ or
534534
The argument can be the remote ENV's name, it can also be the URL alternatively:
535535
```
536536
./docker-compose/run_selenium_tests_remote.sh -p https://sandbox.bluebutton.cms.gov/
537-
```
538-
537+
```

0 commit comments

Comments
 (0)