BREAKING CHANGE: V2 of thr SDK #12

Merged
fenpaws merged 124 commits from develop/postgresql into main 2024-07-01 20:46:28 +00:00

124 Commits

Author SHA1 Message Date
768203ebd7 fix: fixed function to work properly
Some checks failed
Gitea Build Check / Build (pull_request) Failing after 6m32s
Gitea Build Check / Build (push) Failing after 6m28s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 22:40:53 +02:00
2d4102be6a refactor: added getting of tag by specific type
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
Gitea Build Check / Build (pull_request) Successful in 11m44s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 22:29:37 +02:00
a842d64f1c refactor: added deletion of tags
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 22:15:43 +02:00
1b40c6145a refactor: changed CreateTag to align with other functions
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 22:06:36 +02:00
47fda2994b fix: fixed issues in PR
All checks were successful
Gitea Build Check / Build (push) Successful in 11m38s
Gitea Build Check / Build (pull_request) Successful in 11m37s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 21:38:09 +02:00
3dfb345edc fix: make sonarqube happy
All checks were successful
Gitea Build Check / Build (push) Successful in 11m26s
Gitea Build Check / Build (pull_request) Successful in 11m31s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 14:14:17 +02:00
5f9ace9bd3 feat: implemented all functions
All checks were successful
Gitea Build Check / Build (push) Successful in 11m38s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 13:42:53 +02:00
6ccd593d88 refactor: changed code layout
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-07-01 11:36:21 +02:00
d759e072f7 feat(TagGroup): added function and tests
All checks were successful
Gitea Build Check / Build (push) Successful in 11m24s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 22:39:12 +02:00
702870db1e feat(TagAlias): added function and tests
All checks were successful
Gitea Build Check / Build (push) Successful in 11m35s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 22:27:31 +02:00
26178eb64d feat(TagAlias): added function and tests
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 22:14:27 +02:00
bb45658310 feat(TagAlias): added function and tests
All checks were successful
Gitea Build Check / Build (push) Successful in 11m5s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 15:13:40 +02:00
b5437ecc62 tests: fixed tests
All checks were successful
Gitea Build Check / Build (push) Successful in 10m55s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 14:16:28 +02:00
4a0b7d71a9 refactor: reorganized code structure
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 12:15:51 +02:00
5de00e6861 refactor: reorganized code structure
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 10:58:07 +02:00
bc8b5bb4a7 refactor: reorganized code structure
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 10:54:42 +02:00
429f68899d feat(database): new fields
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-28 10:43:55 +02:00
9c8a7c1e16 fix(tests): remove timeout
Some checks failed
Gitea Build Check / Build (push) Failing after 4m49s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-27 22:18:35 +02:00
51aa79e4c2 feat(newAPIs): initial structure for new api endpoints
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-27 22:17:25 +02:00
56bb414f9d feat(PostReference): added the ability to add missing filed in db
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-27 22:05:21 +02:00
da4fda3597 refactor(postgres): a lot of things happened here
Some checks failed
Gitea Build Check / Build (push) Failing after 6m7s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-27 21:37:29 +02:00
a71f759763 feat(functions): fixing bugs
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-27 16:11:16 +02:00
e29cea6e3c feat(functions): enhanced function with RAW SQL
Some checks failed
Gitea Build Check / Build (push) Failing after 4m59s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 16:12:10 +02:00
a9a21581bd test(helper): extend the waiting time to 10 seconds
All checks were successful
Gitea Build Check / Build (push) Successful in 10m40s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 12:40:59 +02:00
97d314ba3e ci: fix go command to show in log
Some checks failed
Gitea Build Check / Build (push) Failing after 5m38s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 12:20:38 +02:00
0a5359d723 ci: fix go command to show in log
Some checks failed
Gitea Build Check / Build (push) Failing after 5m40s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 12:07:55 +02:00
a026563835 fix(errors): added more tests
Some checks failed
Gitea Build Check / Build (push) Failing after 5m41s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 11:48:25 +02:00
615a6b1a25 fix(errors): fix unneeded error handling
Some checks failed
Gitea Build Check / Build (push) Failing after 5m41s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 11:31:42 +02:00
cb04347dd5 fix(errors): more tests
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 11:23:27 +02:00
6e3edfc1fa fix(errors): renamed error package
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 10:02:54 +02:00
4fa936d774 fix(errors): added const
All checks were successful
Gitea Build Check / Build (push) Successful in 10m58s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 09:20:52 +02:00
c550531a35 tests(errors): refactored old tests to reflect new error handling
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-26 09:10:04 +02:00
f66fc6b6d7 tests(errors): fix test cases to reflect the new validation and error handling
Some checks failed
Gitea Build Check / Build (push) Failing after 5m49s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 22:22:05 +02:00
d94ae83c2f feat(errors): implemented custom errors
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 21:55:43 +02:00
63e74219ed feat(error): added first steps for custom errors
All checks were successful
Gitea Build Check / Build (push) Successful in 11m2s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 16:02:08 +02:00
c246f661ff ci: update version of steps
All checks were successful
Gitea Build Check / Build (push) Successful in 11m7s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 15:13:52 +02:00
f34cc637ec ci: readable cache and check for latest
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 15:11:47 +02:00
819dc7055a feat(postgres): updated go mod
Some checks failed
Gitea Build Check / Build (push) Failing after 1m19s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 15:09:39 +02:00
07b69f6c18 test(postgres): fixed to use new ORM Generic
Some checks failed
Gitea Build Check / Build (push) Failing after 1m15s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 15:00:44 +02:00
d8f338332b ci: disable cache
Some checks failed
Gitea Build Check / Build (push) Failing after 1m17s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 14:56:08 +02:00
d3c0599263 ci: disable check for latest go
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 14:55:25 +02:00
c0cae140f1 test(postgres): finished test migrations to generic orm base
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 14:50:56 +02:00
5aac1f2916 feat(postgres): start implementing new generic orm model
Some checks failed
Gitea Build Check / Build (push) Failing after 5m46s
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-25 09:09:18 +02:00
31c4249129 refactor(postgres): use generics for IDs
Some checks failed
Gitea Build Check / Build (push) Failing after 4m57s
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-24 22:31:18 +02:00
d90736b1b6 docs(postgres): rearranged
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-24 22:30:57 +02:00
895c4cd436 docs(postgres): rearranged
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-24 22:30:05 +02:00
df14171bad docs(postgres): added all the sonarqube badges
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-24 22:29:01 +02:00
8ea3369744 docs(postgres): added all the sonarqube badges
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-24 22:18:34 +02:00
97758b180e test(postgres): added more tests and some fixes
All checks were successful
Gitea Build Check / Build (push) Successful in 10m44s
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-24 22:07:34 +02:00
2a752adcac test(postgres): added more tests
All checks were successful
Gitea Build Check / Build (push) Successful in 10m49s
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-24 17:07:41 +02:00
30fa03ef9a feat(postgres): added more tests
All checks were successful
Gitea Build Check / Build (push) Successful in 10m40s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-24 14:28:09 +02:00
57729359d2 feat(postgres): using only gorm
All checks were successful
Gitea Build Check / Build (push) Successful in 10m40s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-24 13:13:32 +02:00
b40d93c993 feat(postgres): config map
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-24 12:59:51 +02:00
bfa074fd9b ci(postgres): fixed trigger
All checks were successful
Gitea Build Check / Build (push) Successful in 10m54s
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-24 12:02:39 +02:00
1ed6b91214 ci(postgres): implemented CI for build check in sonarqube
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-24 11:58:29 +02:00
a5f41e7a2d fix(postgres): function mismatch with new types
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-23 22:39:54 +02:00
b0d98d842f refactor(postgres): renamed function names and fixed tests and other issues
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-23 22:35:46 +02:00
8a0229eb23 test(postgres): renamed functions to be more clear
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-23 21:23:38 +02:00
7842976f4b test(postgres): fixed the tests & also squashed some bugs
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-23 01:18:23 +02:00
bb7cb23c2a refactor(postgres): Refactor post retrieval functions and remove unnecessary code in tag and user creation
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 23:25:28 +02:00
9471941e02 refactor(postgres): fixed any IDE errors
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 23:25:06 +02:00
b28891f383 refactor(postgres): fixed any IDE errors
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 23:23:23 +02:00
55296d9a95 refactor(postgres): renamed functions to be more clear
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 22:30:03 +02:00
78145fe02a refactor(postgres): removed old docs
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 22:28:29 +02:00
2621eea00c refactor(postgres): fixed implementation
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 22:27:38 +02:00
b11cfbaa24 refactor(postgres): removed old graph related code
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 22:07:36 +02:00
58dcf94d49 refactor(postgres): removed old graph related code
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-22 22:06:36 +02:00
536f7c0443 fix(postgres): Update database logger in postgres.go to include slow queries and error handling
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 23:48:18 +02:00
3c17c60439 fix(postgres): Update postgres.go to use silent logger for GORM configuration
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 23:35:41 +02:00
c07fd69f4f fix(postgres): CheckIfAnthrovePostNodeExistsBySourceURL function to use PostReference model
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 23:25:55 +02:00
c359b4636e fix(postgres): prefilled posts with empty
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 23:19:03 +02:00
0b7b6beccd fix(postgres): Update CheckIfAnthrovePostNodeExistsBySourceURL to return pointer instead of value
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 22:58:52 +02:00
5e501b2003 fix(postgres): ** whyy
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 22:57:05 +02:00
b86c667156 fix(postgres): CheckIfAnthrovePostNodeExistsBySourceURL now working as intended
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 22:54:47 +02:00
aea99da484 fix(postgres): fix creating issue
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 17:50:31 +02:00
f5360d2757 fix(migration):remove unique key for url
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 15:52:59 +02:00
8a2803276a fix(migration):add url to primary key
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 15:25:22 +02:00
e09d39dd02 feat(postgres): added copyright as enum
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 15:18:40 +02:00
4690ce135d fix(postgres): added url to SourceLink
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 15:15:20 +02:00
2515fc5081 fix(postgres): check if source exists before creating
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 15:08:42 +02:00
795bcbdac3 feat(postgres): added new each function
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 14:56:11 +02:00
d4bec1d8c7 fix(postgres): removed unneeded code that breaks the thing
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 14:36:38 +02:00
40ce69567a dix(postgres): wrong parameters
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-21 14:16:03 +02:00
84aee5c2dd test(postgres): finished tests for user and fixed bugs
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-20 22:45:03 +02:00
947a77d13f test(postgres): added first tests for user and fixed bugs
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-20 15:24:55 +02:00
83a5c89438 test(postgres): added tag and fixed bugs
Signed-off-by: soxx <soxx@fenpa.ws>
2024-06-20 14:54:06 +02:00
e6931570c3 chore(postgres): removed dead code 2024-06-19 22:16:42 +00:00
e7cf655362 test(postgres): added sources and fixed bugs 2024-06-20 00:13:39 +02:00
03ce8b52ae test(postgres): added first tests and already fixed bugs 2024-06-19 23:32:42 +02:00
5a242c6989 docs(postgres): updated readme 2024-06-14 15:43:40 +02:00
1da21024d7 feat(postgres): added GetUserTagsTroughFavedPosts 2024-06-14 15:16:31 +02:00
8cde1235ad feat(postgres): added GetUserFavoritePostsWithPagination 2024-06-14 15:11:13 +02:00
6268a594cf feat(postgres): added GetAllAnthroveUserIDs 2024-06-14 15:09:11 +02:00
4cdd4450d5 feat(postgres): added GetAnthroveUser 2024-06-14 15:07:23 +02:00
bbd08b9a2f feat(postgres): added GetSpecifiedUserSourceLink 2024-06-14 15:04:45 +02:00
16d5a381df feat(postgres): added GetUserSourceLinks 2024-06-14 15:03:34 +02:00
4f8e54f09a feat(postgres): added GetUserFavoriteCount 2024-06-14 14:50:29 +02:00
c04e382ee5 feat(postgres): added AddUserWithRelationToSource 2024-06-14 14:48:23 +02:00
78777ce7be feat(postgres): partially added Check heckPostNodeExistsBy 2024-06-14 13:57:03 +02:00
bd22ed3f79 feat(postgres): added AddPost 2024-06-14 13:29:53 +02:00
ad3a43366b feat(postgres): added CheckUserPostLink 2024-06-14 13:25:54 +02:00
a430c3b582 feat(postgres): added LinkUserWithPost 2024-06-14 13:22:52 +02:00
8d655e991f feat(postgres): added LinkPostWithSource 2024-06-14 13:19:55 +02:00
011f4d1c2a feat(postgres): added tag create and function to get all tags 2024-06-14 13:05:07 +02:00
aae7fc78e0 feat(postgres): added image urls to the database 2024-06-14 12:24:14 +02:00
a60805fccf feat(postgres): added console debug option 2024-06-14 12:06:58 +02:00
b248cbf0c7 feat(db): start implementing sources & fixing issues that come along the way
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 23:14:02 +02:00
8f87eb6ce8 feat(db): start implementing sources & fixing issues that come along the way
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 15:16:37 +02:00
5aa1542074 feat(db): corrected tables
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 14:00:00 +02:00
ccb7cff4fc refactor(db): removed unused context
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 13:59:38 +02:00
f0bd89759c refactor(db): logging & tracing
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 13:44:15 +02:00
ebd25580fe feat(db): reduce to one migration file
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 13:35:14 +02:00
b65e942f24 feat(db): embed migration files
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 13:28:14 +02:00
549c1ca573 docs(db): removing unused entities
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 13:07:18 +02:00
751f387b86 feat(db): finalizing migration statements
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 13:06:38 +02:00
b2b354c60f feat(db): initial setup for migrations
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 09:33:35 +02:00
5a693063bb feat(sources): finalized model with gorm annotation
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-04 08:49:46 +02:00
21b43333d0 feat(sources): restructure models and first implementation of pgModel
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-03 23:55:30 +02:00
ea2958b27d feat(sources): finished implementing get all sources
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-03 22:18:02 +02:00
ebc7fcc571 feat(sources): get all source nodes
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-03 22:14:50 +02:00
c1df01d113 chore: reorganizing code
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-03 21:45:39 +02:00
0d5274eb27 feat: connecting to postgres now possible
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-03 21:31:44 +02:00
ccc6010466 chore: streamline the naming to indicate more than graph support
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-03 19:32:25 +02:00
5015749f70 chore: streamline the naming to indicate more than graph support
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-03 19:31:25 +02:00