Skip to content

feat: Add ifm support, bump version#3

Merged
alxboyle merged 5 commits intodatamasque:mainfrom
alxboyle:add-ifm-support
May 6, 2026
Merged

feat: Add ifm support, bump version#3
alxboyle merged 5 commits intodatamasque:mainfrom
alxboyle:add-ifm-support

Conversation

@alxboyle
Copy link
Copy Markdown
Collaborator

No description provided.

@alxboyle alxboyle requested review from jiatolentino, kanewilliams and kw-datamasque and removed request for kanewilliams and kw-datamasque April 28, 2026 22:27
Comment thread pyproject.toml Outdated
[project]
name = "datamasque-cli"
version = "1.0.0"
version = "1.1.0"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to rebase and bump to v1.2.0

Comment thread CHANGELOG.md Outdated
@@ -1,5 +1,42 @@
# Changelog

## v1.1.0
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update once rebased

Comment on lines +247 to +251
if is_json:
print_json(result.data)
else:
for record in result.data or []:
typer.echo(json.dumps(record, default=str))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print_json(result.data) passes potentially-None data directly. The else NDJSON path guards with result.data or []. Change to print_json(result.data or [])?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread src/datamasque_cli/commands/ifm.py Outdated
) -> None:
"""List all IFM ruleset plans."""
client = get_ifm_client(profile)
plans = client.list_ruleset_plans()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a try/except DataMasqueApiError here? Same for get_ruleset_plan (line 101) and verify_token (line 261).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@alxboyle alxboyle force-pushed the add-ifm-support branch 4 times, most recently from 8455c45 to fddb26d Compare May 1, 2026 03:13
@alxboyle alxboyle requested a review from jiatolentino May 1, 2026 03:25
Comment thread CHANGELOG.md Outdated

## v1.2.0

## Added
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heading level ###?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Fixed.

@alxboyle alxboyle force-pushed the add-ifm-support branch from fddb26d to e36052a Compare May 1, 2026 03:41
@alxboyle alxboyle requested a review from jiatolentino May 1, 2026 03:43
Comment thread src/datamasque_cli/commands/ifm.py Outdated
if isinstance(error, str):
return error
if "detail" in body:
return str(body["detail"])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please confirm if the IFM server would produce {"detail": "string"}. It seems that key only appears in Pydantic 422 errors, whereas FastAPI might set it to e.errors() (a list of dicts).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NDJSON output path (--no-json) has no test. Could you add a test for it as well?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

@alxboyle alxboyle force-pushed the add-ifm-support branch from bb14ba4 to e142661 Compare May 6, 2026 01:53
@jiatolentino jiatolentino self-requested a review May 6, 2026 02:00
@alxboyle alxboyle merged commit c156e2a into datamasque:main May 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants