srm-kzilla / fury

Inspired by Nick Fury, whose primary job was to recruit avengers, spies and other cool people!
MIT License
20 stars 8 forks source link

Update user api #81

Closed shawshankkumar closed 1 year ago

shawshankkumar commented 1 year ago
  1. remove create user endpoint, user gets created in the db when they login with google
  2. update the update user route and take all of the data that the dashboard gives, refer to the fe, save it in db. don't validate rn.

Deadline 1am 4th aug

shawshankkumar commented 1 year ago

@mdfarhaan this is what the old schema for user db looked like


  "_id": {
    "$oid": "6326221950e3b9d863f2048d"
  },
  "user_id": "110172031974282767536",
  "github_email": "sa6983@srmist.edu.in",
  "projects": [],
  "validity": 7,
  "notifications": [
    {
      "markdown": "Your application status changed to <span>In review</span>.",
      "text": "Your application is under review.",
      "timestamp": 1663623179476
    },
    {
      "markdown": "**Hello, dreamer.** Welcome to #Recruitment2022. Your pathway to becoming an SRMKZILLian starts right here. Create a new application to get started.",
      "text": "Hello, dreamer. Welcome to #Recruitment2022. Your pathway to becoming an SRMKZILLian starts right here. Create a new application to get started.",
      "timestamp": 1663443481869
    }
  ],
  "branch": "computer_science_and_engineering",
  "contact_num": "8800892681",
  "first_name": "SAHIL",
  "gender": "male",
  "gfx_profile": "",
  "github": "",
  "last_name": "PATIL",
  "linkedin": "",
  "registration_number": "RA2111003011301",
  "resume": "",
  "applications": [
    {
      "timestamp": 1663623179457,
      "status": "rejected",
      "domain": "corporate",
      "question_8": " In a working environment where people have disparate outlooks toward the same problems, disagreements are bound to happen. I will find a private space to talk to the other person and give them enough time to air out their views regarding the matter. I will Listen actively and let them have their say and think about their point of view .  And will  Agree on the best solution and determine the responsibilities each party has in the resolution.",
      "question_7": "Engagement on Instagram and not on Twitter can be because , People are much more active on Instagram as compared to Twitter. To overcome this , we can put a key information on twitter and give its hint on Instagram. In this way people will have to checkout both the social media platforms.",
      "question_6": "I stay updated through Instagram and I am well aware of the current social media trends.",
      "question_5": "I will not cancel or re-schedule the event , I will go ahead with the event as planned. I will talk directly to the sponsor and try to understand , what is the issue and try my best to ahold the sponsorship. If there is no improvement in the situation I would ask my seniors to use some certain amount from the club's budget, so that the event doesn't turn into a disaster( and later think about compensating that certain amount ). And from next time I will  try to have a backup sponsor. ",
      "question_4": "I will rate myself an eight because since  I have things to learn. Some ways that I ensure clear communication are by utilizing multiple methods of delivering messages, and I give ample time for questions before implementing changes. I especially excel when placed on project teams, where I have to collaborate with other teammates. One way that I ensure clear communication is by asking a lot of questions to make sure I fully understand and internalize what is being conveyed.",
      "question_3": "Event sponsorship is when an organization( company or any business owner) provides financial assistance to an event to achieve promotional advantages. Sponsorships can come in the form of a cash exchange for assets or a barter exchange involving products or services.",
      "question_2": "I have organized many events in my school such as VIBGYORs, Sports Events, Dance and Singing Competitions etc.",
      "question_1": "Corporate Domain represents the club in field of external affairs including sponsors, publicity, and marketing strategies. They scrutinize the data about the events and their functioning, and take care of billing the cost of operations involved in an event and the club's annual budget. Corporate domain gives the corporate mindset and soft skills to connect to different people ( and learn to communicate effectively to individuals and to groups ). Corporate Domain gives a practical organization experience ( There is a lot of fun involved in meeting new people and learning new things ). I am the perfect candidate for this Domain, I have good Communication skills , am good at interactions with different people . I can come up with new ideas about upcoming events. I can promote the club on my social media handles ( I have an unofficial page with a decent amount of followers).",
      "submitted_at": 1663623179457
    }
  ]
}```