1. 12 7月, 2017 1 次提交
  2. 11 7月, 2017 1 次提交
    • 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
  3. 28 6月, 2017 1 次提交
    • M
      Add a component for sending event to remote matrix servers using fede… (#148) · 8f1dca4e
      Mark Haines 提交于
      * Add a component for sending event to remote matrix servers using federation
      
      * Use named constants
      
      * Comment on why we combine the deltas
      
      * Comments
      
      * Copyright headers!
      
      * Fix the copy+Pasted comment
      
      * Add tests for combineDeltas
      
      * Review comments
      
      * More review comments
      
      * More comments
      
      * Even more comments
      
      * Name the mutexes
      
      * Document what the mutexes are protecting
      
      * Simplify the SQL, and more comments
      8f1dca4e
  4. 27 6月, 2017 2 次提交
    • M
      Set depth of events and whether they need to be federated. (#145) · 54e7e304
      Mark Haines 提交于
      * Set depth of events and whether they need to be federated.
      
      Set the depth of each new event to one greater than the maximum depth
      of it's direct ancestors.
      
      Add a flag to each event passing through the roomserver that tells us
      whether the event needs to be sent over federation.
      
      We do this by passing the name of the server to send the event as.
      We will need this capability if we want to support vhosting as it is
      not possible to tell from the event alone which server to send it as.
      
      (The reason for this is that sometimes a event needs to be sent on
      behalf of a different remote matrix server)
      
      * Update roomserver integration tests
      
      * More comments
      
      * Constants and comments
      
      * Fix comments
      
      * Document the int64 returned by LatestEventIDs
      54e7e304
    • M
      Include the state before the event in roomserver output (#143) · 572f6c39
      Mark Haines 提交于
      * Include the state before the event in roomserver output
      
      * Fix roomserver integration test
      
      * Remove VisibilityEventIDs from the JSON
      
      * More comments
      
      * Remove spurious TODO
      572f6c39
  5. 25 6月, 2017 2 次提交
  6. 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
  7. 10 6月, 2017 1 次提交
  8. 08 6月, 2017 1 次提交
    • R
      Foundation for media API testing (#136) · 6eae6f75
      Robert Swain 提交于
      * cmd/mediaapi-integration-tests: Add foundation for testing
      
      * common/test: Add some server init and client request utilities
      
      * common/test/client: Handle timed out requests for tests that passed
      
      * cmd/syncserver-integration-tests: Port to new common/test infra
      
      * common/test/client: Remove stray debug print
      
      * cmd/mediaapi-integration-tests: Simplify slice initialisation
      
      * cmd/mediaapi-integration-tests: Simplify getMediaURL argument
      
      * cmd/mediaapi-integration-tests: Make startMediaAPI return listen address
      
      * common/test/client: Fix uninitialised LastRequestErr
      
      * common/test/server: Remove redundant argument
      
      * common/test/server: Add StartProxy to create a reverse proxy
      
      * cmd/mediaapi-integration-tests: Add proxies in front of servers
      
      This is needed so that origins can be correctly configured and used for
      remote media.
      
      * travis: Enable media API integration tests
      
      * travis: Build the client-api-proxy for media tests
      
      * common/test/client: Don't panic on EOF in CanonicalJSONInput
      
      * cmd/mediaapi-integration-tests: Add upload/download/thumbnail tests
      
      * mediaapi/thumbnailer: Store thumbnail according to requested size
      
      * cmd/mediaapi-integration-tests: Add totem.jpg test file
      
      * cmd/client-api-proxy: Optionally listen for HTTPS
      
      * common/test/client: Do not verify TLS certs for testing
      
      We will commonly use self-signed certs.
      
      * cmd/mediaapi-integration-tests: Make HTTPS requests
      
      * cmd/mediaapi-integration-tests: Log size and method for thumbnails
      
      * mediaapi/thumbnailer: Factor out isThumbnailExists
      
      Appease gocyclo^w^w simplify
      
      * mediaapi/thumbnailer: Check if request is larger than original
      
      * travis: Install openssl and generate server.{crt,key}
      
      * cmd/mediaapi-integration-tests: Add valid dynamic thumbnail test
      
      * cmd/mediaapi-integration-tests: Document state of tests
      
      * cmd/mediaapi-integration-tests: Test remote thumbnail before download
      
      This ordering also exercises the cold cache immediate generation of a
      size configured for pregeneration.
      
      * travis: Explain openssl key+cert generation
      
      * common/test/server: Clarify postgresContainerName
      6eae6f75
  9. 07 6月, 2017 2 次提交
    • M
      Add support for receiving room events over federation. (#130) · 515cce1a
      Mark Haines 提交于
      * Add API for querying events by ID.
      
      * Fix tense
      
      * Start implementing federation ingress
      
      * More stuff
      
      * Hook up federation event receiving
      
      * Handle the case where we are missing state
      
      * Fix docstring and comments
      
      * Fix infinite loop when printing unknownRoomError
      515cce1a
    • R
      mediaapi: Add thumbnail support (#132) · 2d202cec
      Robert Swain 提交于
      * vendor: Add bimg image processing library
      
      bimg is MIT licensed. It depends on the C library libvips which is LGPL
      v2.1+ licensed. libvips must be installed separately.
      
      * mediaapi: Add YAML config file support
      
      * mediaapi: Add thumbnail support
      
      * mediaapi: Add missing thumbnail files
      
      * travis: Add ppa and install libvips-dev
      
      * travis: Another ppa and install libvips-dev attempt
      
      * travis: Add sudo: required for sudo apt* usage
      
      * mediaapi/thumbnailer: Make comparison code more readable
      
      * mediaapi: Simplify logging of thumbnail properties
      
      * mediaapi/thumbnailer: Rename metrics to fitness
      
      Metrics is used in the context of monitoring with Prometheus so renaming
      to avoid confusion.
      
      * mediaapi/thumbnailer: Use math.Inf() for max aspect and size
      
      * mediaapi/thumbnailer: Limit number of parallel generators
      
      Fall back to selecting from already-/pre-generated thumbnails or serving
      the original.
      
      * mediaapi/thumbnailer: Split bimg code into separate file
      
      * vendor: Add github.com/nfnt/resize pure go image scaler
      
      * mediaapi/thumbnailer: Add nfnt/resize thumbnailer
      
      * travis: Don't install libvips-dev via ppa
      
      * mediaapi: Add notes to README about resizers
      
      * mediaapi: Elaborate on scaling libs in README
      2d202cec
  10. 05 6月, 2017 1 次提交
  11. 02 6月, 2017 2 次提交
  12. 26 5月, 2017 3 次提交
  13. 25 5月, 2017 2 次提交
    • M
      Start implementing /join for room aliases for rooms the server is not in. (#115) · 84ad4ff9
      Mark Haines 提交于
      * Start implementing the join room API
      
      * Hacks to get join room working
      
      * Make the TLS fingerprint configurable
      
      * Fix the client API proxy to handle '#' correctly
      
      * Return a 200 OK response
      
      * Write the join event along with current state to the room server
      
      * Comment on the error handling
      
      * Fix typos
      
      * Fix tab
      
      * Add TODO for moving authEventIDs to gomatrixserverlib
      
      * Comment on why we ignore the key ID argument for local keys
      
      * Avoid 'preceeded'
      
      * Neaten the control flow
      
      * Neaten the control flow even more
      
      * Return pointers
      
      * Rename err to lastErr for the loop
      84ad4ff9
    • K
      Add in devices_table to store device information (#118) · 445dce14
      Kegsay 提交于
      445dce14
  14. 24 5月, 2017 1 次提交
  15. 22 5月, 2017 2 次提交
    • K
      Rename packages under /auth (#114) · d63a1ddc
      Kegsay 提交于
      Previously, all database stuff was under the helpfully named
      package 'storage'. However, this convention is used throughout all
      of dendrite, which will clash the moment we want to add auth to all
      the CS API endpoints. To prevent the package name clash, add
      sub-directories which represent what is being stored so the final
      usage ends up being:
      
      ```
      func doThing(db *storage.SyncServerDatabase, authDB *accounts.Database)
      {
          // ...
      }
      ```
      d63a1ddc
    • K
      0325459e
  16. 19 5月, 2017 1 次提交
  17. 18 5月, 2017 2 次提交
  18. 17 5月, 2017 3 次提交
  19. 16 5月, 2017 1 次提交
  20. 12 5月, 2017 1 次提交
  21. 11 5月, 2017 2 次提交
    • K
      Add more syncserver tests (#99) · 2a9abefd
      Kegsay 提交于
      Fixed exactly the same bug as before, but this time for incremental
      sync. Yay tests!
      2a9abefd
    • K
      Allow multiple sync server test requests (#98) · a506985a
      Kegsay 提交于
      - Test data for the sync server is now in its own file.
      - Rejig the sync server tests to support multiple /sync requests and corresponding
        assertions.
      - Fixed a minor bug which resulted in state events to appear twice in /sync
        responses when syncing without a `since` parameter.
      a506985a
  22. 10 5月, 2017 1 次提交
    • K
      Split out notifying /sync requests and calculating sync responses (#96) · 04f3c154
      Kegsay 提交于
      * Split out notifying /sync requests and calculating sync responses
      
      The logic for notifying /sync requests is about to get really
      complicated as we optimise when to wake up requests, so split
      out that code into a separate struct to isolate it and make
      it easier to unit test.
      04f3c154
  23. 09 5月, 2017 2 次提交
  24. 06 5月, 2017 2 次提交
  25. 05 5月, 2017 1 次提交
  26. 21 4月, 2017 1 次提交