Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

Why make this change?

Code review identified typos in XML documentation comments that inaccurately described the escaping mechanism and contained spelling errors.

What is this change?

Fixed documentation comments to accurately reflect the implementation:

  • DatabaseObjectConverter.cs: Updated escape/unescape method summaries to correctly describe the DAB_ESCAPE$ prefix transformation (previously incorrectly documented as _$)
  • SerializationDeserializationTests.cs: Corrected "deserilization" → "deserialization" in three test method comments

How was this tested?

  • Documentation-only change, no functional changes

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Alekhya-Polavarapu <67075378+Alekhya-Polavarapu@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix serialization/deserialization issue with $ prefix columns Fix documentation typos in serialization comments Jan 14, 2026
@Alekhya-Polavarapu Alekhya-Polavarapu marked this pull request as ready for review January 14, 2026 00:02
@Alekhya-Polavarapu Alekhya-Polavarapu merged commit 1b8a646 into dev/alpolava/cherrypick_serialization Jan 14, 2026
1 of 2 checks passed
@Alekhya-Polavarapu Alekhya-Polavarapu deleted the copilot/sub-pr-3051-another-one branch January 14, 2026 00:02
Alekhya-Polavarapu added a commit that referenced this pull request Jan 15, 2026
)

Serialization and deserialization of metadata currently fail when column
names are prefixed with the $ symbol.

This issue occurs because we’ve enabled the ReferenceHandler flag in our
System.Text.Json serialization settings. When this flag is active, the
serializer treats $ as a reserved character used for special metadata
(e.g., $id, $ref). As a result, any property name starting with $ is
interpreted as metadata and cannot be deserialized properly.

This update introduces custom logic in the converter’s Write and Read
methods to handle $-prefixed column names safely.

- During serialization, columns beginning with $ are escaped as "_$".

- During deserialization, this transformation is reversed to restore the
original property names.

- [x] Unit tests

---------

Co-authored-by: Aniruddh Munde <anmunde@microsoft.com>

Fix serialization for StoredProcedureDefinition inheritance (#3045)

- To apply correct serialization and deserialization logic for stored
procedures. With the previous changes, serialization was not working
correctly for the StoredProcedureDefinition type, which extends
SourceDefinition. When the value type was passed explicitly for
serialization, the parent type was used instead, causing some child-type
properties to be omitted.
Instead of manually specifying the value type during serialization, this
change allows the library to infer the type automatically and perform
the correct serialization.

- [x] Unit Tests

---------

Co-authored-by: Aniruddh Munde <anmunde@microsoft.com>

Update src/Core/Services/MetadataProviders/Converters/DatabaseObjectConverter.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Fix documentation typos in serialization comments (#3057)

Code review identified typos in XML documentation comments that
inaccurately described the escaping mechanism and contained spelling
errors.

Fixed documentation comments to accurately reflect the implementation:

- **DatabaseObjectConverter.cs**: Updated escape/unescape method
summaries to correctly describe the `DAB_ESCAPE$` prefix transformation
(previously incorrectly documented as `_$`)
- **SerializationDeserializationTests.cs**: Corrected "deserilization" →
"deserialization" in three test method comments

- [x] Documentation-only change, no functional changes

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Alekhya-Polavarapu <67075378+Alekhya-Polavarapu@users.noreply.github.com>
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.

2 participants