Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
A
Auction
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • prozorro-sale
  • Auction
  • Wiki
  • Home

Last edited by Vadym Tishchenko Mar 19, 2021
Page history

Home

Auction Service

Description

A Service that provide opportunity to post/cancel bids and in real-time observing of auction passing.

How to run locally

Requirements

  • Make
  • Docker
  • Docker-compose

Run auction service

make run - to run auction service or make and run will be executed by default.

Troubleshooting If you see that container of auction-api is down. You probably will se in logs something like that

raise NotMasterError(errmsg, response)
pymongo.errors.NotMasterError: node is not in primary or recovering state, full error: {'errorLabels': ['ResumableChangeStreamError'], 'topologyVersion': {'processId': ObjectId('6051aeef70b908f4d4aa6594'), 'counter': 0}, 'operationTime': Timestamp(0, 0), 'ok': 0.0, 'errmsg': 'node is not in primary or recovering state', 'code': 13436, 'codeName': 'NotPrimaryOrSecondary', '$clusterTime': {'clusterTime': Timestamp(0, 0), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}}

That mean you need to initiate mongo replica-set in your mongo_db container.

To do that run mongo in your mongo_db container and execute the command bellow

rs.initiate()

Tips To run service with logs use make logs

More about make command you can see here

Auction Types

  • Green [deprecated]
  • English
  • Dutch
  • MultiAwards
  • MultiAwards-desc
  • PriorityEnglish

Versioning

Auction service using semantic versioning.

That means versions have next look - 3.X.Y where:

  • 3 - CDB (central data base) version.
  • X - using for planed releases.
  • Y - using for hot-fix releases.

More about how to tag auction module you can find in the Makefile page

Useful links:

  • Manual how to add new auction

  • About rules

  • About states

  • About auction specs

  • About auction feed

  • About auction room

Clone repository
  • Auction Feed
  • Auction Room
  • Auction Rules
  • Auction Specs
  • Auction States
  • Dutch Auction
  • English Auction
  • Green Auction
  • How to add new Auction?
  • Makefile
  • MultiAwards Auction
  • MultiAwards desc Auction
  • PriorityEnglish Auction
  • Home