| Summary: | [api] generalize repository validation | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Willian Mitsuda <wmitsuda> | ||||||
| Component: | Mylyn | Assignee: | Steffen Pingel <steffen.pingel> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | robert.elves, steffen.pingel | ||||||
| Version: | 1.0 | ||||||||
| Target Milestone: | 2.0 M2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Willian Mitsuda
Not true for JIRA. It does verify credentials there. You probably misinterpreted the comment I made to Mik that workaround to call validate does nothing. I was referring to the fact that validate is not invalidating the login token. It should still be removed for the web connector, where it does not do anything. (In reply to comment #2) > It should still be removed for the web connector, where it does not do > anything. Agreed. I thought I already suggested to replace a validate method with method that would return validator instance. So, connector can choose to return null and then abstract dialog can disable button. That should also allow to move lots of error reporting into the abstract class. Sounds good to me. Are you proposing to do that? If so you can do it on this bug, but it should be tagged [api]. (In reply to comment #4) Mik, I was hoping that you or Rob could do that because it will affect all connectors and this change is quite straightforward. At some point Steffen also had some objections to the unified way to present errors. I think we should switch to displaying the status in the wizard message area for all connectors. With latest milestone the warning dialogs look rather awkward and their focus is blocked by other modal dialogs (on my Linux box). Eugene, are you currently working on this? I have already implemented a Validator class for Trac which I could generalize and move to AbstractRepositorySettingsPage. Feel free to assign this task to me. That would be a nice improvement Steffen, over to you. I am not working on it. Please generalize away. :-) Created attachment 59327 [details]
generalize repository validation
API for repository validation and implementation for Trac and JIRA. Rob, I'll leave Bugzilla to you, so you can check if the API makes sense :). The patch does not break previous validation implementations but requires the implementation of getValidator() which may return null. I have also added a capability for validations so the validate button is not displayed for web repositories anymore.
Created attachment 59328 [details]
mylar/context/zip
Rob: please review. Patch applied. Looks good Steffen. I was able to easily rework Bugzilla to use the new api. Great, closing report. |