mengw15 opened a new issue, #6592:
URL: https://github.com/apache/texera/issues/6592
### Task Summary
`OperatorMetadataService`
(`frontend/src/app/workspace/service/operator-metadata/operator-metadata.service.ts`,
codecov ~56%) fetches the operator metadata once over HTTP and serves lookups
from it; its spec only lightly touches this. Extend the spec with
`HttpClientTestingModule`. Vitest; see `frontend/TESTING.md`.
### Behavior to add
Flush the metadata GET (`${apiEndpoint}/${OPERATOR_METADATA_ENDPOINT}`) with
a small fixture, then cover:
- `getOperatorMetadata` — returns the cached observable emitting the fetched
metadata.
- `getOperatorSchema(operatorType)` — returns the matching `OperatorSchema`
for a known type; assert the returned schema, and the behavior for an unknown
type.
- `operatorTypeExists(operatorType)` — `true` for a type present in the
fetched metadata, `false` otherwise (including before the request resolves, if
applicable).
### Task Type
- [ ] Refactor / Cleanup
- [ ] DevOps / Deployment / CI
- [x] Testing / QA
- [ ] Documentation
- [ ] Performance
- [ ] Other
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]