Skip to content
Snippets Groups Projects
  1. May 09, 2017
    • Matt Jankowski's avatar
      Spec and refactor for pubsubhubbub/unsubscribe service (#2946) · 441d6dc7
      Matt Jankowski authored
      * Add coverage for pubsub unsubscribe service
      
      * Refactor pubsub unsubscribe service
      441d6dc7
    • Akihiko Odaki's avatar
      Use CLD3 (#2949) · d5cabfe5
      Akihiko Odaki authored
      Compact Language Detector v3 (CLD3) is the successor of CLD2, which was
      used in the previous implementation. CLD3 includes improvements since CLD2,
      and supports newer compilers. On the other hand, it has additional
      requirements and cld3-ruby, the FFI of CLD3 for Ruby, is still new and may
      be still inmature.
      
      Though CLD3 is named after CLD2, it is implemented with a neural network
      model, different from the old implementation, which is based on a Naïve
      Bayesian classifier.
      
      CLD3 supports newer compilers, such as GCC 6. CLD2 is not compatible with
      GCC 6 because it assigns negative values to varibales typed unsigned.
      (see internal/cld_generated_cjk_uni_prop_80.cc) The support for GCC 6 and
      newer compilers are essential today, when some server operating system
      such as Ubuntu Server 16.10 has GCC 6 by default.
      
      On the one hand, CLD3 requires C++11 support. Environments with old
      compilers such as Ubuntu Server 14.04 needs to update the system or install
      a newer compiler.
      
      CLD3 needs protocol buffers as a new dependency. However,it is not
      considered problematic because major server operating systems, CentOS and
      Ubuntu Server provide them.
      
      The FFI cld3-ruby was written by me (Akihiko Odaki) for use in Mastodon.
      It is still new and may be inmature, but confirmed to pass existing tests.
      d5cabfe5
    • abcang's avatar
  2. May 08, 2017
  3. May 07, 2017
  4. May 06, 2017
  5. May 05, 2017
    • Matt Jankowski's avatar
      Misc spec coverage improvements (#2821) · 484c9709
      Matt Jankowski authored
      * Dont use raise_error by itself (avoids warning)
      
      * Add coverage for AccountFilter
      
      * Improve coverage and refactor for Subscription#lease_seconds
      
      * Improve coverage and refactor for NotificationMailer
      
      * Simplify assignment of min/max threshold on subscription
      484c9709
    • masarakki's avatar
      d08f1112
    • Matt Jankowski's avatar
      Add specs (and refactor) of FetchRemoteResourceService and SearchService (#2812) · 20c37ed0
      Matt Jankowski authored
      * Coverage for fetch remote resource service
      
      * Refactor fetch remote resource service
      
      * Coverage for search service
      
      * Refactor search service
      20c37ed0
    • Eugen Rochko's avatar
      More robust PuSH subscription refreshes (#2799) · 81584779
      Eugen Rochko authored
      * Fix #2473 - Use sidekiq scheduler to refresh PuSH subscriptions instead of cron
      
      Fix an issue where / in domain would raise exception in TagManager#normalize_domain
      
      PuSH subscriptions refresh done in a round-robin way to avoid hammering a single
      server's hub in sequence. Correct handling of failures/retries through Sidekiq (see
      also #2613). Optimize Account#with_followers scope. Also, since subscriptions
      are now delegated to Sidekiq jobs, an uncaught exception will not stop the entire
      refreshing operation halfway through
      
      Fix #2702 - Correct user agent header on outgoing http requests
      
      * Add test for SubscribeService
      
      * Extract #expiring_accounts into method
      
      * Make mastodon:push:refresh no-op
      
      * Queues are now defined in sidekiq.yml
      
      * Queues are now in sidekiq.yml
      81584779
  6. May 04, 2017
  7. May 03, 2017
    • ThibG's avatar
      Additional specs for URI handling (#2759) · 8d4e7504
      ThibG authored
      8d4e7504
    • Eugen Rochko's avatar
      Fix #2706 - Always respond with 200 to PuSH payloads (#2733) · bafd22ec
      Eugen Rochko authored
      Fix #2196 - Respond with 201 when Salmon accepted, 400 when unverified
      Fix #2629 - Correctly handle confirm_domain? for local accounts
      Unify rules for extracting author acct from XML, prefer <email>, fall back
      to <name> + <uri> (see also #2017, #2172)
      bafd22ec
    • Matt Jankowski's avatar
      Language improvements, replace whatlanguage with CLD (#2753) · 8c5ad23b
      Matt Jankowski authored
      * add failing en specs
      
      * add cld2 gem
      
      * Replace WhatLanguage with CLD
      8c5ad23b
    • Eugen Rochko's avatar
      Replace sprockets/browserify with Webpack (#2617) · f5bf5ebb
      Eugen Rochko authored
      * Replace browserify with webpack
      
      * Add react-intl-translations-manager
      
      * Do not minify in development, add offline-plugin for ServiceWorker background cache updates
      
      * Adjust tests and dependencies
      
      * Fix production deployments
      
      * Fix tests
      
      * More optimizations
      
      * Improve travis cache for npm stuff
      
      * Re-run travis
      
      * Add back support for custom.scss as before
      
      * Remove offline-plugin and babili
      
      * Fix issue with Immutable.List().unshift(...values) not working as expected
      
      * Make travis load schema instead of running all migrations in sequence
      
      * Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
      React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
      <UI />
      
      * Add react definitions to places that use JSX
      
      * Add Procfile.dev for running rails, webpack and streaming API at the same time
      f5bf5ebb
  8. May 02, 2017
  9. May 01, 2017
    • Matt Jankowski's avatar
      Coverage for remote follows (#2694) · a4859446
      Matt Jankowski authored
      * Add coverage for create with empty acct value
      
      * Add coverage for create with webfinger failure
      
      * Add coverage for create with webfinger providing bad values
      
      * Add coverage for create when webfinger is good
      
      * Add coverage for session[:remote_follow] having data
      
      * Simplify how remote follow pulls acct from session
      
      * Remote follow behaves more like model
      
      * Move the discovery portions of remote follow out of controller
      
      * Check for suspended accounts
      a4859446
    • Matt Jankowski's avatar
      Filter on allowed user language preferences (#2361) · f025cc67
      Matt Jankowski authored
      * Naive approached to timeline filtering
      
      * Convert allowed_languages into a db column
      
      * Allow users to choose languages to see statuses in
      
      * Style list items as two columns
      
      * Add a hint to explain language filtering preference
      f025cc67
  10. Apr 30, 2017
  11. Apr 29, 2017
  12. Apr 28, 2017
    • Joël Quenneville's avatar
      Add tests to the Feed model (#2594) · 27301312
      Joël Quenneville authored
      This adds a test for the `Feed#get` method. While the data
      transformations in `Feed#get` may seem redundant, they are important to
      maintain the order from Redis. The tests I wrote will fail if someone
      tries to refactor away this "redundancy" (as I tried to do in the first
      iteration of this change).
      27301312
    • Patrick Figel's avatar
      Set correct attachment type for rejected media (#2599) · 8ac7fca5
      Patrick Figel authored
      In #2110, a new attachment type "unknown" was introduced for
      attachments that were rejected due to a domain being blocked using
      reject_media. However, the "type" field was never set to "unknown"
      because a default value of "0" (image) is set for that column,
      causing the `type.blank?` expression to always equal false.
      
      This version uses type_changed? instead, causing the type to be set
      to "unknown" unless a type has been explicitly set. This introduces
      a small change in behaviour causing the type to be set to unknown
      before paperclip calls `before_post_process`. Presumably this
      behaviour is more appropriate than the current one because the
      attachment type has not been determined by that point.
      
      Included are new tests for `ProcessFeedService` and
      `UpdateRemoteProfileService` which now check that remote media is
      downloaded for non-blocked domains and is rejected for others.
      8ac7fca5
    • Matt Jankowski's avatar
      a823509b
Loading