Skip to content

Commit d87feba

Browse files
authored
Merge branch 'main' into fix-homepage-container-flexibility
2 parents 2cd43f6 + ae0a679 commit d87feba

File tree

28 files changed

+607
-494
lines changed

28 files changed

+607
-494
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __pycache__
44
.cache
55
.dockerignore
66
.env
7+
.env.*
78
.envs
89
.git
910
.gitignore

backend/poetry.lock

Lines changed: 325 additions & 271 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ requests = "^2.32.5"
4444
sentry-sdk = { extras = [ "django" ], version = "^2.20.0" }
4545
slack-bolt = "^1.22.0"
4646
slack-sdk = "^3.35.0"
47-
strawberry-graphql = { extras = [ "django" ], version = "^0.280.0" }
47+
strawberry-graphql = { extras = [ "django" ], version = "^0.281.0" }
4848
strawberry-graphql-django = "^0.65.1"
4949
thefuzz = "^0.22.1"
5050

backend/settings/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class Base(Configuration):
2525
IS_TEST_ENVIRONMENT = False
2626

2727
RELEASE_VERSION = values.Value(environ_name="RELEASE_VERSION")
28-
SENTRY_DSN = values.SecretValue(environ_name="SENTRY_DSN")
2928

3029
SESSION_COOKIE_HTTPONLY = True
3130
SESSION_COOKIE_NAME = "nest.session-id"

backend/settings/production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Production(Base):
1010
"""Production configuration."""
1111

1212
sentry_sdk.init(
13-
dsn=Base.SENTRY_DSN,
13+
dsn=values.SecretValue(environ_name="SENTRY_DSN"),
1414
environment=Base.ENVIRONMENT.lower(),
1515
profiles_sample_rate=0.5,
1616
release=Base.RELEASE_VERSION,

backend/settings/staging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Staging(Base):
1010
"""Staging configuration."""
1111

1212
sentry_sdk.init(
13-
dsn=Base.SENTRY_DSN,
13+
dsn=values.SecretValue(environ_name="SENTRY_DSN"),
1414
environment=Base.ENVIRONMENT.lower(),
1515
profiles_sample_rate=0.5,
1616
release=Base.RELEASE_VERSION,

frontend/__tests__/unit/components/CardDetailsPage.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jest.mock('@fortawesome/react-fontawesome', () => ({
6868
}) => <span data-testid={`icon-${icon.iconName}`} className={className} {...props} />,
6969
}))
7070

71-
jest.mock('utils/credentials', () => ({
71+
jest.mock('utils/env.client', () => ({
7272
IS_PROJECT_HEALTH_ENABLED: true,
7373
}))
7474

frontend/__tests__/unit/components/Footer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jest.mock('utils/constants', () => ({
9595
],
9696
}))
9797

98-
jest.mock('utils/credentials', () => ({
98+
jest.mock('utils/env.client', () => ({
9999
ENVIRONMENT: 'production',
100100
RELEASE_VERSION: '1.2.3',
101101
}))

frontend/__tests__/unit/pages/Login.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jest.mock('next/navigation', () => ({
1515
jest.mock('@heroui/toast', () => ({
1616
addToast: jest.fn(),
1717
}))
18-
jest.mock('utils/credentials', () => ({
19-
isGithubAuthEnabled: jest.fn(() => true),
18+
jest.mock('utils/env.server', () => ({
19+
IS_GITHUB_AUTH_ENABLED: true,
2020
}))
2121
describe('LoginPage', () => {
2222
const pushMock = jest.fn()

frontend/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ COPY --from=builder --chown=root:root --chmod=555 /app/public public
5353
COPY --from=builder --chown=root:root --chmod=555 /app/.next/standalone .
5454

5555
# Create cache directory and assign ownership to nextjs user with write permission, so that cache can be stored.
56-
RUN mkdir -p /app/.next/cache && chown -R nextjs:nodejs /app/.next/cache && chmod -R 755 /app/.next/cache
56+
RUN mkdir -p /app/.next/cache && chown -R nextjs:nodejs /app/.next/cache && chmod -R 755 /app/.next/cache && rm .env
5757
COPY --from=builder --chown=root:root --chmod=555 /app/.next/static .next/static
5858

5959
USER nextjs

0 commit comments

Comments
 (0)