Skip to content

[Core] Resolve code FIXMEs in Export and Plot models#8334

Open
gajjararyan wants to merge 1 commit into
nasa:masterfrom
gajjararyan:cleanup-fixmes
Open

[Core] Resolve code FIXMEs in Export and Plot models#8334
gajjararyan wants to merge 1 commit into
nasa:masterfrom
gajjararyan:cleanup-fixmes

Conversation

@gajjararyan

Copy link
Copy Markdown

Describe your changes:

This is a small code cleanup PR that resolves two outstanding FIXME comments in the codebase:

  1. ExportAsJSONAction: Encapsulated the saveAs method as a private field (#saveAs) and updated the tests in ExportAsJSONActionSpec.js to properly spy on the underlying JSONExportService instead.
  2. Model.js (Plot Configuration): Removed the unused and obsolete id() method which was erroneously marked with a FIXME, as derived models properly use the this.id property directly.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this a notable change?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label?

- Encapsulated saveAs method as a private field in ExportAsJSONAction
- Updated ExportAsJSONActionSpec to spy on JSONExportService instead of saveAs
- Removed unused and obsolete id() method in Plot configuration Model.js
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.

1 participant