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

Integrate with frontend web app #79

Merged
merged 32 commits into from
Oct 27, 2021

Commits on Nov 23, 2020

  1. Added POST users/check API endpoint for check on username availability

    Added the corresponding requests API endpoint test file for POST users/check API endpoint
    Resolved a bug in the requests API endpoint test file file for POST users API endpoint
    Refactored ALLOWED_USERNAME_REGEX to utils/config.js
    Amended Allowed username regex to only allow alphanumeric characters (uppercase letter not included as all letters will be converted lowercase letters when saved to database) and underscores
    Amended POST users API endpoint logic to add custom claims (username field) to firebase Authentication
    JonathanLeeWH committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    9a762a7 View commit details
    Browse the repository at this point in the history
  2. Removed username minlength of 6 constraint from user model

    Removed users.test.js test scenario where username provided is less than 6 characters in line with the removal of username minlength of 6 from user model
    Added additional test scenario in users.test.js when no Authorization token is provided
    JonathanLeeWH committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    6462563 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2020

  1. Added corresponding test cases for users/check API endpoints in users…

    ….test.js
    
    Refactored checkUsernameValidity as a separate method in utils/usersUtils.js for improved cohesion
    Resolved naming error with regards to the naming of the controller method for users/check API endpoints introduced in the previous commit
    JonathanLeeWH committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    b033ba5 View commit details
    Browse the repository at this point in the history
  2. Aded additional check involving username in database for verifyAuthTo…

    …ken method when checkDatabase argument is set to true
    
    Amended test/utils/databaseSetup.js setBackendDefaultUser method with the additional custom claims (username) for firebase Authentication (Part of frontend Integration)
    Amended error message for missing and invalid authentication token with consistent message
    JonathanLeeWH committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    8e7881b View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2020

  1. Configuration menu
    Copy the full SHA
    7aefd3b View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2020

  1. Configuration menu
    Copy the full SHA
    98664ff View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2020

  1. Configuration menu
    Copy the full SHA
    dded707 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5050afe View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2021

  1. Configuration menu
    Copy the full SHA
    6788910 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2021

  1. Added /api/search/software API endpoint to allow for searching of s…

    …oftware in database
    
    Added test search software API endpoint `search_software.rest` file
    
    This is to prepare for usage in frontend typeahead search bar
    
    Note: This does not use `mongodb` build in `text search` (https://docs.mongodb.com/manual/text-search/) due to lack of support for partial
    
    Potential Alternative is to use `Mongodb Atlas Search` (https://www.mongodb.com/atlas/search and https://www.mongodb.com/blog/post/mongodb-atlas-search-now-ga) but it will mean require depending on a third party service.
    
    Another alternative is to use `elasticsearch`
    JonathanLeeWH committed Jul 27, 2021
    Configuration menu
    Copy the full SHA
    6a9a120 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #208 from learnsoftwaredevelopment/add-search-api-…

    …endpoint
    
    Added `/api/search/software` API endpoint to allow for searching of software in database
    JonathanLeeWH authored Jul 27, 2021
    Configuration menu
    Copy the full SHA
    0ac7ec2 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. Added support for page and per_page query params in `api/search/s…

    …oftware` API endpoint
    
    Amended `search_software.rest` test API endpoint with `page` and `per_page` query params
    
    This is to prepare for pagination support in the frontend
    JonathanLeeWH committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    230c084 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. Amended software model by changing developedBy and maintainedBy

    … fields from reference to `user` to an array of string
    JonathanLeeWH committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    c3a6442 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #210 from learnsoftwaredevelopment/amend-software-…

    …model
    
    Amended `software` model by changing `developedBy` and `maintainedBy` fields from reference to `user` to an array of `String`
    JonathanLeeWH authored Jul 29, 2021
    Configuration menu
    Copy the full SHA
    dec51f8 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #211 from learnsoftwaredevelopment/improved-search…

    …-software-api-endpoint
    
    Improved `search` software API endpoint
    JonathanLeeWH authored Jul 29, 2021
    Configuration menu
    Copy the full SHA
    f9330d6 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

  1. Configuration menu
    Copy the full SHA
    c83bc19 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2021

  1. Improved software model with shortDescription, pricing, `videoL…

    …ink` and `twitterUsername` fields
    
    Note: `videoLink` field validates if the video link is either `youtube.com` or `vimeo.com` as the plan is to initially support only youtube and vimeo as video hosting websites
    
    Amended `softwareTestUtils.js` to match the updated `software` model
    
    Amended `post_software.rest` test API endpoint file to match the updated `software` model
    JonathanLeeWH committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    967a532 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #212 from learnsoftwaredevelopment/improve-softwar…

    …e-model
    
    Improved `software` model with `shortDescription`, `pricing`, `videoLink` and `twitterUsername` fields
    JonathanLeeWH authored Jul 31, 2021
    Configuration menu
    Copy the full SHA
    e0eba38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    686a229 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #213 from learnsoftwaredevelopment/add-missing-def…

    …ault-software-model
    
    Added missing `default` field in `software` model `twitterUsername` field
    JonathanLeeWH authored Jul 31, 2021
    Configuration menu
    Copy the full SHA
    6f71655 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2021

  1. Resolved a bug in POST software API endpoint where the software

    … model `meta` properties are not updated
    
    Amended `patch_softwareById.rest` test API endpoint file to `PATCH` HTTP method from `PUT` HTTP method
    JonathanLeeWH committed Aug 1, 2021
    Configuration menu
    Copy the full SHA
    086f0d4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #214 from learnsoftwaredevelopment/resolved-bug-in…

    …-post-software-api
    
    Resolved a bug in `POST` `software` API endpoint where the `software` model `meta` properties are not updated
    JonathanLeeWH authored Aug 1, 2021
    Configuration menu
    Copy the full SHA
    1e47f48 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. Configuration menu
    Copy the full SHA
    2d71cf3 View commit details
    Browse the repository at this point in the history
  2. Added api/software/added/recent and api/software/updates/recent A…

    …PI endpoints
    
    Added `get_recentAddedSoftware.rest` and `get_recentUpdatedSoftware.rest` test API endpoints files
    
    This is to prepare for frontend integration (listing of recently added and updated software)
    
    Refactored `search_software.rest` test API endpoint file to `search` directory for consistency
    JonathanLeeWH committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    8be5d1b View commit details
    Browse the repository at this point in the history
  3. Merge pull request #217 from learnsoftwaredevelopment/add-new-recent-…

    …software-api-endpoints
    
    Added `api/software/added/recent` and `api/software/updates/recent` API endpoints
    JonathanLeeWH authored Aug 3, 2021
    Configuration menu
    Copy the full SHA
    e1aa8a0 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2021

  1. Resolved a bug where previously video host with subdomain www.` was …

    …not part of whitelist
    
    Refactored code with `ALLOWED_VIDEO_HOST_WHITELIST` now available in `utils/config.js` for easier configuration (Improved code quality)
    JonathanLeeWH committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    5023ac7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #223 from learnsoftwaredevelopment/resolved-video-…

    …host-whitelist-bug
    
    Resolved a bug where previously video host with subdomain `www.` was not part of whitelist
    JonathanLeeWH authored Aug 10, 2021
    Configuration menu
    Copy the full SHA
    259eb8f View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2021

  1. Configuration menu
    Copy the full SHA
    304d419 View commit details
    Browse the repository at this point in the history
  2. Removed testing nodejs 16 in GitHub Actions as the focus is on Nodejs…

    … LTS which is currently Nodejs 14
    JonathanLeeWH committed Oct 6, 2021
    Configuration menu
    Copy the full SHA
    5c5065c View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2021

  1. Configuration menu
    Copy the full SHA
    dfead43 View commit details
    Browse the repository at this point in the history
  2. Amended GitHub Actions to new nodejs LTS Version 16

    npm upgrade to version `8`
    JonathanLeeWH committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    61961ac View commit details
    Browse the repository at this point in the history
  3. Merge pull request #269 from learnsoftwaredevelopment/amended-node-js…

    …-to-version-16-lts
    
    Amended GitHub Actions to new nodejs LTS Version `16`
    JonathanLeeWH authored Oct 27, 2021
    Configuration menu
    Copy the full SHA
    8ce4e0b View commit details
    Browse the repository at this point in the history