Page MenuHomePhabricator

[lib] Add reports service facts
ClosedPublic

Authored by bartek on Aug 30 2023, 11:41 PM.
Tags
None
Referenced Files
F3387270: D9041.diff
Fri, Nov 29, 8:33 AM
Unknown Object (File)
Wed, Nov 20, 9:41 PM
Unknown Object (File)
Sun, Nov 10, 7:20 PM
Unknown Object (File)
Wed, Oct 30, 2:54 PM
Unknown Object (File)
Wed, Oct 30, 2:54 PM
Unknown Object (File)
Wed, Oct 30, 2:54 PM
Unknown Object (File)
Wed, Oct 30, 2:54 PM
Unknown Object (File)
Wed, Oct 30, 2:54 PM
Subscribers

Details

Summary

Similiar to other services, add facts file with endpoint info for reports service.
We expose only single endpoint meaningful to clients. Other endpoints are staff only so I haven't added them.

Test Plan

flow

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Aug 31 2023, 12:07 AM
bartek added inline comments.
lib/facts/reports-service.js
5–8

I wish flow had TypeScript's as const - playground link

Should we also update the docs with the new facts file?

This revision is now accepted and ready to land.Aug 31 2023, 5:07 AM
In D9041#266461, @tomek wrote:

Should we also update the docs with the new facts file?

Which docs? Other services' facts don't have any docs IIRC 🤔

In D9041#266461, @tomek wrote:

Should we also update the docs with the new facts file?

Which docs? Other services' facts don't have any docs IIRC 🤔

If the app works correctly after fresh checkout without these facts, then we're fine. But if this file is required for the app to work, then we should mention it somewhere (I remember that we're mentioning web and landing facts somewhere).

This revision was automatically updated to reflect the committed changes.