All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- The package now requires ruby 2.7+
- The package now requires faraday 2.7+
DiscourseApi::SingleSignOn.parse
now raisesDiscourseApi::SingleSignOn::ParseError
(inherits fromRuntimeError
to preserve backward compatibility) instead ofRuntimeError
when there's a signature mismatch.DiscourseApi::SingleSignOn.parse
now raisesDiscourseApi::SingleSignOn::MissingConfigError
(also inherits fromRuntimeError
) ifsso_secret
orsso_url
are missing.
- The package now requires ruby 2.6+
- New attributes for Discourse Connect (aka SSO)
group_add_owners
method (#239)group_remove_owners
method (#239)anonymize
method (#241)
DiscourseApi::Timeout
error now inherits fromDiscourseApi::Error
(#240)DiscourseApi::SingleSignOn#groups
now returns an array of strings where each string is a group name, rather than an array with a single string that contains all the groups comma-concatenated (#243)
- Update invite method
- Retrieve invite method
- Destroy all expired invites method
- Destroy invite method
- Resend all invites method
- Resend invite method
- Pass params to get notifications API
invite_user_to_topic
has been deprecated, useinvite_to_topic
instead.create_private_message
has been deprecated, usecreate_pm
instead.
- Allow bookmarking topics
- Add timeout to requests
- Add params to get_topic_posts
- Fetch global top topics
- Allow setting topic notifications
- Return full category response
- Use new search endpoint
- Tag configuration in create_category/update_category
- Topic#change_owner
- Support passing approved to #create_user
- API key methods use the latest endpoints
- Updated
show_tag
method to use new route
- Support for Ruby 2.3 and 2.4
- Tagged version 0.43.0 got pushed without commit due to new master branch protections in github. No, code changes here just making sure tags align with commits.
- Add pagination to list groups endpoint
change_topic_status
has been deprecated, useupdate_topic_status
instead.
- Create topics with tags
- Add basic auth support
- Fix SSO custom field prefixes
- Obsolete api key endpoints
- Add missing attributes to
sync_sso
- Add delete category method
- Add
reviewable_by_group_name
to categories
- Add
members_visibility_level
to group
- Ensure released gem version matches this commit
- Get latest posts across topics via posts.json
- Allow more options parameters when creating a category
- Don't require topic slug when updating topic status
- Example files now read config.yml file when present for client settings
- Issue with
topic_posts
and frozen strings - Fixed some topic and category methods
- Allow setting locale in SingleSignOn
- Optional param to group members to include owners as well as members
- user-badges endpoint for full badges list
- expanded list of allowed messages
- grant/revoke moderation
- Added poll methods
- Updated create topic example
- Fixed capitalization for header auth keys
- Added
custom_fields
param to create/update category - Added
frozen_string_literal: true
to all the files - Added rubocop and all the changes that went along with it
- Allow
api_username
to be changed for an initialized client - Update many of the
/users
routes to use the/u
route
- Changed
update_trust_level
to follow consistent method param syntax where you specify the id first followed by params
- Header based authentication
- Query param based authentication
- Added a new method to update a users notification level in a category
- Added a new method to update a users notification level in a group
- Added
deactivate
method - Added 201 and 204 as valid POST responses
- Add params hash to
list_users
- Add
add_groups
andremove_groups
tosync_sso
- Updated arguments for suspending a user
- Fixed non-URI chars in
check_username
method
- Added
check_username
method
- Added
site_settings_update
method
- Added user
user_actions
endpoint so you can retrieveuser_replies
anduser_topics_and_replies
- Added ability to rescue certain error classes and inspect the response object
- Added support for custom
user_fields
when creating a user
- Can now change
api_username
without creating a new client
- Added
delete_user
method
- Support for subfolder paths
- Update GET groups api route
- Update PUT groups api route
- Add base error class
- Update SSO
- Added optional
create_post
params
- Added
update_group
API call
- Fixed params for create groups endpoint
- Fixed invite token API endpoint
- Add title to SSO sync
user_sso
should useuser_id
instead ofusername
upload_file
should also include optionaluser_id
param
- added
upload_file
- removed
upload_post_image
- added the ability to create private messages
- allow for rack 2.0+ versions so that it doesn't clash with rails.
- improved error responses by adding
NotFoundError
,UnprocessableEntity
, andTooManyRequests
- added
delete_post
method
- added
update_category
- added
upload_post_image
- add endpoint for
/admin/users/{id}/suspend
- add endpoint for
/admin/users/{id}/unsuspend
- add destination folder to backup download
post_action_users
change_topic_status
- set username of topic on creation
- raise an error if search is empty
- fix /category path to be just /c
- return errors for category_latest_topics if there are some
- group_members: Allows you to retrieve more than 100 users with pagination (offset & limit)
- Deprecation warning with SimpleCov
- updated rack dependency and added ruby 2.3 to travis config
- topic and post like/flag need to use
:id
- can now like/flag topics and posts
- enable use of discourse_api to make unauthenticated requests to discourse endpoints like /categories and /topics
- get stats from admin dashboard
- get only stat totals from admin dashboard
- get user by external_id
API::Params
will not work correctly when both optional and defaults are specified
- typo in topic_posts method
- get posts in topic by an array of id's
- remove puts statement
- get latest category topics by page
- generate an api key for a user
- revoke an api key for a user
- update user trust level
- grant user badge
- list badges
- view email settings
- list emails sent
- list badges by user
- be able to specify SSL connection settings
- list api keys generated
- list backups created
- Can now get a list of users by type: active, new, staff, etc.
client.category_latest_posts("category-slug")
endpoint
- Release