danielvincent
1072806d8f
PrivateMessage -> Conversation, Message.
2011-03-01 12:25:55 -08:00
danielvincent
a179bac689
fixed migrations, added unread to PrivateMessageVisibilities
2011-03-01 12:25:54 -08:00
danielvincent
9fe0320881
added PrivateMessage and PrivateMessageVisibility models and migrations
2011-03-01 12:14:31 -08:00
Raphael Sofaer
1c1fba63e7
Refactor notification to have subclasses, just a start
2011-03-01 10:30:29 -08:00
Raphael Sofaer
809ee8a678
Started notifications refactor
2011-03-01 10:30:29 -08:00
Raphael Sofaer
a11507d30c
Take out typos for real this time
2011-02-28 16:40:03 -08:00
Raphael Sofaer
a0a901a675
fix typo
2011-02-28 16:27:47 -08:00
Raphael Sofaer
810220bc97
clear disconnected records in migration
2011-02-28 16:24:09 -08:00
Raphael Sofaer
98d8d9e0da
Add the migration
2011-02-28 15:31:12 -08:00
Raphael Sofaer
d8956a7cd5
Add foreign key constraints
2011-02-28 15:18:35 -08:00
MrZYX
edef56c84a
ruby 1.9 ftw (thanks jrichardlai)
2011-02-17 16:20:27 +01:00
Raphael Sofaer
ef9ab553bf
require the called migration within the undo migration
2011-02-17 00:35:33 -05:00
Raphael Sofaer
ff4a049d2d
It turns out that we need to rewrite validates_uniqueness_of :case_sensitive => false
2011-02-16 23:49:35 -05:00
Raphael Sofaer
cac8c586de
Forgot that emails are no longer db-unique
2011-02-12 22:44:09 -08:00
Raphael Sofaer
8fabe0f402
Checking in the migration helps.
2011-02-12 22:41:30 -08:00
Raphael Sofaer
753a113aa9
New splunk logs indicate we need more indicies
2011-02-12 21:47:55 -08:00
Raphael Sofaer
e43cd3a8da
Make error in migration more descriptive
2011-02-11 18:25:58 -08:00
Raphael Sofaer
02a66466fe
Abort migration if there are post-visibilities left, so that the db is not left with no index
2011-02-11 18:25:58 -08:00
Raphael Sofaer
31fef1a55d
typo in table name
2011-02-11 18:25:58 -08:00
Raphael Sofaer
316292c914
mysql2 result is not an array
2011-02-11 18:25:58 -08:00
Raphael Sofaer
2faf3fe10d
delete dup pvs in migration
2011-02-11 18:25:58 -08:00
Raphael Sofaer
88da878c97
Move migration to avoid conflict
2011-02-11 18:25:57 -08:00
Raphael Sofaer
ff0f37ceea
eliminate one source of dup pvs
2011-02-11 18:25:57 -08:00
zhitomirskiyi
34e2b657fd
mend
2011-02-10 19:44:25 -08:00
zhitomirskiyi
66fea22f60
mend
2011-02-10 19:24:16 -08:00
zhitomirskiyi
36d7973005
fixed the problem where notifications are not keeping track of the target id as well as making notifications for a mention be destroyed when a post is
2011-02-10 19:23:01 -08:00
zhitomirskiyi
7b1abacfe6
wip
2011-02-10 12:39:05 -08:00
Raphael Sofaer
7409cd8a27
remove extra sass rule, add db:seed
2011-02-09 16:07:25 -08:00
Raphael Sofaer
7b3a2b07ee
Removed n-query, created mentions table
2011-02-09 16:07:25 -08:00
Sarah Mei
10d96be3c3
someone forgot to check in schema.rb?
2011-02-09 14:45:31 -08:00
zhitomirskiyi
1fbcb3c3e5
added a special case for share bc js being slow
2011-02-03 16:16:45 -08:00
danielvincent
7668e8d262
fix mobile_fu/ipad issue
2011-02-03 14:11:26 -08:00
Raphael
460f25e848
run gladiac's migration, rename migration file so it finds class
2011-02-03 11:55:36 -08:00
Andreas Schneider
aa6d616d69
db: person_id can only be updated if index is updated too.
...
This fixes the following error:
Mysql2::Error: Duplicate entry '0' for key
'index_profiles_on_person_id': ALTER TABLE `profiles` CHANGE `person_id`
`person_id` int(11) NOT NULL
2011-02-02 20:37:55 +01:00
Andreas Schneider
e63b605b2a
db: Create limited varchar to be able to add index.
2011-02-02 20:37:55 +01:00
Andreas Schneider
8bdc3ec35a
db: Alter the import tables to avoid a mysql bug.
2011-02-02 20:37:55 +01:00
Andreas Schneider
2ddd810dea
db: Fixed the migration of the database.
...
The limit down to 127 is needed cause of a long time bug in mysql. The
error message looks like this when creating an index.
Mysql2::Error: Specified key was too long; max key length is 1000 bytes
So with utf8 (3 bytes for one char) you exceed this with two
varchar(255).
See http://bugs.mysql.com/bug.php?id=4541
2011-02-02 20:37:55 +01:00
Sarah Mei
1de4976915
remove histories table from schema.rb. this is why you don't edit or revert migrations >.<
2011-02-02 08:54:57 -08:00
maxwell
d4f99ca080
move search init to search.js, because mobile does not have search to init
2011-02-01 22:13:52 -08:00
zhitomirskiyi
358bf0a856
fix migration on open aspects boolean
2011-02-01 17:56:16 -08:00
zhitomirskiyi
21e3c2ae73
Merge branch 'open-aspects'
...
Conflicts:
app/controllers/aspects_controller.rb
app/controllers/home_controller.rb
app/helpers/application_helper.rb
db/migrate/20110201013408_add_open_aspects_to_user.rb
spec/controllers/aspects_controller_spec.rb
spec/controllers/home_controller_spec.rb
2011-02-01 17:32:08 -08:00
zhitomirskiyi
59f1bff046
storing it as a boolean in the aspect
2011-02-01 17:25:15 -08:00
Raphael
cfd6639f4d
Revert "Merge branch 'open-aspects'"
...
This reverts commit 181bd823c4 , reversing
changes made to 2c3ed2ab73 .
2011-02-01 13:15:20 -08:00
zhitomirskiyi
789ff679a9
persists open aspects across logins also fixed the status message controller spec broken in master
2011-01-31 18:31:41 -08:00
zhitomirskiyi
a789be737a
also making sure that the notification actor id is unique in the keep delete table
2011-01-31 11:42:49 -08:00
zhitomirskiyi
2d078a212a
remove mongo id from the notifications table
2011-01-31 11:31:59 -08:00
zhitomirskiyi
7cb23fd803
added a select for the actor id to group by it
2011-01-31 11:27:56 -08:00
zhitomirskiyi
03e8aa31f4
fixed notifications migration
2011-01-31 11:02:51 -08:00
zhitomirskiyi
17a2c9e311
moving over some code migration successful
2011-01-29 23:34:11 -08:00
zhitomirskiyi
3119fc660f
another space
2011-01-29 20:56:21 -08:00
zhitomirskiyi
2b4d27d2cf
another typo
2011-01-29 18:53:13 -08:00
zhitomirskiyi
5d3e08227e
whitespace
2011-01-29 18:46:05 -08:00
zhitomirskiyi
05cab33dad
notification migration need to try it out
2011-01-29 18:36:04 -08:00
zhitomirskiyi
8c77f65cdb
notes for later
2011-01-29 02:01:40 -08:00
zhitomirskiyi
d7f06b9e6e
removed commented out non working migration code for now
2011-01-28 22:39:29 -08:00
zhitomirskiyi
74e0d03b8f
wip'
2011-01-28 22:39:29 -08:00
zhitomirskiyi
9d4d0cecdb
wip
2011-01-28 22:39:29 -08:00
zhitomirskiyi
f48d7a0826
wip
2011-01-28 22:37:38 -08:00
Raphael
a23290986a
add contacts_visible field in aspects
2011-01-27 13:41:22 -08:00
Raphael
b67aca0ffc
Put in a lot of non nullable fields, edit the specs to match, drop a couple superfluous columns
2011-01-26 18:29:23 -08:00
zhitomirskiyi
906dd8d6d4
added the migration
2011-01-26 16:32:51 -08:00
zhitomirskiyi
1a911a8b99
translation of invitation message, better checking of existing users and unique index on user(invitation_service and invitation_identifier)
2011-01-26 16:01:57 -08:00
zhitomirskiyi
6242ac64ed
removed unique index on email to a regular index in order to make inviting users through fb work (no email present)
2011-01-26 15:04:46 -08:00
zhitomirskiyi
8bc857cf4d
updated devise added a devise_invitable fork and performed migration
2011-01-26 13:46:50 -08:00
zhitomirskiyi
a92d5f41c9
added the migration to invitation_service and invitation_identifier
2011-01-26 12:16:47 -08:00
Raphael
1b6ae9406e
Use raw sql
2011-01-25 12:27:57 -08:00
Raphael
def20a4d31
Make person_id on profile unique, delete duplicate profiles in migration
2011-01-25 12:10:24 -08:00
maxwell
4b63a14198
updating schema
2011-01-24 12:18:38 -08:00
zhitomirskiyi
56831cec63
stats WIP
2011-01-21 10:29:07 -08:00
zhitomirskiyi
f89c442730
statistics class does distributions and averages on its DataPoints
2011-01-21 10:29:07 -08:00
zhitomirskiyi
55bfbfd5b0
added users_with_posts_today to DataPoint
2011-01-21 10:29:07 -08:00
zhitomirskiyi
ecb059b661
added Statistic and DataPoint models
2011-01-21 10:29:06 -08:00
Raphael
2578ac15b6
Add some indicies
2011-01-19 14:29:22 -08:00
maxwell
465dd9ba96
check to see if rails is already loaded in a couple of places
2011-01-19 13:30:12 -08:00
Sarah Mei
dd3f8f4bee
Add compound index to post_visibilities
2011-01-19 00:19:16 -08:00
Raphael
738e8c65c8
Merge almost complete, 4 failures
2011-01-14 16:00:10 -08:00
Raphael
f79c08b235
Add indicies
2011-01-13 16:17:11 -08:00
Raphael
7abd1aceca
Add a couple indicies
2011-01-13 15:13:42 -08:00
Raphael
8885b8a354
Services now importing
2011-01-07 15:19:04 -08:00
Raphael
9bd2de06ee
Services need a mongo_id
2011-01-07 15:14:45 -08:00
Raphael
1187c13170
Import for users, test for aspects import
2011-01-07 13:25:50 -08:00
Raphael
0f8b8bbd5b
update the down for the import table migration
2011-01-06 17:44:38 -08:00
Raphael
89a41826c1
Started raw post import
2011-01-06 17:01:17 -08:00
Raphael
e46b3e6cf3
Import raw services, I think we need to change the name of the type field (is it supposed to be in provider?) other than that, only posts remain.
2011-01-06 16:23:18 -08:00
Raphael
283a5501be
Boolean values aren't importing; we may need SET statements for them
2011-01-06 14:58:42 -08:00
Raphael
7c4d35cf28
raw import of notifications, failing to pull in unread
2011-01-06 14:37:59 -08:00
Raphael
564dd993b7
raw import of Invitation
2011-01-06 14:30:38 -08:00
Raphael
a1419b9dc0
Person#owner_mongo_id should be null if the csv has an empty string
2011-01-06 14:16:51 -08:00
Sarah Mei
75ac7e91c8
Refactor ImportToMysql; add import_raw. Add rake task for import.
...
Remove unique constraint on index on mongo_requests.
2011-01-05 23:54:22 -08:00
Raphael
ff1cad6e63
raw import for requests
2011-01-05 17:38:00 -08:00
Raphael
0d80ded2d3
Raw import for post_visibilities
2011-01-05 17:25:11 -08:00
Raphael
b34acfd4eb
Add contact raw import, fixtures have no comments
2011-01-05 16:40:16 -08:00
Raphael
e4ef2641f8
raw import of aspects and aspect memberships
2011-01-05 15:40:04 -08:00
Sarah Mei
7f86a9e1ba
ImportToMysql now loads users.csv. Spec currently failing on datetime conversion.
2011-01-04 22:43:32 -08:00
Raphael
16d7ccdf0b
fix youtube title stting
2011-01-04 11:48:02 -08:00
Philip Champon
607fea6722
Handling bug http://bugs.joindiaspora.com/issues/767
...
Added email argument to task, warn and replace if address resolves to
an invalid user@domain one.
2010-12-31 14:53:32 +01:00
Sarah Mei
f18439fa14
ZOMG specs pass on mysql!
...
Make '_type' column on services into 'type'.
2010-12-28 21:08:54 -08:00
Alec Leamas
122d1142b9
Fixing "Can't modify frozen string" error messages from rake db:first_user
2010-12-28 18:07:09 +01:00
Raphael
a6dcaa2327
Photo specs passing, 9 failures left in mysql
2010-12-26 20:33:21 -08:00
Raphael
b642cd6840
Merging master into mysql
2010-12-26 16:30:17 -08:00
Sarah Mei
a13136a4dc
Clean up first_user rake tasks; create add_user rake task
2010-12-24 13:46:25 -08:00
Michael Sofaer and Raphael Sofaer
44093c9342
Status message spec now passes
2010-12-23 12:56:49 -08:00
Raphael
baf0533466
logical failures on person spec, 25 failing model specs
2010-12-21 18:59:28 -08:00
Raphael
cbda6b8c58
58 failures with mysql
2010-12-21 17:14:52 -08:00
Raphael
319452537e
Below 70 failures, GUIDs are next
2010-12-21 15:46:15 -08:00
Raphael
659dfd36ed
Querying spec passes, 63 model spec failures
2010-12-20 18:49:07 -08:00
Raphael
4c47d8334c
Add PostVisibility model, some more specs working
2010-12-20 13:23:05 -08:00
Raphael
d44e76a6aa
Down to 250 failures in mysql
2010-12-20 00:36:48 -08:00
Raphael
0c67e271df
Services are in mysql, contact_for and add_contact_to_aspect work again
2010-12-19 13:11:41 -08:00
Raphael
232de40457
Only service hasn't been migrated, there are a good 100 passing examples in mysql
2010-12-19 12:27:32 -08:00
Mike Sofaer, Raphael Sofaer & Sarah Mei
5c21e220ff
post_spec now passes with mysql
2010-12-18 20:23:16 -08:00
Mike Sofaer, Raphael Sofaer & Sarah Mei
58f757b91d
profile_spec is passing with mysql... baby steps.
2010-12-18 18:45:55 -08:00
Raphael
e539688e1c
Fix rake db:reset
2010-12-15 11:28:50 -08:00
Alec Leamas
308c653945
Cleaning up db:first_user patch.
...
Removing duplicated reset task (what happened?). Hate long lines.
Let user.rb handle all error checks. Clean up.
2010-12-02 15:24:10 +01:00
Alec Leamas
1a8e0788c2
Add rake task db:first_user.
...
Purges database and adds a user without development dependencies.
Closes http://bugs.joindiaspora.com/issues/548 . Note error handling
for User.build...
2010-12-02 12:00:44 +01:00
danielvincent
a21af7cac6
friend_users -> connect_users in helper_methods
2010-11-12 20:22:54 -08:00
maxwell
3c16a46f0e
MS IZ updated the backer script to use aspects.create
2010-11-01 14:54:40 -07:00
danielvincent
b08c4fb84e
removed user#aspect method. all aspect creation should be scoped through the user -> aspect association proper: user.aspects.create(opts)
2010-10-31 12:34:26 -07:00
Raphael
fd2fac865b
Without typos
2010-10-28 18:07:17 -07:00
Raphael
83f8cbbb5c
Try fixing db:seed:backer
2010-10-28 18:02:06 -07:00
zhitomirskiyi
a5099bb89f
IZ moved methods found in spec helper to helper methods file. now we can include them in the db scripts to keep friending behavior in sync
2010-10-27 10:32:09 -07:00
ilya
a60287348d
not overwriting app config if it already exists
2010-10-22 19:13:35 -07:00
maxwell
494a0e2d3f
updating the db script for dev to set the default pictures
2010-10-20 18:24:09 -07:00
ilya
02c0bf3c43
fixed the seed script
2010-10-20 14:52:17 -07:00
Raphael
961510a8ed
Rename instantiate! to build, no more raising in build, no saving in build, no seeding of aspects in build.
2010-10-20 11:03:47 -07:00
Raphael
41a0718fc2
Don't overwrite existing pod_url in db:seed:dev
2010-10-18 12:56:22 -07:00
Raphael
c287e30f07
fix db seeds
2010-10-14 14:46:46 -07:00
Raphael
1fd3aeabd9
Add or later to license notice
2010-10-07 16:25:34 -07:00
ilya
08b9aa864a
Merge branch 'master' of github.com:diaspora/diaspora into fb
...
Conflicts:
app/views/layouts/application.html.haml
app/views/shared/_publisher.haml
app/views/shared/_sub_header.haml
app/views/users/edit.html.haml
config/deploy_config.yml
config/routes.rb
2010-09-27 15:39:50 -07:00
Sarah Mei
17757a2e2d
Merging upstream changes
2010-09-25 15:57:59 -07:00
Stephen Caudill
536cea5e44
Remove consecutive empty lines
2010-09-25 12:06:39 -04:00
Sarah Mei
e3ec00595d
Cleaned up file path joining in some of the dev utilties.
...
Backfilled tests where necessary to make sure changes didn't break existing code.
2010-09-25 04:34:48 -07:00
Raphael
1f62f910e3
fix requires in db seeds
2010-09-24 14:43:23 -07:00
ilya
a6c1ff8ce2
fixed the deploy scripts
2010-09-23 20:21:17 -07:00
danielvincent
8941975224
DG IZ; example extension convention for app_config
2010-09-22 10:59:23 -07:00
ilya
96aaf3093c
Make load_app_config more robust, point to the right folder in db seed
2010-09-21 18:04:36 -07:00
ilya
e3d52bb467
putting the config file in a shared directory for in the deploy scripts
2010-09-21 17:39:44 -07:00
ilya
020ff603bd
terse_url in user, db seeds are fixed, config/app_config.yml is now in gitignore, copy over config/app_config_example.yml.
2010-09-21 16:59:06 -07:00
ilya
c8e52526d9
another silly mistake, need to symbolize keys in deploy scripts
2010-09-21 16:31:27 -07:00
ilya
dc0a08172d
syntax error in seed script
2010-09-21 16:23:42 -07:00
ilya
d3b0b9c07e
Make db seed set app_config[:pod_url]
2010-09-21 16:13:21 -07:00
maxwell
fc9cddc7b8
make the remote tom work
2010-09-20 15:40:43 -07:00
Raphael
c67a8ea100
Merge branch 'master' of github.com:diaspora/diaspora into production
...
Conflicts:
config/deploy.rb
config/environments/production.rb
spec/models/request_spec.rb
2010-09-15 22:37:05 -07:00
Jamie Wilkinson
fbdd50172d
Cleanup stray whitespace
2010-09-16 10:07:59 +08:00
Raphael
de93fd2818
Merge branch 'master' of github.com:diaspora/diaspora into production
2010-09-15 18:10:13 -07:00
Raphael
708e9f88a5
Spell our own name right
2010-09-15 17:56:18 -07:00
Raphael
33048fe6db
Merge branch 'master' of github.com:diaspora/diaspora into production
...
Conflicts:
app/models/user.rb
spec/models/aspect_spec.rb
2010-09-15 17:24:00 -07:00
Raphael
bf33313bf9
take out index, change backer seed, no puts
2010-09-15 17:13:17 -07:00
Raphael
e0ffc8bba0
First pass at having a custom registrationsController
2010-09-15 16:40:03 -07:00
Daniel Vincent Grippi
ee89bfaf8f
removed do bad things
2010-09-15 16:18:33 -07:00