diaspora/db/migrate
Marco Gallardo 4aab8762fa Locator feature
added marker image for publisher, showing div for address, and added
functionality to close it when clicking 'X' image

showing marker image in publisher

renamed map-marker to locator

fixed style for map marker image in publisher

added locator.js to get user's location

loading google maps api

removed unecessary append and showing location next to publisher

moved location address inside div and  added image to close location

styled div location address an image to close location

removing location when clicking close image

cleaned code

cleaned code

showing loader while location is being obtained, translated normal js to
backbone structure, created locations db stuff, and removing location
div when clicking 'share'

refactored code; started to move code to backbone

refactored js code; moving functionality to backbone structure

created address function to make accessible address variable value

refactored locator.js

showing and removing location div from dom

created location; it belongs_to status_message

added location model and created association with status_message

added hidden field for location address and added respective code on js files to retrieve it on ajax call

saving location for status_message (post)

removing location when sharing

renamed locator backbone view to location, added template, showing
location, and saving lat and lng

prepared and added template to show location

added location to post model in order to have it accessible in backbone

retrieving location to show it in template

removed console.log XD

fixes when removing location

cleanind location_address hidden field when location is removed

more fixes; showing location when sharing

saving location just when it exists

created method to retrieve location address just when location was created

fixed issue about showing 'Near from' message when there was not any location

added style for location

cleaned code

renamed locator view

retrieving lat and lng from locator.js

saving lat and lng in location_coords

saving lat and lng

added style for input location_address

removed location_address  hidden field; the value will be taken directly from input with the location

replaced div with location for input; the user will be able to edit the place

avoiding submitting the form when pressing Enter key on new input for location

added missed spec file for location model

refactored location_view code

refactored location_view code

cleaned code

added sinon library for testing

added describes for new publisher's view functions

created test for destroyLocation function

added test for showLocation publisher view function

created test for avoidEnter publisher view function

removed unnecessary div

Created first test for locations view, added more specs, added Sinon.js,
and fixed issue with assets

loading locator.js for tests

moved location stuff to app/assets

moved locator.js and sinon.js to app/assets

fixed route for images

included locator.js to assets

fixed issue when post object is different than StatusMessage; also fixed issue with lat and lng

loading Sinon for specs

refactoring locator errorGettingposition and start replacing google maps stuff with OSM

added OpenLayers JS, osmlocator, and added them into the main js

changing the locator from Google to OSM instance

changing lat and lng value in the backbone view

removing google javascript tag in application layout

adding jasmine to locator test and removed locator.js

adding jasmine to locator test using OSM

adding Jasmine test to OSM locator

removed locator.js

removed require locator and updated schema

fixed js response; added location

since we are using OSM Locator we don't need locator-spec test

fixed spec for location view; we are not using google maps anymore

changed description of osmlocator-spec

fixed issue with status-message-location template

fixed style for location_address textbox

fixed tests for locator

moved split function to model

created test for location model

removed puts

added effect for location marker

added translations for locator

removed conflicting-unnecessary lines that were loading files for specs

removed sinon library; using sinon-rails gem

removed useless code

removed puts; added Rails.logger.error

added sinon.js file

added specific version of sinon-rails gem

improving validations sintax

using openlayers-rails gem

removed 'google API' text

using sinon gem

isolating LocationStream view

refactored validation

getting location when post is a Reshare

refactored code

fixed aligment for elements under location message

improved styling for location message

refactored begin-rescue block

getting absolute root instead of just the root

added address method to retrive address of location

removed code from Post model; also added descriptinon why it was removed

removed validation when retrieving address; with latest refactorizations we dont need them any more

interpolated location; using file in locales

fixed width for div of location

moved Sinon gem into development and test group

fixed method's description

added missed indexes

updated schema with locations table

removed openlayers-rails gem

preventing location to be saved if there are not coordinates

fixed spec; wrong closing tag
2013-05-02 17:31:53 -05:00
..
0000_create_schema.rb update root migration so that later migrations do not fail 2012-09-14 15:24:53 +02:00
20110105051803_create_import_tables.rb update devise 2012-09-12 13:29:57 +02:00
20110119060243_add_index_to_post_visibilities.rb
20110119221746_add_indicies.rb
20110120181553_create_statistics.rb stats WIP 2011-01-21 10:29:07 -08:00
20110120182100_create_data_points.rb
20110123210746_alter_string_columns.rb run gladiac's migration, rename migration file so it finds class 2011-02-03 11:55:36 -08:00
20110125190034_unique_index_on_profile.rb Only run the data migration if there are profiles in the db 2011-06-27 10:26:12 -07:00
20110126015407_add_invitation_service_and_invitation_identifier_to_user.rb Make migrations compatible with postgres 2011-03-02 11:05:16 -08:00
20110126200714_add_contacts_visible.rb Make migrations compatible with postgres 2011-03-02 11:05:16 -08:00
20110126225202_remove_unique_index_on_email_on_users.rb 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
20110126232040_add_unique_index_on_invitation_service_and_invitation_identifier_to_users.rb db: Create limited varchar to be able to add index. 2011-02-02 20:37:55 +01:00
20110127000931_drop_extra_columns.rb 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
20110127000953_make_fields_not_null.rb db: person_id can only be updated if index is updated too. 2011-02-02 20:37:55 +01:00
20110130072907_notification_multiple_people.rb Make migrations compatible with postgres 2011-03-02 11:05:16 -08:00
20110202015222_add_open_to_aspects.rb fix migration on open aspects boolean 2011-02-01 17:56:16 -08:00
20110209204702_create_mentions.rb Removed n-query, created mentions table 2011-02-09 16:07:25 -08:00
20110211021926_fix_target_on_notification.rb Make migrations compatible with postgres 2011-03-02 11:05:16 -08:00
20110211204804_unique_index_post_visibilities.rb Make migrations compatible with postgres 2011-03-02 11:05:16 -08:00
20110213052742_add_more_indicies.rb It turns out that we need to rewrite validates_uniqueness_of :case_sensitive => false 2011-02-16 23:49:35 -05:00
20110217044519_undo_adding_indicies.rb Rails.root and File.join cleanup 2012-06-11 03:13:20 -07:00
20110225190919_create_conversations_and_messages_and_visibilities.rb Shorten index name for everybody, including mysql & postgres users. 2011-09-03 22:05:32 -07:00
20110228180709_notification_subclasses.rb Refactor notification to have subclasses, just a start 2011-03-01 10:30:29 -08:00
20110228201109_foreign_key_constraints.rb Take out typos for real this time 2011-02-28 16:40:03 -08:00
20110228220810_rename_post_to_parent_and_creator_to_author.rb broke out some comment logic to a replayable module 2011-03-01 12:28:33 -08:00
20110228233419_add_signatures_to_message.rb private messages wip 2011-03-01 12:28:34 -08:00
20110301014507_rename_person_to_author.rb posts now have authors instead of people 2011-03-01 18:05:05 -08:00
20110301202619_drop_statistics.rb drop_table (with later versions of Rails?) doesn't work with PostgreSQL with a non-root DB user. 2011-12-12 22:55:21 -05:00
20110311000150_acts_as_taggable_on_migration.rb TAGS ARE SO COOL 2011-03-10 18:37:45 -08:00
20110311183826_create_user_preferences.rb email prefs are now saved. need more tests and use it in user#mail 2011-03-11 15:42:53 -08:00
20110311220249_downcase_tags.rb Make things more postgres compatible 2011-04-05 09:49:39 -07:00
20110313015438_rename_text_fields.rb Make things more postgres compatible 2011-04-05 09:49:39 -07:00
20110314043119_drop_import_tables.rb Rails.root and File.join cleanup 2012-06-11 03:13:20 -07:00
20110317222802_guid_is_unique.rb Fix up migration 2011-03-17 17:42:56 -07:00
20110318000734_create_service_users.rb service users is green 2011-03-21 14:56:50 -07:00
20110318012008_delete_disconnected_notifications.rb Delete newly created disconnected notifications 2011-03-17 18:30:34 -07:00
20110319005509_add_processed_to_post.rb add processed to post, which is set to default false for photos 2011-03-18 18:51:53 -07:00
20110319172136_add_likes.rb Make likes dependent delete, rather than dependent restrict. The fk in the former migration had dependent spelled wrong, and it silently failed 2011-06-03 14:38:42 -07:00
20110321205715_unprocessed_image_uploader.rb Rails.root and File.join cleanup 2012-06-11 03:13:20 -07:00
20110323213655_add_location_to_profile.rb added location to the profile 2011-03-23 15:56:46 -07:00
20110328175936_add_hidden_to_post_visibilities.rb Don't index on just hidden 2011-03-30 19:17:52 -07:00
20110328202414_post_visibilities_on_contacts.rb Undo some pg changes 2011-06-19 16:16:30 +02:00
20110330175950_tag_uniqueness.rb Finish tags migration 2011-03-30 11:53:40 -07:00
20110330230206_pm_foreign_keys.rb Don't run non pg compatible migrations on empty tables 2011-06-19 16:16:30 +02:00
20110331004720_add_hidden_indicies.rb Don't index on just hidden 2011-03-30 19:17:52 -07:00
20110405170101_fix_stream_queries.rb Using union in stream query 2011-04-05 11:40:32 -07:00
20110405171412_contact_remove_pending_add_sharing_and_receiving.rb Don't run non pg compatible migrations on empty tables 2011-06-19 16:16:30 +02:00
20110406202932_drop_requests_table.rb drop_table (with later versions of Rails?) doesn't work with PostgreSQL with a non-root DB user. 2011-12-12 22:55:21 -05:00
20110406203720_tag_name_uniqueness.rb Don't run non pg compatible migrations on empty tables 2011-06-19 16:16:30 +02:00
20110421120744_downcase_usernames.rb Don't run non pg compatible migrations on empty tables 2011-06-19 16:16:30 +02:00
20110507212759_remove_type_null_notifications.rb This should fix any 500 at notifications-page. Thanks @MrZYX an Chandler 2011-05-07 23:36:10 +02:00
20110513175000_eliminate_stray_user_records.rb Don't run non pg compatible migrations on empty tables 2011-06-19 16:16:30 +02:00
20110514182918_update_devise_invitable.rb Devise invitable changed the meaning of t.invitable 2011-05-14 11:32:01 -07:00
20110517180148_delete_all_new_request_notifications.rb Don't run non pg compatible migrations on empty tables 2011-06-19 16:16:30 +02:00
20110518010050_disable_password_reset_for_accounts_without_usernames.rb Don't run non pg compatible migrations on empty tables 2011-06-19 16:16:30 +02:00
20110518184453_add_token_auth_to_user.rb added token authenticatable to user model 2011-05-19 11:57:06 -07:00
20110518222303_add_column_for_activity_streams_photo.rb Bookmark -> ActivitiyStreams::Photo 2011-05-19 11:57:06 -07:00
20110524184202_add_object_id_to_post.rb Don't run non pg compatible migrations on empty tables 2011-06-19 16:16:30 +02:00
20110525213325_add_root_id_to_posts.rb Reshares and reshare retractions are green. 2011-07-22 16:00:19 -07:00
20110527135552_photo_status_message_association_on_guid.rb ActiveRecord::Base.record_timestamps didn't actually stop timestamps from being updated 2011-06-01 12:02:14 -07:00
20110601083310_add_unconfirmed_email_to_users.rb Added User#unconfirmed_email and #confirm_email_token with specs 2011-06-01 16:26:53 +02:00
20110601091059_add_confirm_email_token_to_users.rb Added User#unconfirmed_email and #confirm_email_token with specs 2011-06-01 16:26:53 +02:00
20110603181015_lockable_users.rb move account deletion out of a tranaction and into a job 2011-06-03 12:05:57 -07:00
20110603212633_likes_dependent_delete.rb Make likes dependent delete, rather than dependent restrict. The fk in the former migration had dependent spelled wrong, and it silently failed 2011-06-03 14:38:42 -07:00
20110603233202_drop_aspects_open.rb Rails.root and File.join cleanup 2012-06-11 03:13:20 -07:00
20110604012703_drop_mongo_remains.rb drop_table (with later versions of Rails?) doesn't work with PostgreSQL with a non-root DB user. 2011-12-12 22:55:21 -05:00
20110604204533_index_on_remember_token.rb Add Index on users remember token, should make login much faster 2011-06-04 13:47:56 -07:00
20110606192307_drop_mongo_ids.rb Actually take out the mongo_ids 2011-06-07 11:38:32 -07:00
20110623210918_add_o_auth2_support.rb typo in oauth2 migration 2011-06-29 12:39:59 +02:00
20110701215925_create_tag_followings.rb Add null false on tag_followings fields 2011-07-05 16:29:48 -07:00
20110705003445_counter_cache_on_post_likes.rb Update the Post counter caches when adding the counter cache column 2011-07-05 08:47:40 -07:00
20110707221112_index_taggings_created_at.rb Sort on and index taggings, ftw 2011-07-07 15:14:29 -07:00
20110707234802_likes_on_comments.rb 4 failures left in postgres 2011-08-17 14:18:51 -07:00
20110710102747_add_order_id_to_aspects.rb Issue #842: Sortable aspects 2011-07-10 20:37:11 +02:00
20110729045734_add_full_name_to_profile.rb 4 failures left in postgres 2011-08-17 14:18:51 -07:00
20110730173137_create_pods.rb add basic pod error logging, and added guard and removed autotest 2011-07-30 11:44:27 -07:00
20110730173443_create_pod_stats.rb add basic pod error logging, and added guard and removed autotest 2011-07-30 11:44:27 -07:00
20110812175614_add_username_to_service_users.rb Start saving the usernames of facebook users 2011-08-12 13:20:25 -07:00
20110815210933_remove_invite_counter_from_user.rb removed user invite counter, as it was already depricated 2011-08-15 15:15:43 -07:00
20110816061820_add_fields_to_invitations.rb MS DG IZ major invite refactor. all tests are green minus weird stuff on dans computer, need to checkout this out on pivots 2011-08-17 16:28:21 -07:00
20110818212541_add_identifier_to_existing_invitations.rb Make latest migration postgres compatible 2011-08-19 15:55:27 -07:00
20110830170929_remove_pod_stats_table.rb drop_table (with later versions of Rails?) doesn't work with PostgreSQL with a non-root DB user. 2011-12-12 22:55:21 -05:00
20110907205720_add_indexes_to_serivces.rb db: Fixed the migration of the database. 2011-09-26 13:05:00 +02:00
20110911213207_counter_cache_on_post_comments.rb added counter cache for photos on StatusMessage 2011-12-16 20:39:24 -08:00
20110924112840_create_o_embed_caches.rb Added oEmbed support 2011-10-11 16:08:47 -07:00
20110926120220_fix_indexes_to_serivces.rb db: Fixed the migration of the database. 2011-09-26 13:05:00 +02:00
20110930182048_add_root_guid_index_to_posts.rb added an index to root_id 2011-09-30 11:35:07 -07:00
20111002013921_fix_data_type_for_activity_streams_object_id.rb fixing wrong datatype on activity streams objectId 2011-10-01 19:07:11 -07:00
20111003232053_add_index_for_reshares.rb added reshare to mobile site 2011-10-03 17:02:23 -07:00
20111011193702_add_oembed_cache_to_posts.rb wip oembed refactor. still need to make a oembed_helper, and move some tests to their new home, but e but we are looking preeeetttttyyyy good. 2011-10-11 16:10:14 -07:00
20111011194702_comment_anything.rb lmiting the type column on share_visibilities and comments 2011-10-18 16:08:30 -07:00
20111011195702_share_anything.rb Added PostgreSQL-compatible versions of raw SQL migration code in ShareAnything migration. 2011-10-18 20:50:51 -04:00
20111012215141_move_photos_to_their_own_table.rb Fixed Pistos' issue in downmigration 2011-10-23 15:23:39 +02:00
20111016145626_add_language_to_invitations.rb make language for email-invitation available 2011-10-31 21:11:47 +01:00
20111018010003_add_back_indexes.rb lmiting the type column on share_visibilities and comments 2011-10-18 16:08:30 -07:00
20111019013244_postgresql_photos_id_seq_init.rb Set photos_id_seq properly for PostgreSQL (re: recent "MovePhotosToTheirOwnTable" migration, which neglected to do this). 2011-10-18 21:57:15 -04:00
20111021184041_add_community_spotlight_in_stream.rb DG MS; added setting for displaying spotlight members in soup stream 2011-10-21 14:44:02 -07:00
20111023230730_fix_photo_share_visibilities.rb PostgreSQL compatibility for FixPhotoShareVisibilities migration. 2011-10-23 21:03:54 -04:00
20111026173547_add_missing_tag_followings_indices.rb removing duplicate tag followings 2011-10-26 14:24:35 -07:00
20111101202137_create_blocks.rb wip 2011-11-03 12:31:24 -07:00
20111103184050_add_closed_account_flag_to_person.rb ms iz wip, clearing profile, started deleting post visibilities 2011-12-08 16:32:18 -08:00
20111109023618_create_account_deletions.rb change close account to clear profile, still need to dispatch account deletion xml 2011-12-08 16:32:19 -08:00
20111111025358_counter_cache_on_post_reshares.rb Added MySQL-friendly version of SQL code for migration. 2011-12-19 17:12:17 -05:00
20111114173111_add_auto_follow_back_to_users.rb Revert "Revert "auto follow back feature"" 2012-01-04 13:49:56 +01:00
20111207230506_add_oauth_redirect_uri_to_oauth_clients.rb fix diaspora connect for the new oauth stuff WIP. There's one bug where the oauth_identifier changes but the client doesn't get informed or doesn't save it. I hope it's the last bug. Btw. this is all ugly 2011-12-10 12:54:39 +01:00
20111207233503_remove_low_length_limits_from_oauth_tables.rb fix diaspora connect for the new oauth stuff WIP. There's one bug where the oauth_identifier changes but the client doesn't get informed or doesn't save it. I hope it's the last bug. Btw. this is all ugly 2011-12-10 12:54:39 +01:00
20111211213438_create_invitation_codes.rb invite_link functionailty mostly works 2012-03-16 17:56:35 -07:00
20111217042006_add_photo_counter_cache_to_post.rb added counter cache for photos on StatusMessage 2011-12-16 20:39:24 -08:00
20120107220942_move_recently_hidden_posts_to_user.rb Rails.root and File.join cleanup 2012-06-11 03:13:20 -07:00
20120114191018_remove_photos_count_from_post.rb remove cache counter for photos, as it was causing too many edge-case errors & added complexity across models 2012-01-14 15:40:43 -08:00
20120127235102_add_nsfw_to_profiles.rb a user can mark themselves as nsfw 2012-02-07 19:03:20 -08:00
20120202190701_remove_public_share_visibilities.rb Fix migration for MySQL 2012-02-03 21:12:44 -08:00
20120203220932_add_interacted_at_to_posts.rb MS DG DC Participate stream that has things bubble to the top 2012-02-03 17:23:57 -08:00
20120208231253_create_participations.rb Participations are a federated, relayable model :) 2012-02-09 19:01:00 -08:00
20120301143226_remove_youtube_titles.rb remove unused youtube_titles from comments and posts 2012-03-01 15:37:20 +01:00
20120322223517_add_template_name_to_posts.rb MS DC You can has choose a template 2012-03-27 14:52:53 -07:00
20120328025842_remove_invitation_email_from_users.rb change concat() to || for pgSQL 2012-03-30 11:45:50 -07:00
20120330103021_indexes_on_participation.rb Indexes on participation table 2012-04-01 19:16:04 -07:00
20120330144057_indexes_on_posts.rb New index for posts table. interacted_at still missing 2012-04-01 19:16:04 -07:00
20120405170105_create_locations.rb Locator feature 2013-05-02 17:31:53 -05:00
20120414005431_create_rails_admin_histories_table.rb rails_admin; i do what i want 2012-04-13 18:08:52 -07:00
20120420185823_add_width_and_height_to_photos.rb we now store image height and width locally; still need to federate the values 2012-04-20 12:22:12 -07:00
20120422072257_add_favorite_to_post.rb fix favorite migration for postgres, thanks [JT] [ci skip] 2012-04-23 18:43:23 +02:00
20120427152648_create_roles.rb Role system to replace the yml admins and community spotlight. we can 2012-04-27 16:14:43 -07:00
20120506053156_add_wallpaper_to_profile.rb upload wallpaper for great success. 2012-05-06 12:35:11 -07:00
20120510184853_drop_service_users.rb fix service user migration 2012-05-14 18:36:25 -07:00
20120517014034_remove_oauth.rb kill your darlings; remove diaspora_client with fire 2012-05-17 14:55:53 -07:00
20120519015723_remove_multi_photo_frame_reference.rb add rounded buttons to the composer flow; slay multi-photo option 2012-05-18 19:46:51 -07:00
20120521191429_remove_rich_media_type.rb kill rich-media type with fire 2012-05-21 12:33:28 -07:00
20120803143552_add_fetch_status_to_people.rb first working version of a 'post fetcher' for remote accounts 2012-08-04 13:22:03 +02:00
20120906162503_update_devise.rb update devise 2012-09-12 13:29:57 +02:00
20120909053122_remove_wallpaper_from_profile.rb finish beta striping 2012-09-12 07:51:19 +02:00
20130207231310_add_facebook_id_to_post.rb Issue #3939: Posts to Facebook do not delete 2013-02-18 18:21:59 +00:00
20130404211624_fix_default_image_url_from_profile.rb Fix default image url in profiles table. Closes #3795 2013-04-04 19:22:43 -03:00