fossasia / open-event-server

The Open Event Organizer Server to Manage Events https://test-api.eventyay.com
https://api.eventyay.com
GNU General Public License v3.0
2.96k stars 1.89k forks source link

Add a 'featured' field to speaker objects #2064

Closed championswimmer closed 7 years ago

championswimmer commented 7 years ago

Some speakers can have featured: true in them. The reason I suggest such an option is because most events have dozens (or even more than hundred) speakers - like FOSSASIA16 had

In such events, organisers only want featured speakers to be shown on event home page, and show all speakers in the dedicated speakers page.

championswimmer commented 7 years ago

@mariobehling This is a go then ? (as per discussion on webapp gitter)

mariobehling commented 7 years ago

I am missing a proposal how this can be implemented in the JSON format. An issue should be opened in https://github.com/fossasia/open-event

A simple way to do this for now is to make a track "Keynotes" and any speaker in this track goes into the special category.

championswimmer commented 7 years ago

@mariobehling My idea was to add a field featured in the speaker json object

mariobehling commented 7 years ago

Who marks that field and where in the orga-server?

mariobehling commented 7 years ago

Please open an issue in the orga server. I am not clear about the flow.

championswimmer commented 7 years ago

@mariobehling This is example speaker object in api

{
        "country": "India", 
        "email": "email@domain.com", 
        "facebook": null, 
        "github": "http://github.com/gurumukhi", 
        "id": 117, 
        "linkedin": "https://www.linkedin.com/in/gurumukhi", 
        "long_biography": "Ram is a passionate web development & open source contributor. He is currently working with D E Shaw & Co and also volunteering to Mozilla as code contributor, community builder & Mozilla Representative. Apart from coding, he learns and enjoys being a hobbyist. In the leisure time he love to play musical instruments & like to solve puzzles like rubiks cubes, sudoku etc. He also love blogging & going out for adventures (like mountaineering, caving, cycling etc).", 
        "mobile": null, 
        "name": "Ram Dayal Vaishnav", 
        "organisation": "Mozilla", 
        "photo": "", 
        "position": null, 
        "sessions": [
            {
                "id": 237, 
                "title": "Firefox OS - Fast Track to IoT"
            }
        ], 
        "short_biography": "", 
        "twitter": "https://twitter.com/ram_gurumukhi", 
        "website": "http://gurumukhi.wordpress.com"
    }

I am suggesting let's add a featured field (see last line below)

{
        "country": "India", 
        "email": "email@domain.com", 
        "facebook": null, 
        "github": "http://github.com/gurumukhi", 
        "id": 117, 
        "linkedin": "https://www.linkedin.com/in/gurumukhi", 
        "long_biography": "Ram is a passionate web development & open source contributor. He is currently working with D E Shaw & Co and also volunteering to Mozilla as code contributor, community builder & Mozilla Representative. Apart from coding, he learns and enjoys being a hobbyist. In the leisure time he love to play musical instruments & like to solve puzzles like rubiks cubes, sudoku etc. He also love blogging & going out for adventures (like mountaineering, caving, cycling etc).", 
        "mobile": null, 
        "name": "Ram Dayal Vaishnav", 
        "organisation": "Mozilla", 
        "photo": "", 
        "position": null, 
        "sessions": [
            {
                "id": 237, 
                "title": "Firefox OS - Fast Track to IoT"
            }
        ], 
        "short_biography": "", 
        "twitter": "https://twitter.com/ram_gurumukhi", 
        "website": "http://gurumukhi.wordpress.com",
        "featured": true
    }

Which speakers are featured can be set by organisers in the admin dashboard

mariobehling commented 7 years ago

Ok, let's go with this for the moment, but I am not clear about the implementation in the server.

mariobehling commented 7 years ago

@aviaryan @niranjan94 What is the best way to implement this in the UI of the orga server?

niranjan94 commented 7 years ago

Maybe we could add a switch in the speaker edit form

aviaryan commented 7 years ago

I agree with @niranjan94 suggestion. To add to it, then we can show a legend (a star or something) for featured speakers at http://domain/events/ID/speakers/ .