Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update API documantation files * delete Empty struct * TP-933 update: results validation func * dev: rename function NewRandomString * dev: update: package crypto * dev add: default avatar for user * dev add: default avatar * dev add: ramrepo -- fillPinTableRows, fillSessionTableRows * TP-6d1 add: choose https/http in config/config.yml * TP-565 add: TestCheckLogin * TP-565 add: TeshLogin * dev del: block else * added dataSourceName as a new OpenDB argument * TP-a49 add: fileserver * TP-565 add,update: added TestSignUp, TestLogout, updated previous tests * TP-a49 add: log fileserver * minor update in test * dev update: passing the config from main and return from main when errors * dev update: moved the const variable higher * dev add: wrapping errors in func OpenDB and prealocation * add targets for testing * added tests for usecases * TP-565 add: error test * dev update: configs, Makefile and handlers auth * TP-aad add: er-diagram.png and docker-compose file * TP-aad add: migrations * TP-aad update: er-diagram.png * TP-aad update: rename users relation to auth * TP-ee7 update: change register router and start server * TP-ee7 update: divided into 3 layers: delivery, usecase, repository * TP-ee7 add: middleware auth * TP-46f add: repository based on posgtres * TP-aad add: description relations and description of functional dependencies * TP-aad update: relations.md * TP-aad update: relations.md * TP-5b0 add: handler upload and change avatar * TP-5b0 update: change upload avatar dir * TP-aad update: merge relations auth and profile in profile * TP-5b0 update: made requests to global variables * TP-5b0 add: get all data in repository * TP-aad update: rename migrations: add prefix 00n_*.sql * TP-5b0 update: get profile info * TP-5b0 update: entity user * TP-5b0 update: handler edit user info * dev2 add: search_path in all migrations * dev2 add: volumes in docker-compose.yml * TP-5b0 add: validation of new user data * TP-e3a add: pin creations * TP-e3a update: reducing the number of database requests when creating a pin * TP-e3a add: likes, delete pin * PT-e3a add: hander for edit pins * TP-aad_db update: move creating triggers after create tables * TP-c80 add: middleware with csrf token verification or installation * TP-c80 update: updated the check for the need to update the csrf token * TP-c80 update: updated the check for the need to update the csrf token * TP-2f3 add: repository with storage in redis * dev2 update: hashing the password when it is changed * dev2 add: method PUT in allowed * TP-add_db update: add ERD-description * dev2 update: cors * TP-fcc_handlers_board update: add board repository, usecase, moved general validation in /pkg, corrected old tests * TP-aad add: attribute amout_me for profile relation * TP-aad add: migrations 003_alter_relations.sql * TP-5b0 add: attribute AboutMe * TP-e3a update: select pins from tape * TP-e3a update: select pin for tape * TP-e3a add: chek avalability pins * TP-e3a add: check action fix pin on board * TP-e3a add: user info when get pin * TP-ffc_handlers_board update: add response codes/messages * TP-ffc_handlers_board update: add repo.go with general info about repository layer * TP-ffc_handlers_board update: add CreateBoard, GetUserBoards, GetCertainBoard handlers * TP-ffc_handlers_board update: add access for contributors in GetUserBoards handler * TP-e3a add: getting user pins * TP-ffc_handlers_board update: add UpdateBoard, DeleteBoard handlers, fixed previous changes * TP-a9b add: pkg/validator * TP-ffc_handlers_board update: fixed GetBoardsByUserID, GetBoardByID in board repository * dev2 add: returning count like when request on set like * TP-113 add: logger * TP-113 add: logger in context * TP-113 add: get logger in handlers * dev2 add: check set like to pin from user * TP-113 add: logger with formater * TP-errors update: usecase image * TP-erros update: both sides fall into range * TP-f21 update: responseOk * TP-f21 update: rename BoardUsecase to boardUsecase * TP-f21 update: repository board * TP-f21 update: logger in delivery board * TP-f21 add: fix pins on board * TP-28e add: mock for usecases and repositories * TP-28e_mockTests update: add tests on CreateNewBoard, UpdateBoardInfo * TP-2e4 update: old test * TP-28e_mockTests update: add GetBoardsByUsername test * TP-28e_mockTests update: modified test_with_coverage target * TP-28e_mockTests update: add GetCertainBoard, GetBoardByUsername tests * TP-28e_mockTests update: add DeleteCertainBoard test * TP-28e_mockTests update: moved return value checking into if clause * TP-28e_mockTests update: moved logger initialization to the outer scope * TP-28e_mockTests: replaced log.Fatal with t.Fatalf * TP-2e4 add testing cover * TP-28e_mockTests update: delete makefile target, delete old pin usecase_test * TP-28e_mockTests update: update makefile * dev2 update: deleted generated mock duplicates * TP-2e4 add: usecase test session and image * dev2 update: not view deleted pin in tape * dev2 add: test for usecase pin * dev2 add: returning count like with delete * dev2 del: status code 204 on path /api/v1/csrf * dev2 update: select pin users * dev2 update: fail test * TP-2e4 add: cover usecase/pin * TP-ffc_handlers_board_fix update: add types.go with common content types, defined general errors, add error-code mapping * TP-ffc_handlers_board_fix update: fixed tags assignment, add GetBoardInfoForUpdade method * TP-ffc_handlers_board_fix update: moved validation to the delivery layer, add Sanitize() method for entity, usecase structures, add GetBoardInfoForUpdate() method, regenerate mocks * TP-ffc_handlers_board_fix update: regenerate mocks * TP-ffc_handlers_board_fix update: add board validation, additional errors, err-code mapping,GetBoardInfoForUpdate() on the delivery layer * dev 2 update: minor board repo fix * TP-db2 update: test version of working with the tape * TP-db2 add: return user id on request login * TP-db2 update: feed condition change * dev2 update: fixed error display * dev2 update: add field in GetCertainBoard response * TP-db2 update: feed pins * TP-db2: update repository add filters * dev2 update: check valid photo for pin * TP-619 add: config for redis and .env file for postgres * TP-619 add: pkg config for parse *.conf files * TP-619 add: connect with config * TP-619 update: check author for edit pin * dev2 update: add insertBoard, CreateBoard, GetBoardByUserID tests * TP-fcc_board_dataflow_change: removed dto from usecase, changed entity structure, add structures on the delivery layer * dev2 update: fixed pins view on board(s) * dev2 update: changed null value processing in board repo methods * dev 2 update: fixed double delete on board * TP-d07 update: rename func to dirToSave * update: use PrefixURLImage * dev2 update: changed permissions on uploaded images, added :8081 in AllowedOrigins * TP-f07 add: entity Message * TP-f07 add write layers: delivery, usecase, repository for message * TP-f07 update sql queries * TP-f07 add: fake communication via websocket * TP-f07 add: origin patterns * TP-f07 add: implementation http.Flusher * TP-500 update: add global errors package with general application error types, errors * TP-500 update: add function to get logger from ctx * TP-500 update: add middleware with request timeout assignment * TP-500 update: add general rest api errors on the delivery layer, add getCodeStatusHttp for errors, responseErr for err convertion and response assignment * TP-500 update: add user subscription handlers, converter from postgresql error to application error in user and subscription repos * TP-409 add: description real time server as .proto * TP-500_subscriptions update: add handlers for getting user/profile info with subscriptions, made some optimizations * TP-500_subscriptions: add id field in profile header * TP-409 add: skeleton real time server * TP-409 add: partitions package internal/microservices/realtime * TP-409 update: websocket handler * TP-409 update func new websocket * TP-409 update: entity message json tag * dev3: changed pagination for subscriptions, minor errors update * dev3 minor: removed default case * TP-409 add: get feed user chats with other users * microservice auth * TP-34d_search: add user, board, pin search with pagination and sort options * TP-34d_search: changed pin likes aggregation * TP-4b9 update: auth * TP-0a2 add: metrics * TP-34d_search: add DeletePinFromBoard handler * dev3 minor: deleted redundant query.go from search repo * TP-0a2 update: move api/auth, api/realtime to internal/api/auth, internal/api/realtime * dev3 del defer close grpc connect * dev3 del: scheme https for prometheus target pinspire.online:9100 * dev3 update: change option for proto files * TP-cc2 add: proto description service messenger * TP-cc2 add: microservice messenger * Tp cc2 ms message (#19) * TP-cc2 update: ms messenger * TP-cc2 update: rename key metadata for auth * TP-cc2 add: metrics * dev3: add author_username field in GetCertainBoard * dev3 update: address for metrics servers * dev3 add: eventType in message response * TP-c01_ci-cd: add Dockerfiles for nginx and microservices, add service deps,healthchecks * TP-c01_ci-cd: changed prometheus targets, servers addresses from localhost:<port> to :<port>, replaced string servers params with env variables * TP-3a4 add: output files flag for logging * dev3 add: generate mocks * TP-c01_ci-cd: add linter configuration * TP-c01_ci-cd: add named volumes for postgres and redis, add compose.prod.yml for pulling images while deploying * TP-c01_ci-cd: add workflows description, add configuration file for ansible, add inventory in .gitignore * TP-c01_ci-cd: add kafka healthcheck * TP-c01_ci-cd: deleted nginx config from compose.yml, changed triggers, changed ports * TP-c01_ci-cd: deleted dev3 from triggers * TP-c01_ci-cd: changed triggers, add step * TP-59b add: comments * TP-6ec_easyjson: generated easyjson, changed serialization for user, board, search, subscription * TP-1c3 add: notification ws handler * TP-1c3 update: the subscription is carried out on the backend * TP-1c3 update: work with realtime for chat * TP-1c3 update: proto scheme for a reltime microservice * TP-1c3 update: chat * TP-1c3 update: rename request publish struct * TP-1c3 update: regenerate * TP-1c3 add: notification after commenting on the pin * TP-1c3 add: easyjson generation * TP-8da update: returned user from and to when deleting message * Update websocket.go: delete unused package "os" * TP-6ec_easyjson: add rest easyjson * dev4: removed pull request trigger for deploy workflow * dev4: replaced auth service host:port string with env variables, moved auth config to main.go * TP-87a_filtration: add filtration of pin content * TP-87a_filtration: add task with cloud api token provision, add '2023_2_OND_team' folder to dest * dev4: replaced google vision client with image filter interface * de4: changed deployment branch, add cloud api token to the .env file * dev4: add images volume for main service container * dev4: changed makefile variable, included all branches in CI --------- Co-authored-by: wonderf00l <maks22036@gmail.com> Co-authored-by: wonderf00l <105116952+wonderf00l@users.noreply.github.com>
- Loading branch information