SAMAHAN-Systems-Development / samahan-all-for-more-backend

Backend repository for the SAMAHAN All For More 2024-2025 Website
5 stars 0 forks source link

Add Bulletin #7

Closed SaaammmyyyS closed 3 weeks ago

SaaammmyyyS commented 4 weeks ago

Description: Create a new bulletin with optional PDF attachment.

Requirements:

Validation:

Request Body: { "category_id": "integer", "title": "string", "content": "text", "author": "string", "pdf_attachment": "file" }

khesir commented 3 weeks ago

I'm committing but I got blocked by the pre-commit which says that. any fix on this?

image

Also, I have some troubles on JWT Access Token when uploading pdf to storage files.

I'm using buckets for pdf storages, but for some reason I need to login I think any fix on allowing me to save to supabase bucket storage?

image

Here's the code for storage uploads and where I get the error

image image

khesir commented 3 weeks ago

Unit test problem fix has been commit added here in this commit 0b82803f2242084cdde3e83d616f0c33e37011e0

khesir commented 3 weeks ago

Problem fix on authentication, my bad on being inexperience

Fix: just used Service key for full admin to be able to use the storage :DD

Miraii133 commented 3 weeks ago

Pinging backend dev @SaaammmyyyS

@khesir Since ivan is the backend head, make sure you set him as the reviewer of the PR. Afterwards, to ensure that he'll 100% see your PR, send a message to the GC to have it checked

Miraii133 commented 3 weeks ago

Oops! I just realized you guys were communicating through the PRs

khesir commented 3 weeks ago

Pinging backend dev @SaaammmyyyS

@khesir Since ivan is the backend head, make sure you set him as the reviewer of the PR. Afterwards, to ensure that he'll 100% see your PR, send a message to the GC to have it checked

Actually, we were figuring out how pr works and we might did or me did some unnecessary pr and close it :DD

Will never do it again

Miraii133 commented 3 weeks ago

Pinging backend dev @SaaammmyyyS @khesir Since ivan is the backend head, make sure you set him as the reviewer of the PR. Afterwards, to ensure that he'll 100% see your PR, send a message to the GC to have it checked

Actually, we were figuring out how pr works and we might did or me did some unnecessary pr and close it :DD

Will never do it again

It's totally fine dont worry, as long as you're learning something :^)