Skip to content

feat(agent): add has_platform_account field to AgentBase (#587)#706

Open
heisdinesh wants to merge 1 commit intoaiondemand:developfrom
heisdinesh:issue-587-update-agent
Open

feat(agent): add has_platform_account field to AgentBase (#587)#706
heisdinesh wants to merge 1 commit intoaiondemand:developfrom
heisdinesh:issue-587-update-agent

Conversation

@heisdinesh
Copy link

Change(s)

Change Type: Added

Change Category: Interface/Internal

Changelog Entry:
Added the has_platform_account field to the Agent model.

This field indicates whether the agent has an account on the AIoD platform, defaulting to False. It is defined in AgentBase and inherited by both Organisation and Person.

How to Test

Verification was performed by inspecting the model metadata directly through a Python script to confirm field definition and default values. This bypasses environment/dependency issues that might occur during full test suite execution in non-Docker environments.

Command used for verification:

python3 -c "from database.model.agent.agent import AgentBase; print(AgentBase.__fields__['has_platform_account'].default)"
# Expected Output: False

Checklist

  • Tests have been added or updated to reflect the changes, or their absence is explicitly explained.
  • Documentation has been added or updated to reflect the changes, or their absence is explicitly explained.
  • A self-review has been conducted checking:
    • No unintended changes have been committed.
    • The changes in isolation seem reasonable.
    • Anything that may be odd or unintuitive is provided with a GitHub comment explaining it (but consider if this should not be a code comment or in the documentation instead).
  • All CI checks pass before pinging a reviewer, or provide an explanation if they do not.
  • The PR title matches the changelog entry's one-line description.

Related Issues

Closes #587

@heisdinesh
Copy link
Author

Hey @Taniya-Das could you review this PR.

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.

Update Agent

1 participant