You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a new metric source with 'validlink' name serving the purpose of tracking web page links for validity. This source shall be using a required field 'URL' that would provide a URL of a web page to track.
Both raw and normalized 'validlink' metric scores shall be computed as '0' if accessing the web page with this URL produces a 404 error, '1' otherwise.
Must produce the code for 'validlink' metric source, a usage example, a unit test and documentation update.
The text was updated successfully, but these errors were encountered:
Related to #41
Implement the 'validlink' metric source to track web page link validity.
* **New Metric Source:**
- Add `src/facere_sensum/connectors/validlink.py` to implement the 'validlink' metric source.
- Implement `get_raw(metric)` to return 0 if URL produces a 404 error, 1 otherwise.
- Implement `get_normalized(metric, raw)` to return the same value as `raw`.
* **Documentation:**
- Update `doc/sources.rst` to include documentation for 'validlink' metric source.
- Describe the raw and normalized score computation.
- Include details about the required 'URL' field.
* **Usage Example:**
- Add `examples/config_validlink.json` to provide a usage example for 'validlink' metric source.
- Include a sample URL to track.
* **Unit Tests:**
- Add `test/t_connectors/t_validlink.py` to include unit tests for 'validlink' metric source.
- Test `get_raw(metric)` for both 404 and non-404 URLs.
- Test `get_normalized(metric, raw)` for both 0 and 1 raw scores.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/lunarserge/facere-sensum/issues/41?shareId=XXXX-XXXX-XXXX-XXXX).
PS creating it as a draft PR to be able to run workflows. I also don't really understand that changes yet.
Implement a new metric source with 'validlink' name serving the purpose of tracking web page links for validity. This source shall be using a required field 'URL' that would provide a URL of a web page to track.
Both raw and normalized 'validlink' metric scores shall be computed as '0' if accessing the web page with this URL produces a 404 error, '1' otherwise.
Must produce the code for 'validlink' metric source, a usage example, a unit test and documentation update.
The text was updated successfully, but these errors were encountered: