Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 2: Backend Logic to Anonymize Posts #34

Merged

Conversation

ssaigh
Copy link

@ssaigh ssaigh commented Sep 23, 2024

This pull request resolves issue #22 (Backend Logic: Anonymize Posts)

File: ./src/posts/create.js
Line: 22, 37
Goal: Provide the back-end logic for anonymising a post in node bb.

Changes:

  1. Created an annonymousType variable in line 22
    const annonymousType = data.annonymousType;

  2. Added that variable within the postData dictionary at line 32 with same key.
    let postData = {
    pid: pid,
    uid: uid,
    tid: tid,
    content: content,
    timestamp: timestamp,
    annonymousType: annonymousType,
    }

@Tasnim1147 Tasnim1147 marked this pull request as draft September 24, 2024 11:08
@Tasnim1147
Copy link

It is a good practise to keep the PR in draft mode if its not ready.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11029663038

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.655%

Totals Coverage Status
Change from base Build 10973966126: 0.0%
Covered Lines: 22331
Relevant Lines: 25595

💛 - Coveralls

@ssaigh ssaigh assigned ssaigh and edemenkov and unassigned ssaigh Sep 26, 2024
@jdufitum jdufitum marked this pull request as ready for review September 26, 2024 18:17
Copy link

@jdufitum jdufitum left a comment

Choose a reason for hiding this comment

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

LGTM

@jdufitum jdufitum merged commit 10b9daf into CMU-17313Q:f24 Sep 26, 2024
1 check passed
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.

5 participants