Note: This issue is reserved for an intern/applicant at MD Systems. Please do not work on this unless assigned to it by us :)

Problem/Motivation

When using the Export form at admin/people/simplenews/export and checking both "Active" and "Inactive", there is an SQL error.

Proposed resolution

Fix the status condition in SubscriberExportForm.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Arla created an issue. See original summary.

Arla’s picture

Title: SQL error for status field on export form » SQL error on export form
Issue summary: View changes

Same goes for the "Subscribed" selection.

Ginovski’s picture

Assigned: Unassigned » Ginovski
Status: Active » Needs review
FileSize
716 bytes
Arla’s picture

Looks good to me. The test won't run because of a branch fail: #2789215: Fix failing tests Let's get that fixed so we can commit this then.

Ginovski’s picture

Updating with fixed tests.

Status: Needs review » Needs work

The last submitted patch, 5: sql-error-export-form-2772717-5.patch, failed testing.

The last submitted patch, 5: sql-error-export-form-2772717-5.patch, failed testing.

Ginovski’s picture

Status: Needs work » Needs review
Berdir’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

Where are the tests? :)

Ginovski’s picture

Status: Needs work » Needs review
FileSize
1004 bytes
1.68 KB

With added tests now

Ginovski’s picture

Berdir’s picture

Status: Needs review » Needs work

We have existing tests for the export. Lets extend those instead of adding more test methods. Also, always upload a test-only patch when writing test coverage for a bugfix.

Ginovski’s picture

The last submitted patch, 13: sql_error_export_form-2772717-13-test-only.patch, failed testing.

Berdir’s picture

Status: Needs review » Fixed

Now I like it :)

Committed.

  • Berdir committed 41a9e5c on 8.x-1.x authored by Ginovski
    Issue #2772717 by Ginovski: SQL error on export form
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.