Giter Club home page Giter Club logo

hmrc.feedback-frontend's Introduction

feedback-frontend

Services can integrate with Feedback frontend by navigating the URL with a unique name for your service for the survey you need.

Currently there are 2 surveys, a survey for personal tax accounts and a generic survey. Each service will be responsible for choosing which survey applies to them.

The endpoints are:

Production/qa/staging

Generic

/feedback/SERVICE_NAME

Personal tax accounts

/feedback/SERVICE_NAME/personal
Local development

Generic

http://localhost:9514/feedback/SERVICE_NAME

Personal tax accounts

http://localhost:9514/feedback/SERVICE_NAME/personal

Replace SERVICE_NAME with the identifier for your service.

Service manager

To run via service manager: sm --start FEEDBACK_FRONTEND

You will need to ensure that you do not have FEEDBACK_SURVEY_FRONTEND running as they use the same port number.

You will need to update your service manager config for your service and replace FEEDBACK_SURVEY_FRONTEND with FEEDBACK_FRONTEND

Usage

When redirecting the user to the feedback service you should ensure that the user has been logged out as the feedback service does not do this.

Log out user and redirect

Redirect("http://localhost:9514/feedback/SERVICE_NAME").withNewSession

If you need additional information audited you may pass through an optional feedbackId variable as a session value, you should ensure that this is unique as this will be audited alongside the user responses so they can be collated in Splunk. Example:

val uuid = randomUUID().toString

val auditData = Map("feedbackId" -> uuid, "customMetric" -> "value")

auditConnector.sendExplicitAudit("service-name", auditData)

Redirect("http://localhost:9514/feedback/SERVICE_NAME").withSession(("feedbackId", uuid))

License

This code is open source software licensed under the Apache 2.0 License.

hmrc.feedback-frontend's People

Contributors

anand462 avatar andrewarkless avatar anujakhare avatar brendanstraughan avatar christian-qa avatar gorkemunsal avatar hmrc-web-operations avatar jpatton638 avatar kurtlogan avatar manpreetsingh1000 avatar muhammad-ali-ahmad avatar richardjamesbaconhmrc avatar sarika150190 avatar shikkhasingh avatar struong avatar thirlz95 avatar tomasz-rosiek avatar vimalsuresh avatar wolfendale avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.