1. 15 11月, 2017 1 次提交
    • R
      Update gometalinter config (#331) · 8fff0e88
      Richard van der Hoff 提交于
      * Update gometalinter config
      
      gometalinter now uses `maligned` instead of `aligncheck`
      (https://github.com/alecthomas/gometalinter/pull/367), so we need to update our
      config accordingly.
      
      * Update gometalinter
      
      * Disable gotype linter
      
      gotype does not seem to play nicely with the gb vendor directory. In
      particular, it wants each of our dependencies to be built and installed (see
      https://github.com/golang/go/issues/10969), but (empirically) it will not
      accept them being installed in `pkg` but insists on them being in `vendor/pkg`.
      
      This presents a problem because `gb build` builds the packages into `pkg`
      (which doesn't seem entirely unreasonable since `.` comes before `vendor` in
      `$GOPATH`). `go install github.com/x/y` does install in `vendor/pkg` but
      requires us to know the name of each package.
      
      The general conclusion of https://github.com/alecthomas/gometalinter/issues/91
      seems to have been that the easiest thing to do is to disable `gotype` for now.
      
      * Fix `unparam` lint
      
      * Fix goshadow lint
      8fff0e88
  2. 14 11月, 2017 2 次提交
  3. 09 11月, 2017 1 次提交
  4. 06 11月, 2017 1 次提交
  5. 25 10月, 2017 1 次提交
  6. 18 10月, 2017 1 次提交
  7. 15 10月, 2017 1 次提交
  8. 13 10月, 2017 1 次提交
  9. 12 10月, 2017 1 次提交
    • E
      Merge readers/writers/routing packages (#295) · d66244cb
      Erik Johnston 提交于
      The HTTP handlers in the components are split into reader and writer directories. This was a fairly arbitrary distinction, and turns out to not be so helpful. Most read APIs have a corresponding write API, and it is more natural for them to be in the same file rather than in different directories.
      d66244cb
  10. 10 10月, 2017 1 次提交
  11. 09 10月, 2017 1 次提交
  12. 28 9月, 2017 1 次提交
  13. 27 9月, 2017 1 次提交
  14. 26 9月, 2017 1 次提交
  15. 23 9月, 2017 1 次提交
  16. 22 9月, 2017 2 次提交
  17. 13 9月, 2017 1 次提交
  18. 12 9月, 2017 1 次提交
    • B
      Add config and checks for trusted ID servers (#206) · f1fce556
      Brendan Abolivier 提交于
      * Add config for trusted ID servers
      
      * Add new error
      
      * Implement check for trusted ID server
      
      * Complete unfinished comment
      
      * Make comment more explicit in the config file
      
      * Use go standard errors in membership.go
      
      * Use standard errors instead of JSON responses in threepid
      
      * Doc errors
      
      * Remove unused parameter
      f1fce556
  19. 07 9月, 2017 1 次提交
  20. 01 9月, 2017 1 次提交
    • B
      Implement client API routes for 3PID handling (#205) · 960af3d6
      Brendan Abolivier 提交于
      * Create package for handling 3pid processes and move invite processing there
      
      * Add database table and functions for tracking 3PIDs
      
      * Add structures and functions to interact with an ID server
      
      * Add handlers for 3PIDs management
      
      * Fix 3PIDs retrieval sending null if no 3PID known for a user
      
      * Include medium in database requests and function calls
      
      * Publish an association if it has been validated and requested
      
      * Add TODO markers for tursted ID server check
      
      * Use a structure instead of a map to represent a 3PID
      960af3d6
  21. 24 8月, 2017 1 次提交
    • B
      Membership viewing API when user left the room (#194) · 685e056a
      Brendan Abolivier 提交于
      * Implement case where user left the room
      
      * Filter by membership event
      
      * Move the logic from the storage to the query API
      
      * Fix check on state entries iteration
      
      * Remove aliases methods from query API
      
      * Use structure for response to match with the spec
      
      * Remove filtering on /members and implement /joined_members
      685e056a
  22. 22 8月, 2017 1 次提交
    • B
      Implement public rooms APIs (#185) · b15ce900
      Brendan Abolivier 提交于
      * Move events contents to common
      
      * Basic database structure
      
      * Complete database update
      
      * Support visibility update and retrieval
      
      * Add HTTP methods for visibility update and retrieval
      
      * Add the database for the new component
      
      * Add a listener for the new component
      
      * Fix attribute update statements
      
      * Create public rooms component
      
      * Fix failing test
      
      * Add roomserver consumer
      
      * Fix a bug in aliases creation
      
      * Add a check on type
      
      * Implement public rooms directory
      
      * Use auth API for visibility update
      
      * Support filtering
      
      * Add component to monolith
      
      * Various fixes
      
      * Fix computation of next public rooms batch
      
      * Retrieve state events from the roomserver query API + avoid dupes on join
      
      * Split update of string or boolean attribute in two separate functions
      
      * Use event type to detect duplicate joins
      
      * Improve the joined members counter computation
      
      * Use event.RoomID()
      b15ce900
  23. 21 8月, 2017 1 次提交
    • B
      Membership viewing API (#174) · 5950293e
      Brendan Abolivier 提交于
      * Basic memberships retrieval
      
      * Change the way the memberships are saved in the client API database
      
      * Retrieve single membership
      
      * Get memberships only if the user is or has been in the room
      
      * Check server name on room ID instead of user ID
      
      * Save the join membership event and updates it when necessary
      
      * Membership events retrieval + update on leave
      
      * Implement the API on the roomserver and client API server
      
      * Fix comments
      
      * Remove the functions and attributes used before the new query API
      
      * Explicitely state what we return in query
      
      * Remove tab
      5950293e
  24. 18 8月, 2017 2 次提交
  25. 04 8月, 2017 1 次提交
    • B
      Implement membership APIs (#171) · 8ccc5d10
      Brendan Abolivier 提交于
      * Implement membership endpoints
      
      * Use FillBuilder when possible
      
      * Fix typo in membership event content
      
      * Fix state key invite membership events not being correctly set
      
      * Set membership content to match the profile of the user in state_key
      
      * Move event building and rename common function
      
      * Doc getMembershipStateKey
      
      * Check if user is local before lookin up their profile
      8ccc5d10
  26. 03 8月, 2017 1 次提交
  27. 02 8月, 2017 1 次提交
    • B
      Make account data sync incremental (#170) · 0fbb8b78
      Brendan Abolivier 提交于
      * Clean roomserver consumer
      
      * Make account data sync incremental
      
      * Use a different name for the sync AD table
      
      * Improved error logging
      
      * Created missing topic in tests
      
      * Add client API topic to tests
      
      * Add client API topic to common
      
      * Move data batch retrieval
      
      * Add database index for data retrieval
      
      * Fix typo in table name
      
      * Fix indentation
      0fbb8b78
  28. 28 7月, 2017 2 次提交
    • B
      Add local room join (#169) · 7d17df6f
      Brendan Abolivier 提交于
      * Add local room join
      
      * Update TODO
      7d17df6f
    • B
      Implement room aliases (#167) · c7e36ba2
      Brendan Abolivier 提交于
      * Add database functions to interact with aliases
      
      * Save room alias
      
      * Check if alias already exists
      
      * Implement local alias lookup
      
      * Implement alias removal
      
      * Move alias API
      
      * Handle case with no alias set for a room
      
      * Apply requested changes
      c7e36ba2
  29. 26 7月, 2017 1 次提交
    • B
      Save and retrieve account data (#166) · 3e394e9e
      Brendan Abolivier 提交于
      * Save function for account data
      
      * Fix upsert + add empty routes and function
      
      * Save account data
      
      * Retrieval functions
      
      * Implement retrieval in /sync
      
      * Fix arrays not correctly initialised
      
      * Merge account data retrieval functions
      
      * Request DB only once per request
      
      * Initialise array
      
      * Fix comment
      3e394e9e
  30. 25 7月, 2017 1 次提交
    • B
      Propagate profile update through rooms (#163) · 6d073dcf
      Brendan Abolivier 提交于
      * Use gomatrixserverlib function to split user ID
      
      * Propagate profile update via m.room.member events
      
      * Send profile data on room join
      
      * Send profile data on room creation
      
      * Rename variable
      
      * Move membership update to roomserver consumer
      
      * Improve iteration
      
      * Move event update from client API server to sync API server
      
      * Change the way buildMembershipEvents is called
      
      * Forbid update of someone else's profile
      
      * Use gomatrixserverlib method
      
      * Fix depth and previous events not being set
      
      * Fix wrong removal in latest commit
      
      * Update all events instead of only memberships
      
      * Handle case where there is no state key
      
      * Fix test
      6d073dcf
  31. 11 7月, 2017 2 次提交
    • B
      Implemented logout (#154) · 7d36ca03
      Brendan Abolivier 提交于
      7d36ca03
    • B
      Notify profile update (#153) · 355ab5ee
      Brendan Abolivier 提交于
      * Profile retrieval
      
      * Saving avatar (without propagating it)
      
      * Saving display name (without propagating it)
      
      * Getters for display name and avatar URL
      
      * Doc'd
      
      * Introduced new Kafka topic and producer
      
      * Updated config with new kafka topic
      
      * Switched to samara producer and now sending messages
      
      * Doc'd
      
      * Put kafka update after the database insert
      
      * Doc'd profileUpdate structure
      
      * Removed unused parameter
      
      * Moved user updates producer to clientapi/producers
      355ab5ee
  32. 10 7月, 2017 1 次提交
    • B
      Profile API (#151) · 1efbad81
      Brendan Abolivier 提交于
      * Profile retrieval
      
      * Saving avatar (without propagating it)
      
      * Saving display name (without propagating it)
      
      * Getters for display name and avatar URL
      
      * Doc'd
      
      * Remove unused import
      
      * Applied requested changes
      
      * Added auth on PUT /profile/{userID}/...
      
      * Improved error handling/reporting
      
      * Using utils log reporting
      
      * Removed useless checks
      1efbad81
  33. 27 6月, 2017 1 次提交
  34. 19 6月, 2017 1 次提交
    • M
      Replace the cmd specific config with common config. (#144) · e67f9401
      Mark Haines 提交于
      * Move all the dendrite config in to a single place
      
      * Add tests for config parsing
      
      * replace syncserver config with common config
      
      * Replace client API config with common config
      
      * Replace federation API config with common config
      
      * Replace media api config with common config
      
      * Replace room server config with common config
      
      * Remove unused readKey function
      
      * Fix the integration tests
      
      * Comment on hardcoding roomserver to HTTP
      
      * Add a method for getting RoomServerURL
      
      This moves the hardcoding of HTTPs into one place.
      e67f9401
  35. 31 5月, 2017 1 次提交