Comments (4)
I've decided the way to fix this is to add db-level uniqueness constraints for a (user,url,type='whitelist/blacklist'). In order to do that, I need to make FilterListItem an abstract class. I think this makes the best sense, since nowhere do we need/want a FilterListItem obj on its own. I have a prototype of the models here: https://github.com/amyxzhang/eyebrowse-server/blob/3-dont-allow-duplicate-wblistitems/api/models.py
Making the data migration itself is not a simple process however, if we want to keep the current data intact. How important is it to keep our current data? if we want to do it, we can using south: http://stackoverflow.com/questions/7108899/using-django-south-to-move-from-concrete-inheritance-to-abstract-inheritance
Thoughts?
from eyebrowse-server.
I think it’s best to keep the current data set since it allows us to have some data to work with for aggregates and analytics and is also a good set of test data. I’ve never done abstract classes migrations before but shouldn’t South take care of most of the details?
Josh
On Nov 9, 2013, at 2:45 PM, Amy Zhang [email protected] wrote:
I've decided the way to fix this is to add db-level uniqueness constraints for a (user,url,type='whitelist/blacklist'). In order to do that, I need to make FilterListItem an abstract class. I think this makes the best sense, since nowhere do we need/want a FilterListItem obj on its own. I have a prototype of the models here: https://github.com/amyxzhang/eyebrowse-server/blob/3-dont-allow-duplicate-wblistitems/api/models.py
Making the data migration itself is not a simple process however, if we want to keep the current data intact. How important is it to keep our current data? if we want to do it, we can using south: http://stackoverflow.com/questions/7108899/using-django-south-to-move-from-concrete-inheritance-to-abstract-inheritance
Thoughts?
—
Reply to this email directly or view it on GitHub.
from eyebrowse-server.
If I just follow the instructions it should be fine? I'll migrate the abstract change first before doing any of the others. Are you happy with the model change? If so I'm going to go ahead with the migrations one by one. Do we already use south?
from eyebrowse-server.
We've been using django-evolution, but I’m fine with using South instead. I think the model change is good, can you first duplicate the database and run some tests for the migrations on a local copy?
On Nov 9, 2013, at 5:11 PM, Amy Zhang [email protected] wrote:
If I just follow the instructions it should be fine? I'll migrate the abstract change first before doing any of the others. Are you happy with the model change? If so I'm going to go ahead with the migrations one by one. Do we already use south?
—
Reply to this email directly or view it on GitHub.
from eyebrowse-server.
Related Issues (20)
- NotificationType Setup
- actually be able to see who is online currently instead of just a number
- Write script to cap time for all visits that are > ~20 min
- way to only see items on a feed that have comments
- sometimes green check in extension is there even when not tracking
- Clean up Browser Extension webpage
- Rethink the left side menu for all the pages
- Unicode bug
- cut off end of url for specific sites HOT 2
- alerts when someone has turned off eyebrowse for too long
- when adding a new note or visiting a page, add to popularhistory item if it exists
- be able to filter by items with notes only
- @ suggestions in extension should be more than just followees
- status 500 twitter connection HOT 1
- time out old comments in extension popup
- need to convert FavData totaltime from ms to seconds or minutes
- broken twitter logo image HOT 1
- twitter icon broken HOT 1
- get rid of footer in auto-scroll feed HOT 2
- Create "safe" version of eyebrowse firehose which is on by default
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 eyebrowse-server.