[Released] BUG: Some subresources are not displayed when searching resources

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
rob_marklands
Posts: 11
Joined: Thu Nov 29, 2018 1:55 am

[Released] BUG: Some subresources are not displayed when searching resources

Post by rob_marklands » Tue Feb 18, 2020 12:06 am

Good day,

When searching for resources with "in" operator some subresources are not returned.

Consider the example below:
When requesting data for a job, the Sections column is returned with that job's sections, as expected.

https://{{client}}.simprosuite.com/api/v1.0/companies/0/jobs/12345?display=all&columns=ID,Sections

Code: Select all

{
    "ID": 12345,
    "Sections": [
    	/*sections info*/
    ]
}
However when searching for jobs by job ID, the column Sections returns empty, even when "display=all" parameter is used

https://{{client}}.simprosuite.com/api/v1.0/companies/0/jobs/?display=all&ID=in(12345)&columns=ID,Sections

Code: Select all

[
    {
        "ID": 12345,
        "Sections": []
    }
]
Thanks
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: BUG: Some subresources are not displayed when searching resources

Post by Muqeet » Tue Feb 18, 2020 1:57 am

Hi Rob,

We were able to reproduce the issue and are now working on a fix. I ll update this thread when we release the fix.
Muqeet
API Developer | simPRO Software Group
Post Reply