Skip to content

Commit

Permalink
Merge pull request #6947 from opengovsg/release_v6.93.0
Browse files Browse the repository at this point in the history
build: release v6.93.0
  • Loading branch information
wanlingt authored Dec 6, 2023
2 parents 43faab5 + f7e9dcf commit 0783b94
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 33 deletions.
27 changes: 21 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v6.92.0](https://github.com/opengovsg/FormSG/compare/v6.92.0...v6.92.0)
#### [v6.93.0](https://github.com/opengovsg/FormSG/compare/v6.92.0...v6.93.0)

- fix: changed z index of workspacesearchbar [`#6927`](https://github.com/opengovsg/FormSG/pull/6927)
- fix: prevent generation of charts if number of responses exceed limit [`#6937`](https://github.com/opengovsg/FormSG/pull/6937)
- fix(deps): bump type-fest from 4.8.2 to 4.8.3 in /shared [`#6943`](https://github.com/opengovsg/FormSG/pull/6943)
- build: merge release v6.92.0 into develop [`#6934`](https://github.com/opengovsg/FormSG/pull/6934)
- build: release v6.92.0 [`#6932`](https://github.com/opengovsg/FormSG/pull/6932)
- feat: set secret key input to password type on activation modal [`#6933`](https://github.com/opengovsg/FormSG/pull/6933)
- chore: bump version to v6.92.0 [`28a8b9c`](https://github.com/opengovsg/FormSG/commit/28a8b9ca95f456c0f2c95d22813bf6d2ae1509ed)

#### [v6.92.0](https://github.com/opengovsg/FormSG/compare/v6.91.1...v6.92.0)

Expand Down Expand Up @@ -59,17 +65,25 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- build: merge release v6.89.1 into develop [`#6905`](https://github.com/opengovsg/FormSG/pull/6905)
- chore: bump version to v6.90.0 [`c03692e`](https://github.com/opengovsg/FormSG/commit/c03692e3d9aa64afa8007dffecfd9871542f4759)

#### [v6.89.2](https://github.com/opengovsg/FormSG/compare/v6.89.0...v6.89.2)
#### [v6.89.2](https://github.com/opengovsg/FormSG/compare/v6.89.1...v6.89.2)

> 17 November 2023

- fix: hotfix v6.89.1 for proper error handling in encrypt-submission middleware [`#6903`](https://github.com/opengovsg/FormSG/pull/6903)
- build: release v6.89.0 [`#6898`](https://github.com/opengovsg/FormSG/pull/6898)
- fix: remove myinfo child from storage mode [`#6901`](https://github.com/opengovsg/FormSG/pull/6901)
- chore: revert commit 6869 [`efab3cf`](https://github.com/opengovsg/FormSG/commit/efab3cf844113573d758b1b2c57147d5d0656a28)
- chore: bump version to 6.89.2 [`1f4e9f7`](https://github.com/opengovsg/FormSG/commit/1f4e9f70cd33ac2f015fb902de5243a4227e4981)
- fix: remove error block [`fb415fc`](https://github.com/opengovsg/FormSG/commit/fb415fcd7189a90056557c242ed98f1dc10e757e)

#### [v6.89.1](https://github.com/opengovsg/FormSG/compare/v6.89.0...v6.89.1)

> 16 November 2023

- build: release v6.89.0 [`#6898`](https://github.com/opengovsg/FormSG/pull/6898)
- fix: remove myinfo child from storage mode [`#6901`](https://github.com/opengovsg/FormSG/pull/6901)
- chore: bump version to 6.89.1 [`253dd25`](https://github.com/opengovsg/FormSG/commit/253dd2596844d28e5dc3caae298fc775fb1a3f75)
- fix: add error handling [`d6c4985`](https://github.com/opengovsg/FormSG/commit/d6c4985aa8e35dd2278af9b70d00d4e86a48bde1)
- fix: remove email mode from myinfo limit message [`5a45c98`](https://github.com/opengovsg/FormSG/commit/5a45c980dbe3fc8c15eacb3ff1827f3003fcbfc4)

#### [v6.89.0](https://github.com/opengovsg/FormSG/compare/v6.88.0...v6.89.0)

> 15 November 2023
Expand Down Expand Up @@ -106,21 +120,22 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- fix: add case for SGID MyInfo when field value is missing [`#6874`](https://github.com/opengovsg/FormSG/pull/6874)
- build: merge release v6.86.0 into develop [`#6873`](https://github.com/opengovsg/FormSG/pull/6873)
- build: release v6.86.0 [`#6866`](https://github.com/opengovsg/FormSG/pull/6866)
- chore: use non-testing branch for font-wqy-zenhei [`#6867`](https://github.com/opengovsg/FormSG/pull/6867)
- chore: bump version to v6.86.0 [`1eec9b6`](https://github.com/opengovsg/FormSG/commit/1eec9b63c914b56b7b10adffd03554e07fde0f3a)
- chore: bump version to v6.87.0 [`5054803`](https://github.com/opengovsg/FormSG/commit/50548038804b03f30ce6d23b4d43b7a8cf7d9620)

#### [v6.86.0](https://github.com/opengovsg/FormSG/compare/v6.85.1...v6.86.0)

> 6 November 2023

- chore: use non-testing branch for font-wqy-zenhei [`#6867`](https://github.com/opengovsg/FormSG/pull/6867)
- chore: update credits and terms of use [`#6865`](https://github.com/opengovsg/FormSG/pull/6865)
- fix: add cloudflareinsights as allowable csp [`#6864`](https://github.com/opengovsg/FormSG/pull/6864)
- feat: optimise submission query [`#6863`](https://github.com/opengovsg/FormSG/pull/6863)
- chore(dockerfile): update mocktwilio to start asap [`#6862`](https://github.com/opengovsg/FormSG/pull/6862)
- fix: only render delete button if owner [`#6837`](https://github.com/opengovsg/FormSG/pull/6837)
- build: merge release v6.85.1 into develop [`#6861`](https://github.com/opengovsg/FormSG/pull/6861)
- fix: hotfix v6.85.1 to prevent creation of SGID_MyInfo storage mode forms [`#6860`](https://github.com/opengovsg/FormSG/pull/6860)
- chore: bump version to v6.86.0 [`1eec9b6`](https://github.com/opengovsg/FormSG/commit/1eec9b63c914b56b7b10adffd03554e07fde0f3a)
- chore: bump version to v6.86.0 [`1c827cd`](https://github.com/opengovsg/FormSG/commit/1c827cd11844649ca303bb5dc9987db5367637c9)

#### [v6.85.1](https://github.com/opengovsg/FormSG/compare/v6.85.0...v6.85.1)

Expand Down
9 changes: 5 additions & 4 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN chown 1001:1001 /mongodb_data
ENV CHROMIUM_BIN=/usr/bin/chromium-browser
ENV NODE_ENV=development
# --openssl-legacy-provider flag
# A breaking change in the SSL provider was introduced in node 17. This caused
# A breaking change in the SSL provider was introduced in node 17. This caused
# webpack 4 to break. This is an interim solution; we should investigate removing
# this flag once angular has been removed and we have upgraded to CRA5 (which uses
# webpack 5).
Expand All @@ -28,7 +28,8 @@ RUN apk update && apk upgrade && \
# that is guaranteed to work. Upgrades must be done in lockstep.
# https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md#running-on-alpine
# https://www.npmjs.com/package/puppeteer-core?activeTab=versions for corresponding versions
chromium=117.0.5938.62-r0 \
# Compatible chromium versions can be found here https://pkgs.alpinelinux.org/packages?name=chromium&branch=v3.18&repo=&arch=&maintainer=
chromium=119.0.6045.159-r0 \
nss \
freetype \
freetype-dev \
Expand All @@ -53,7 +54,7 @@ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
RUN apk add font-wqy-zenhei --repository https://dl-cdn.alpinelinux.org/alpine/edge/community

# Avoid using globs as there seems to be some inconsistency in the way dockerfile handles globs
# * https://github.com/moby/moby/issues/15858
# * https://github.com/moby/moby/issues/15858
COPY package.json package-lock.json ./
COPY shared/package.json shared/package-lock.json ./shared/
COPY frontend/package.json frontend/package-lock.json ./frontend/
Expand All @@ -75,4 +76,4 @@ EXPOSE 5000
# e.g. chromium when launched to create a new PDF
ENTRYPOINT [ "tini", "--" ]
# Create local AWS resources before building the app
CMD sh init-localstack.sh && npm run dev:backend
CMD sh init-localstack.sh && npm run dev:backend
7 changes: 4 additions & 3 deletions Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ RUN npm ci --legacy-peer-deps
COPY . ./

# --openssl-legacy-provider flag
# A breaking change in the SSL provider was introduced in node 17. This caused
# A breaking change in the SSL provider was introduced in node 17. This caused
# webpack 4 to break. This is an interim solution; we should investigate removing
# this flag once angular has been removed and we have upgraded to CRA5 (which uses
# webpack 5).
# webpack 5).
# See also:
# * https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
# * https://github.com/webpack/webpack/issues/14532#issuecomment-1304378535
Expand Down Expand Up @@ -81,7 +81,8 @@ RUN mv /opt/formsg/dist/backend/shared /opt/formsg/
# https://www.npmjs.com/package/puppeteer-core?activeTab=versions for corresponding versions

RUN apk add --no-cache \
chromium=117.0.5938.62-r0 \
# Compatible chromium versions can be found here https://pkgs.alpinelinux.org/packages?name=chromium&branch=v3.18&repo=&arch=&maintainer=
chromium=119.0.6045.159-r0 \
nss \
freetype \
freetype-dev \
Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-frontend",
"version": "6.92.0",
"version": "6.93.0",
"homepage": ".",
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useLocation } from 'react-router-dom'
import { Box, Container, Divider, Stack } from '@chakra-ui/react'
import { useFeatureValue } from '@growthbook/growthbook-react'

import { featureFlags } from '~shared/constants'
import { FormResponseMode } from '~shared/types/form'

import { ACTIVE_ADMINFORM_RESULTS_ROUTE_REGEX } from '~constants/routes'
Expand All @@ -21,7 +23,10 @@ export const ChartsPage = (): JSX.Element => {
const { data: form, isLoading } = useAdminForm()
const { totalResponsesCount, secretKey } = useStorageResponsesContext()
const { pathname } = useLocation()

const chartsMaxResponseCount = useFeatureValue(
featureFlags.chartsMaxResponseCount,
100,
) // limit number of responses to 100 as fallback
const toast = useToast({ status: 'danger' })

if (isLoading) return <ResponsesPageSkeleton />
Expand Down Expand Up @@ -53,7 +58,9 @@ export const ChartsPage = (): JSX.Element => {
return <></>
}

if (totalResponsesCount === 0) {
const responseCount = totalResponsesCount || 0

if (responseCount === 0) {
return (
<EmptyChartsContainer
title="No charts generated yet."
Expand All @@ -62,6 +69,15 @@ export const ChartsPage = (): JSX.Element => {
)
}

if (responseCount > chartsMaxResponseCount) {
return (
<EmptyChartsContainer
title="No charts generated"
subtitle="The number of form submissions has exceeded the capacity allowed by Charts beta."
/>
)
}

return secretKey ? (
<UnlockedCharts />
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ export const UnlockedChartsContainer = () => {
</Text>
{prettifiedResponsesCount}
</Text>
<Text textStyle="body-2" color="secondary.400">
{filteredDecryptedData.length > 1000
? 'Charts are generated based on the latest 1,000 responses.'
: null}
</Text>
</Flex>
<DateRangePicker
value={dateRangePickerHelper.dateStringToDatePickerValue(dateRange)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const WorkspaceSearchbar = forwardRef<WorkspaceSearchbarProps, 'input'>(
onChange={(e) => setInternalValue(e.target.value)}
pr={filterElemWidth}
/>
<InputRightElement width="auto" ref={filterRef}>
<InputRightElement width="auto" ref={filterRef} zIndex={0}>
<Divider height="calc(100% - 1.5rem)" orientation="vertical" />
<Menu placement="bottom-end">
<MenuButton
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "FormSG",
"description": "Form Manager for Government",
"version": "6.92.0",
"version": "6.93.0",
"homepage": "https://form.gov.sg",
"authors": [
"FormSG <[email protected]>"
Expand Down
1 change: 1 addition & 0 deletions shared/constants/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export const featureFlags = {
encryptionBoundaryShiftVirusScanner:
'encryption-boundary-shift-virus-scanner' as const,
myinfoSgid: 'myinfo-sgid' as const,
chartsMaxResponseCount: 'charts-max-response-count' as const,
}
12 changes: 6 additions & 6 deletions shared/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0783b94

Please sign in to comment.