GET /api/topics/:topicId/invites/users/:inviteId
&GET /api/users/:userId/topics/:topicId/invites/users/:inviteId
to return status code 20002 when invited User has not been registered - citizenos/citizenos-fe#773GET /api/groups/:groupId/invites/users/:inviteId
&GET /api/users/:userId/groups/:groupId/invites/users/:inviteId
to return status code 20002 when invited User has not been registered - citizenos/citizenos-fe#773
- Add a new Comment type - poi (Point of Information) - citizenos/citizenos-fe#329
GET /api/users/:userId/topics/:topicId/comments
&GET /api/topics/:topicId/comments
to return Comments with POI type - citizenos/citizenos-fe#329
- Create new API endpoint for user searching
GET /api/users/:userId/search/users
- #222 - Remove users from general search results
- Add TokenRevocation table to database, add token revocation logic to logout - #220
- Add
PUT /api/topics/:topicId/invites/users/:inviteId
,PUT /api/users/:userId/topics/:topicId/invites/users/:inviteId
- to update invited users permissions - Update topic members groups, users and invites enpoints to support ordering - citizenos/citizenos-fe#239
- Update Topic and Group member and invite list API-s to return User contact info for Topic/Group admins and systems global Moderators - citizenos/citizenos-fe#670
- Update Groups permission check method to not have any "Promise was rejected with non error" warnings
- Update
GET /api/users/:userId/groups/:groupId/invites/users
- returns invites for current user if he/she hasn't accepted yet - citizenos/citizenos-fe#360 - Update
GET /api/users/:userId/topics/:topicId/invites/users
- returns invites for current user if he/she hasn't accepted yet - citizenos/citizenos-fe#360
- Update
POST /api/users/:userId/groups
to return Group join token info - citizenos/citizenos-fe#325 - Update
GET /activites
- do not returncontext
property - citizenos/citizenos-fe#325 - Add API
PUT /api/users/:userId/groups/:groupId/join
- generation of join links with specific access level - citizenos/citizenos-fe#325 - Add API
PUT /api/users/:userId/groups/:groupId/join/:token
- assign access level for given join token - citizenos/citizenos-fe#325
- Rename
GET /api/v2/search
asGET /api/search
GET /api/search
only returns users with preferences JSON containingshowInSearch: true
- Update
POST /api/auth/signup
ANDPUT /api/users/:userId
- Add preferences option citizenos/citizenos-fe#310 - Update
GET /api/auth/status
- add prefgerences field
- Add API
PUT /api/users/:userId/topics/:topicId/join
- generation of join links with specific access level - citizenos/citizenos-fe#311 - Add API
PUT /api/users/:userId/topics/:topicId/join/:token
- assign access level for given join token - citizenos/citizenos-fe#311 - Remove API
PUT /api/users/:userId/topics/:topicId/tokenJoin
- use the new API-s above - citizenos/citizenos-fe#311
- Add duplicate topic endpoint /api/users/:userId/topics/:topicId/duplicate - citizenos/citizenos-fe#416
- Remove Topic and Group auto-accept user endpoints
- Remove API POST /api/users/:userId/groups/:groupId/members/users is now replaced with POST /groups/groupId:/invites
- Remove API POST /api/users/:userId/topics/:topicId/members/users is now replaced with POST /topics/topicId:/invites
- Removed all related test
- All tests updated to async await structure
- API /logout not to try unset Etherpad cookies as it does not work cross domains - citizenos/citizenos-fe#676
- Rename model GroupMember to GroupMemberUser - #198
- Pump version to 2.2.0.
- Update inviting users to topic behaviour - citizenos/citizenos-fe#254
- Hide moderated topics behind filter - citizenos/citizenos-fe#464
- FIX 'See who liked your argument' feature not working - citizenos/citizenos-fe#572
- Update dependencies and related code
- FIX Activity feed shows incorrect activity - title update - citizenos/citizenos-fe#508
- Update many tests to Promises
- Drop DigiDocService for ID-card - #157
- FIX Reorder topic report e-mail layout - #140
- Fix comments api query
- Update API add GET
/api/users/:userId/topics/:topicId/comments/:commentId/votes
endpoint - citizenos/citizenos-fe#470
- FIX API crashes when attachment name contains non ASCII character - #173
- Fix user bdoc creating
- Update lodash, smart-id and mobiil-id dependencies
- Update sending emails to not fail other transactions if e-mail fails to send
- Add email template language fallback
- Group tests to Promises
- Some Topics tests to Promises
- Remove .csv file from final.bdoc container
- Redirect users to topic from invite links after initial access - citizenos/citizenos-fe#469
- Update Invite tests to Promises
- Add topicId, userId, groupId extra properties to activities if needed
- Update activity feed to include topicId for CommentVote
- Email layout is wonky on mobile - #159
- Email footer is served in English, instead of 13 languages.- #160
- Fix vote counting bug for multiple-choice votes with delegation - citizenos/citizenos-fe#443 citizenos/citizenos-fe#413
- Update "UserConnection" "connectionUserId" values to have PNO prefix Where "connectionId" esteid or smartid
- Allow users to sign votes under multiple accounts if that account does not have different connection with esteid or smartid
- Add lastActivity field to public topics list /api/topics citizenos/citizenos-fe#231
- Optimize (speed up) activity feed - #161
- Fixed some tests that were randomly failing
- Move away from digidoc service - #144
- Add Smart-ID vote signing - #134
- Add extra validation to Mobiil-ID and Smart-ID signing - #40
- Allow longer vote options. New limit is 200 characters - citizenos/citizenos-fe#105
- FEATURE: Topic User invite flow API -
/api/users/:userId/topics/:topicId/invites
- citizenos/citizenos-fe#112 - FEATURE:
CitizenOS-Deprecated
response header sent for deprecated API calls. It is important for API clients to log warnings when receiving such response header - citizenos/citizenos-fe#112 - DEPRECATED:
POST /api/users/:userId/topics/:topicId/members/users
, use new invite API (POST /api/users/:userId/topics/:topicId/invites
) and other invite API-s instead - citizenos/citizenos-fe#112 - DEVELOPMENT:
deprecated
middleware to sendCitizenOS-Deprecated
response header for deprecated API calls - citizenos/citizenos-fe#112
- Dropped support for legacy restricted use token validation - #70
- Log user ip-s into activities table (Law enforcement) - #133
- Lodash security update to version 4.17.13
- Add linkPrivacyPolicy property to Partners table
- Add new API endpoint GET /api/partners/:partnerId
- Update base64-url version update dssClient tests
- Quick fix for app crashing when
DATABASE_OPTIONS_POOL_MAX
env variable is set - #137
- BREAKING CHANGE: Started using async/await, so Node.JS >=7.6.0 is required. Default Node.JS version upgraded to 10.13.0.
- FEATURE: Added Topic Report API - #5
- DEVELOPMENT:
asyncMiddleware
added so thatasync/await
can be used in Express routes. - Upgraded to Sequelize 5.x.
- E-mail verification (
GET /api/auth/verify/:code
) not to automatically log in User after e-mail verification - #122
- Add
/api/interal/report
endpoint to log csp-reports
- Fix Etherpad sync endpoint, remove rev number to put less stress on etherpad.
- Fix partner topic read test
- Update morgan
- Fix
GET /api/users/:userId/topics/:topicId/members/users
not returning all member users #117
- Updated old
/api/topics/:topicId/comments
and/api/users/:userId/topics/:topicId/comments
and depreacted/api/v2/topics/:topicId/comments
and/api/v2/users/:userId/topics/:topicId/comments
- Added offset and limit options to
/api/topics/:topicId/comments
and/api/users/:userId/topics/:topicId/comments
endpoints and return data includescount: {pro: 1, con: 2, total: 3}
- Updated tests
- Fixed title character counting and changed title character limit from 100 to 1000 in db using migration
- Title length configurable but not over 1000 characters as in db #2
- Optimize activity feed queries to get better speed and memory usage #28
- Set attachments limit from config citizenos/citizenos-fe#181
- Parliament e-mails - configuration
config.features.sendToParliament.sendContainerDownloadLinkToCreator
to choose if BDOC link is sent to Topic creator or not in Parliament e-mails. - Update
db/config/database.sql
to be up to date. Was supposed to be updated with changes on 2018-12-18. - Make users verify e-mail address if they update it in their profile #54
{
"email":{
"styles":{
"headerBackgroundColor":"#252525",
"logoWidth":237,
"logoHeight":43
},
"partnerStyles":{
"partner1.com":{
"headerBackgroundColor":"#004892",
"logoWidth":360,
"logoHeight":51
},
"partner2.eu":{
"headerBackgroundColor":"#004892",
"logoWidth":300,
"logoHeight":91
}
}
}
}
- Unify restricted use token generation and validation - #70
- Swap out passport-google-oauth2 to official passport-google-oauth20. Changed configuration and updated result parsing #72
- Update topic argument reply, vote, report endpoints to return 404 when performing actions on deleted arguments/replies
- Add endpoints to read attachment json or download uploaded attachment file with proper filename by adding query parameter
?download=true
GET /api/users/:userId/topics/:topicId/attachments/:attachmentId
GET /api/topics/:topicId/attachments/:attachmentId
- Fix issue where missing e-mail addresses would fail adding Topics to a Group. Regression from 2018-12-10.
- Add possibility to set topics as pinned, new table is added. New API enpoints:
POST /api/users/:userId/topics/:topicId/pin
- to pin a topicDELETE /api/users/:userId/topics/:topicId/pin
- to remove pin from topic All authorized endpoints, returning topics data, will also have pinned boolean value - Update GET /api/users/:userId/topics endpoint to filter results by pinned citizenos/citizenos-fe#122
- Update GET /api/v2/search endpoint to support topic filtering by status and pinned
- Generate new and thus invalidate existing password reset code on successful reset - #68
- Update Mobiil-ID test numbers
- Update GET /api/users/:userId/topics endpoint to filter results by status citizenos/citizenos-fe#122
- E-mail system changes to be able to localise e-mails with Crowdin - #41
- E-mails are sent synchronously so that if for example sign-up e-mail sending fails, the API returns error code - #41
- Update /api/acitivities and /api/users/self/activities endpoints to support filter "VoteList", add filter option to /api/topics/:topicId/activities and /api/users/self/topics/:topicId/activities endpoint - #7
- Support configuration of logging with
CITIZENOS_LOGGING
environment variable.
- DB peer authentication support. More info on the configuration - https://github.com/citizenos/citizenos-api/wiki/Configuration
- Fixed group invite link to redirect to /my/groups/:groupId