Skip to content

Orchestra lineup - #104

Merged
J4ken merged 14 commits into
masterfrom
orchestra-lineup
May 10, 2017
Merged

J4ken merged 14 commits into
masterfrom
orchestra-lineup

Conversation

@J4ken

@J4ken J4ken commented May 10, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@patriksletmo
patriksletmo temporarily deployed to sof-db-staging-pr-104 May 10, 2017 07:04 Inactive
@patriksletmo
patriksletmo temporarily deployed to sof-db-staging-pr-104 May 10, 2017 07:07 Inactive
@patriksletmo
patriksletmo temporarily deployed to sof-db-staging-pr-104 May 10, 2017 07:11 Inactive
include ViewPermissionConcern

def index
render :json => Lineup.all

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use some excepts, like update_at, created_at and other unneeded information

end

def get_corteges
render :json => Lineup.where(cortege: true)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

end

def get_artists
render :json => Lineup.where(orchestra: true)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -0,0 +1,4 @@
class RenameCortegeLineupToLineup < ActiveRecord::Migration[5.0]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty migration?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Comment thread db/schema.rb Outdated
t.datetime "updated_at", null: false
end

create_table "artist_lineups", force: :cascade do |t|

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this empty table? (no need to remove by migrations, just wondering why its here)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shit when generating a model

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Comment thread db/seeds.rb Outdated
]],
['Frågor & Svar', '/faq'],
['Festivalen', '#', children: [
['lineup', '/festival/lineups'],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stor bokstav, samt menar du artist-lineup?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread db/seeds.rb Outdated
]],
['Kårtege', '#', children: [
['Lineup', '/cortege_lineups'],
['Lineup', '/cortege/lineups'],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kårtegeordning och inte lineup.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,5 @@
require 'rails_helper'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remov empty testfile

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Comment thread spec/factories/artist_lineups.rb Outdated
@@ -0,0 +1,5 @@
FactoryGirl.define do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty FactoryGirl file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Comment thread spec/models/artist_lineup_spec.rb Outdated
@@ -0,0 +1,5 @@
require 'rails_helper'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty test files.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@patriksletmo
patriksletmo temporarily deployed to sof-db-staging-pr-104 May 10, 2017 08:04 Inactive
@J4ken
J4ken merged commit 7138a01 into master May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants