Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove svelkit app, upgrade opensearch and remove legacy i waffle flag #69

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ PREV_IMAGE_TAG=$$(git rev-parse HEAD~1)
IMAGE_TAG=$$(git rev-parse HEAD)

tf_build_args=-var "image_tag=$(IMAGE_TAG)"
DOCKER_SERVICES=$$(docker compose config --services | grep -Ev 'worker|sveltekit-app')
DOCKER_SERVICES=$$(docker compose config --services | grep -Ev 'worker')

AUTO_APPLY_RESOURCES = module.django-app.aws_ecs_task_definition.aws-ecs-task \
module.django-app.aws_ecs_service.aws-ecs-service \
Expand Down
2 changes: 0 additions & 2 deletions django_app/redbox_app/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def environment(**options):
"to_user_timezone": to_user_timezone,
"environment": settings.ENVIRONMENT.value,
"security": settings.MAX_SECURITY_CLASSIFICATION.value,
"waffle_flag": waffle.flag_is_active,
}
)
env.globals.update(
Expand All @@ -98,7 +97,6 @@ def environment(**options):
"to_user_timezone": to_user_timezone,
"environment": settings.ENVIRONMENT.value,
"security": settings.MAX_SECURITY_CLASSIFICATION.value,
"waffle_flag": waffle.flag_is_active,
"google_analytics_tag": settings.GOOGLE_ANALYTICS_TAG,
"google_analytics_link": settings.GOOGLE_ANALYTICS_LINK,
"google_analytics_iframe_src": settings.GOOGLE_ANALYTICS_IFRAME_SRC,
Expand Down
6 changes: 1 addition & 5 deletions django_app/redbox_app/redbox_core/views/info_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
def privacy_notice_view(request):
return render(
request,
"privacy-notice.html",
{
"waffle_flag": waffle.flag_is_active,
},
"privacy-notice.html"
)


Expand All @@ -34,6 +31,5 @@ def accessibility_statement_view(request):
"accessibility-statement.html",
{
"contact_email": settings.CONTACT_EMAIL,
"waffle_flag": waffle.flag_is_active,
},
)
17 changes: 5 additions & 12 deletions django_app/redbox_app/templates/accessibility-statement.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@

{% set pageTitle = "Accessibility statement" %}

{% if waffle_flag(request, "uktrade") %}
{% set departmental_owner = "Department for Business and Trade" %}
{% set zoom_level = "300%" %}
{% set review_date_last = "21st June 2024" %}
{% set compliance_status = 'This website is fully compliant with the <a href="https://www.w3.org/TR/WCAG22/" class="govuk-link">Web Content Accessibility Guidelines version 2.2</a> AA standard.' %}

{% else %}
{% set departmental_owner = "Cabinet Office" %}
{% set zoom_level = "400%" %}
{% set review_date_last = "12th August 2024" %}
{% set compliance_status = 'The website has been tested against the Web Content Accessibility Guidelines (WCAG) 2.2 AA standard. This website is fully compliant with the <a href="https://www.w3.org/TR/WCAG22/" class="govuk-link">Web Content Accessibility Guidelines version 2.2</a> AA standard.' %}
{% endif %}
{% set departmental_owner = "Department for Business and Trade" %}
{% set zoom_level = "300%" %}
{% set review_date_last = "21st June 2024" %}
{% set compliance_status = 'This website is fully compliant with the <a href="https://www.w3.org/TR/WCAG22/" class="govuk-link">Web Content Accessibility Guidelines version 2.2</a> AA standard.' %}


{% block content %}

Expand Down
4 changes: 2 additions & 2 deletions django_app/redbox_app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<script type="module" src="{{static('js/libs/dompurify.js')}}"></script>
<script type="module" src="{{static('js/main.js')}}"></script>

{% if environment | lower == "prod" and waffle_flag(request, 'uktrade') %}
{% if environment | lower == "prod" %}
<!-- Google Tag Manager -->
<script hash="sha256-T/1K73p+yppfXXw/AfMZXDh5VRDNaoEh3enEGFmZp8M=" nonce="{{ request.csp_nonce }}">
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
Expand All @@ -35,7 +35,7 @@

<body class="govuk-template__body">

{% if environment | lower == "prod" and waffle_flag(request, 'uktrade') %}
{% if environment | lower == "prod" %}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="{{ google_analytics_iframe_src }}"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
Expand Down
21 changes: 1 addition & 20 deletions django_app/redbox_app/templates/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
{% if waffle_flag(request, 'uktrade') %}
<h1 class="govuk-heading-xl govuk-!-margin-bottom-7">Use Artificial Intelligence (AI) to interact with {{ security }} level documents from your own document set</h1>
<p class="govuk-body-l govuk-!-margin-bottom-7">You may summarise documents, ask questions related to one or more documents, and chat directly with the AI to assist you in your work. You can use up to, and including, {{ security }} documents.</p>
<div class="rb-banner__links">
Expand All @@ -20,25 +19,7 @@ <h1 class="govuk-heading-xl govuk-!-margin-bottom-7">Use Artificial Intelligence
) }}
{% endif %}
</div>
{% else %}
<h1 class="govuk-heading-xl govuk-!-margin-bottom-7">Ask any question of documents in your Redbox</h1>
<p class="govuk-body-l govuk-!-margin-bottom-7">Use Artificial Intelligence (AI) to get insights from your personal document set. You can use up to, and including, {{ security }} documents.</p>
<div class="rb-banner__links">
{% if not request.user.is_authenticated %}
{{ govukButton(
text="Sign in",
href=url('sign-in'),
classes="govuk-button--secondary govuk-!-margin-bottom-0 rb-banner__button"
) }}
{% if allow_sign_ups %}
<span class="govuk-body govuk-!-margin-bottom-0">or <a class="govuk-link" href="{{ url('sign-up-page-1') }}">sign up</a> to use Redbox</span>
{% endif %}
{% endif %}
</div>
{% if not request.user.is_authenticated and not allow_sign_ups and not waffle_flag(request, 'uktrade') %}
<p class="govuk-body govuk-!-margin-bottom-0 govuk-!-margin-top-5">We have paused new users signing up to Redbox. Please add your email to the <a href="https://docs.google.com/forms/d/e/1FAIpQLSev6KZ6ASgz54GKINfk18k_Ygo_hZxcuQrS3v5XzWc4DE1gaw/viewform?usp=sharing">waitlist</a>.</p>
{% endif %}
{% endif %}


</div>
</div>
Expand Down
13 changes: 4 additions & 9 deletions django_app/redbox_app/templates/privacy-notice.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@

{% set pageTitle = "Privacy notice" %}

{% if waffle_flag(request, "uktrade") %}
{% set departmental_owner = "Department for Business and Trade" %}
{% set department_address = "Department for Business and Trade, Old Admiralty Building, Admiralty Place, London, SW1A 2DY" %}
{% set last_updated = "21st June 2024" %}
{% else %}
{% set departmental_owner = "Cabinet Office" %}
{% set department_address = "Cabinet Office, 70 Whitehall, London, SW1A 2AS, or 0207 276 1234, or <a href='mailto:[email protected]' class='govuk-link'>[email protected]</a>" %}
{% set last_updated = "16th April 2024" %}
{% endif %}
{% set departmental_owner = "Department for Business and Trade" %}
{% set department_address = "Department for Business and Trade, Old Admiralty Building, Admiralty Place, London, SW1A 2DY" %}
{% set last_updated = "21st June 2024" %}


{% block content %}

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ services:
start_period: 30s

opensearch:
image: opensearchproject/opensearch:2.17.0
image: opensearchproject/opensearch:2.18.0
environment:
- discovery.type=single-node
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
Expand Down
1 change: 0 additions & 1 deletion sveltekit_app/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion sveltekit_app/.npmrc

This file was deleted.

11 changes: 0 additions & 11 deletions sveltekit_app/.prettierrc

This file was deleted.

15 changes: 0 additions & 15 deletions sveltekit_app/Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions sveltekit_app/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions sveltekit_app/e2e/demo.test.js

This file was deleted.

19 changes: 0 additions & 19 deletions sveltekit_app/jsconfig.json

This file was deleted.

32 changes: 0 additions & 32 deletions sveltekit_app/package.json

This file was deleted.

10 changes: 0 additions & 10 deletions sveltekit_app/playwright.config.js

This file was deleted.

13 changes: 0 additions & 13 deletions sveltekit_app/src/app.d.ts

This file was deleted.

14 changes: 0 additions & 14 deletions sveltekit_app/src/app.html

This file was deleted.

9 changes: 0 additions & 9 deletions sveltekit_app/src/lib/components/button.svelte

This file was deleted.

Loading
Loading