Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

records: handle errors #225

Merged
merged 1 commit into from
Aug 17, 2020
Merged

records: handle errors #225

merged 1 commit into from
Aug 17, 2020

Conversation

sebdeleze
Copy link

  • Improves errors handling in search, detail and edit views.
  • Adds an error component to display the error.
  • Adds an interface for error objects.
  • Removes console.log when a http error is catched.
  • Sends an error object with status and title when a http error occurs.
  • Types the parameters of subscribers to getRecords observable.
  • Exports error component for using it in host's projects.
  • Closes Improve permissions to access resources sonar-ui#114.

@sebdeleze sebdeleze marked this pull request as ready for review July 23, 2020 14:14
@sebdeleze sebdeleze requested review from jma and Garfield-fr and removed request for Garfield-fr July 23, 2020 14:34
* Improves errors handling in search, detail and edit views.
* Adds an error component to display the error.
* Adds an interface for error objects.
* Removes `console.log` when a http error is catched.
* Sends an error object with status and title when a http error occurs.
* Types the parameters of subscribers to `getRecords` observable.
* Exports error component for using it in host's projects.
* Closes rero/sonar-ui#114.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
 You should have received a copy of the GNU Affero General Public License
 along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<div class="text-center my-5">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not using alerts or better https://valor-software.com/ngx-bootstrap/#/alerts?

@@ -77,3 +77,4 @@
</form>
</div>
</div>
<ng-core-error [error]="error" *ngIf="error"></ng-core-error>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not in the main component?

@sebdeleze sebdeleze merged commit 85f4cae into rero:dev Aug 17, 2020
@sebdeleze sebdeleze deleted the sed-error-component branch August 17, 2020 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve permissions to access resources
3 participants