Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

settings for enx #437

Merged
merged 1 commit into from
Sep 1, 2020
Merged

settings for enx #437

merged 1 commit into from
Sep 1, 2020

Conversation

mikehelmick
Copy link
Contributor

Proposed Changes

  • Simplified settings for ENX

Release Note

Realm settings to enable ENX (EN Express)

Copy link
Member

@sethvargo sethvargo left a comment

Choose a reason for hiding this comment

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

/lgtm

{{if not $realm.EnableENExpress}}
<div class="card mb-3">
<div class="card-header">
ENX - Exposure Notifications Express
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ENX - Exposure Notifications Express
EN Express - Exposure Notifications Express

We say "EN Express" everywhere else except these titles.

{{if $realm.EnableENExpress}}
<div class="card mb-3">
<div class="card-header">
ENX - Exposure Notifications Express
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ENX - Exposure Notifications Express
EN Express - Exposure Notifications Express

@@ -311,6 +311,8 @@ func realMain(ctx context.Context) error {
realmadminController := realmadmin.New(ctx, config, db, h)
realmSub.Handle("/settings", realmadminController.HandleIndex()).Methods("GET")
realmSub.Handle("/settings/save", realmadminController.HandleSave()).Methods("POST")
realmSub.Handle("/settings/enable-express", realmadminController.HandleEnableExpress()).Methods("POST")
Copy link
Member

Choose a reason for hiding this comment

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

These should technically be PATCH, but meh.

@@ -80,6 +81,9 @@ type Realm struct {
CertificateAudience string `gorm:"type:varchar(150); default ''"`
Copy link
Member

Choose a reason for hiding this comment

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

I just realized this is a bug. Missing a colon after default.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikehelmick, sethvargo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [mikehelmick,sethvargo]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit bb06ef2 into google:main Sep 1, 2020
@mikehelmick mikehelmick deleted the enexpress branch September 1, 2020 14:35
@google google locked and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants