Skip to content

COMMIT 2: Rename mod_feedback → mod_individualfeedback and smoke-test…#2

Draft
awagner wants to merge 1 commit intoMBS-10152-commit1from
MBS-10152-commit2
Draft

COMMIT 2: Rename mod_feedback → mod_individualfeedback and smoke-test…#2
awagner wants to merge 1 commit intoMBS-10152-commit1from
MBS-10152-commit2

Conversation

@awagner
Copy link

@awagner awagner commented Sep 17, 2025

… installation

Complete migration from Feedback to Individual Feedback plugin including:

  • Global rename: mod_feedback → mod_individualfeedback
  • Database schema updates: all table and column names updated
  • All code references, SQL queries, and object properties updated
  • File structure: all files and classes properly renamed
  • Language strings: updated for clear plugin distinction ('Individual Feedback')
  • Backup/restore: fully functional with new naming convention
  • Form fields and validation: all references corrected
  • Constants: FEEDBACK_* → INDIVIDUALFEEDBACK_* throughout
  • Upgrade scripts: handles existing installations seamlessly
  • All smoke tests pass: installation, question creation, and core functionality verified

Plugin now works independently as 'Individual Feedback' without conflicts with original Feedback plugin.

… installation

Complete migration from Feedback to Individual Feedback plugin including:
- Global rename: mod_feedback → mod_individualfeedback
- Database schema updates: all table and column names updated
- All code references, SQL queries, and object properties updated
- File structure: all files and classes properly renamed
- Language strings: updated for clear plugin distinction ('Individual Feedback')
- Backup/restore: fully functional with new naming convention
- Form fields and validation: all references corrected
- Constants: FEEDBACK_* → INDIVIDUALFEEDBACK_* throughout
- Upgrade scripts: handles existing installations seamlessly
- All smoke tests pass: installation, question creation, and core functionality verified

Plugin now works independently as 'Individual Feedback' without conflicts with original Feedback plugin.
@awagner awagner marked this pull request as draft September 17, 2025 13:52
@mod @mod_individualfeedback
Feature: Anonymous feedback
In order to collect feedbacks
As an admin
Copy link
Author

Choose a reason for hiding this comment

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

This and other behat tests needs to be checked. I assume, that renaming is not complete (for example in line 27)

DELETE FROM mdl_config_plugins WHERE plugin = 'mod_individualfeedback';

-- Remove course modules (this will also remove activities)
DELETE cm FROM mdl_course_modules cm
Copy link
Author

Choose a reason for hiding this comment

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

Using this script is dangerous. It will not properly delete the context for the module, nor the sections assignments. and other stuff related to created modules. Please remove this.

Our expectation is that we will never need this and the upgrade to your version of the plugin will keep the data existing from former feedback submissions.

@@ -0,0 +1,13 @@
-- Alternative approach: Register the existing installation
Copy link
Author

Choose a reason for hiding this comment

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

Please remove this script, i assume this is used for development, but this is not a proper installation of the plugin.

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024100701; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2024100714; // The current module version (Date: YYYYMMDDXX).
Copy link
Author

Choose a reason for hiding this comment

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

Why have you changes the plugin version? I assume you have triggered some upgrade steps during renaming.
It is ok to increase the day digits, but please leave a comment, that describes, from which version you have forked the plugin and why.

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.

2 participants