Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DYN-6808-NodeIcons-P4-P5-P6 Automatic Process #15283

Conversation

RobertGlobant20
Copy link
Contributor

Purpose

Updating several icons using the Update Node Icon tool
I done a fix due that when the resx file contains entries referencing a png image, the tool was not replacing attributes so the Dynamo solution was not compiling.

I've used the Update Node Icon tool for the folders P4, P5 and P6 folders using the 400 dpi folder.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

Updating several icons using the Update Node Icon tool

Reviewers

@QilongTang

FYIs

@zeusongit

I done a fix due that when the resx file contains entries referencing a png image, the tool was not replacing attributes so the Dynamo solution was not compiling.

I've used the Update Node Icon tool for the folders P4, P5 and P6 folders using the 400 dpi folder.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-6808

@RobertGlobant20
Copy link
Contributor Author

This is a screenshot of a small subset of icons automatically updated by the tool.
MZE5haOBqL

Copy link

github-actions bot commented Jun 4, 2024

UI Smoke Tests

Test: success. 2 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

@QilongTang QilongTang added this to the 3.3 milestone Jun 5, 2024
if (currentElementValue.ToLower().Contains(".png") || currentElementValue.ToLower().Contains(".jpg"))
{
//If the resx file is referencing a png image then we need to update/add the type and mimetype attributes
XAttribute attRemove = oldElement.Attribute("type");
Copy link
Contributor

Choose a reason for hiding this comment

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

@zeusongit I thought you mentioned there is no resx file referencing a legacy png, maybe I got it wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@QilongTang I've found 4 entries in DSCoreNodesImages.resx that are referencing the png image directly (without using base64).

<value>Resources\DSCore.Data.ParseJSON.Large.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>

Copy link
Contributor

Choose a reason for hiding this comment

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

@QilongTang I was wrong, there were 2 icons which were still using the png, we discussed this in slack, roberto will remove these icons after updating them to b64.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just commited a change for removing the png files
6c591c4

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, then the logic here is more for future proofing when things goes wrong from my understanding.

Copy link
Contributor

@QilongTang QilongTang left a comment

Choose a reason for hiding this comment

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

LGTM

@QilongTang QilongTang merged commit 9d51e32 into DynamoDS:master Jun 5, 2024
24 checks passed
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.

3 participants