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

Initial changes needed for a Public API #372

Merged
merged 13 commits into from
Mar 29, 2024
Merged

Conversation

theorm
Copy link
Member

@theorm theorm commented Mar 29, 2024

No description provided.

@theorm theorm merged commit 69a0873 into epic/upgrade Mar 29, 2024
1 check passed
theorm added a commit that referenced this pull request Apr 19, 2024
* disable celery by default

* update all libraries :)

* update code, remove neo4j service

* upgrade code

* Initial changes needed for a Public API (#372)

* wip

* authentication swaggerised

* Fix inline source map configuration

* Refactor page.json schema***

* refactored init - first steps

* further cleanup

* Dockerfile and documentation updated

* Add Docker build and run instructions to README.md and update docker-compose.yml

* schemas for articles endpoints

* added docker workflow for epic branches

* Update node version in unit-tests-and-lint.yml workflow

* update ajv regex validation

* make eslint happy

* Update workflow file to build and publish Docker image for Epic branch

* renamed schemas

* added users service used by the auth service

* Update articles schema to fix UID pattern

* Added Redis based rate limiter implementing a leaky bucket algorithm (#373)

* added redis based rate limiter. feathers wiring refactoring

* make linter happy

* added schemas to collectable items

* sorted public services

* Refactor rateLimiter hook to remove console.log statement

* linting

* convert redis host to url

* Fix Redis client creation in src/redis.ts

* prettier + optionsDisabledInPublicApi updated for use in non-public api

* Add API version schema and service (#374)

* Openapi and rate limiting cleanup (#375)

* Refactor API version schema and service, fix Redis client creation, add Redis based rate limiter, update articles schema, add users service, rename schemas, update workflow file, and make initial changes for a Public API.

* Refactor articles.hooks.js to import rateLimiter and update imports

* Rate limiter improvements (#376)

* Refactor rate limiter and authentication hooks

* Remove console.log statement in RateLimiter class

* Refactor openapi.ts, collections/index.ts, base-user.model.json, collections.hooks.js, collections.service.js, collection.model.json (#377)

* Public API: text reuse passages (#379)

* WIP

* WIP: cleaner schema + validation

* Refactor hooks

* chore: Refactor hooks and parameters, update defaultErrorResponse schema

* Refactor JSON parsing logic in `decodeJsonQueryParameters` hook and add `NullRateLimiter` class

* fixed entities service

* disable cors checks in socketio and enable in rest

* same

* chore: Add public API prefix configuration option

* chore: Swallow non-auth errors in authenticate hook

* allow logout

* Add data provider to articles.model.js (#378)

* Text reuse clusters service for public api (#380)

* WIP

* added schema

* ignore non-parseable strings

* added type to text reuse clusters service, moved cachedSolr to services (prettier reformatted some files)

* make linter happy

* reformatting

* added generate types script

---------

Co-authored-by: Roman Kalyakin <[email protected]>
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