Skip to content

App 9295 - Used KeywordField for AtlanTask.GUID#768

Merged
Aryamanz29 merged 3 commits intomainfrom
APP-9295
Nov 17, 2025
Merged

App 9295 - Used KeywordField for AtlanTask.GUID#768
Aryamanz29 merged 3 commits intomainfrom
APP-9295

Conversation

@Aryamanz29
Copy link
Copy Markdown
Member

@Aryamanz29 Aryamanz29 commented Nov 17, 2025

  • Generated latest typedef models.

🧩 Type of change

Select all that apply:

  • 🚀 New feature (non-breaking change that adds functionality)
  • 🐛 Bug fix (non-breaking change that fixes an issue) — please include tests! Refer testing-toolkit 🧪
  • 🔄 Refactor (code change that neither fixes a bug nor adds a feature)
  • 🧹 Maintenance (chores, cleanup, minor improvements)
  • 💥 Breaking change (fix or feature that may break existing functionality)
  • 📦 Dependency upgrade/downgrade
  • 📚 Documentation updates

✅ How has this been tested? (e.g. screenshots, logs, workflow links)

Describe how the change was tested. Include:

  • Steps to reproduce
  • Any relevant screenshots, logs, or links to successful workflow runs
  • Details on environment/setup if applicable

📋 Checklist

  • My code follows the project’s style guidelines
  • I’ve performed a self-review of my code
  • I’ve added comments in tricky or complex areas
  • I’ve updated the documentation as needed
  • There are no new warnings from my changes
  • I’ve added tests to cover my changes
  • All new and existing tests pass locally

Note

Adds new assets (DatabricksMetricView, PartialV01 family), introduces catalogHasPartialFields across many models, refactors Dremio models, switches AtlanTask.GUID to KeywordField, and updates docs/dependencies.

  • Models:
    • New assets: DatabricksMetricView, PartialV01, PartialV01Field, PartialV01Object (with partialV01ChildFields relations on Catalog, DataStudio, GCS).
    • New flag: adds catalogHasPartialFields (Boolean) across numerous assets (cloud stores, tags, DB/NoSQL collections & databases, AI model contexts/versions, dbt entities, notebooks, SAP, etc.).
    • Dremio: refactors DremioPhysicalDataset to extend Dremio, relocates Dremio imports, and adds rich SQL relations (columns, queries, schema, facts, partitions, dimensions).
    • Core fields: tweaks analyzers for Asset.DISPLAY_NAME, DESCRIPTION, USER_DESCRIPTION.
    • Task fix: AtlanTask.GUID now KeywordField.
  • Docs: new RST pages for the added assets and index updates.
  • Dependencies: bump pydantic to 2.12.4, ruff to 0.14.5; cleanup dev deps; lockfile updates.

Written by Cursor Bugbot for commit ed546d1. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the AtlanTask.GUID field from TextField to KeywordField and regenerates typedef models with the latest schema changes. The changes include dependency upgrades (pydantic 2.12.3→2.12.4, ruff 0.14.0→0.14.5), removal of the unused retry dependency, and extensive generated model updates.

Key changes:

  • Changed AtlanTask.GUID field type from TextField to KeywordField for exact-match searching
  • Added catalog_has_partial_fields boolean field to numerous asset types
  • Introduced new PartialV01 asset types for handling partial/incomplete asset structures
  • Updated DremioPhysicalDataset to inherit from Dremio instead of Table

Reviewed Changes

Copilot reviewed 54 out of 55 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
pyatlan/model/task.py Changed GUID field from TextField to KeywordField
pyproject.toml Updated pydantic to 2.12.4, ruff to 0.14.5, removed retry dependency
uv.lock Synchronized lockfile with dependency changes
pyatlan/model/structs.py Reordered struct definitions, added AssetGCPDataplexAspectMetadata.asset_v3_g_c_p_dataplex_aspect_display_name
pyatlan/model/assets/dremio*.py Fixed import paths from core.dremio to dremio
pyatlan/model/assets/dremio_physical_dataset.py Changed parent class from Table to Dremio, added Dremio-specific attributes
pyatlan/model/assets/core/partial_v01*.py New asset types for handling partial asset structures
Multiple asset files Added catalog_has_partial_fields boolean field
pyatlan/model/assets/domo_dataset*.py Added new attributes for Domo assets
pyatlan/model/assets/core/databricks_metric_view.py New Databricks metric view asset type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

type_name: str = Field(default="DatabricksMetricView", allow_mutation=False)

@validator("type_name")
def validate_type_name(cls, v):
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

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

Normal methods should have 'self', rather than 'cls', as their first parameter.

Suggested change
def validate_type_name(cls, v):
def validate_type_name(self, v):

Copilot uses AI. Check for mistakes.
type_name: str = Field(default="PartialV01", allow_mutation=False)

@validator("type_name")
def validate_type_name(cls, v):
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

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

Normal methods should have 'self', rather than 'cls', as their first parameter.

Suggested change
def validate_type_name(cls, v):
def validate_type_name(self, v):

Copilot uses AI. Check for mistakes.
type_name: str = Field(default="PartialV01Field", allow_mutation=False)

@validator("type_name")
def validate_type_name(cls, v):
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

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

Normal methods should have 'self', rather than 'cls', as their first parameter.

Copilot uses AI. Check for mistakes.
type_name: str = Field(default="PartialV01Object", allow_mutation=False)

@validator("type_name")
def validate_type_name(cls, v):
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

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

Normal methods should have 'self', rather than 'cls', as their first parameter.

Copilot uses AI. Check for mistakes.
Comment on lines +37 to +39
return object.__setattr__(self, name, value)
super().__setattr__(name, value)

Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

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

Mixing implicit and explicit returns may indicate an error, as implicit returns always return None.

Suggested change
return object.__setattr__(self, name, value)
super().__setattr__(name, value)
object.__setattr__(self, name, value)
else:
super().__setattr__(name, value)

Copilot uses AI. Check for mistakes.
Comment on lines +29 to +30
return object.__setattr__(self, name, value)
super().__setattr__(name, value)
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

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

Mixing implicit and explicit returns may indicate an error, as implicit returns always return None.

Suggested change
return object.__setattr__(self, name, value)
super().__setattr__(name, value)
object.__setattr__(self, name, value)
else:
super().__setattr__(name, value)

Copilot uses AI. Check for mistakes.
Comment on lines +29 to +30
return object.__setattr__(self, name, value)
super().__setattr__(name, value)
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

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

Mixing implicit and explicit returns may indicate an error, as implicit returns always return None.

Suggested change
return object.__setattr__(self, name, value)
super().__setattr__(name, value)
object.__setattr__(self, name, value)
else:
super().__setattr__(name, value)

Copilot uses AI. Check for mistakes.
raise ValueError("must be PartialV01Object")
return v

def __setattr__(self, name, value):
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

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

Mixing implicit and explicit returns may indicate an error, as implicit returns always return None.

Copilot uses AI. Check for mistakes.
@Aryamanz29 Aryamanz29 merged commit da242b9 into main Nov 17, 2025
58 of 64 checks passed
@Aryamanz29 Aryamanz29 deleted the APP-9295 branch November 17, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bug fix pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants