Skip to content
Snippets Groups Projects
  1. Apr 12, 2024
  2. Apr 11, 2024
  3. Apr 10, 2024
  4. Apr 09, 2024
    • James Nutt's avatar
      Address style violations in project import specs · 7e998aa0
      James Nutt authored
      This MR removes some existing style violations and the associated
      `.rubocop-todo` entries.
      7e998aa0
    • Lesley Razzaghian's avatar
      Delete unused LLM `JsonReader` tool · 1debe4e2
      Lesley Razzaghian authored
      Verified
      1debe4e2
    • Marcos Rocha's avatar
    • Furkan Ayhan's avatar
      Defer CI catalog publish decision to release-cli · 7878161a
      Furkan Ayhan authored and Leaminn Ma's avatar Leaminn Ma committed
      We will be changing how catalog publishing works by moving
      the metadata processing and publishing to release-cli.
      In our ideal case, `Releases::CreateService` should not run
      `Ci::Catalog::Resources::ReleaseService` and this should be in
      a separate endpoint. And in the future, we'll also change the catalog
      publishing service because we don't want to calculate the metadata
      on the server side.
      
      To this end, we are deferring the catalog publish decision to
      release-cli;
      
      - If release-cli sends `legacy_catalog_publish` true, then
      `Releases::CreateService` publishes the catalog resource.
      - Otherwise, it does not publish the catalog.
      It only creates the release.
      
      In this MR, we are adding the new `legacy_catalog_publish` parameter
      to the `/releases` API endpoint. Then, we are using it in
      `Releases::CreateService` to decide publishing the catalog resource.
      
      We are also starting to send the `--catalog-publish` CLI option to
      release-cli. This will notify the release-cli that "this release is a
      catalog resource so send `legacy_catalog_publish` as true if you want
      to publish this release". In the future, release-cli will still use this
      flag but then it will not send the `legacy_catalog_publish` parameter.
      Instead, it will call the catalog resource endpoint separately.
      
      These changes are behind the FF `ci_release_cli_catalog_publish_option`.
      We'll use this FF to control this change to prevent breaking changes.
      7878161a
    • Ankit Panchal's avatar
  5. Apr 08, 2024
  6. Apr 04, 2024
  7. Apr 03, 2024
  8. Apr 02, 2024
  9. Mar 30, 2024
    • Harry Minsky's avatar
      Rename `NamespaceSettings::UpdateService` class · 5916caf6
      Harry Minsky authored
      This commit refactors the NamespaceSettings::UpdateService class
      to NamespaceSettings::AssignAttributesService, since it does not
      actually updated namespace settings, it assigns attributes.
      
      The commit involves a complete refactoring of the class and all
      references to it in other files, along with the renaming of any
      ruby namespace file with "update_service" in the name to "assign_
      attributes_service", and updating rubocop config files that
      reference them. This is done in both the core and enterprise
      directories.
      
      Fixes #444223
      5916caf6
  10. Mar 28, 2024
  11. Mar 25, 2024
  12. Mar 24, 2024
  13. Mar 21, 2024
  14. Mar 20, 2024
  15. Mar 18, 2024
  16. Mar 17, 2024
  17. Mar 14, 2024
    • Peter Leitzen's avatar
      Add new cop Gitlab/Rails/SafeFormat · 99e2f6fe
      Peter Leitzen authored
      Enforce `safe_format` for externalized strings with interpolations and
      `.html_safe`.
      
        # bad
        _('string %{open}foo%{close}').html_safe % { open: '<b>'.html_safe, close: '</b>'.html_safe }
        format(_('string %{open}foo%{close}').html_safe, open: '<b>'.html_safe, close: '</b>'.html_safe)
      
        # good
        safe_format(_('string %{open}foo%{close}'), tag_pair(tag.b, :open, :close)
        # also good no `html_safe`
        format(_('string %{var} number'), var: var)
      Verified
      99e2f6fe
  18. Mar 13, 2024
  19. Mar 05, 2024
Loading