Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S ServiceCore
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bingo
  • ServiceCore
  • Merge requests
  • !141

Merged
Created 4 years ago by Виктор Волков@viktor.volkovMaintainer

feat: add ordering to repositories

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 4
  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • master (base)

and
  • latest version
    7d238876
    1 commit, 4 years ago

4 files
+ 14
- 3

    Preferences

    File browser
    Compare changes
src/Infrastructure‎/Domain/Repository‎
QueryableByJoi‎nTableTrait.php‎ +4 -0
QueryableByPare‎ntGuidTrait.php‎ +4 -0
Queryable‎Trait.php‎ +5 -0
QueryableTypePr‎opertyTrait.php‎ +1 -3
src/Infrastructure/Domain/Repository/QueryableByJoinTableTrait.php
+ 4
- 0
  • View file @ 7d238876

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
->where('p.guid = :guid')
->setParameter('guid', $guid);
;
if (property_exists($this, 'ordered') && $this->ordered == true) {
$query->orderBy('c.row_order');
}
$result = $query->execute()->fetchAll(FetchMode::ASSOCIATIVE);
Show 20 lines Show all unchanged lines
src/Infrastructure/Domain/Repository/QueryableByParentGuidTrait.php
+ 4
- 0
  • View file @ 7d238876

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
->where('p.guid = :guid')
->setParameter('guid', $guid);
;
if (property_exists($this, 'ordered') && $this->ordered == true) {
$query->orderBy('c.row_order');
}
$result = $query->execute()->fetchAll(FetchMode::ASSOCIATIVE);
Show 20 lines Show all unchanged lines
src/Infrastructure/Domain/Repository/QueryableTrait.php
+ 5
- 0
  • View file @ 7d238876

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
$query = $this->queryBuilder
->from($this->tableName)
;
if (property_exists($this, 'ordered') && $this->ordered == true) {
$query->orderBy('row_order');
}
$apiQL = new ApiQL($payload, $query);
$apiQL->execute();
Show 20 lines Show all unchanged lines
src/Infrastructure/Domain/Repository/QueryableTypePropertyTrait.php
+ 1
- 3
  • View file @ 7d238876

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
'tpt.' . $this->propertyColumn . ' = pt.id'
)
->where('tpt.' . $this->typeColumn . ' = :type')
->orderBy('row_order')
->setParameter('type', $type)
;
if (property_exists($this, 'ordered') && $this->ordered == true) {
$query->orderBy('row_order');
}
return $query->execute()->fetchAll(FetchMode::ASSOCIATIVE);
}
}
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
1
1 participant
user avatar
Reference: Bingo/ServiceCore!141
Source branch: develop

    0 pending comments

Menu

Projects Groups Snippets
Help