Skip to content

Commit

Permalink
Update Speaker Data
Browse files Browse the repository at this point in the history
  • Loading branch information
samad-yar-khan committed Apr 1, 2022
1 parent 94cc44f commit 61f21e2
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 22 deletions.
22 changes: 17 additions & 5 deletions cms/config/functions/fetchData.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,40 @@ module.exports = async () => {
var speakersCount = await strapi.query("speaker").count({});

// initial fetch

speakers.map(async (speaker, index) => {
if (index <= speakersCount - 1) {
await strapi.query("speaker").update(
{ id: speaker.id },
{
name: speaker.name,
imageUrl: speaker.imageUrl,
bio: speaker.bio,
imageUrl: speaker.picutre_url

short_bio: speaker.short_bio,
talk_topic: speaker.talk_topic,
talk_summary: speaker.talk_summary,
date_time : (new Date(speaker.date_time)).toISOString(),
duration_minutes : speaker.duration_minutes,
live: speaker.live,
ended: speaker.ended
}
);
} else {
await strapi.query("speaker").create({
name: speaker.name,
imageUrl: speaker.imageUrl,
bio: speaker.bio,
content: speaker.talk_summary,
imageUrl: speaker.picutre_url
short_bio: speaker.short_bio,
talk_topic: speaker.talk_topic,
talk_summary: speaker.talk_summary,
date_time : (new Date(speaker.date_time)).toISOString(),
duration_minutes : speaker.duration_minutes,
live: speaker.live,
ended: speaker.ended
});
}
});


if (!ghrepos) {
githubKit('RocketChat', 'RC4Community', ['issues', 'contributors', 'pulls']);
}
Expand Down
89 changes: 72 additions & 17 deletions cms/config/initialData/speakers.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,120 @@
{
"id": 1,
"name": "Rohan Lekhwani",
"picutre_url": "https://media-exp1.licdn.com/dms/image/C5103AQEfuswPxV6Gyw/profile-displayphoto-shrink_800_800/0/1559890882906?e=1654128000&v=beta&t=Vvuss_1J3PNLb0T-M9kCQ2emP_4KonboB16Yrnu1gB4",
"imageUrl": "https://media-exp1.licdn.com/dms/image/C5103AQEfuswPxV6Gyw/profile-displayphoto-shrink_800_800/0/1559890882906?e=1654128000&v=beta&t=Vvuss_1J3PNLb0T-M9kCQ2emP_4KonboB16Yrnu1gB4",
"bio": "I'm a software engineer at Gojek working on distributed systems and cloud infrastructure. I'll be mentoring two GSoC projects this season. Prior to this I've been involved with a multitude of projects at Rocket.Chat including the opensource leaderboard, RC4GitHub, RC4Community and have two published apps (Poll Plus and MemeBuddy) on the Rocket.Chat Marketplace.",
"short_bio": "Software engineer at Gojek, GSoC'22 mentor",
"talk_topic": "Writing That Winning Proposal",
"talk_summary": "Ever wondered what's so special in an accepted proposal? Want to know what mentors look for in your proposal? Join in this fun conversation by a past GSoCer and a current GSoC mentor of two projects to know all you can do to make your proposal shine among others."
"talk_summary": "Ever wondered what's so special in an accepted proposal? Want to know what mentors look for in your proposal? Join in this fun conversation by a past GSoCer and a current GSoC mentor of two projects to know all you can do to make your proposal shine among others.",
"date_time": "06 April 2022 10:20 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
},
{
{
"id": 2,
"name": "Priya Bihani",
"picutre_url": "https://avatars.githubusercontent.com/u/69837339?v=4",
"imageUrl": "https://avatars.githubusercontent.com/u/69837339?v=4",
"bio": "I'm a third year Computer science student & full stack developer from New Delhi, India. I worked along with Rocket.Chat last year as a Sponsored Student for my GSOC project on Image manipulation under my mentors Gabriel Henriques and Tasso Evangelista which we completed in the due time. Alongwith that I've been a part of MLH Prep fellowship & MLH fellowship in 2022.",
"short_bio": "Sponsored student for GSOC Project with Rocket.Chat | MLH fellow 2022 | Open Source Contributor & Full stack developer",
"talk_topic": "How to create proposal for your Rocket.Chat Application",
"talk_summary": "Your application is the most important part of your Road to GSOC with Rocket.Chat. It reflects your commitment and dedication, it is the only way for you mentor to judge you. So you should know how to draft your proposal."
"talk_summary": "Your application is the most important part of your Road to GSOC with Rocket.Chat. It reflects your commitment and dedication, it is the only way for you mentor to judge you. So you should know how to draft your proposal.",
"date_time": "06 April 2022 10:40 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
},
{
"id": 3,
"name": "Kartik Gupta",
"picutre_url": "https://open.rocket.chat/avatar/kartik.gupta",
"imageUrl": "https://open.rocket.chat/avatar/kartik.gupta",
"bio": "I'm Kartik Gupta from New Delhi India. I am a pre final year Computer's student and a full stack developer and Instructor, alongwith that i also like contributing to open source. I was a part of GSOC 2021@Rocket.Chat and got the opportunity to work under mentor Marcelo Schmidt on Speech To Text(Soon to be Live) and work along with such a great community of rocketters.",
"short_bio": "SHORT BIO: GSOC 2021 with Rocket.Chat | Open Source Contributor | Full stack developer & Instructor.",
"talk_topic": "How to get started with Rocket.Chat codebase!",
"talk_summary": "The road to GSOC with Rocket.Chat starts with your contributions to the project, The codebase is huge and it's easy to get overwhelmed, so you should know your way around the codebase."
"talk_summary": "The road to GSOC with Rocket.Chat starts with your contributions to the project, The codebase is huge and it's easy to get overwhelmed, so you should know your way around the codebase.",
"date_time": "06 April 2022 11:00 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
},
{
"id": 4,
"name": "Govind Dixit",
"picutre_url": "https://avatars.githubusercontent.com/u/32304546?v=4",
"imageUrl": "https://avatars.githubusercontent.com/u/32304546?v=4",
"bio": "Building CRED, ex-Urban Company, Headout GSoC'21 Mentor, GSoC'20 & 19 Student @Rocket.Chat",
"short_bio": "Building CRED, ex-Urban Company, Headout GSoC'21 Mentor, GSoC'20 & 19 Student @Rocket.Chat",
"talk_topic": "Demystify GSoC: Tips & Tricks for a Successful Proposal",
"talk_summary": "I will share my experience as a two-time student with Rocket.Chat and will share tips on how to write a successful proposal!"
"talk_summary": "I will share my experience as a two-time student with Rocket.Chat and will share tips on how to write a successful proposal!",
"date_time": "06 April 2022 11:50 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
},
{
"id": 5,
"name": "Arthur Temporim",
"picutre_url": "https://avatars.githubusercontent.com/u/13789524?v=4",
"imageUrl": "https://avatars.githubusercontent.com/u/13789524?v=4",
"bio": "I graduated in 2019 from the software engineering course and am currently pursuing a master's degree in the same area. I have focused my career on the study and development of conversational agents, better known as chatbots. I currently work as a developer of chatbots and contribute to OSS projects and related communities.",
"short_bio": "A Software Engineer with experience with chatbot development and participation in OSS communities.",
"talk_topic": "What will happen after Rocket.Chat GSOC?",
"talk_summary": "I participated in the Rocket.Chat GSOC of the year 2018, I was at the end of the software engineering course and I was able to put into practice everything I had learned. But the experience gained during the months of the program was essential for me to become the engineer I am today. I hope to share with you some of the experiences I made with the knowledge gained in the program."
"talk_summary": "I participated in the Rocket.Chat GSOC of the year 2018, I was at the end of the software engineering course and I was able to put into practice everything I had learned. But the experience gained during the months of the program was essential for me to become the engineer I am today. I hope to share with you some of the experiences I made with the knowledge gained in the program.",
"date_time": "06 April 2022 12:10 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
},
{
"id": 6,
"name": "Anant Bhasin",
"picutre_url": "https://avatars.githubusercontent.com/u/38764067?v=4",
"imageUrl": "https://avatars.githubusercontent.com/u/38764067?v=4",
"bio": "An engineering student graduating this summer, Anant worked on the React Native app for his project in 2021, extending the End to End tests to Android. Currently, he is working at Goldman Sachs as an Analyst Intern(Engineering).",
"short_bio": "Student, currently Analyst Intern (Engineering) at Goldman Sachs",
"talk_topic": "Communication in GSOC program",
"talk_summary": "Communication can make or break your contributions and application"
"talk_summary": "Communication can make or break your contributions and application",
"date_time": "06 April 2022 12:30 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
},
{
"id": 7,
"name": "Rahul Halder",
"imageUrl": "https://media-exp1.licdn.com/dms/image/C5603AQGio-wOX6rWyA/profile-displayphoto-shrink_800_800/0/1599022697338?e=1654128000&v=beta&t=4eevWzts6GpDF_FELQuP1bD9HDx17cO1ChDL3fjOPl4",
"bio": "SWE Intern @Headout, GSoC '21 @Rocket.Chat, pre-final year CS undergrad",
"short_bio": "SWE Intern @Headout, GSoC '21 @Rocket.Chat, pre-final year CS undergrad",
"talk_topic": "Survive GSoC as a Newbie",
"talk_summary": "I will be talking about how Open Source actually works and the proper ways of reviewing code, opening issues and much more. I will also share tips on how you can connect with project mentors and start contributing to the projects in any form.",
"date_time": "06 April 2022 13:20 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
},
{
"id": 8,
"name": "Fongang Rodrique",
"picutre_url": "https://avatars.githubusercontent.com/u/39289653?v=4",
"imageUrl": "https://avatars.githubusercontent.com/u/39289653?v=4",
"bio": "A computer engineering graduate from the university of Buea, a Rocket.Chat GSoC alumni and currently a Technical writer at Rocket.Chat. Deeply interested in cyber security and also a creative photographer.",
"short_bio": "Technical Writer at Rocket.Chat",
"talk_topic": "Survive GSoC as a Newbie",
"talk_summary": "GSoC is often dominated by students with some programming experience. As a newbie in tech or someone with very little knowledge, how can you survive?"
"talk_topic": "Making the most out of GSoC",
"talk_summary": "GSoC is often dominated by students with some programming experience. As a newbie in tech or someone with very little knowledge, how can you survive?",
"date_time": "06 April 2022 13:40 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
},
{
"id": 9,
"name": "Murtaza Patrawala",
"imageUrl": "https://avatars.githubusercontent.com/u/34130764?v=4",
"bio": "Murtaza Patrawala is a software engineer at Rocket.Chat. He started his journey with Rocket.Chat with a Google Summer of Code project where he built integrations with popular chatbot platforms like Dialogflow and Rasa. Within Rocket.Chat, he has contributed to expanding the Omnichannel product of Rocket.Chat by building various integrations with other channels like Facebook, WhatsApp, Twitter, etc",
"short_bio": "Software Engineer at Rocket.Chat",
"talk_topic": "Tips on writing your GSoC proposals",
"talk_summary": "I'll be talking about my overall GSoC experience as a student back in 2020 and sharing some tips that helped me get my proposal accepted",
"date_time": "06 April 2022 14:40 UTC",
"duration_minutes" : 20 ,
"live": false,
"ended": false
}

]
]

0 comments on commit 61f21e2

Please sign in to comment.