Project

General

Profile

Actions

Bug #23988

closed

Harmonize severity level of FlashMessages static/ExtJS

Added by Steffen Gebert over 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-11-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

#22268 introduced ExtJS driven FlashMessages, which fade out after a given amount of time.
The severity levels, which are used for these messages are different (regarding the number behind the constant) compared to the PHP FlashMessages.

Now (before the release) it's not to late to adjust severity levels.

(issue imported from #M16306)


Files

16306.diff (627 Bytes) 16306.diff Administrator Admin, 2010-11-08 16:31

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #22268: [Feature] ExtJS driven fading in/out FlashmessagesClosedSteffen Kamper2010-03-11

Actions
Related to TYPO3 Core - Task #62893: Refactor flashmessages.js to match severities from PHP flashMessagesClosedFrank Nägler2014-11-12

Actions
Actions #1

Updated by Steffen Gebert over 13 years ago

F*ck.. ExtJS driven messages have already been added in 4.4 :(

Actions #2

Updated by Xavier Perseguers over 12 years ago

  • Target version changed from 4.6.0-beta1 to 4.6.0-beta2
Actions #3

Updated by Xavier Perseguers over 12 years ago

  • Target version changed from 4.6.0-beta2 to 4.6.0-beta3
Actions #4

Updated by Steffen Gebert over 12 years ago

I suggest to remove the target version.

Actions #5

Updated by Ingo Renner over 12 years ago

Steffen Gebert wrote:

I suggest to remove the target version.

I suggest to remove ExtJs Flash Messages (maybe adding a ;), but maybe not)... Seriously, where are they used where we couldn't use the real deal?
Example: The new EM uses ExtJs Flash Messages, but they really should do a reload and use static ones for the actions where they are used...

Actions #6

Updated by Steffen Gebert over 12 years ago

They are needed for ExtJS modules, as they don't reload.

Actions #7

Updated by Oliver Hader over 12 years ago

  • Target version changed from 4.6.0-beta3 to 4.6.0-RC1
Actions #8

Updated by Steffen Gebert over 12 years ago

  • Target version changed from 4.6.0-RC1 to 4.7.0
Actions #9

Updated by Steffen Ritter over 12 years ago

  • Target version changed from 4.7.0 to 4.7.0-alpha2
Actions #10

Updated by Steffen Müller over 12 years ago

Some more details on this:

The core constantly uses the constants name instead of numbers when calling TYPO3.Flashmessage.display(). One exception: t3lib/js/extjs/components/pagetree/javascript/actions.js - This bug should be fixed.

I could not find a dedicated documentation for usage of ExtJS based Flashmessages, but one for t3lib_FlashMessage . This doc advices one to use constants, not numbers.

We now have in ExtJS based FlashMessage

TYPO3.Severity = {
    notice: 0,
    information: 1,
    ok: 2,
    warning: 3,
    error: 4
};

This is not in sync with t3lib_message_AbstractMessage

const NOTICE  = -2;
const INFO    = -1;
const OK      = 0;
const WARNING = 1;
const ERROR   = 2;

Both patterns do not look very logical to me, since I am used to order of RFC 3164, which suggest the following pattern. This one is already implemented in the core logging API in incubator

const EMERGENCY = 0;
const ALERT = 1;
const CRITICAL = 2;
const ERROR = 3;
const WARNING = 4;
const NOTICE = 5;
const INFO = 6;
const DEBUG = 7;

Ok is not part of this pattern. I am not sure how this should be handled.

What do you think?

Actions #11

Updated by Kay Strobach over 12 years ago

I would name the constants like this:

Ext.Flashmessage.Level

In PHP we do already have logging constants:

LOG_EMERG (integer)
LOG_ALERT (integer)
LOG_CRIT (integer)
LOG_ERR (integer)
LOG_WARNING (integer)
LOG_NOTICE (integer)
LOG_INFO (integer)
LOG_DEBUG (integer)
LOG_KERN (integer)

Why not using these constants?

Regards
Kay

Actions #12

Updated by Steffen Müller over 12 years ago

Kay, would you like to join the logging project team meeting and discuss this issue? Tomorrow, Wed., 2011/12/20 17:30 CET at http://bigbluebutton.typo3.org

Actions #13

Updated by Ingo Renner over 12 years ago

Steffen Müller wrote:

Kay, would you like to join the logging project team meeting and discuss this issue? Tomorrow, Wed., 2011/12/20 17:30 CET at http://bigbluebutton.typo3.org

Do we need to discuss these constants again?

Actions #14

Updated by Ingo Renner over 12 years ago

Kay Strobach wrote:

In PHP we do already have logging constants:
...
Why not using these constants?

there were (are) a couple of reasons why we didn't use them

  • use of abbreviations
  • they are for some reason located in networking which creates a somewhat strange feeling
  • the integer values are identical, so you could use them anyway if you wanted to
  • a little more control for us

In the end these are of course just minor things but still...
Does that answer your question?

best
Ingo

Actions #15

Updated by Oliver Hader over 12 years ago

  • Target version changed from 4.7.0-alpha2 to 4.7.0-alpha3
Actions #16

Updated by Steffen Ritter about 12 years ago

  • Target version changed from 4.7.0-alpha3 to 4.7.0-beta1
Actions #17

Updated by Steffen Ritter about 12 years ago

  • Target version deleted (4.7.0-beta1)
Actions #18

Updated by Alexander Opitz over 9 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.9)?

Actions #19

Updated by Frank Nägler over 9 years ago

This issue is solved with #62893 (https://review.typo3.org/#/c/34029/).
I will close this issue.

Actions #20

Updated by Frank Nägler over 9 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF