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

admin: add utility functions #295

Closed
batopa opened this issue Sep 5, 2012 · 12 comments
Closed

admin: add utility functions #295

batopa opened this issue Sep 5, 2012 · 12 comments

Comments

@batopa
Copy link
Member

batopa commented Sep 5, 2012

Add "Utility" to left menu in Admin module.

This section has to contain some utility functions that are present in some shell script.
List of useful functions:

  • cleanup (bedita shell: delete tmp files)
  • export (bedita shell: specify in UI if export has to be done with or without media)
  • import (bedita shell)
  • modules (bedita shell: enable/disable core module)
  • rebuildIndex (dbadmin shell: rebuild search text indexes)
  • cleanup (dbadmin shell: remove old items from log/job tables)
  • others....
@ghost ghost assigned qwerg Sep 5, 2012
@batopa batopa closed this as completed Sep 5, 2012
@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

Fare parte UI

@qwerg
Copy link
Member

qwerg commented Sep 5, 2012

gestione core modules come plugin modules

alrti comnadi come pulsanti

@qwerg
Copy link
Member

qwerg commented Sep 5, 2012

utility view added,

commands:

cleanup files /
cleanup logs /
rebuildindex /
updatestreamfield /
clearmediacache

126c216

importData view added as {bedev} in menuLeft.tpl,
may have same behaviour as import command in "publications/section".

@qwerg
Copy link
Member

qwerg commented Sep 5, 2012

Core module management.

View for turning OFF/ON core modules (just on/off, not plug/unplug) (TODO: controller, of course)

Admin and Publications(areas) modules should not be turned off

Questions: are we assuming that superusers/admin only have access on this area? so further check on modulesList permission is not necessary?

2f31fee

@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

Modules should not be turned off

  • Admin
  • Users

Add drag and drop to reorder modules priority

@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

1083b6b toggle core modules

@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

0c684fc, fc5d08f, 73ab12a, 9f58a8f

Implemented utility updateStreamFields and generic workflow.

Clicking on "GO" button an ajax call is launched. If operation has success an informative alert is triggered. If an error occurs an alert and BEdita error msg are triggered. Andrea choose if you want only alert or only BEdita error msg.

@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

af2d1ab

added rebuildIndex (missing creation of log file with results)

@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

09e9112 added parameter at SearchIndex::rebuildIndex() to avoid to return array of success items

@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

79cfd1d

impemented the utility functions cleanup cache_', '''empty logs''', '_clear media cache.
Added an Utility model class to handle common operations used both in UI and in shell scripts.

For now both alert and standard BEdita info/warn/error messages are triggered. (What should we use? Andrea?)

  • Error => triggered if the operation can't continue
  • Warning => triggered if the operation was done but some errors occured. In this case the standard BEdita message detail show the log (is it ok?)
  • Info => triggered if the operation was done successfully

@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

(In 46c78bd) trunk - sort modules see #295

@batopa
Copy link
Member Author

batopa commented Sep 5, 2012

0aac854

I decided that we use standard info/warning/error of BEdita. Alert removed.
For other utility functions we'll open new specific tickets.

qwerg added a commit that referenced this issue Sep 5, 2012
qwerg added a commit that referenced this issue Sep 5, 2012
qwerg added a commit that referenced this issue Sep 5, 2012
batopa added a commit that referenced this issue Sep 5, 2012
batopa added a commit that referenced this issue Sep 5, 2012
batopa added a commit that referenced this issue Sep 5, 2012
batopa added a commit that referenced this issue Sep 5, 2012
… cache', 'empty logs', 'clear media cache'.

Added an Utility model class to handle common operations used both in UI and in shell scripts
batopa added a commit that referenced this issue Sep 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants