Comments (6)
@melanie-exygy this is what was settled on in the PRD (see comments here). It makes sense to me, since this is a manual process, I think it's less likely that an admin would be importing an identical program and more likely they would be importing a different program that happens to have the same admin name.
from civiform.
Yes, if an active status is not found for a give program, the code will throw an exception. If not importing the current status data, we should provide a way to create an empty status in the code.
// Create a new row in ApplicationStatuses table for the new program applicationStatusesRepository.createOrUpdateStatusDefinitions( adminName, new StatusDefinitions());
from civiform.
Couldn't we end up with a lot of duplicate programs? What about replacing the existing program if the name already exists?
from civiform.
I left a more detailed comment on the PRD. But I do see it being common that a program would be imported with the same name. Example
- Make program on Test environment
- Export -> Import to prod v1
- Make changes to program on Test
- Export -> import to prod making a v2
from civiform.
@rockycodes - Just letting you know we need to move the statuses data for that program from the ApplicationStatuses table too. So, if we are going with Option -1 (changing the admin name of the program, the admin name is the primary key in the statuses table. We should be changing it as well.)
from civiform.
@swatkat1 thank you for the reminder! I talked with Isabel/product a couple of weeks ago and the recommendation was to not migrate statuses for v1 of this work, but add that in for v2. Do you see any issues with ignoring statuses from a technical perspective?
from civiform.
Related Issues (20)
- Change string for "Save and finish application later" Link HOT 4
- From the homepage, clicking “Apply” on a card navigates to page 1 of application
- [Program Migration] Fix frontend cosmetic issues
- [Program Migration] Allow admins to ctrl+a to select all when exporting a program
- Don't allow tags on pre-screener
- Change the heading of the filtered program section from "Recommended" to "Programs based on your selections"
- [RESEARCH] Full audit needed of a11y on mobile view HOT 2
- Program filters title styling HOT 2
- [Program Migration] Prevent setting block ids to negative numbers
- [Program Migration] Allow large programs to be imported
- [Program Migration] Prevent importing prescreener if one already exists
- [Program Migration] Handle server errors
- "Application confirmation" page shows "Create an account" alert when user is logged in
- [TDD] North Star Program Preview Page
- Delete Program Review page
- From the homepage, click “View details” to navigate to the (new) program overview page HOT 5
- Remove Triggers related to statuses from CiviForm
- Dev-pgadmin script fails occasionally on error
- Markup has two header landmark elements
- Oncall: 2024-09-23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from civiform.