Skip to content

Commit

Permalink
Fix ui button spacing issues and other small issues (#966)
Browse files Browse the repository at this point in the history
* Fix ui button spacing issues and other small issues

* Update Changelog, try to fix actions

* add back ports
  • Loading branch information
markphelps authored Jul 27, 2022
1 parent c0ecfb0 commit 983dd00
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 84 deletions.
42 changes: 27 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,47 @@ labels: bug
assignees: markphelps
---

**Describe the bug**
### Describe the Bug

<!--
A clear and concise description of what the bug is.
-->

**Version Info**
### Version Info

Run `flipt --version` and paste the output here.
Run `flipt --version` and paste the output here:

**To Reproduce**
### To Reproduce

<!--
Steps to reproduce the behavior.
-->

**Expected behavior**
### Expected Behavior

<!--
A clear and concise description of what you expected to happen.
-->

### Additional Context

Add any other context about the problem here.

Examples:

- OS
- Config file used
- Database used (SQLite, MySQL, or Postgres)
- Screenshots
- Exported data from the database

<!--
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Attach an export**
**Attach an Export**
If the bug could be best shown with a specific set of data, please export your data by running:
Expand All @@ -36,12 +56,4 @@ flipt export > export.yml
And then attach the YAML file to this issue. ❤️
**Additional context**

Add any other context about the problem here.

Examples:

- OS
- Config file used
- Database used (SQLite, MySQL, or Postgres)
-->
33 changes: 27 additions & 6 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,38 @@ labels: enhancement
assignees: markphelps
---

**Is your feature request related to a problem? Please describe.**
### Problem

Is your feature request related to a problem? Please describe:

<!--
A clear and concise description of what the problem is. Ex. I'm frustrated by [...]
-->

### Ideal Solution

**Describe the solution you'd like**
Describe the solution you'd like:

<!--
A clear and concise description of what you want to happen.
-->

### Additional Context

Add any other context about the feature request here.

Examples:

**Attach an export**
- Screenshots
- Exported data from the database

<!--
**Screenshots**
If applicable, add screenshots to help explain your request.
**Attach an Export**
If your feature request is based on a limitation that could be best shown with a specific set of data, please export your data by running:
Expand All @@ -24,6 +47,4 @@ flipt export > export.yml
And then attach the YAML file to this issue. ❤️
**Additional context**

Add any other context or screenshots about the feature request here.
-->
13 changes: 3 additions & 10 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,12 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: "1.17.x"
go-version: "1.17"
check-latest: true
cache: true

- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Benchmark (SQLite)
run: go test -bench=. ./... -run=XXX -v

Expand Down
39 changes: 11 additions & 28 deletions .github/workflows/database-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
ports:
# will assign a random free host port
- 5432/tcp
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_DB: flipt_test
POSTGRES_USER: postgres
Expand All @@ -43,16 +46,9 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: "1.17.x"

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: "1.17"
check-latest: true
cache: true

- name: Unit Test (Postgres)
run: DB_URL="postgres://postgres:password@localhost:${{ job.services.postgres.ports['5432'] }}/flipt_test?sslmode=disable" go test -count=1 -v ./...
Expand All @@ -79,22 +75,9 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: "1.17.x"

- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
go-version: "1.17"
check-latest: true
cache: true

- name: Unit Test (MySQL)
run: DB_URL="mysql://mysql:password@localhost:${{ job.services.mysql.ports['3306'] }}/flipt_test" go test -count=1 -v ./...
13 changes: 3 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,12 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: "1.17.x"
go-version: "1.17"
check-latest: true
cache: true

- uses: arduino/setup-task@v1

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,12 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: "1.17.x"
go-version: "1.17"
check-latest: true
cache: true

- uses: arduino/setup-task@v1

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Build date was incorrect and always showed current date/time
- Button spacing issue on targeting page
- Docker compose examples run again after switch to non-root user

## [v1.9.0](https://github.com/markphelps/flipt/releases/tag/v1.9.0) - 2022-07-06

Expand Down
2 changes: 2 additions & 0 deletions examples/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM flipt/flipt:latest

USER root

RUN apk update && apk add --no-cache git bash

RUN git clone https://github.com/vishnubob/wait-for-it.git /tmp && \
Expand Down
2 changes: 2 additions & 0 deletions examples/postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM flipt/flipt:latest

USER root

RUN apk update && apk add --no-cache git bash

RUN git clone https://github.com/vishnubob/wait-for-it.git /tmp && \
Expand Down
6 changes: 3 additions & 3 deletions examples/prometheus/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ services:
- flipt_network
environment:
- "FLIPT_LOG_LEVEL=debug"
- "FLIPT_CACHE_MEMORY_ENABLED=true"
- "FLIPT_CACHE_MEMORY_EXPIRATION=1m"
- "FLIPT_CACHE_MEMORY_EVICTION_INTERVAL=2m"
- "FLIPT_CACHE_ENABLED=true"
- "FLIPT_CACHE_BACKEND=memory"
- "FLIPT_CACHE_TTL=1m"

networks:
flipt_network:
6 changes: 4 additions & 2 deletions ui/src/components/Flags/DebugConsole.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
/>
</div>
</div>
<div class="field">
<div class="control is-grouped">
<div class="field is-grouped">
<div class="control">
<button class="button is-primary" @click.prevent="evaluate()">
Debug
</button>
</div>
<div class="control">
<button class="button" @click.prevent="reset()">Reset</button>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions ui/src/components/Flags/Targeting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
>
New Rule
</button>
</div>
<div class="control">
<button
class="button"
:disabled="!reordered"
Expand Down

0 comments on commit 983dd00

Please sign in to comment.