Skip to content

Conversation

dnenov
Copy link
Collaborator

@dnenov dnenov commented Nov 29, 2023

Reverted here - #14689
Cherry-pick UI - #14655

Purpose

A final edition to the package manager updates focusing on publishing a new version of the existing package. Based on #14645.

  • only the creator of the package can publish a new version of the package
  • the feature is accessible once the package is installed locally through either;
    • the installed packages tab
    • my packages tab where the 'Install' button will turn into a 'publish version' button
  • when activated, the user will be directed to the 'publish package' tab with the details of the package pre-filled in
  • the user won't be able to change the name of the package
  • the contents of the package will be automatically populated for the user, but the user can make changes

UI Changes

update package version

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

  • publish package version changes

Reviewers

@QilongTang
@reddyashish

FYIs

@Amoursol

- now all colors are controlled by the COLORS object in confing.js
- correctly creates minimum depth folder structure for the files added
- updated browser to only show root items
- added pages for the wizard-like experience when publishing a package
- using Dispatcher fixes the async tree creation
- tests added to assert correct functionality of collecting files and folders
- updated files and folders icons
- now only allows LibraryNode checkboxes for Assembly dll files
- started the structure for preview build
- added tests for the core methods of PreviewPackageBuild
- changed `RemoveItem` method to account for folder items being removed
- fixed a bug where removing an Assembly file would generate an error. Assembly files can also be added to 'additional items'
- UI added to allow users to add/remove items from current Package selection
- preview contents now correctly display based on user choice (retain folder or not)
- fixed a bug where CustomDefinitions would read as root item
- Pages are disabled when not displayed, in order to stop handling of tasks that affect other Pages
- now sorts browser alphabetically
- fixed disabled behavior
- assemblies now will show up with their file path, but still get picked up from their assembly resource on disk
- we need the ability to display custom nodes as file with file paths during package creation. CustomDefinition does not have the attributes to address that, so we are adding a new 'preview' item type to server the purpose
- added tests for delete item
- fixed an issue where removing all items would not result in cleaning the RootContent items
- added detailed description for the customTreeView_SelectedItemChanged method
- fixed checkbox behavior to be consistent when interacting with the rest of the controls
- clearing data and ui after publishing
- clearing data and ui with Cancel button
- finished the main flow between the pages
- publish local retaining folder structure
- now warns the user of losing changes if using cancel or navigating away
- also clear custom definition filepaths
- disabled this test for the moment, it contaminates the packages folder by creating a package and leading to numerous failure tests consequently
- fixed a bug where the install to folder would not show the required dialog
- fixed a bug where after locking the name for edit (after submitting a new package version) clearing the results would not remove the block from typing the name
commit f5d5563
Author: Deyan Nenov <dnenov@archilizer.com>
Date:   Tue Nov 28 12:12:19 2023 +0000

    dispose methods null checks

    - trying to prevent null exceptions in case resources have been cleared before dispose event has been called

commit e43ad53
Author: Deyan Nenov <dnenov@archilizer.com>
Date:   Tue Nov 28 11:05:20 2023 +0000

    remove begin invoke from mainFrame_Navigated

    - this was done to try and fix a failing test but it should not be needed

commit 42bf04c
Author: Deyan Nenov <dnenov@archilizer.com>
Date:   Mon Nov 27 21:04:19 2023 +0000

    null check to mainFrame_Navigated

    - added a null check

commit 9dde030
Merge: a77a11a 3f765b5
Author: Deyan Nenov <dnenov@archilizer.com>
Date:   Mon Nov 27 18:07:39 2023 +0000

    Merge branch 'pm-publishpackage-cherrypick-resources' into pm-publishpackage-cherrypick-mypackage

commit a77a11a
Author: Deyan Nenov <dnenov@archilizer.com>
Date:   Mon Nov 27 17:47:17 2023 +0000

    main changes

    - this cherry-pick contains all main changes minus resources and tests.
    - will need to merge resources to work correctly
    - if this breaks the test run, we will need to further split it up, or introduce the changes one by one somehow

commit 3f765b5
Merge: 95d502a 36fb8d3
Author: Deyan Nenov <dnenov@archilizer.com>
Date:   Mon Nov 27 17:38:11 2023 +0000

    Merge remote-tracking branch 'upstream/master' into pm-publishpackage-cherrypick-resources

commit 95d502a
Author: Deyan Nenov <dnenov@archilizer.com>
Date:   Mon Nov 27 17:38:02 2023 +0000

    resource cherry-pick

    - picked up all resource changes

commit 36fb8d3
Author: Jorgen Dahl <sm6srw@users.noreply.github.com>
Date:   Mon Nov 27 11:51:35 2023 -0500

    Test net8 (DynamoDS#14635)

    * Test net8

    * Also add DotNet to the build properties

    * Update CS_SDK.props

    * Update CS_SDK.props

    * update

    * update

    * update

    * Go back to net6

    ---------

    Co-authored-by: pinzart <tiberiu.pinzariu@autodesk.com>

commit cbba6d0
Author: Michael Kirschner <mjk.kirschner@gmail.com>
Date:   Mon Nov 27 11:26:04 2023 -0500

    DYN-6412 fix performance issue with feature flags, and deadlock with CLI wrapper. (DynamoDS#14637)

    * fix for null data being shown over and over

    * fix issues with cli wrapper get data

    * revert

    * add test

    * review comments add tests

    * comments

    * review comments

commit c5df6f9
Author: Ashish Aggarwal <ashish.aggarwal@autodesk.com>
Date:   Mon Nov 27 11:22:32 2023 -0500

    Replace Application.Current with HostAnalyticsInfo.HostName check (DynamoDS#14574)

    * Fix PostDiff job

    * replace application.current

    * tests

    * refactor after Bogdans PR

    ---------

    Co-authored-by: Aaron (Qilong) <173288704@qq.com>

commit 11b1f7c
Author: jesusalvino <96534278+jesusalvino@users.noreply.github.com>
Date:   Mon Nov 27 08:55:32 2023 -0500

    DYN-6313 Add ML Node AutoComplete TOU (DynamoDS#14625)

    * Updating the Agreement and Term of Use

    * Adding the MLNodeAuntocomplete rtf file

    * Persists the AgreeToMLAutocompleteTOU as preference settings

    * rename property

    * resources and control names

    * Clean up

    * Update

    * update

    ---------

    Co-authored-by: Jesus Alfredo Alviño <jesus.alfredo.alvino@autodesk.com>
    Co-authored-by: Aaron (Qilong) <aaron.tang@autodesk.com>

commit 3e97cbd
Author: Aabishkar KC <aabishkar@gmail.com>
Date:   Wed Nov 22 12:56:04 2023 -0500

    Update smoke tests workflow (DynamoDS#14638)
- fixed a small issue where the selected known hosts were not being cleared on reset
@dnenov dnenov mentioned this pull request Nov 29, 2023
9 tasks
- moved small fixes to publish package name validation to this branch
@dnenov dnenov changed the title Pm mypackages update Pm mypackages - update package version Nov 29, 2023
@Amoursol
Copy link
Contributor

Amoursol commented Nov 29, 2023

@dnenov Installed Packages text still dramatically smaller than the rest of this UI - is this addressed in a different PR? Beyond that this looks great!

Copy link
Contributor

@reddyashish reddyashish left a comment

Choose a reason for hiding this comment

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

LGTM with one comment.
Running the self-serve job here: https://master-15.jenkins.autodesk.com/view/DYN/job/DYN-DevCI_Self_Service/1311/

@reddyashish reddyashish added this to the 3.0 milestone Dec 1, 2023
@QilongTang QilongTang merged commit 3f564ec into DynamoDS:master Dec 5, 2023
dnenov added a commit that referenced this pull request Dec 5, 2023
reddyashish pushed a commit that referenced this pull request Dec 5, 2023
This was referenced Dec 6, 2023
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.

5 participants