feat: add new page and migration scripts for access rules and collections
- Introduced new page component for library topics with type checks. - Added migration scripts to update access rules for various collections including badges, curriculum versions, and themes. - Implemented PocketBase integration for managing collection access rules dynamically. - Ensured proper type validation for page props and metadata generation functions.
This commit is contained in:
@@ -12,7 +12,7 @@ const documentRoutes: FastifyPluginAsync = async (app) => {
|
||||
return reply.status(202).send({ jobId: job.id, status: job.status });
|
||||
});
|
||||
|
||||
app.get<{ Params: { jobId: string } }>('/status/:jobId', async (request, reply) => {
|
||||
app.get<{ Params: { jobId: string } }>('/ingest/status/:jobId', async (request, reply) => {
|
||||
const job = getJob(request.params.jobId);
|
||||
if (!job) {
|
||||
return reply.status(404).send({ error: 'Job not found' });
|
||||
@@ -20,8 +20,11 @@ const documentRoutes: FastifyPluginAsync = async (app) => {
|
||||
return reply.send({
|
||||
jobId: job.id,
|
||||
status: job.status,
|
||||
progress: job.progress,
|
||||
error: job.error,
|
||||
chunksTotal: job.progress.chunksTotal,
|
||||
chunksEmbedded: job.progress.chunksEmbedded,
|
||||
themesFound: job.progress.themesFound,
|
||||
topicsFound: job.progress.topicsFound,
|
||||
reason: job.error ?? undefined,
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user