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

TBCCT-158 Backend base data upload #156

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

TBCCT-158 Backend base data upload #156

wants to merge 2 commits into from

Conversation

alepefe
Copy link
Collaborator

@alepefe alepefe commented Dec 11, 2024

This pull request includes significant changes to the authentication module, backoffice service, and the addition of a new file ingestion feature. The most important changes include adding a new custom passport strategy, refactoring the backoffice service, and implementing a file ingestion page in the backoffice.

Authentication Module Updates:

  • Added passport-custom dependency in api/package.json to support custom authentication strategies.
  • Removed BackofficeService from auth.module.ts and updated its import path in authentication.controller.ts. [1] [2] [3]
  • Introduced BackofficeSessionStrategy and integrated it into the authentication.module.ts. [1] [2] [3] [4]
  • Created JwtCookieAuthGuard to handle JWT and backoffice session authentication.
  • Updated import.controller.ts to use JwtCookieAuthGuard instead of JwtAuthGuard. [1] [2]

Backoffice Service Refactoring:

  • Removed the old backoffice.service.ts and added a new one with enhanced functionality, including cookie generation and session retrieval. [1] [2]
  • Added a new backoffice.module.ts to encapsulate the backoffice service and its dependencies.

File Ingestion Feature:

  • Implemented a new file ingestion page in the backoffice with two tabs for different data uploads.
  • Updated backoffice/index.ts to include the new file ingestion page and ensure it is properly loaded and watched. [1] [2] [3]

Dependency and Configuration Updates:

  • Added styled-components, react, and related type definitions to backoffice/package.json and pnpm-lock.yaml to support the new file ingestion feature. [1] [2] [3] [4] [5] [6]
  • Updated tsconfig.json in the backoffice to include .tsx files.

Copy link

vercel bot commented Dec 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tnc-blue-carbon-cost-tool-ghps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 11, 2024 4:24pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant