Skip to content

sample state

Marshall Strong edited this page Jan 19, 2021 · 1 revision

Sample State

{
    entities: {
        artists: {
            1: {
                id: 1,
                name: "Kanye West",
            },
            2: {
                id: 2,
                name: "JAY-Z",
            },
            3: {
                id: 3,
                name: "Nicki Minaj",
            },
            4: {
                id: 4,
                name: "RZA",
            },
            5: {
                id: 5,
                name: "Otis Redding",
            },
            6: {
                id: 6,
                name: "Wolfgang Amadeus Mozart",
            },
            7: {
                id: 7,
                name: "Marvin Gaye",
            },
        },
        albums: {
            11: {
                id: 11,
                title: "The College Dropout",
                release_date: "2004-02-10",
            },
            12: {
                id: 12,
                title: "My Beautiful Dark Twisted Fantasy",
                release_date: "2010-11-22",
            },
            13: {
                id: 13,
                title: "Watch The Throne",
                release_date: "2011-08-08",
            },
            14: {
                id: 14,
                title: "Sampled & Interpolated",
                release_date: "2020-12-30",
            },
        },
        songs: {
            21: {
                id: 21,
                album_id: 11,
                track_name: "Last Call",
                track_number: 21,
            },
            22: {
                id: 22,
                album_id: 12,
                track_name: "Dark Fantasy",
                track_number: 1,
            },
            23: {
                id: 23,
                album_id: 12,
                track_name: "Monster",
                track_number: 6,
            },
            24: {
                id: 24,
                album_id: 13,
                track_name: "Otis",
                track_number: 4,
            },
            25: {
                id: 25,
                album_id: 14,
                track_name: "Try a Little Tenderness"
                track_number: NULL,
                sampled_song_artist_id: 5,
            },
            26: {
                id: 26,
                album_id: 14,
                track_name: "Lacrimosa"
                track_number: NULL,
                sampled_song_artist_id: 6,
            },
            27: {
                id: 27,
                album_id: 14,
                track_name: "Mercy Mercy Me (The Ecology)"
                track_number: NULL,
                sampled_song_artist_id: 7,
            },
        },
        verses: {
            31: {
                id: 31,
                song_id: 22,
                verse_number: 1,
                body: "[Intro: Nicki Minaj] \nYou might think you've peeped the scene \nYou haven't; the real one's far too mean \nThe watered down one, the one you know \nWas made up centuries ago \nThey made it sound all wack and corny \nYes, it's awful—blasted-boring \nTwisted fictions, sick addiction \nWell, gather 'round, children; zip it; listen",
            },
            32: {
                id: 32,
                song_id: 23,
                verse_number: 1,
                body: "[Intro: Bon Iver] \nI shoot the lights out \nHide 'til it's bright out \nOh, just another lonely night \nAre you willing to sacrifice your life? \n",
            },
            33: {
                id: 33,
                song_id: 23,
                verse_number: 2,
                body: "[Intro Verse: Rick Ross] \nBitch, I'm a monster, no-good blood-sucker \nFat motherfucker, now look who's in trouble \nAs you run through my jungles all you hear is rumbles \nKanye West samples, here's one for example \n",
            },
        },
        album_credits: {
            41: {
                id: 41,
                album_artist_id: 1,
                album_id: 11,
            },
            42: {
                id: 42,
                album_artist_id: 1,
                album_id: 13,
            },
            43: {
                id: 43,
                album_artist_id: 2,
                album_id: 13,
            },
            44: {
                id: 44,
                album_artist_id: 5,
                album_id: 14,
            },
        },
        feature_credits: {
            51: {
                id: 51,
                featured_artist_id: 2,
                featured_in_song_id: 9,
            },
            52: {
                id: 52,
                featured_artist_id: 3,
                featured_in_song_id: 9,
            },
            53: {
                id: 53,
                featured_artist_id: 5,
                featured_in_song_id: 24,
            },
        },
        production_credits: {
            61: {
                id: 61,
                producing_artist_id: 1,
                produced_song_id: 24,
            },
            62: {
                id: 62,
                producing_artist_id: 1,
                produced_song_id: 22,
            },
            63: {
                id: 63,
                producing_artist_id: 4,
                produced_song_id: 22,
            },
        },
        sample_credits: {
            71: {
                id: 71,
                song_that_samples_id: 24,
                song_being_sampled_id: 25,
                is_interpolation: FALSE,
            },
            72: {
                id: 72,
                song_that_samples_id: 22,
                song_being_sampled_id: 26,
                is_interpolation: FALSE,
            },
            81: {
                id: 81,
                song_that_interpolates_id: 22,
                song_being_interpolated_id: 27,
                is_interpolation: TRUE,
            },
        },
        users: {
            91: {
                id: 91,
                username: "Demo",
                email: "demo@aa.io"
            },
            92: {
                id: 92,
                username: "WrightStuff",
                email: "awright@aa.io",
            },
            93: {
                id: 93,
                username: "BiddyChips",
                email: "jmccallum@aa.io",
            },
        },
        annotations: {
            101: {
                id: 101
                annotating_user_id: 91,
                annotatable_type: "Artist",
                annotatable_id: 1,
                is_current: FALSE,
                body: "...",
            },
            102: {
                id: 102
                annotating_user_id: 91,
                annotatable_type: "Album",
                annotatable_id: 12,
                is_current: FALSE,
                body: "...",
            },
            103: {
                id: 103
                annotating_user_id: 91,
                annotatable_type: "Song",
                annotatable_id: 23
                is_current: TRUE,
                body: "..."
            },
            104: {
                id: 104
                annotating_user_id: 91,
                annotatable_type: "Verse"
                annotatable_id:
                is_current: TRUE,
                body: "..."
            },
        },
        comments: {
            111: {
                id: 111,
                commenting_user_id: 91,
                commentable_type: "Artist",
                commentable_id: 1,
                body: "...",
            },
            112: {
                id: 112,
                commenting_user_id: 91,
                commentable_type: "Album",
                commentable_id: 12,
                body: "...",
            },
            113: {
                id: 113,
                commenting_user_id: 91,
                commentable_type: "Song",
                commentable_id: 23,
                body: "...",
            },
        },
        upvotes: {
            121: {
                id: 121,
                upvoting_user_id: 91,
                upvotable_type: "Annotation",
                upvotable_id: 101,
            },
            122: {
                id: 122,
                upvoting_user_id: 91,
                upvotable_type: "Comment",
                upvotable_id: 111,
            },
        },
    },
    uiViewConfigStuff: {
        loading: true/false
    },
    session: {
        currentUser: {
            userId: 91,
            username: "Demo",
        },
        errors: {
            login: ["Incorrect username/password combination"],
            annotationForm: ["Annotation body cannot be blank"],
            commentForm: ["Comment body cannot be blank"],
            otherErrors: ["the limit does not exist"],
        },
    },
}
Clone this wiki locally