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

Issue #223: Implemented DataSourceResources Controller refactor #278

Open
wants to merge 1 commit into
base: feature/task_cwms_support
Choose a base branch
from

Conversation

zack-rma
Copy link
Collaborator

Problem Description

Fixes #223.

Solution

Replaced DAO usage with OpenDCS DAI implementations.

how you tested the change

Unit tests included.

Where the following done:

  • Tests. Check all that apply:
    • Unit tests created or modified that run during ant test.
    • Integration tests created or modified that run during integration testing
      (Formerly called regression tests.)
    • Test procedure descriptions for manual testing
  • Was relevant documentation updated?
  • Were relevant config element (e.g. XML data) updated as appropriate

If you aren't sure leave unchecked and we will help guide you to want needs changing where.

return ads;
}

static ArrayList<ApiDataSourceGroupMember> map(Vector<DataSource> groupMembers)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@MikeNeilson is there a reason the DTO classes have to use ArrayList and Vector? Can we just fix the DTO so that we don't have to return implementation classes?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not really. In a few cases it's because the Original DAOs or Interfaces used Vector and they ArrayList. So there would need to be a conversion step but I would argue we should just do so.

The DAOs are going to be moved to List or Collection as the output, but we haven't gotten to it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants