Skip to content

Configurable list of "best" packages to show #364

Description

@anuveyatsu

On the front page, we want to show the best 3 (or more) packages from core publisher + 3 (or more) example packages. We want to have some list and be able to configure it when needed.

Acceptance Criteria

  • Can configure list of "best" packages using xyz/abc styling naming (publisher name and package name)
  • Can configure list of "tutorial" packages similar to core

Tasks

  • research [45m]
    • research site controllers - how /search/ page is implemented, how list of packages built and passed to the template [30m]
      • note we don't have to reuse search ...
    • find out which snippet is being used for search results page to show list of data packages [15m]
    • Research how to set config list (do we just hardcode for now in config.py!) What do we do if packages not found (just ignore them then ...)
  • Test
  • reuse / refactor to use code snippets for front page [30m]

Analysis

Refactor Logic Layer

SCQA = situation, complication, question

  • Situation: logic for getting a data package in form for use in a template is inline in showcase controller (/publisher/name)
  • Complication: we want to use it elsewhere, e.g. for front page sample packages
  • Question: what do we do that avoids duplication
  • Answer: factor out this functionality into the logic layer.

Plan of action:

  • Write a logic test for get_package function
  • Refactor getting a data package code from controller into here
  • Commit
  • Then use same logic in front page with config
    • Write test first

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions