Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Is it possible to drop Unreleased Changes?

Discussion in 'Unity Cloud Content Delivery' started by BrainIndexOutOfBoundsException, Oct 29, 2020.

  1. BrainIndexOutOfBoundsException

    BrainIndexOutOfBoundsException

    Joined:
    Mar 26, 2017
    Posts:
    5
    Hi,

    Is it possible to drop (revert to a previous release) Unreleased Changes in a bucket using UCD-CLI or Develop Dashboard?

    Thanks.
     
    Last edited: Oct 29, 2020
  2. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    125
    Yup. You should be able to promote that release to the bucket overwriting the current bucket state:

    ucd releases promote [release_id] --target_bucket [target_bucket_id]
     
  3. BrainIndexOutOfBoundsException

    BrainIndexOutOfBoundsException

    Joined:
    Mar 26, 2017
    Posts:
    5
    Thanks for the reply!

    This creates another release that has the same content as the previous one. I suppose that it might be helpful to have something similar to “git reset”, that doesn’t create a new duplicate release record in the release history.
     
  4. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    I'd be curious what value you get out of dropping unreleased changes. How does this factor into your workflow?
     
  5. BrainIndexOutOfBoundsException

    BrainIndexOutOfBoundsException

    Joined:
    Mar 26, 2017
    Posts:
    5
    I suppose it might be useful in cases when a “faulty” set of files was pushed to a bucket by mistake and instead of creating a new release with these faulty files it might be better to drop\reset them and upload the correct version.
     
  6. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    Assuming you have the full set of files you want to remain in the bucket locally, you can always run "ucd sync" with "--delete" which will delete any files from the bucket that don't exist locally. But I can definitely see the argument for the use case you're describing. Will follow up with our product team.
     
  7. matheus_inmotionvr

    matheus_inmotionvr

    Joined:
    Oct 3, 2018
    Posts:
    57
    Any updates on a better way to do get ready of unreleased changes?
     
  8. markmozza

    markmozza

    Joined:
    Oct 16, 2015
    Posts:
    85
    yup, just uploaded 800 faulty files, they sat in unreleased, now i dont know what to do. Be nice if i could just delete them wihtout deleting the original files as they unpublished.

    Update:
    One way around this is to create the release. Then go to your old release and promote it to the same bucket. Done.
     
    Last edited: Apr 19, 2023