-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.