Skip to content

Conversation

@Rohithgvmg
Copy link

Fixes #172

if @type is an array, only the tm:ThingModel is removed
if string , it is deleted from JSON

Signed-off-by: Rohith <rgvmanikanta05@gmail.com>
@netlify
Copy link

netlify bot commented Dec 19, 2025

Deploy Preview for editdor ready!

Name Link
🔨 Latest commit b8e33e5
🔍 Latest deploy log https://app.netlify.com/projects/editdor/deploys/694a17f7cf0d5d0008bdeb53
😎 Deploy Preview https://deploy-preview-173--editdor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@egekorkan egekorkan requested a review from TejInaco December 19, 2025 17:02
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks @Rohithgvmg for this PR. You need to run the prettier --write src/services/operations.ts in order to the code being formatted according to the prettier rules.
Another thing is the unit tests also need to be changed in operations.test.ts file. You can see them failing when you run yarn test
The comment on line 144 is unnecessary.

Copy link
Author

Choose a reason for hiding this comment

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

thanks for detailed review, fixed the code , kindly review

@Rohithgvmg Rohithgvmg force-pushed the fix/conversion_tm_to_td branch from 3bdbd8d to 1954647 Compare December 22, 2025 17:34
@egekorkan
Copy link
Contributor

@Rohithgvmg the tests are failing again. Make sure to test locally :)

@egekorkan
Copy link
Contributor

@Rohithgvmg while the correction to the test is ok (that is the expected behavior), you are not checking for the case with the @type being an array. Could you add another test to cover the if condition in line 138 succeeding?

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.

Fix process Conversion TM to TD

3 participants