Skip to content
Snippets Groups Projects
  1. Dec 10, 2019
    • Nicolas Dular's avatar
      Add broadcast_type to broadcast messages · 2444a67a
      Nicolas Dular authored and Thong Kuah's avatar Thong Kuah committed
      Adds two different types of broadcast messages. Banner type is the
      current design and will be kept shown on the top of the site, where
      notification will be implemented in a separate frontend MR.
      2444a67a
  2. Nov 29, 2019
    • Nicolas Dular's avatar
      Add path based targeting to broadcast messages · 604b3f8a
      Nicolas Dular authored
      This adds `target_path` to `BroadcastMessages` to allow to show
      broadcast messages at certain URLs.
      To match complex URLs, we allow to use `*` as wildcard characters for
      the `target_url`. Since SQL is using `%` for wildcards, we need to
      replace these characters in our query.
      604b3f8a
  3. Aug 31, 2019
  4. Jul 30, 2019
    • Yorick Peterse's avatar
      Inject EE modules in a CE compatible fashion · 1112fec4
      Yorick Peterse authored
      All instances of injecting an EE specific module have been changed to
      use the new methods for this: prepend_if_ee, extend_if_ee, and
      include_if_ee. This allows these lines to be included in CE, even when
      the modules to inject do not exist. This in turn allows us to backport
      these lines to CE and keep them there, instead of having to strip them
      out.
      Unverified
      1112fec4
  5. Jun 25, 2019
  6. Jun 07, 2019
  7. Mar 28, 2019
  8. Mar 20, 2019
  9. Dec 19, 2018
  10. Dec 09, 2018
  11. Nov 12, 2018
    • Yorick Peterse's avatar
      Move EE prepend/include calls to the end of models · 34836b9e
      Yorick Peterse authored
      This moves all instances of `prepend EE::Something` and `include
      EE::Something` in models to the last line of the corresponding model.
      This pushes EE specific code further down the files, reducing the
      likelihood of developers running into merge conflicts.
      Unverified
      34836b9e
  12. Aug 01, 2018
  13. Jul 26, 2018
  14. Apr 11, 2018
  15. Sep 07, 2017
  16. Aug 21, 2017
  17. Aug 11, 2017
    • Yorick Peterse's avatar
      Better caching and indexing of broadcast messages · a5c8a527
      Yorick Peterse authored
      Caching of BroadcastMessage instances has been changed so a cache stays
      valid as long as the default cache expiration time permits, instead of
      the cache being expired after 1 minute. When modifying broadcast
      messages the cache is flushed automatically.
      
      To remove the need for performing sequence scans on the
      "broadcast_messages" table we also add an index on (starts_at, ends_at,
      id), permitting PostgreSQL to use an index scan to get all necessary
      data.
      
      Finally this commit adds a few NOT NULL constraints to the table to
      match the Rails validations.
      
      Fixes gitlab-org/gitlab-ce#31706
      Verified
      a5c8a527
  18. Jun 15, 2017
  19. Oct 07, 2016
    • Nick Thomas's avatar
      Add markdown cache columns to the database, but don't use them yet · e94cd6fd
      Nick Thomas authored
      This commit adds a number of _html columns and, with the exception of Note,
      starts updating them whenever the content of their partner fields changes.
      
      Note has a collision with the note_html attr_accessor; that will be fixed later
      
      A background worker for clearing these cache columns is also introduced - use
      `rake cache:clear` to set it off. You can clear the database or Redis caches
      separately by running `rake cache:clear:db` or `rake cache:clear:redis`,
      respectively.
      e94cd6fd
  20. Jun 03, 2016
  21. May 09, 2016
  22. May 06, 2016
  23. Jan 29, 2016
  24. Jan 15, 2016
  25. Jan 13, 2016
  26. Dec 07, 2015
  27. Feb 05, 2015
  28. Jun 26, 2014
  29. Jun 04, 2014
  30. Apr 09, 2014
  31. Dec 19, 2013
Loading