Skip to content

AB#8166 group field -> org field#767

Open
samcarswell wants to merge 4 commits into
Developmentfrom
8166-org-field
Open

AB#8166 group field -> org field#767
samcarswell wants to merge 4 commits into
Developmentfrom
8166-org-field

Conversation

@samcarswell
Copy link
Copy Markdown
Contributor

https://github.com/AusTrakka/austrakka-portal/pull/2389

PR Checklist

Double check the repo merge order here
if you have companion PRs in other repositories.

Copy link
Copy Markdown
Contributor

@claresloggett claresloggett left a comment

Choose a reason for hiding this comment

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

Didn't catch it on first pass but as well as comments, we need to replace the trakka metadata list command with something like an trakka org metadata get command, analogous to the existing project command

@opt_field_name()
def group_remove_field(identifier, field_names):
'''
Deny fields from showing for the given org.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggest wording like "Remove fields from the data view for the given org", and above "Add fields to... " - just because deny sounds strange in the context of their own data. Wording is a little odd regardless really, was inherited from groups I assume

Copy link
Copy Markdown
Contributor Author

@samcarswell samcarswell May 26, 2026

Choose a reason for hiding this comment

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

Yeah agreed. I just git mv'd it from group/field, but I agree it sounds strange

def list_field(identifier: str, out_format: str, view_type: str):
compact_fields = [
"columnName",
"metaDataColumnTypeName",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have we got metaDataColumnTypeName as a property throughout the rest of the CLI? If we do then we should just fix them all at once (and maybe backend too) but if not, I think it's worth renaming the first two properties to field and fieldType which matches the names of the commands themselves

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Almost of all our DTOs have metaDataColumn* rather than field*. I'll make a separate card for it. I think we'll probably want to rename the tables as well

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah we do, there is a cleanup card for that

@claresloggett
Copy link
Copy Markdown
Contributor

@samcarswell does the trakka metadata list command also need to change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants