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

Testing anonymous posting feature for Topics and Posts-User Story 3 #47

Open
wants to merge 135 commits into
base: f24
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
31f3465
Merge branch 'Add-search-interface' of https://github.com/CMU-17313Q/…
Hakaabi Sep 24, 2024
0e8852d
added isAnonymous parameter
Hakaabi Sep 25, 2024
171e887
deleted isAnonymous parameter
Hakaabi Sep 25, 2024
54681dd
Edited src/topics/posts.js to add the anonymous option
Hakaabi Sep 25, 2024
bf0ed7e
added a console message to see where the code for making a new post is
Hakaabi Sep 25, 2024
2d8facf
added an IsAnonymous parameter in src/posts/create.js
Hakaabi Sep 25, 2024
3cdea04
Added a print statement to confirm where the code is for making posts
Hakaabi Sep 25, 2024
0b351dc
edited file src/topics/posts.js to ensure that the username is the st…
Hakaabi Sep 25, 2024
6c059aa
fixed the log messages
Hakaabi Sep 25, 2024
9424e86
fixed the log messages according to the lint test
Hakaabi Sep 25, 2024
a6c2f13
fixed lint issues in src/topics/fork.js
Hakaabi Sep 25, 2024
20853a1
fixed lint issues in file src/topics/posts.js
Hakaabi Sep 25, 2024
40f76ff
trying to fix issues in src/topics/posts.js
Hakaabi Sep 25, 2024
747709a
trying to fix issues in src/topics/posts.js
Hakaabi Sep 25, 2024
4d80f42
trying to fix issues in src/topics/posts.js2
Hakaabi Sep 25, 2024
e0c8a28
trying to fix issues in src/topics/posts.js3
Hakaabi Sep 25, 2024
6dc60cd
resolved .gitignore conflict
Hakaabi Sep 25, 2024
c9acfc1
Added lines 152 and 153 to satisfy the schema test by explicitly maki…
Hakaabi Sep 26, 2024
4c992c2
added ruba's changes to my local repository
Hakaabi Sep 26, 2024
8039a16
attempting to solve the nodebb test error for anonymous feature
Hakaabi Sep 26, 2024
f514ddf
attempt 2 at solving anonymous feature errors
Hakaabi Sep 26, 2024
8414a9b
fixed a lint issue
Hakaabi Sep 26, 2024
6861893
synced up the branch to match origin
Hakaabi Oct 1, 2024
5d9386f
literally copy pasted the file from github inshallah it works
Hakaabi Oct 1, 2024
2a51e65
Added my directory for it to show in my remote github
Hakaabi Oct 2, 2024
a93ba21
Added my directory for it to show in my remote github2
Hakaabi Oct 2, 2024
2a82b6a
shorten the titlebox to make room for the anonymous
Hakaabi Oct 2, 2024
7740a5d
fixed the length of the textbox
Hakaabi Oct 2, 2024
d534be0
Adjusting textbox size
Hakaabi Oct 2, 2024
ea97642
Testing the textbar length
Hakaabi Oct 2, 2024
8b8ae38
still on the textbar size
Hakaabi Oct 2, 2024
492c0e9
textbaaarrr
Hakaabi Oct 2, 2024
7f4a96a
edited textbar to be longer
Hakaabi Oct 2, 2024
3365bad
Added the anonymous checkbox right next to hide option
Hakaabi Oct 2, 2024
7b5d0fa
chaning the topic of the button
Hakaabi Oct 2, 2024
4119a9f
the button's topic isn't appearing
Hakaabi Oct 2, 2024
0ee9a61
Edited Public/language/en-GB/topic.json to translate topic of anonymous
Hakaabi Oct 2, 2024
79672fa
Changed the style of my button to match the already embeded ones
Hakaabi Oct 2, 2024
15b9a2b
Merge branch 'adding-anonymous-button-sprint2' into adding-anonymous-…
Hakaabi Oct 2, 2024
6673f59
edited .gitignore to merge branch1 and branch2
Hakaabi Oct 2, 2024
43bd2e0
Added console logs to check if isAnonymous is true by defualt
Hakaabi Oct 8, 2024
55733ef
Edited the handling value of isAnonymous in src/posts/create.js
Hakaabi Oct 8, 2024
454f530
added console log
Hakaabi Oct 8, 2024
c7f4327
edited the uid assignment so its not 0 by default
Hakaabi Oct 8, 2024
290bba2
added 2 consoles logs
Hakaabi Oct 8, 2024
fc9c072
Added a line to ensure uid isnt 0 by default
Hakaabi Oct 8, 2024
5f117d1
Added another line to ensure user isnt overwritten
Hakaabi Oct 8, 2024
f283f77
Explicitly check if isAnonymous is true
Hakaabi Oct 8, 2024
d514c7f
Added console log and commented out some console log
Hakaabi Oct 8, 2024
bd44ddb
added isAnonymous variable to composerobject
Hakaabi Oct 8, 2024
a4b1a15
edited a console log comment
Hakaabi Oct 8, 2024
98823b4
edited a console log comment2
Hakaabi Oct 8, 2024
490a668
trying to make uid = 0
Hakaabi Oct 8, 2024
fcc8476
trying to make uid = 0
Hakaabi Oct 8, 2024
36487fa
reassigned postObj.uid to null
Hakaabi Oct 8, 2024
b92cc51
reassigned postObj.uid to postObj.uid
Hakaabi Oct 8, 2024
29c7f50
Edited src/topics/posts.js to check the value of isAnonymous
Hakaabi Oct 9, 2024
1bb0edb
Edited src/topics/posts.js and composer.js to check the value of isAn…
Hakaabi Oct 9, 2024
842e00b
Added an else statment to my if statement
Hakaabi Oct 9, 2024
c687277
added a console log
Hakaabi Oct 9, 2024
c8db69b
Edited the else statemnt
Hakaabi Oct 9, 2024
bee27b3
added a console log
Hakaabi Oct 9, 2024
2578be0
added a console log
Hakaabi Oct 9, 2024
c0713a5
edited create.js to change isAnonymous
Hakaabi Oct 9, 2024
a9ed822
edited create.js to change isAnonymous2
Hakaabi Oct 9, 2024
4cff08d
Anonymous is worrkinggg -changed the if condition
Hakaabi Oct 10, 2024
600ead9
chnaged index.js to change displayname
Hakaabi Oct 10, 2024
7afb89d
Changed the if statment in index.js to count for anonymous cases
Hakaabi Oct 10, 2024
022a2dd
edited the if statmment in index.js
Hakaabi Oct 10, 2024
45ff245
added a console log
Hakaabi Oct 10, 2024
c97eb57
Yayy anonymous workkss - I edited src/topics/create.js to add the isA…
Hakaabi Oct 10, 2024
7f72a26
lint issue for src/posts/create.js
Hakaabi Oct 10, 2024
ae38fc6
indent lint issues for src/topics/index.js
Hakaabi Oct 10, 2024
1acd9a5
fixed lint issues for src/topics/index.js
Hakaabi Oct 10, 2024
a869a90
fixed lint issues (comments) for src/topics/posts.js
Hakaabi Oct 10, 2024
bc0f468
fixed lint issues for src/topics/posts.js
Hakaabi Oct 10, 2024
9a49085
fixed lint issues for src/topics/index.js
Hakaabi Oct 10, 2024
35bd702
fixed lint issues for src/topics/posts.js
Hakaabi Oct 10, 2024
eed9230
fixed lint issues for src/topics/index.js
Hakaabi Oct 10, 2024
97490f3
fixed lint issues for src/topics/index.js
Hakaabi Oct 10, 2024
a3dfa06
added isAnonymous to the schema of topicObj
Hakaabi Oct 10, 2024
e181794
edited isAnonymous to string
Hakaabi Oct 10, 2024
2a5ea3e
edited isAnonymous to string
Hakaabi Oct 10, 2024
f282aaf
Added the isanonymous to the topic shcema
Hakaabi Oct 13, 2024
2476507
Added the isanonymous to the post schema
Hakaabi Oct 14, 2024
be2360d
edited isAnonymous type in topic schema
Hakaabi Oct 14, 2024
db5f5e1
edited isAnonymous type in post schema
Hakaabi Oct 14, 2024
ad195da
Removed from post schema
Hakaabi Oct 14, 2024
de79cdb
Added isAnonymous to post schema
Hakaabi Oct 14, 2024
251abab
Removed isAnonymous from topics schema
Hakaabi Oct 14, 2024
4311f30
Added isAnonymous to topics schema
Hakaabi Oct 14, 2024
15ff502
Added isAnonymous to topics schema2
Hakaabi Oct 14, 2024
2c515da
Added isAnonymous to topics schema2
Hakaabi Oct 14, 2024
5eb0efe
Added isAnonymous to topics schema3
Hakaabi Oct 14, 2024
fd4a396
Added isAnonymous to topics schema4
Hakaabi Oct 14, 2024
0f9f36c
Added isAnonymous to topics schema5
Hakaabi Oct 14, 2024
e291c08
Added isAnonymous to topics schema6
Hakaabi Oct 14, 2024
bff9648
Edited test/api.js - to adjust for isAnonymous
Hakaabi Oct 14, 2024
e44a2b0
Edited test/api.js for lint issues
Hakaabi Oct 14, 2024
bd6dc4f
Edited the post schema for isAnonymous
Hakaabi Oct 14, 2024
a74762a
Edited the post schema for isAnonymous2
Hakaabi Oct 14, 2024
4add8c2
Edited the post schema for isAnonymous3
Hakaabi Oct 14, 2024
929015b
Edited the post schema for isAnonymous4
Hakaabi Oct 14, 2024
ed77387
Edited the post schema for isAnonymous5
Hakaabi Oct 14, 2024
4ed2776
removed isAnonymous
Hakaabi Oct 14, 2024
aaaf2a8
added isAnonymous
Hakaabi Oct 14, 2024
dc132b6
added isAnonymous in PostObject.yaml
Hakaabi Oct 14, 2024
5ac4165
added isAnonymous to PostObject.yaml
Hakaabi Oct 14, 2024
499bdc4
removed isAnonymous2
Hakaabi Oct 14, 2024
a82930e
Added isAnonymous under topic in posts schema
Hakaabi Oct 14, 2024
ecb812a
added isAnonymous to PostObject.yaml
Hakaabi Oct 14, 2024
e87938d
added isAnonymous to PostObject.yaml
Hakaabi Oct 14, 2024
d21655a
Edited isAnonymous in PostObject.yaml
Hakaabi Oct 14, 2024
b1eb58b
edited test/api.js
Hakaabi Oct 14, 2024
1feffb0
fixed lint issues in test/api.js
Hakaabi Oct 14, 2024
3ac3089
fixed lint issues in test/api.js2-pls work
Hakaabi Oct 14, 2024
2d767d4
fixed lint issues in test/api.js :(
Hakaabi Oct 14, 2024
37322d1
edited test/api.js
Hakaabi Oct 14, 2024
a1c9858
edited test/api.js to handle isAnonymous
Hakaabi Oct 14, 2024
ac7857f
edited test/api.js - lint issues
Hakaabi Oct 14, 2024
7148646
Added an automated testing for src/posts/create.js
Hakaabi Oct 15, 2024
7732dc1
First test didn't work, trying this one
Hakaabi Oct 15, 2024
63f21c8
Removed the test cases
Hakaabi Oct 15, 2024
c5f1e77
Removed the test cases
Hakaabi Oct 15, 2024
600196b
Added automated testcases for Anonymous feature in test/posts.js
Hakaabi Oct 15, 2024
0c2d98b
debugging automated testcases
Hakaabi Oct 15, 2024
b0f23c3
edited the first test
Hakaabi Oct 15, 2024
cd2c2ab
Edited the tests -pls pass :(
Hakaabi Oct 15, 2024
4786111
Fixed lint issues -test/posts.js
Hakaabi Oct 15, 2024
db7a7b6
Added a test category and created a test user for topics.js test suite
Hakaabi Oct 16, 2024
cede599
Added testcases for test/topics.js
Hakaabi Oct 16, 2024
d5362e2
Fixed lint issues in test/tpoics.js
Hakaabi Oct 16, 2024
b960e8a
Fixed the test cases - hopefully they pass now
Hakaabi Oct 16, 2024
baf7a72
changed the way is.Anonymous is set in Topics
Hakaabi Oct 16, 2024
2c715d6
Fixed lint issues in test/topics.js
Hakaabi Oct 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ dist/
yarn.lock
npm-debug.log
node_modules/*
!node_modules/nodebb-theme-harmony/templates
sftp-config.json
!node_modules/nodebb-theme-harmony/
!node_modules/nodebb-plugin-composer-default/
config.json
jsconfig.json
public/src/nodebb.min.js
Expand Down
3 changes: 3 additions & 0 deletions node_modules/nodebb-plugin-composer-default/.eslintrc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions node_modules/nodebb-plugin-composer-default/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions node_modules/nodebb-plugin-composer-default/.jshintrc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions node_modules/nodebb-plugin-composer-default/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions node_modules/nodebb-plugin-composer-default/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions node_modules/nodebb-plugin-composer-default/controllers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading