Skip to content
Snippets Groups Projects

Initial commit

Closes #3511069

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Narendra Singh Rathore resolved all threads

    resolved all threads

  • added 1 commit

    • f878770a - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    • cba7122c - Default filter passed in config

    Compare with previous version

  • added 2 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 17 commits

    Compare with previous version

  • Adam G-H added 1 commit

    added 1 commit

    • 9822f07e - Make things a little more strict

    Compare with previous version

  • Adam G-H added 1 commit

    added 1 commit

    • e652d40d - Make things a little more strict

    Compare with previous version

  • Adam G-H added 1 commit

    added 1 commit

    Compare with previous version

  • Adam G-H added 1 commit

    added 1 commit

    • 269beb79 - Alter Search.svelte to only conditionally show certain parts of the UI chrome

    Compare with previous version

  • Adam G-H added 1 commit

    added 1 commit

    • f011a8ab - Fix one actually broken test

    Compare with previous version

  • Adam G-H added 1 commit

    added 1 commit

    Compare with previous version

  • 47 47 label: 'Sort options'
    48 48 nullable: true
    49 49 sequence:
    50 type: string
    50 type: machine_name
  • 19 }
    20
    21 /**
    22 * {@inheritdoc}
    23 */
    24 public function getValue(): bool {
    25 return parent::getValue();
    26 }
    27
    28 /**
    29 * {@inheritdoc}
    30 */
    31 public function setValue(mixed $value): void {
    32 // We're willing to convert a numeric value to boolean.
    33 assert(is_bool($value) || is_numeric($value));
    34 parent::setValue((bool) $value);
  • 21 21 const multipleChoiceFilterNames = Object.keys(filterDefinitions).filter(
    22 22 (name) => filterDefinitions[name]._type === 'multiple_choice',
    23 23 );
    24 const numberOfFilters = Object.keys(filterDefinitions).length;
    25 const numberOfSorts = Object.keys(sorts).length;
  • 333 333 public function testFiltersShownIfDefinedBySource(): void {
    334 if (version_compare(\Drupal::VERSION, '10.3', '<')) {
    335 $this->markTestSkipped('This test requires Drupal 10.3 or later.');
    336 }
    337 334 $assert_session = $this->assertSession();
    338 335 $this->config('project_browser.admin_settings')
    339 336 ->set('enabled_sources', ['project_browser_test_mock'])
    340 337 ->save();
    341 338
    342 // Make the mock source show no filters, and ensure that we never see any.
    339 // Make the mock source show no filters, and ensure that we never see any
    340 // after a brief wait.
    343 341 \Drupal::state()->set('filters_to_define', []);
    344 342 $this->drupalGet('admin/modules/browse/project_browser_test_mock');
    345 $this->assertNull($assert_session->waitForElementVisible('css', '.search__form-filters-container'));
    343 $this->assertNull($assert_session->waitForElementVisible('css', '.search__filters', 4000));
  • 370 $this->assertElementIsVisible('css', self::MAINTENANCE_OPTION_SELECTOR);
    371 $this->assertPageHasText('Security advisory coverage');
    372 $this->assertElementIsVisible('css', self::SECURITY_OPTION_SELECTOR);
    373 // Make sure no other filters are displayed.
    374 $this->assertFalse($assert_session->waitForText('Development status'));
    375 $this->assertNull($assert_session->waitForElementVisible('css', self::DEVELOPMENT_OPTION_SELECTOR));
    376 $this->assertFalse($assert_session->waitForText('Filter by category'));
    377 // Make sure category filter element is not visible.
    378 $this->assertNull($assert_session->waitForElementVisible('css', 'div.search__form-filters-container > div.search__form-filters > section > fieldset > div'));
    367 $this->assertElementIsVisible('named', ['field', 'maintenance_status']);
    368 $this->assertElementIsVisible('named', ['field', 'security_advisory_coverage']);
    369 // Make sure no other filters are displayed after a brief wait.
    370 $this->assertNull($assert_session->waitForField('development_status', 4000));
    371 $this->assertFalse($assert_session->waitForText('Filter by category', 4000));
    372 // Make sure category filter element is not visible after a brief wait.
    373 $this->assertNull($assert_session->waitForElementVisible('css', 'div.search__form-filters-container > div.search__form-filters > section > fieldset > div', 4000));
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading