Skip to content

Разработка системы тегов для статей #7

@RaingGOR

Description

@RaingGOR

Описание:

Создать систему тегов, которая позволит авторам:

  1. Добавлять существующие теги к своим статьям.
  2. Если нужного тега нет в системе, создавать новый тег, который будет доступен и для других пользователей в будущем.

Требования:

  1. Функциональные требования:

    • Добавление тегов: Авторы должны иметь возможность выбирать существующие теги и добавлять их к статьям.
    • Создание новых тегов: Если нужного тега нет в базе данных, автор должен иметь возможность создать новый тег. Новый тег должен сохраняться в системе для будущего использования.
    • Автозаполнение: При добавлении тега система должна предлагать существующие теги на основе введенного текста.
  2. Технические требования:

    • База данных: Таблицы для хранения информации о тегах (Tags), статьях (Articles) и связи между ними (ArticleTags).
    • API: Методы для добавления и получения тегов, создания новых тегов, и связывания тегов со статьями.
  3. Администрирование:

    • Возможность администрирования тегов (удаление, редактирование) для обеспечения чистоты и актуальности данных.

Примечание:

Убедитесь, что система будет тестироваться на удобство использования и корректность работы всех функций. Так же не забудьте обновить миграции. Ну и оставьте комментарии, иначе разбираться в вашей системе тегов не будет классно.
Description:

To create a tagging system that will allow authors to:

  1. Add existing tags to their articles.

  2. If the desired tag is not in the system, create a new tag that will be available to other users in the future.

Requirements:

  1. Functional requirements:
  • Adding tags: Authors should be able to select existing tags and add them to articles.
  • Creating new tags: If the desired tag is not in the database, the author should be able to create a new tag. The new tag should be saved in the system for future use.
  • Autocomplete: When adding a tag, the system should suggest existing tags based on the entered text.
  1. Technical requirements:
  • Database: Tables for storing information about tags (Tags), articles (Articles) and the relationships between them (ArticleTags).
  • API: Methods for adding and getting tags, creating new tags, and associating tags with articles.
  1. Administration:
  • Ability to administer tags (delete, edit) to ensure data is clean and up-to-date.

Note:

Make sure the system is tested for ease of use and correct operation of all functions. Also, do not forget to update migrations. And leave comments, otherwise it will not be cool to understand your tag system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions