Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-8974: Add repeating of cards #47

Merged
merged 3 commits into from
Jan 14, 2025
Merged

Conversation

sh-csg
Copy link
Contributor

@sh-csg sh-csg commented Mar 26, 2024

No description provided.

@sh-csg sh-csg self-assigned this Mar 26, 2024
@sh-csg sh-csg mentioned this pull request Mar 26, 2024
@sh-csg sh-csg force-pushed the MBS-8974-repeating-cards branch 2 times, most recently from d7efc8d to 29d3bbb Compare December 16, 2024 06:54
@sh-csg sh-csg force-pushed the MBS-8974-repeating-cards branch from 29d3bbb to fdcf7c8 Compare December 16, 2024 07:04
@fhuebler fhuebler self-requested a review January 13, 2025 12:42
@fhuebler
Copy link

Wunderbar. Codechecker & Co sind auch zufrieden.
Kleine Notiz bei den Unit tests:

  1. core_privacy\privacy\provider_test::test_metadata_provider with data set "mod_kanban" ('mod_kanban', 'mod_kanban\privacy\provider')
    Warning: unexpected database modification, resetting DB state

/var/www/html/lib/phpunit/classes/util.php:317
/var/www/html/lib/phpunit/classes/advanced_testcase.php:523
/var/www/html/lib/phpunit/classes/advanced_testcase.php:130


$mform->setType('repeat_interval', PARAM_INT);
$mform->setType('repeat_interval_type', PARAM_INT);
$mform->setDefault('repeat_interval', 1);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bei mir ist der default leider 0 (also 0 Stunden).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das kommt wohl daher, dass der Standard-Wert in der DB 0 ist. Ich habe das angepasst.

$dbman->add_field($table, $field);
}

$field = new xmldb_field(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warum wird hier eine unterschiedliche Formatierung genutzt? Oben inline, hier über mehrere Zeilen.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wegen der maximalen Zeilenlänge von 132 Zeichen.

@fhuebler
Copy link

In Verbindung mit MBS-8982: Add card numbers müsste dann noch überprüft werden, ob die Nummer automatisch hochgezählt werden.

}
$card->repeat_enable = 0;
$this->update_card($cardid, (array) $card);
$newcard->isrepeated = 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wo wird isrepeated noch verwendet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ist entfernt, das ist wohl ein Überrest einer alten Implementierung

@PhMemmel
Copy link
Member

unit test error is probably caused by another plugin in our mbsmoodle instance.

$card->repeat_enable = 0;
$this->update_card($cardid, (array) $card);
$newcard->isrepeated = 1;
$this->add_card($this->get_leftmost_column($card->kanban_board), 0, (array)$newcard);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(array) $newcard fehlendes Leerzeichen

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHPCS moniert das nicht

@sh-csg
Copy link
Contributor Author

sh-csg commented Jan 13, 2025

In Verbindung mit MBS-8982: Add card numbers müsste dann noch überprüft werden, ob die Nummer automatisch hochgezählt werden.

Das müsste funktionieren - add_card() kümmert sich ja um das Hochzählen

@fhuebler fhuebler merged commit ffde071 into master Jan 14, 2025
20 checks passed
@fhuebler fhuebler deleted the MBS-8974-repeating-cards branch January 14, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants