Skip to content

Merge Phase1+3; Introduce client-side rendered CSV table to map CSV headers to attributes in the first few steps.#88

Open
dzatoah wants to merge 35 commits intomasterfrom
mr/merge-phase1+phase3
Open

Merge Phase1+3; Introduce client-side rendered CSV table to map CSV headers to attributes in the first few steps.#88
dzatoah wants to merge 35 commits intomasterfrom
mr/merge-phase1+phase3

Conversation

@dzatoah
Copy link
Copy Markdown
Collaborator

@dzatoah dzatoah commented Nov 10, 2025

Depends on #85

TODO: Videos

Requires Debian package patch and new dependency 'fonts-font-awesome'!
Make sure to symlink '/usr/share/gosa/html/plugins/schoolmanager/common/font-awesome/' to '/usr/share/fonts-font-awesome/'.
…me' config properties.

async_import_timeout:
- Timeout in seconds for checking if async job is idle.

async_import_refresh_time:
- Page refresh interval in seconds while async job is running.
This was introduced by wrongly-applied rules of De-Morgan in 9dbea00.
@dzatoah dzatoah self-assigned this Nov 10, 2025
@dzatoah dzatoah force-pushed the mr/merge-phase1+phase3 branch from ee11f1b to f78da77 Compare November 19, 2025 14:41
@dzatoah dzatoah marked this pull request as ready for review November 19, 2025 14:41
@dzatoah dzatoah changed the title [WIP] Merge Phase1+3; Introduce client-side rendered CSV table to map CSV headers to attributes in the first few steps. Merge Phase1+3; Introduce client-side rendered CSV table to map CSV headers to attributes in the first few steps. Nov 19, 2025
@dzatoah dzatoah marked this pull request as draft November 19, 2025 15:33
@dzatoah dzatoah force-pushed the mr/merge-phase1+phase3 branch from f78da77 to 78bc2e2 Compare November 19, 2025 16:05
@dzatoah dzatoah force-pushed the mr/merge-phase1+phase3 branch from 78bc2e2 to ec906db Compare November 19, 2025 16:59
@dzatoah dzatoah marked this pull request as ready for review November 19, 2025 16:59
… (theme aware); content_importaccounts_phase5: Use dynamic-account-table.js.
…> 3...

This commit starts to merge Phase 1 and Phase 3. Non functional as is.
// Get user interaction (POST-Request)
0. prepare_phase1()

// Get user interaction (POST-Request)
1. parse_phase1()    // Parse/Get/Handle $_POST content
2. execute_phase1()  // Execute business logic
3. prepare_phase2()  // Prepare Smarty Variables for next phase

// Get user interaction (POST-Request)
4. parse_phase2()
5. execute_phase2()
6. prepare_phase3()
...
…dController and CSVTableController for managing phase 1.
This commit continues to merge Phase 1 and Phase 3. Now functional.

Phase 1 now shows a client-side rendered CSV table, in which the user
should map columns to actual LDAP attributes. e.g:

Column 1 -> employeeNumber
Column 2 -> uid
Column 3 -> givenName

Like Phase 3 used to do, but now client side and more modern.

+ Adds own content_importaccounts_phase1.js
  - Adds FileUploadController
  - Adds CSVTableController
…nfo["data_preldap") in accountStatusCheck().
…ccounts where found.

- Instead now show 'multiple-objects-found' and 'unknown-error' if LDAP search errored out.
- Merges 'Post-processing' for-block with already running for-block.
- Silences msg_dialogs 'LDAP Error' and 'LDAP Tree Error'...
… function *BEFORE* LDAP import, to now show UID in Phase 3.
@dzatoah dzatoah force-pushed the mr/merge-phase1+phase3 branch from ec906db to 0b6cd44 Compare December 3, 2025 20:17
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.

1 participant