Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions api/manifest.json
Original file line number Diff line number Diff line change
@@ -1,75 +1,6 @@
{
"name": "hypercerts-api-foundation",
"collection": "app.certified.location",
"targetHappyViewRevision": "a2f347e605d7cd9c11669b320e43c10dbfe982e3",
"runtimeCompatibility": "compatible-at-target-revision",
"status": "handlers-implemented; location-and-actor-follow-runtime-validated-at-target-revision; other-query-runtime-validation-pending",
"handlerStatus": {
"getProfile": "implemented",
"getProfiles": "implemented",
"searchProfiles": "implemented",
"listProfiles": "implemented",
"getOrganization": "implemented",
"getOrganizations": "implemented",
"listOrganizations": "implemented",
"searchOrganizations": "implemented",
"getEvaluation": "implemented",
"listEvaluations": "implemented",
"getAcknowledgement": "implemented",
"listAcknowledgements": "implemented",
"getAttachment": "implemented",
"listAttachments": "implemented",
"getActivity": "implemented",
"listActivities": "implemented",
"searchActivities": "implemented",
"getCollection": "implemented",
"listCollections": "implemented",
"searchCollections": "implemented",
"listCollectionItems": "implemented",
"getFollow": "implemented",
"listActorFollowers": "implemented",
"listActorFollowing": "implemented",
"getLikes": "implemented",
"getReposts": "implemented",
"getActorLikes": "implemented",
"getActorReposts": "implemented",
"getEntityFollow": "implemented",
"listEntityFollowers": "implemented",
"listEntityFollowing": "implemented",
"listRecentFollows": "implemented",
"getReceipt": "implemented",
"listReceipts": "implemented",
"getBadgeDefinition": "implemented",
"listBadgeDefinitions": "implemented",
"getWorkscopeTag": "implemented",
"listWorkscopeTags": "implemented",
"getContribution": "implemented",
"listContributions": "implemented",
"getContributorInformation": "implemented",
"listContributorInformation": "implemented",
"getVocabTag": "implemented",
"listVocabTags": "implemented",
"getLocation": "implemented",
"listLocations": "implemented",
"searchBadgeDefinitions": "implemented",
"getBadgeAward": "implemented",
"listBadgeAwards": "implemented",
"getBadgeResponse": "implemented",
"listBadgeResponses": "implemented",
"getFeature": "implemented",
"listFeatures": "implemented",
"getMeasurement": "implemented",
"listMeasurements": "implemented",
"getEvmLink": "implemented",
"listEvmLinks": "implemented",
"getRights": "implemented",
"listRights": "implemented"
},
"authentication": {
"decision": "public",
"unresolved": false,
"note": "Badge query endpoints expose public indexed record reads; all query endpoints expose public record reads and require no caller authentication."
},
"validationLexicons": [
{
"id": "app.certified.location",
Expand Down
5 changes: 0 additions & 5 deletions api/tests/unit/context/attachment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ test('attachment module registers one package record and both local query handle
const manifest = JSON.parse(await readFile(`${root}/manifest.json`, 'utf8'));
const modulePath = 'modules/context-attachments/manifest.json';
assert.ok(manifest.modules.includes(modulePath));
assert.deepEqual({
getAttachment: manifest.handlerStatus.getAttachment,
listAttachments: manifest.handlerStatus.listAttachments,
}, { getAttachment: 'implemented', listAttachments: 'implemented' });

const modules = await Promise.all(manifest.modules.map(async (path) => JSON.parse(await readFile(`${root}/${path}`, 'utf8'))));
const recordAssets = modules.flatMap(({ assets }) => assets.filter(({ kind, id }) => kind === 'lexicon' && id === ATTACHMENT));
assert.equal(recordAssets.length, 1, 'the package-backed attachment record Lexicon must be registered exactly once');
Expand Down
5 changes: 1 addition & 4 deletions api/tests/unit/tooling/lua.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,12 @@ test('checked-in Lua bundles reproduce from declared handler sources', async ()
});

test('manifest installs declared Lua query handlers from their built bundles and sources', async () => {
const { bundle, handlers } = await declaredLuaHandlers();
assert.equal(bundle.authentication.unresolved, false);
const { handlers } = await declaredLuaHandlers();
assert.ok(handlers.length > 0, 'bundle must declare at least one Lua query handler');

for (const handler of handlers) {
const { declaration, loaded } = handler;
const name = declaration.id.slice('xrpc.query:'.length).split('.').at(-1);
assert.ok(loaded, `missing loaded handler ${declaration.id}`);
assert.equal(bundle.handlerStatus[name], 'implemented', `${name} must be marked implemented`);
assert.equal(loaded.kind, 'script');
assert.equal(loaded.path, declaration.path);
assert.equal(loaded.sourcePath, declaration.sourcePath);
Expand Down
Loading