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

Fix #118: Introduce TopicController #174

Merged
merged 9 commits into from
Sep 27, 2019

Conversation

BenHenning
Copy link
Sponsor Member

@BenHenning BenHenning commented Sep 22, 2019

This introduces the interfaces for TopicController, which is also relevant for the #137 since this is providing the source information for both topics & stories. Note that thumbnails for topics & chapters are solved here (stories do not have thumbnails in these views, but do in others: #176). Thumbnails for skills are intentionally left absent, and I don't expect us to have skill thumbnails for the prototype. We should implement a reasonable default for these views in the meantime.

This includes tests to force test replacement once #15 is resolved. This PR includes no real implementation.

Reference page mocks used to determine what information should be provided by this controller: topic page, story page, and concept cards.

This is blocked on #175 hence the base branch.

@BenHenning
Copy link
Sponsor Member Author

I included most of the team in the review as an FYI for how we can structure domain controllers ahead of implementation. This is a good example of that.

I'm happy to submit this with just 1 approval since it's not introducing any logic yet.

@BenHenning BenHenning changed the base branch from develop to introduce-initial-lesson-thumbnails-and-structure September 22, 2019 22:07
@BenHenning BenHenning changed the title Fix #118: Introduce TopicController Fix #118: Introduce TopicController [Blocked: #175] Sep 22, 2019
Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

LGTM. Suggested nit changes.

model/src/main/proto/topic.proto Show resolved Hide resolved
@rt4914 rt4914 removed their assignment Sep 23, 2019
@nikitamarysolomanpvt
Copy link
Contributor

LGTM

@vinitamurthi vinitamurthi removed their assignment Sep 23, 2019
@jamesxu0
Copy link
Contributor

Add method to get concept card data

Conflicts:
	model/src/main/proto/topic.proto
@BenHenning BenHenning changed the base branch from introduce-initial-lesson-thumbnails-and-structure to develop September 24, 2019 07:32
@BenHenning
Copy link
Sponsor Member Author

Thanks for the reminder @jamesxu0, I didn't quite get to that yet. Keeping this open until I resolve that bit.

stubbed way), without tests.

This also cleans up the voiceover/translation proto dependencies a bit,
and migrates Playability over to the ChapterPlayState enum.
@BenHenning
Copy link
Sponsor Member Author

@jamesxu0 PTAL. I added concept card support, but ran out of time before I could add tests. Hopefully this is sufficient to unblock you if you branch off of this PR's branch (please let me know if that isn't the case).

Copy link
Contributor

@jamesxu0 jamesxu0 left a comment

Choose a reason for hiding this comment

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

LGTM, this should unblock me for concept card, thanks!

Conflicts:
	model/src/main/proto/topic.proto
@BenHenning BenHenning changed the title Fix #118: Introduce TopicController [Blocked: #175] Fix #118: Introduce TopicController Sep 27, 2019
@BenHenning BenHenning assigned jamesxu0 and unassigned BenHenning Sep 27, 2019
@BenHenning
Copy link
Sponsor Member Author

@jamesxu0 I just added tests for getConceptCard in TopicControllerTest. I'd like if you could take a quick glance at them to make sure everything looks good, though I'm fine submitting this as-is.

Copy link
Contributor

@jamesxu0 jamesxu0 left a comment

Choose a reason for hiding this comment

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

Concept Card tests look good! LGTM

@jamesxu0 jamesxu0 assigned BenHenning and unassigned jamesxu0 Sep 27, 2019
@BenHenning
Copy link
Sponsor Member Author

Thanks!

@BenHenning BenHenning merged commit 86b8e7f into develop Sep 27, 2019
@BenHenning BenHenning deleted the introduce-topic-controller-interface branch September 27, 2019 23:55
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.

None yet

7 participants