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

Removed app specific unique params when importing/exporting to avoid error #3736

Closed
wants to merge 4 commits into from

Conversation

numcys
Copy link
Contributor

@numcys numcys commented Jul 30, 2024

What is the feature/fix?

Fix: Prevent Unique App Parameters from Being Copied During convox apps import

We have fixed an issue where unique app parameters were incorrectly copied during the convox apps import process, causing import failures. This update now removes these unique parameters before the import, ensuring a smoother and error-free process.

Why is this important?

This fix ensures that app-specific parameters remain unique during imports, avoiding configuration conflicts and preserving the integrity of each application's settings. This is particularly useful when migrating applications between environments, performing backup and restore operations, or cloning applications for development and testing purposes.

Does it have a breaking change?

There are no breaking changes introduced with this fix.

How to use/test it?

  1. Update your rack to the latest version (20240809110958 or later):

    $ convox rack update -r rackName
    
  2. Export and Import your app using the updated commands:

    • To export an app:
    $ convox apps export -a appName
    
    • To import an app:
    $ convox apps import -a appName
    

Requirements

To use this fix, you must be on at least rack version 20240809110958.
You can check your rack's version with the command convox rack -r rackName.
Update your rack to the latest version with the command convox rack update -r rackName.

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.15%. Comparing base (1a027ce) to head (83f3b42).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3736      +/-   ##
==========================================
- Coverage   33.17%   33.15%   -0.02%     
==========================================
  Files         183      183              
  Lines       20553    20556       +3     
==========================================
- Hits         6818     6816       -2     
- Misses      12585    12591       +6     
+ Partials     1150     1149       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pkg/cli/apps.go Outdated Show resolved Hide resolved
@nightfury1204 nightfury1204 changed the title removed app unique params from import Removed app specific unique params when importing/exporting to avoid error Aug 7, 2024
nightfury1204 added a commit that referenced this pull request Aug 8, 2024
…o avoid error

### What is the feature/fix?

Encountered error where some app parameters which are unique to every app, were being copied while doing app import, this caused failure in copying app parameters while using `convox apps import` . To resolve this before importing app parameters, we are removing the unique parameters.
@nightfury1204 nightfury1204 mentioned this pull request Aug 8, 2024
4 tasks
nightfury1204 added a commit that referenced this pull request Aug 9, 2024
…o avoid error

### What is the feature/fix?

Encountered error where some app parameters which are unique to every app, were being copied while doing app import, this caused failure in copying app parameters while using `convox apps import` . To resolve this before importing app parameters, we are removing the unique parameters.
@nightfury1204 nightfury1204 deleted the fix/app-params-import branch September 6, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants