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

62 bug no restriction on post length when editing #136

Open
wants to merge 112 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
5874560
Tweaked CICD, removed husky, removed deployment
dogezen Oct 21, 2024
daf1910
merged from upstream
dogezen Oct 24, 2024
2326cca
initialCommit
Oct 28, 2024
ef9a860
test commit
tvaltn Oct 28, 2024
b9d122d
first commit
Ingeborgausteid Oct 28, 2024
354ac45
First commit
tuvaea Oct 28, 2024
f5d0718
removed test
tvaltn Oct 29, 2024
f0cc815
adds password validation
Ingeborgausteid Oct 29, 2024
b1e5ec3
Updated openapi.yml with profileImage
tuvaea Oct 29, 2024
2034c13
Added profileImage to prisma schema and seed.js
tuvaea Oct 29, 2024
9c21e2b
Removed failed migration
tuvaea Oct 29, 2024
3f8c12c
added user patch functionality
tvaltn Oct 29, 2024
dc3132b
added relevant fields, changed class structure to match newly created…
Oct 29, 2024
dbc91b2
adds validateUser function in middleware\user.js with the password va…
Ingeborgausteid Oct 29, 2024
04b4a9a
adds in routes\user.js instead of in controllers\user.js
Ingeborgausteid Oct 29, 2024
6aa6abd
added logged in user routing
tvaltn Oct 29, 2024
647caa2
Added profileImage to user.js domain
tuvaea Oct 29, 2024
86ef6bb
fixed role format from request body
tvaltn Oct 29, 2024
b56e095
fixed order of seeding data
Oct 29, 2024
52145ad
adds 400 response to /users in openapi.yaml
Ingeborgausteid Oct 29, 2024
3007118
adds updated openapi.yml with 400 response to patch in /users
Ingeborgausteid Oct 29, 2024
e0040d0
Merge pull request #24 from boolean-uk/add-password-validation
Brandsegg Oct 29, 2024
d4ac66c
moved request modification to middleware
tvaltn Oct 29, 2024
e13ed2e
Merge branch 'main' into 4-update-the-userprofile-table-with-relevant…
JHalvor Oct 29, 2024
9e0a80a
Merge pull request #26 from boolean-uk/4-update-the-userprofile-table…
Brandsegg Oct 29, 2024
5827558
Merge branch 'main' into 23-implement-update-user-functionality-in-us…
tvaltn Oct 29, 2024
b624f5a
added new user fields to update endpoint
tvaltn Oct 29, 2024
5db6a8a
Merge pull request #27 from boolean-uk/23-implement-update-user-funct…
Brandsegg Oct 29, 2024
7d9aced
Added email-validation in the middleware/user.js file.
thomamn Oct 29, 2024
711bdb7
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
tuvaea Oct 30, 2024
fd865b3
Resolved merge conflict
tuvaea Oct 30, 2024
e83b887
Merge pull request #25 from boolean-uk/11-update-the-profile-table-wi…
Brandsegg Oct 30, 2024
b5b49ca
created endpoint for creating comment, issues with edit and delete
Oct 30, 2024
58cec2f
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
thomamn Oct 30, 2024
c16f6f7
Merge branch 'main' into 3-validate-required-user-profile-create-fiel…
tvaltn Oct 30, 2024
1e456f6
Merge pull request #35 from boolean-uk/1-add-email-format-validation-…
Brandsegg Oct 30, 2024
3425d47
Merge branch 'main' into 3-validate-required-user-profile-create-fiel…
tvaltn Oct 30, 2024
339e5c1
copypaste progress from issue 5
eyvmal Oct 29, 2024
7a9f548
modify getAll to fetch from database
eyvmal Oct 29, 2024
a3eb2af
add getById endpoint
eyvmal Oct 29, 2024
cf1c1e4
add delete endpoint
eyvmal Oct 29, 2024
699b286
update create post method to connect to database
eyvmal Oct 29, 2024
7e32f23
reformat domain- and controller-file of post to match the user-files …
eyvmal Oct 29, 2024
ddad804
remove userid from create endpoint
eyvmal Oct 30, 2024
46814e4
add more fields to return on post calls
eyvmal Oct 30, 2024
fb2053e
update post model in database and return value of post in endpoints
eyvmal Oct 30, 2024
f18bc19
reformat toJSON and names
eyvmal Oct 30, 2024
248a9fa
Merge pull request #28 from boolean-uk/14-create-a-post-domain-simili…
Brandsegg Oct 30, 2024
cf16dbb
added default values for create
tvaltn Oct 30, 2024
7b98fe7
add a middleware validation for post ownership or teacher role
eyvmal Oct 29, 2024
220cc10
added specialism
tvaltn Oct 30, 2024
bbef451
change cohortId to use default value from constr
tvaltn Oct 30, 2024
6f96981
Merge branch 'main' into 3-validate-required-user-profile-create-fiel…
tvaltn Oct 30, 2024
af83b97
add validation on user/teacher for patch and delete
eyvmal Oct 30, 2024
15eaf7e
fixed cohortId being null
tvaltn Oct 30, 2024
0365679
Merge pull request #37 from boolean-uk/36-add-default-values-to-profi…
Brandsegg Oct 30, 2024
c621fd7
basic validation
tvaltn Oct 30, 2024
6e44b98
Accepted all incoming changes
Oct 31, 2024
c00b8f1
update prisma cohort model/seeding and migrate
eyvmal Oct 31, 2024
b4ceddb
Merge pull request #38 from boolean-uk/6-implement-teacher-and-user-o…
Brandsegg Oct 31, 2024
f5cdbe1
Merge branch 'main' into 3-validate-required-user-profile-create-fiel…
tvaltn Oct 31, 2024
d4ea31b
Merge pull request #40 from boolean-uk/29-generate-a-prisma-entity-fo…
Brandsegg Oct 31, 2024
35fa6fd
changed openapi.yml
tvaltn Oct 31, 2024
d9fe5c0
Merge pull request #41 from boolean-uk/3-validate-required-user-profi…
Brandsegg Oct 31, 2024
14eeaf9
Fixed comments
Oct 31, 2024
15dd7c6
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
JHalvor Oct 31, 2024
ccec3cb
skips password validation if no password provided on patch
tvaltn Oct 31, 2024
744be75
removed duplicate createComment function declaration in seed.js
JHalvor Oct 31, 2024
a78f71e
Merge pull request #46 from boolean-uk/44-skip-password-validation-ch…
Brandsegg Oct 31, 2024
df722b2
add constructor, fromJson, fromDb, toJson, save, and update
eyvmal Oct 31, 2024
c3bbef0
remove default create function
eyvmal Oct 31, 2024
b2988c3
make class export default
eyvmal Oct 31, 2024
a2bf13e
Merge pull request #42 from boolean-uk/30-fill-inn-the-domain-for-cohort
Brandsegg Oct 31, 2024
68c1eb5
fixed import
eyvmal Oct 31, 2024
16408ba
Merge pull request #49 from boolean-uk/48-fix---add-correct-cohort-im…
JHalvor Oct 31, 2024
a9cb655
add function for getAll and getById
eyvmal Oct 31, 2024
3cf9d6b
update swagger docs
eyvmal Oct 31, 2024
1615e8e
add db operations for get endpoints
eyvmal Oct 31, 2024
4f59128
update description of get endpoints
eyvmal Oct 31, 2024
d953db6
added profileImage to patch
tvaltn Oct 31, 2024
a381ab0
Merge pull request #47 from boolean-uk/31-create-get-endpoints-for-co…
Brandsegg Oct 31, 2024
c16db9a
Merge pull request #51 from boolean-uk/50-fix-imageurl-not-being-adde…
Brandsegg Oct 31, 2024
09cb074
Finished all endpoints for comments
Oct 31, 2024
807e592
Deleted all dupliacte files
Oct 31, 2024
76d6d30
Merge remote-tracking branch 'origin/main' into 8-generate-prisma-tab…
Oct 31, 2024
59edbf7
Merge branch '8-generate-prisma-table-for-comments-with-the-following…
Oct 31, 2024
fd28ddc
fixed openapi.yml file
Oct 31, 2024
6083755
add patch and delete endpoint with documentation
eyvmal Oct 31, 2024
c918f73
update patch and delete endpoint
eyvmal Oct 31, 2024
aaf715b
Added post content validation to the create post route.
thomamn Oct 31, 2024
5fb8b0a
Updated prisma schema for user and post, added likedposts and likedby…
tuvaea Oct 31, 2024
e7a23dc
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
tuvaea Oct 31, 2024
dcb9dff
update create function and dependencies
eyvmal Oct 31, 2024
5c3f979
Merge pull request #55 from boolean-uk/53-implement-create-post-valid…
Brandsegg Oct 31, 2024
feaf0dc
Merge pull request #56 from boolean-uk/32-create-editdelete-endpoints…
Brandsegg Oct 31, 2024
316964f
Merge pull request #59 from boolean-uk/52-update-create-endpoint-for-…
uerbzr Oct 31, 2024
3831d83
fixed issue in yaml file
Oct 31, 2024
8bb6f80
fixed schema file
Oct 31, 2024
d050d00
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
tuvaea Oct 31, 2024
93dc635
added new yaml file, and getting comments with posts
Oct 31, 2024
9b898bd
Merge branch 'main' into 8-generate-prisma-table-for-comments-with-th…
JHalvor Oct 31, 2024
224b82c
Merge pull request #54 from boolean-uk/8-generate-prisma-table-for-co…
Brandsegg Oct 31, 2024
efa8a6c
Added new changes to openapi.yml
tuvaea Nov 1, 2024
77e7cd1
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
tuvaea Nov 1, 2024
efc3081
sorts the posts descending on getAllPosts
tvaltn Nov 1, 2024
992b488
Small changes to post domain to get correct response when liking and …
tuvaea Nov 1, 2024
d33248f
Merge pull request #58 from boolean-uk/22-add-the-column-usersliked-t…
Brandsegg Nov 1, 2024
9f661d6
Fixed the following bugs: Editing a post allows it to exceed 200 char…
thomamn Nov 1, 2024
447e9d1
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
thomamn Nov 1, 2024
31a80fd
Merge pull request #64 from boolean-uk/57-getallposts-endpoint-needs-…
Brandsegg Nov 1, 2024
452c890
Undid the .com bugfix
thomamn Nov 1, 2024
5be7141
Merge branch 'main' of github.com:boolean-uk/team-dev-server-ex-2410-…
thomamn Nov 1, 2024
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
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

5 changes: 0 additions & 5 deletions .env.example

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: CI
on: [push, pull_request]
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
JWT_TOKEN: ${{ secrets.JWT_TOKEN }}
JWT_EXPIRY: ${{ secrets.JWT_EXPIRY }}
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -14,4 +10,3 @@ jobs:
node-version: 'lts/*'
- run: npm ci
- run: npx eslint src
- run: npx prisma migrate reset --force --skip-seed
21 changes: 0 additions & 21 deletions .github/workflows/deploy.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

36 changes: 0 additions & 36 deletions Dockerfile

This file was deleted.

Loading
Loading